]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Implement P0012R1, Make exception specifications part of the type system.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
51dc6603
JM
12016-11-07 Jason Merrill <jason@redhat.com>
2
3 * c.opt (Wc++1z-compat): New.
4 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
5
6dc4a604
ML
62016-11-07 Martin Liska <mliska@suse.cz>
7
8 * c-warn.c (warn_for_unused_label): Save all labels used
9 in goto or in &label.
10
b302001e
JM
112016-11-03 Jason Merrill <jason@redhat.com>
12
13 * c-cppbuiltin.c (c_cpp_builtins): Correct
14 __cpp_inheriting_constructors.
15
31f7f784
JM
162016-11-01 Jason Merrill <jason@redhat.com>
17
2bc78e3c
JM
18 * c-cppbuiltin.c (c_cpp_builtins): Update
19 __cpp_inheriting_constructors.
20
31f7f784
JM
21 * c.opt (-fnew-inheriting-ctors): New.
22 * c-opts.c: Default to on for ABI 11+.
23
dcb466ec
JJ
242016-10-31 Jakub Jelinek <jakub@redhat.com>
25
26 PR c++/77948
27 * c.opt (fext-numeric-literals): Add Var and Init.
28 * c-opts.c (c_common_handle_option): Don't clear
29 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
30 (c_common_post_options): Clear it here if not set
31 explicitly.
32
52e1b91e
AH
332016-10-28 Aldy Hernandez <aldyh@redhat.com>
34
35 PR debug/77773
36 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
37 if NULL.
38
e16f1cc7
JJ
392016-10-25 Jakub Jelinek <jakub@redhat.com>
40
41 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
42 * c-common.c (c_common_reswords): Add __builtin_launder.
43
f8348061
BE
442016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
45
46 * c-common.c (c_common_truthvalue_conversion): Warn for
47 multiplications in boolean context. Fix the quoting of '<<' and '<'
48 in the shift warning.
49
eff89e01
BE
502016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
51
52 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
53
24bc7bf4
JM
542016-10-20 Jason Merrill <jason@redhat.com>
55
56 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
57
4c712374
BE
582016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
59
60 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
61 integer shift ops in boolean context.
62
632016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
64
65 * c.opt (Walloca): New.
66 (Walloca-larger-than=): New.
67 (Wvla-larger-than=): New.
68
8fa18c06
MP
692016-10-17 Marek Polacek <polacek@redhat.com>
70
71 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
72 Return immediately when finding a match.
73 (warn_tautological_cmp): Remove a boolean variable that is no longer
74 needed.
75
b12b1915
MP
762016-10-17 Marek Polacek <polacek@redhat.com>
77
78 * c-attribs.c: New file.
79 * c-common.c: Move attributes handling to c-attribs.c.
80 (get_nonnull_operand): No longer static.
81 * c-common.h: Move the declarations from c-attribs.c to its own section.
82
2045acd9
JM
832016-10-14 Jason Merrill <jason@redhat.com>
84
85 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
86 and __cpp_deduction_guides.
87
14a2c9aa
JM
882016-10-13 Jason Merrill <jason@redhat.com>
89
90 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
91
4d0cdd0c
TP
922016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
93
94 * c-cppbuiltin.c: Include memmodel.h.
95 * c-opts.c: Likewise.
96 * c-pragma.c: Likewise.
97 * c-warn.c: Likewise.
98
70f6d5e1
JJ
992016-10-12 Jakub Jelinek <jakub@redhat.com>
100
101 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
102 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
103 * c-opts.c (sanitize_cpp_opts): Initialize
104 cpp_opts->cpp_warn_implicit_fallthrough.
105
78f61294
MP
1062016-10-11 Marek Polacek <polacek@redhat.com>
107
108 * c-common.c (warning_candidate_p): Change the return type to bool
109 and return true/false instead of 1/0.
110 (vector_mode_valid_p): Likewise.
111
038b5cc0
MP
1122016-10-11 Marek Polacek <polacek@redhat.com>
113
114 * c-common.c (fold_for_warn): No longer static.
115 (bool_promoted_to_int_p): Likewise.
116 (c_common_get_narrower): Likewise.
117 (constant_expression_warning): Move to c-warn.c.
118 (constant_expression_error): Likewise.
119 (overflow_warning): Likewise.
120 (warn_logical_operator): Likewise.
121 (find_array_ref_with_const_idx_r): Likewise.
122 (warn_tautological_cmp): Likewise.
123 (expr_has_boolean_operands_p): Likewise.
124 (warn_logical_not_parentheses): Likewise.
125 (warn_if_unused_value): Likewise.
126 (strict_aliasing_warning): Likewise.
127 (sizeof_pointer_memaccess_warning): Likewise.
128 (check_main_parameter_types): Likewise.
129 (conversion_warning): Likewise.
130 (warnings_for_convert_and_check): Likewise.
131 (match_case_to_enum_1): Likewise.
132 (match_case_to_enum): Likewise.
133 (c_do_switch_warnings): Likewise.
134 (warn_for_omitted_condop): Likewise.
135 (readonly_error): Likewise.
136 (lvalue_error): Likewise.
137 (invalid_indirection_error): Likewise.
138 (warn_array_subscript_with_type_char): Likewise.
139 (warn_about_parentheses): Likewise.
140 (warn_for_unused_label): Likewise.
141 (warn_for_div_by_zero): Likewise.
142 (warn_for_memset): Likewise.
143 (warn_for_sign_compare): Likewise.
144 (do_warn_double_promotion): Likewise.
145 (do_warn_unused_parameter): Likewise.
146 (record_locally_defined_typedef): Likewise.
147 (maybe_record_typedef_use): Likewise.
148 (maybe_warn_unused_local_typedefs): Likewise.
149 (maybe_warn_bool_compare): Likewise.
150 (maybe_warn_shift_overflow): Likewise.
151 (warn_duplicated_cond_add_or_warn): Likewise.
152 (diagnose_mismatched_attributes): Likewise.
153 * c-common.h: Move the declarations from c-warn.c to its own section.
154 * c-warn.c: New file.
155
627be19f
JM
1562016-10-08 Jason Merrill <jason@redhat.com>
157
158 * c-common.c (c_common_truthvalue_conversion): Don't distribute
159 into COND_EXPR in C++.
160
7bad794a
JJ
1612016-10-08 Jakub Jelinek <jakub@redhat.com>
162
163 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
164 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
165 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
166
be845b04
JJ
1672016-10-07 Jakub Jelinek <jakub@redhat.com>
168
169 Implement LWG2296 helper intrinsic
170 * c-common.h (enum rid): Add RID_ADDRESSOF.
171 * c-common.c (c_common_reswords): Add __builtin_addressof.
172
c09c4992
BE
1732016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
174
175 PR c++/77700
176 * c-common.c (c_common_truthvalue_conversion): Warn also for
177 suspicious enum values in boolean context.
178
342cfb3e
JJ
1792016-10-06 Jakub Jelinek <jakub@redhat.com>
180
181 Implement P0258R2 - helper for C++17
182 std::has_unique_object_representations trait
183 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
184 * c-common.c (c_common_reswords): Add
185 __has_unique_object_representations.
186
2e69f143
JJ
1872016-10-05 Jakub Jelinek <jakub@redhat.com>
188
189 PR sanitizer/66343
190 * c-ubsan.c (ubsan_instrument_return): Don't call
191 initialize_sanitizer_builtins here.
192
700fff34
BE
1932016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
194
195 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
196 conditional expression in boolean context when only one arm is
197 non-boolean.
198
9563bfcd
JJ
1992016-10-05 Jakub Jelinek <jakub@redhat.com>
200
04a32443
JJ
201 PR sanitizer/77823
202 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
203 is not integral.
204
9563bfcd
JJ
205 * c-common.c (c_common_reswords): Update comment for C++11.
206
f1644724
JM
2072016-10-04 Jason Merrill <jason@redhat.com>
208
209 * c-common.c (make_tree_vector_from_ctor): New.
210 * c-common.h: Declare it.
211
5a79befb
JJ
2122016-10-04 Jakub Jelinek <jakub@redhat.com>
213
214 * c-cppbuiltin.c (c_cpp_builtins): Don't define
215 __LIBGCC_JCR_SECTION_NAME__.
216
1633d3b9
BE
2172016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
218
219 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
220 left shift in boolean context.
221
a2c6e7f2
JJ
2222016-09-29 Jakub Jelinek <jakub@redhat.com>
223
224 Implement P0001R1 - C++17 removal of register storage class specifier
225 * c.opt (Wregister): New warning.
226 * c-opts.c (c_common_post_options): Enable -Wregister by
227 default for C++17.
228
75304c87
JG
2292016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
230
231 * c-opts.c (c_common_post_options): Remove special case for
232 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
233 in C++.
234
bbfac6da
JJ
2352016-09-27 Jakub Jelinek <jakub@redhat.com>
236
6e39060a
JJ
237 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
238 -std=c++1z.
239
bbfac6da
JJ
240 * c-ada-spec.c (print_ada_declaration): Remove break after return.
241
e73cf9a2
TP
2422016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
243
244 * c-common.c: Include memmodel.h.
245
c6147dc4
MP
2462016-09-26 Marek Polacek <polacek@redhat.com>
247
248 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
249
81fea426
MP
2502016-09-26 Marek Polacek <polacek@redhat.com>
251
252 PR c/7652
253 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
254 (handle_fallthrough_attribute): New function.
255 (attribute_fallthrough_p): New function.
256 * c-common.h (attribute_fallthrough_p): Declare.
257
9a2300e9
MP
2582016-09-24 Marek Polacek <polacek@redhat.com>
259
260 PR c/77490
261 * c.opt (Wbool-operation): New.
262
a09e9e35
BE
2632016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
264
265 * c-common.c (c_common_truthvalue_conversion): Inhibit
266 Wint-in-bool-context warning with from_macro_definition_at.
267 Mention the expression will always evaluate to true.
268
d43b4ccc
MS
2692016-09-21 Martin Sebor <msebor@redhat.com>
270
271 PR bootstrap/77676
272 * c.opt (fprintf-return-value): Temporarily initialize to zero
273 to unblock bootstrap failures.
274
2e1c20b1
JJ
2752016-09-21 Jakub Jelinek <jakub@redhat.com>
276
277 PR c++/77651
278 * c.opt (Waligned-new=): Add RejectNegative.
279 (faligned-new=): Likewise. Spelling fix - change
280 aligned_new_threshhold to aligned_new_threshold.
281 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
282 to aligned_new_threshold.
283
88d0c3f0
MS
2842016-09-20 Martin Sebor <msebor@redhat.com>
285
286 PR middle-end/49905
287 * c.opt: Add -Wformat-length and -fprintf-return-value.
288
144a96e4
BE
2892016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
290
291 PR c++/77434
292 * c.opt (Wint-in-bool-context): New warning.
293 * c-common.c (c_common_truthvalue_conversion): Warn on integer
294 constants in boolean context.
295
63012d9a
JM
2962016-09-19 Joseph Myers <joseph@codesourcery.com>
297
298 * c-common.c (max_align_t_align): Also consider alignment of
299 float128_type_node.
300
931388ce
JM
3012016-09-15 Jason Merrill <jason@redhat.com>
302
303 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
304 DECL_EXTERNAL.
305
38711381
JM
3062016-09-14 Jason Merrill <jason@redhat.com>
307
308 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
309 limit FIELD_DECL, either.
310
e51fbec3
MP
3112016-09-14 Marek Polacek <polacek@redhat.com>
312
313 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
314 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
315 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
316
254830ba
DM
3172016-09-13 David Malcolm <dmalcolm@redhat.com>
318
319 * c-common.c (warn_logical_not_parentheses): Replace
320 rich_location::add_fixit_insert calls with add_fixit_insert_before
321 and add_fixit_insert_after, eliminating the "next_loc" calculation.
322
42763690
JM
3232016-09-13 Jason Merrill <jason@redhat.com>
324 Tom de Vries <tom@codesourcery.com>
325
326 PR c++/77427
327 * c-common.c (set_underlying_type): Don't treat array as builtin type.
328
9453eee9
JM
3292016-09-13 Jason Merrill <jason@redhat.com>
330
331 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
332 limit types at all.
333
e96809e3
JM
3342016-09-12 Jason Merrill <jason@redhat.com>
335
336 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
337 bit/byte confusion, allow large alignment for types.
338
54dcdb88
BE
3392016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
340
341 PR c++/77496
342 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
343
d1463eb9
DM
3442016-09-12 David Malcolm <dmalcolm@redhat.com>
345
346 PR c/72858
347 * c-format.c (argument_parser::check_argument_type): Add params
348 "type_start" and "conversion_char". Use the former to generate
349 offset_to_type_start and pass it and conversion_char to
350 check_format_types.
351 (check_format_info_main): Capture the start of the type
352 information as "type_start", and pass it an format_char
353 to arg_parser.check_argument_type.
354 (check_format_types): Provide an example in the leading comment.
355 Add params "offset_to_type_start" and "conversion_char"; pass
356 them to format_type_warning calls.
357 (test_get_modifier_for_format_len): Likewise.
358 (matching_type_p): New function.
359 (get_format_for_type): Add param "conversion_char" and move
360 implementation into...
361 (get_format_for_type_1): ...new function, called twice.
362 Use new function matching_type_p rather than checking for
363 TYPE_CANONICAL equality.
364 (get_corrected_substring): New function.
365 (format_type_warning): Provide an example in the leading comment.
366 Add params "offset_to_type_start" and "conversion_char". Replace
367 call to get_format_for_type with call to get_corrected_substring
368 and move rejection of hints for widths/precisions there.
369 (assert_format_for_type_streq): Add param "conversion_char".
370 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
371 (test_get_format_for_type_printf): Add conversion chars to the
372 tests, adding coverage for various combinations of integer
373 vs double conversions, and for preserving octal and hexadecimal
374 conversions.
375 (test_get_format_for_type_scanf): Add conversion chars to the
376 tests.
377
5b28efbb
TV
3782016-09-10 Tom de Vries <tom@codesourcery.com>
379
380 PR C/71602
381 * c-common.c (build_va_arg): Handle more strict
382 targetm.canonical_va_list_type. Replace first argument type error with
383 assert.
384
3f0177e7
MS
3852016-09-09 Martin Sebor <msebor@redhat.com>
386
387 PR c/77520
388 PR c/77521
389 * c-format.c (argument_parser::find_format_char_info): Use %qc
390 format directive unconditionally.
391
af63ba4b
JM
3922016-09-09 Jason Merrill <jason@redhat.com>
393
394 Implement C++17 new of over-aligned types.
395 * c.opt: Add -faligned-new and -Waligned-new.
396 * c-common.c (max_align_t_align): Split out from...
397 (cxx_fundamental_alignment_p): ...here.
398 * c-common.h: Declare it.
399 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
400
c65248cb
JM
4012016-09-09 Joseph Myers <joseph@codesourcery.com>
402
403 * c-cppbuiltin.c (builtin_define_type_width): New function.
404 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
405 macros.
406
e5106e27
DM
4072016-09-07 David Malcolm <dmalcolm@redhat.com>
408
409 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
410 a POINTER_TYPE.
411 (substring_loc::get_location): Move to substring-locations.c,
412 keeping implementation as...
413 (c_get_substring_location): New function, from the above, reworked
414 to use accessors rather than member lookup.
415 * c-common.h (class substring_loc): Move to substring-locations.h,
416 replacing with a forward decl.
417 (c_get_substring_location): New decl.
418 * c-format.c: Include "substring-locations.h".
419 (format_warning_va): Move to substring-locations.c.
420 (format_warning_at_substring): Likewise.
421
a42e7952
MS
4222016-09-06 Martin Sebor <msebor@redhat.com>
423
424 PR c/77336
425 * c-format.c (check_function_format): Avoid issuing warnings for
426 functions unless they call format functions with non-constant
427 format strings.
428
b772a565
RB
4292016-09-06 Richard Biener <rguenther@suse.de>
430
431 PR c/77450
432 * c-common.c (c_common_mark_addressable_vec): Handle
433 COMPOUND_LITERAL_EXPR.
434
25ff5dd3
MP
4352016-09-05 Marek Polacek <polacek@redhat.com>
436
437 PR c/77423
438 * c-common.c (bool_promoted_to_int_p): New function.
439 (expr_has_boolean_operands_p): New function.
440 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
441 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
442
21234eb5
TV
4432016-09-04 Tom de Vries <tom@codesourcery.com>
444
445 revert:
446 2016-08-29 Tom de Vries <tom@codesourcery.com>
447
448 * c-common.c (build_va_arg): Replace first argument type error
449 with assert.
450
9dc5773f
JJ
4512016-09-02 Jakub Jelinek <jakub@redhat.com>
452
453 PR c/65467
454 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
455 (c_finish_omp_for): Reject _Atomic qualified iterators.
456
4572016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
458
459 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
460 size to guarantee it fits the output of the formatted function
461 regardless of its arguments.
462
295844f6
MP
4632016-09-01 Marek Polacek <polacek@redhat.com>
464
465 PR c/7652
466 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
467 FALLTHRU comments.
468
3d06b6f2
MP
4692016-08-29 Marek Polacek <polacek@redhat.com>
470
471 PR c/77292
472 * c-common.c (warn_logical_not_parentheses): Don't warn for
473 a comparison or a logical operator.
474
34cedad5
TV
4752016-08-29 Tom de Vries <tom@codesourcery.com>
476
477 * c-common.c (build_va_arg): Fix type comparison assert.
478
f162d717
TV
4792016-08-29 Tom de Vries <tom@codesourcery.com>
480
481 * c-common.c (build_va_arg): Replace first argument type error
482 with assert.
483
ba9bbd6f
TV
4842016-08-29 Tom de Vries <tom@codesourcery.com>
485
486 PR c/77398
487 * c-common.c (build_va_arg): Add first argument error. Build va_arg
488 with error_mark_node as va_list instead of with illegal va_list.
489
ebef225f
MP
4902016-08-25 Marek Polacek <polacek@redhat.com>
491 David Malcolm <dmalcolm@redhat.com>
492
493 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
494 * c-common.h (warn_logical_not_parentheses): Update declaration.
495
b00e6e75
MP
4962016-08-22 Marek Polacek <polacek@redhat.com>
497
498 PR c++/77321
499 * c-common.c (warn_for_memset): Check type for null.
500
6dc198e3
JM
5012016-08-22 Joseph Myers <joseph@codesourcery.com>
502
503 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
504 _FloatNx types for suffixes for built-in functions.
505
c65699ef
JM
5062016-08-19 Joseph Myers <joseph@codesourcery.com>
507
508 PR c/32187
509 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
510 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
511 (RID_FLOAT128X): New enum rid values.
512 (CASE_RID_FLOATN_NX): New macro.
513 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
514 keywords.
515 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
516 corresponding complex types.
517 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
518 _FloatNx and corresponding complex types.
519 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
520 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
521 and _FloatNx types for the widest type for determining
522 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
523 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
524 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
525 and _FloatNx types.
526 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
527 constants.
528 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
529 _FloatNx types.
530
cc015f3a
DM
5312016-08-18 David Malcolm <dmalcolm@redhat.com>
532
533 * c-opts.c (c_diagnostic_finalizer): Update for change to
534 diagnostic_show_locus.
535
cb18fd07
DM
5362016-08-18 David Malcolm <dmalcolm@redhat.com>
537
538 * c-common.c: Include "spellcheck.h".
539 (cb_get_suggestion): New function.
540 * c-common.h (cb_get_suggestion): New decl.
541 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
542 cb_get_suggestion.
543
a76989dc
MP
5442016-08-18 Marek Polacek <polacek@redhat.com>
545
546 PR c/71514
547 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
548 and pointer-to-VLA.
549
65e736c0
DM
5502016-08-16 David Malcolm <dmalcolm@redhat.com>
551
552 PR c/72857
553 * c-common.c (substring_loc::get_range): Rename to...
554 (substring_loc::get_location): ...this, converting param from a
555 source_range * to a location_t *. Call
556 get_source_location_for_substring rather than
557 get_source_range_for_substring, and pass in m_caret_idx.
558 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
559 (substring_loc::get_range): Replace with...
560 (substring_loc::get_location): ...this.
561 (substring_loc::set_caret_index): New method.
562 (substring_loc): Add field m_caret_idx.
563 * c-format.c (format_warning_va): Update for above changes.
564 Rename local "substring_loc" to "fmt_substring_loc" to avoid
565 clashing with type name.
566 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
567 (check_argument_type): Likewise.
568 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
569 Use a copy when emitting warnings, setting the caret index from TYPE.
570
7e1dde14
EB
5712016-08-16 Eric Botcazou <ebotcazou@adacore.com>
572 Arnaud Charlet <charlet@adacore.com>
573
574 * c-ada-spec.c (dump_number): New function.
575 (handle_escape_character): Likewise.
576 (print_ada_macros): Add handling of constant integers and strings.
577
191816a3
MP
5782016-08-12 Marek Polacek <polacek@redhat.com>
579
580 PR c/7652
581 * c-common.c (scalar_to_vector): Adjust fall through comment.
582 * c-opts.c (c_common_handle_option): Likewise.
583 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
584 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
585 fall through comment.
586 * cilk.c (extract_free_variables): Add FALLTHRU.
587
452df4a4
JM
5882016-08-10 Jason Merrill <jason@redhat.com>
589
590 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
591
f3365c12
JM
5922016-08-09 Jason Merrill <jason@redhat.com>
593
594 * c-common.c (c_common_attribute_table): vector_size affects type
595 identity.
596
f0bc3323
MP
5972016-08-09 Marek Polacek <polacek@redhat.com>
598
599 PR c/7652
600 * c-ada-spec.c (dump_generic_ada_node): Add return.
601
98e5a19a
JM
6022016-08-09 Jason Merrill <jason@redhat.com>
603
604 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
605 C++17 constexpr lambdas.
606
895aa8e1
DM
6072016-08-08 David Malcolm <dmalcolm@redhat.com>
608
609 PR c/64955
610 * c-common.h (selftest::c_format_c_tests): New declaration.
611 (selftest::run_c_tests): New declaration.
612 * c-format.c: Include "selftest.h.
613 (format_warning_va): Add param "corrected_substring" and use
614 it to add a replacement fix-it hint.
615 (format_warning_at_substring): Likewise.
616 (format_warning_at_char): Update for new param of
617 format_warning_va.
618 (argument_parser::check_argument_type): Pass "fki" to
619 check_format_types.
620 (check_format_types): Add param "fki" and pass it to
621 format_type_warning.
622 (deref_n_times): New function.
623 (get_modifier_for_format_len): New function.
624 (selftest::test_get_modifier_for_format_len): New function.
625 (get_format_for_type): New function.
626 (format_type_warning): Add param "fki" and use it to attempt
627 to provide hints for argument types when calling
628 format_warning_at_substring.
629 (selftest::get_info): New function.
630 (selftest::assert_format_for_type_streq): New function.
631 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
632 (selftest::test_get_format_for_type_printf): New function.
633 (selftest::test_get_format_for_type_scanf): New function.
634 (selftest::c_format_c_tests): New function.
635
e52ed3fe
DM
6362016-08-08 David Malcolm <dmalcolm@redhat.com>
637
638 PR c/52952
639 * c-format.c: Include "diagnostic.h".
640 (location_column_from_byte_offset): Delete.
641 (location_from_offset): Delete.
642 (format_warning_va): New function.
643 (format_warning_at_substring): New function.
644 (format_warning_at_char): New function.
645 (check_format_arg): Capture location of format_tree and pass to
646 check_format_info_main.
647 (argument_parser): Add fields "start_of_this_format" and
648 "format_string_cst".
649 (flag_chars_t::validate): Add param "format_string_cst". Convert
650 warning_at call using location_from_offset to call to
651 format_warning_at_char.
652 (argument_parser::argument_parser): Add param "format_string_cst_"
653 and use use it to initialize field "format_string_cst".
654 Initialize new field "start_of_this_format".
655 (argument_parser::read_format_flags): Convert warning_at call
656 using location_from_offset to a call to format_warning_at_char.
657 (argument_parser::read_any_format_left_precision): Likewise.
658 (argument_parser::read_any_format_precision): Likewise.
659 (argument_parser::read_any_other_modifier): Likewise.
660 (argument_parser::find_format_char_info): Likewise, in three places.
661 (argument_parser::parse_any_scan_set): Likewise, in one place.
662 (argument_parser::handle_conversions): Likewise, in two places.
663 (argument_parser::check_argument_type): Add param "fmt_param_loc"
664 and use it to make a substring_loc. Pass the latter to
665 check_format_types.
666 (check_format_info_main): Add params "fmt_param_loc" and
667 "format_string_cst". Convert warning_at calls using
668 location_from_offset to calls to format_warning_at_char. Pass the
669 new params to the arg_parser ctor. Pass "format_string_cst" to
670 flag_chars.validate. Pass "fmt_param_loc" to
671 arg_parser.check_argument_type.
672 (check_format_types): Convert first param from a location_t
673 to a const substring_loc & and rename to "fmt_loc". Attempt
674 to extract the range of the relevant parameter and pass it
675 to format_type_warning.
676 (format_type_warning): Convert first param from a location_t
677 to a const substring_loc & and rename to "fmt_loc". Add
678 params "param_range" and "type". Replace calls to warning_at
679 with calls to format_warning_at_substring.
680
1c4d457e
DM
6812016-08-08 David Malcolm <dmalcolm@redhat.com>
682
683 * c-format.c (class flag_chars_t): New class.
684 (struct length_modifier): New struct.
685 (class argument_parser): New class.
686 (flag_chars_t::flag_chars_t): New ctor.
687 (flag_chars_t::has_char_p): New method.
688 (flag_chars_t::add_char): New method.
689 (flag_chars_t::validate): New method.
690 (flag_chars_t::get_alloc_flag): New method.
691 (flag_chars_t::assignment_suppression_p): New method.
692 (argument_parser::argument_parser): New ctor.
693 (argument_parser::read_any_dollar): New method.
694 (argument_parser::read_format_flags): New method.
695 (argument_parser::read_any_format_width): New method.
696 (argument_parser::read_any_format_left_precision): New method.
697 (argument_parser::read_any_format_precision): New method.
698 (argument_parser::handle_alloc_chars): New method.
699 (argument_parser::read_any_length_modifier): New method.
700 (argument_parser::read_any_other_modifier): New method.
701 (argument_parser::find_format_char_info): New method.
702 (argument_parser::validate_flag_pairs): New method.
703 (argument_parser::give_y2k_warnings): New method.
704 (argument_parser::parse_any_scan_set): New method.
705 (argument_parser::handle_conversions): New method.
706 (argument_parser::check_argument_type): New method.
707 (check_format_info_main): Introduce classes argument_parser
708 and flag_chars_t, moving the code within the loop into methods
709 of these classes. Make various locals "const".
710
88fa5555
DM
7112016-08-05 David Malcolm <dmalcolm@redhat.com>
712
713 * c-common.c: Include "substring-locations.h".
714 (get_cpp_ttype_from_string_type): New function.
715 (g_string_concat_db): New global.
716 (substring_loc::get_range): New method.
717 * c-common.h (g_string_concat_db): New declaration.
718 (class substring_loc): New class.
719 * c-lex.c (lex_string): When concatenating strings, capture the
720 locations of all tokens using a new obstack, and record the
721 concatenation locations within g_string_concat_db.
722 * c-opts.c (c_common_init_options): Construct g_string_concat_db
723 on the ggc-heap.
724
78169471
MP
7252016-07-29 Marek Polacek <polacek@redhat.com>
726
638fc14f
MP
727 PR c/71926
728 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
729 parentheses warning.
730
78169471
MP
731 PR c/71574
732 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
733
1225d6b1
ML
7342016-07-28 Martin Liska <mliska@suse.cz>
735
736 PR gcov-profile/68025
737 * c-common.c (handle_no_profile_instrument_function_attribute):
738
ec1e2a40
BE
7392016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
740
741 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
742 BITS_PER_UNIT_LOG.
743
5ec2cd9f
JM
7442016-07-25 Jason Merrill <jason@redhat.com>
745
746 PR c++/65970
747 * c.opt (fconstexpr-loop-limit): New.
748
9dc5773f 7492016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
750
751 PR c++/71675
752 * c-common.c (resolve_overloaded_builtin): Avoid converting
753 __atomic_compare_exchange_n return type to that of what its
754 first argument points to.
755
e3fe09c1
UB
7562016-07-22 Uros Bizjak <ubizjak@gmail.com>
757
758 * c-common.c: Use HOST_WIDE_INT_M1U instead of
759 ~(unsigned HOST_WIDE_INT) 0.
760
bc91c436
ML
7612016-07-22 Martin Liska <mliska@suse.cz>
762
763 PR gcov-profile/69028
764 PR gcov-profile/62047
765 * cilk.c (create_cilk_helper_decl): Set location of a new decl
766 to the current_function_decl.
767
451dcc66
JM
7682016-07-21 Jason Merrill <jason@redhat.com>
769
770 PR c++/65168
771 * c-common.c (c_common_truthvalue_conversion): Check
772 c_inhibit_evaluation_warnings for warning about address of
773 reference.
774
de6a69ee
DM
7752016-07-20 David Malcolm <dmalcolm@redhat.com>
776
777 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
778 const char *.
779
d022c55a
JM
7802016-07-15 Jason Merrill <jason@redhat.com>
781
782 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
783
ddbbcb19
JJ
7842016-07-15 Jakub Jelinek <jakub@redhat.com>
785
786 PR c/71858
787 * c-common.h (enum lookup_name_fuzzy_kind): Add
788 FUZZY_LOOKUP_FUNCTION_NAME.
789
d0cf395a
JM
7902016-07-08 Jason Merrill <jason@redhat.com>
791
792 P0145: Refining Expression Order for C++.
793 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
794 * c-opts.c: Adjust.
795
98d44e93
MT
7962016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
797
798 PR c++/71214
799 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
800
f9d8d994
TS
8012016-06-29 Thomas Schwinge <thomas@codesourcery.com>
802
803 * c-pragma.h (enum pragma_kind): Rename
804 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
805 users.
806
4aa83879
RB
8072016-06-29 Richard Biener <rguenther@suse.de>
808
809 PR middle-end/71002
810 * c-common.c (c_common_get_alias_set): Remove union type punning case.
811
a25bd9e6
JM
8122016-06-24 Jason Merrill <jason@redhat.com>
813
814 P0145R2: Refining Expression Order for C++.
815 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
816 MODIFY_EXPR.
817
a86451b9
JJ
8182016-06-24 Jakub Jelinek <jakub@redhat.com>
819
820 * c-common.c (check_builtin_function_arguments): Require last
821 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
822 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
823 if the last argument is pointer to enumerated or boolean type.
824
1a4f11c8
DM
8252016-06-22 David Malcolm <dmalcolm@redhat.com>
826
827 PR c/70339
828 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
829 (lookup_name_fuzzy): New prototype.
830
fe55692c
JDA
8312016-06-21 John David Anglin <danglin@gcc.gnu.org>
832
833 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
834
4eb24e01
JM
8352016-06-14 Jason Merrill <jason@redhat.com>
836
837 P0145R2: Refining Expression Order for C++.
838 * c.opt (fargs-in-order): New.
839 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
840
ef7cf206
JJ
8412016-06-13 Jakub Jelinek <jakub@redhat.com>
842
0dda258b
JJ
843 PR sanitizer/71498
844 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
845 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
846
ef7cf206
JJ
847 PR preprocessor/71183
848 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
849 to cb_get_source_date_epoch.
850
50b15873
JJ
8512016-06-10 Jakub Jelinek <jakub@redhat.com>
852
853 PR c/68657
854 * c.opt (Wpsabi): Add Warning flag.
855
4d926e34
MS
8562016-06-10 Martin Sebor <msebor@redhat.com>
857
858 PR c/71392
859 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
860 the nonnull attribute in type-generic builtins.
861
e01b4e16
MS
8622016-06-09 Martin Sebor <msebor@redhat.com>
863
864 PR c/70883
865 * c-common.c (builtin_function_validate_nargs): Make text of error
866 message consistent with others like it.
867
44a845ca
MS
8682016-06-08 Martin Sebor <msebor@redhat.com>
869 Jakub Jelinek <jakub@redhat.com>
870
871 PR c++/70507
872 PR c/68120
873 * c-common.c (check_builtin_function_arguments): Handle
874 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
875
a80a7051
RB
8762016-06-08 Richard Biener <rguenther@suse.de>
877
878 * c-common.c (parse_optimize_options): Improve diagnostic messages.
879
bfd67b47
RB
8802016-06-07 Richard Biener <rguenther@suse.de>
881
882 PR c/61564
883 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
884 options and warn about others.
885
15c98b2e
ES
8862016-06-01 Eduard Sanou <dhole@openmailbox.org>
887
888 * c-common.c (get_source_date_epoch): Rename to
889 cb_get_source_date_epoch.
890 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
891 message when the parsing fails. Use error_at instead of fatal_error.
892 * c-common.h (get_source_date_epoch): Rename to
893 cb_get_source_date_epoch.
894 * c-common.h (cb_get_source_date_epoch): Prototype.
895 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
896 * c-common.h (c_omp_region_type): Remove trailing comma.
897 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
898 * c-lex.c (c_lex_with_flags): Remove initialization of
899 pfile->source_date_epoch.
900
00631022
JJ
9012016-05-30 Jakub Jelinek <jakub@redhat.com>
902
903 PR c++/71349
904 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
905 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
906 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
907 instead of C_OMP_CLAUSE_SPLIT_FOR.
908
f17a223d
RB
9092016-05-24 Richard Biener <rguenther@suse.de>
910
911 PR middle-end/70434
912 PR c/69504
913 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
914 (convert_vector_to_array_for_subscript): ... this.
915 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
916 VIEW_CONVERT_EXPR to an array type. Rename to ...
917 (convert_vector_to_array_for_subscript): ... this.
918
4f2e1536
MP
9192016-05-12 Marek Polacek <polacek@redhat.com>
920
921 PR c/70756
922 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
923 size_in_bytes and pass LOC to it.
924
d6e83a8d
MM
9252016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
926
927 PR c/43651
928 * c.opt (Wduplicate-decl-specifier): New option.
929
5c3a10fb
MP
9302016-05-11 Marek Polacek <polacek@redhat.com>
931
932 PR c++/71024
933 * c-common.c (diagnose_mismatched_attributes): New function.
934 * c-common.h (diagnose_mismatched_attributes): Declare.
935
deef7113
MP
9362016-05-04 Marek Polacek <polacek@redhat.com>
937
938 * c.opt (Wdangling-else): New option.
939
79ce98bc
MP
9402016-05-03 Marek Polacek <polacek@redhat.com>
941
942 PR c/70859
943 * c-common.c (builtin_function_validate_nargs): Add location
944 parameter. Use it.
945 (check_builtin_function_arguments): Add location and arguments
946 parameters. Use them.
947 * c-common.h (check_builtin_function_arguments): Update declaration.
948
381cdae4
RB
9492016-05-03 Richard Biener <rguenther@suse.de>
950
951 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
952 allow call args to gimplify to SSA names.
953
1d793c34
MP
9542016-05-03 Marek Polacek <polacek@redhat.com>
955
956 * c-common.h (enum c_omp_region_type): Remove stray comma.
957
77886428
CP
9582016-05-02 Cesar Philippidis <cesar@codesourcery.com>
959
960 * c-common.h (enum c_omp_region_type): Define.
961
697e0b28
RS
9622016-05-02 Richard Sandiford <richard.sandiford@arm.com>
963
964 * c-common.c (shorten_compare): Use wi::to_wide.
965
e7ff0319
CP
9662016-04-29 Cesar Philippidis <cesar@codesourcery.com>
967
968 PR middle-end/70626
969 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
970 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
971 reduction clauses in acc parallel loops.
972
2fff3db8
MP
9732016-04-29 Marek Polacek <polacek@redhat.com>
974
975 PR c/70852
976 * c-common.c (warn_for_memset): Check domain before accessing it.
977
509063eb
DV
9782016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
979
980 PR/69089
981 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
982 "aligned" attribute.
983
b632761d
JM
9842016-04-28 Jason Merrill <jason@redhat.com>
985
986 * c-lex.c (c_common_has_attribute): Handle nodiscard.
987
174f6622
ES
9882016-04-28 Eduard Sanou <dhole@openmailbox.org>
989 Matthias Klose <doko@debian.org>
990
991 * c-common.c (get_source_date_epoch): New function, gets the environment
992 variable SOURCE_DATE_EPOCH and parses it as long long with error
993 handling.
994 * c-common.h (get_source_date_epoch): Prototype.
995 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
996
6bc2bb18
RB
9972015-04-27 Ryan Burn <contact@rnburn.com>
998
999 PR c++/69024
1000 PR c++/68997
1001 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
1002 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
1003 external linkage.
1004 (cilk_detect_and_unwrap): Corresponding changes.
1005 (extract_free_variables): Don't extract free variables from
1006 AGGR_INIT_EXPR slot.
1007 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
1008 (cilk_recognize_spawn): Likewise.
1009
c1e1f433
BS
10102016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1011
1012 * c.opt (Wmemset-elt-size): New option.
1013 * c-common.c (warn_for_memset): New function.
1014 * c-common.h (warn_for_memset): Declare.
1015
d067e05f
JM
10162016-04-25 Jason Merrill <jason@redhat.com>
1017
1018 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
1019 No longer static.
1020 * c-common.h: Declare it.
1021 * c-lex.c (c_common_has_attribute): Add maybe_unused.
1022
9aa36ae5
JM
10232016-04-22 Jason Merrill <jason@redhat.com>
1024
1025 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
1026
477d4906
IV
10272016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1028
1029 PR c++/69363
1030 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
1031 * c-common.h (c_finish_cilk_clauses): Remove declaration.
1032
fe37c7af
MM
10332016-04-18 Michael Matz <matz@suse.de>
1034
1035 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
1036 and SET_DECL_ALIGN.
1037
23f2660f
EB
10382016-04-17 Eric Botcazou <ebotcazou@adacore.com>
1039
1040 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
1041 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
1042 to incomplete types.
1043 (dump_nested_type): Remove redundant tests and tidy up.
1044 (print_ada_declaration): Also set TREE_VISITED on the declaration of
1045 a type which is the typedef of an original type.
1046
1e77281b
MP
10472016-04-15 Marek Polacek <polacek@redhat.com>
1048
1049 PR c/70651
1050 * c-common.c (build_va_arg): Change two asserts into errors and return
1051 error_mark_node.
1052
b3a77f21
MP
10532016-04-13 Marek Polacek <polacek@redhat.com>
1054
1055 PR c++/70639
1056 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1057 for switch statements, too.
1058
322b8466
JM
10592016-03-28 Jason Merrill <jason@redhat.com>
1060
1061 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1062
fbdb6baf
MP
10632016-03-23 Marek Polacek <polacek@redhat.com>
1064
1065 PR c++/69884
1066 * c.opt (Wignored-attributes): New option.
1067
5c240f4d
DM
10682016-03-22 David Malcolm <dmalcolm@redhat.com>
1069
1070 PR c/69993
1071 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1072 diagnostic text, reversing the order of the warning and note so
1073 that they appear in source order.
1074
14ba7b28
MP
10752016-03-17 Marek Polacek <polacek@redhat.com>
1076
1077 PR c/69407
1078 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1079 operations.
1080
08a1cadc
JM
10812016-03-14 Jason Merrill <jason@redhat.com>
1082
2aaeea19
JM
1083 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1084
08a1cadc
JM
1085 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1086
c06d25bb
RB
10872016-03-09 Richard Biener <rguenther@suse.de>
1088
1089 PR c/70143
1090 * c-common.c (strict_aliasing_warning): Add back
1091 alias_sets_conflict_p check.
1092
80aac5c8
JM
10932016-03-08 Jason Merrill <jason@redhat.com>
1094
1095 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1096
64b23c13
DM
10972016-03-04 David Malcolm <dmalcolm@redhat.com>
1098
1099 PR c/68187
1100 * c-indentation.c (get_visual_column): Move code to determine next
1101 tab stop to...
1102 (next_tab_stop): ...this new function.
1103 (line_contains_hash_if): Delete function.
1104 (detect_preprocessor_logic): Delete function.
1105 (get_first_nws_vis_column): New function.
1106 (detect_intervening_unindent): New function.
1107 (should_warn_for_misleading_indentation): Replace call to
1108 detect_preprocessor_logic with a call to
1109 detect_intervening_unindent.
1110
729526f5
DM
11112016-03-04 David Malcolm <dmalcolm@redhat.com>
1112
1113 PR c/68187
1114 * c-indentation.c (should_warn_for_misleading_indentation): When
1115 suppressing warnings about cases where the guard and body are on
1116 the same column, only use the first non-whitespace column in place
1117 of the guard token column when dealing with "else" clauses.
1118 When rejecting aligned BODY and NEXT, loosen the requirement
1119 from equality with the first non-whitespace of guard to simply
1120 that they not be indented relative to it.
1121
e9a35493
RB
11222016-03-04 Richard Biener <rguenther@suse.de>
1123
1124 PR c++/70054
1125 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1126 instead of alias_sets_conflict_p.
1127
1be56bc5
MP
11282016-03-01 Marek Polacek <polacek@redhat.com>
1129
1130 PR c++/69795
1131 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1132 any DECL.
1133
35886f0b
MS
11342016-02-22 Martin Sebor <msebor@redhat.com>
1135
1136 PR middle-end/69780
1137 * c-common.c (check_builtin_function_arguments): Validate and
1138 reject invalid arguments to __builtin_alloca_with_align.
1139
4246c8da
MW
11402016-02-20 Mark Wielaard <mjw@redhat.com>
1141
1142 PR c/28901
1143 * c.opt (Wunused-const-variable): Turn into Alias for...
1144 (Wunused-const-variable=): New option.
1145
268be88c
BE
11462016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1147
1148 PR c++/69865
1149 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1150 here...
1151 (c_common_init_options): ...to here.
1152 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1153
871b3f47
JJ
11542016-02-19 Jakub Jelinek <jakub@redhat.com>
1155
1156 PR c++/69826
1157 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1158 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1159 flag_preprocess_only.
1160
bf14eba2
JJ
11612016-02-16 Jakub Jelinek <jakub@redhat.com>
1162
1163 PR c/69835
1164 * c.opt (Wnonnull-compare): Enable for -Wall.
1165
ba6b3795
JJ
11662016-02-15 Jakub Jelinek <jakub@redhat.com>
1167
1168 PR c++/69797
1169 * c-common.c (sync_resolve_size): Diagnose too few arguments
1170 even when params is non-NULL empty vector.
1171
a011cd92
BS
11722016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1173
1174 PR target/60410
1175 * c.opt (fshort-double): Remove.
1176
46cb9332
MS
11772016-02-05 Martin Sebor <msebor@redhat.com>
1178
1179 PR c++/69662
1180 * c.opt (Warning options): Update -Wplacement-new to take
1181 an optional argument.
1182
e1b81f2b
JJ
11832016-02-01 Jakub Jelinek <jakub@redhat.com>
1184
1185 PR preprocessor/69543
1186 PR c/69558
1187 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1188 instead of loc to control_warning_option.
1189
b6adbb9f
NS
11902016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1191
1192 * c.opt (fopenacc-dim=): New option.
1193
5d70666e
RB
11942016-01-27 Ryan Burn <contact@rnburn.com>
1195
1196 PR cilkplus/69267
1197 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1198 gimplify_arg. Removed superfluous post_p argument.
1199 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1200 superfluous post_p argument.
1201 * c-gimplify.c (c_gimplify_expr): Likewise.
1202
01e1dea3
DM
12032016-01-26 David Malcolm <dmalcolm@redhat.com>
1204
1205 PR other/69006
1206 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1207 pp_newline_and_flush with pp_flush.
1208
9f04a53e
MS
12092016-01-20 Martin Sebor <msebor@redhat.com>
1210
1211 PR c/69405
1212 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1213 an incompatible argument when the argument isn't a valid tree node.
1214
7f26f7df
JM
12152016-01-18 Jason Merrill <jason@redhat.com>
1216
1217 PR c++/68767
1218 * c-common.c (check_function_arguments_recurse): Fold the whole
1219 COND_EXPR, not just the condition.
1220
f62bf092
TV
12212016-01-18 Tom de Vries <tom@codesourcery.com>
1222
1223 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1224 classify as loop clause.
1225
e0a575ff
JJ
12262016-01-15 Jakub Jelinek <jakub@redhat.com>
1227
1228 PR bootstrap/68271
1229 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1230 C++ FE no longer has limit on number of pragmas.
1231
12322015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1233
1234 PR c++/69048
1235 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1236 to add missing cleanup point.
b6e3db06 1237
c7df95d8
DM
12382016-01-14 David Malcolm <dmalcolm@redhat.com>
1239
1240 PR c++/68819
1241 * c-indentation.c (get_visual_column): Add location_t param.
1242 Handle the column number being zero by effectively disabling the
1243 warning, with an "inform".
1244 (should_warn_for_misleading_indentation): Add location_t argument
1245 for all uses of get_visual_column.
1246
21efdd80
PP
12472016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1248
1249 PR c++/69029
1250 * c-indentation.c (should_warn_for_misleading_indentation):
1251 Don't warn about do-while statements.
1252
7a127fa7
MS
12532016-01-07 Martin Sebor <msebor@redhat.com>
1254
1255 PR c/68966
1256 * c-common.c (sync_resolve_size): Reject first argument when it's
1257 a pointer to _Bool.
1258
c589e975
DM
12592016-01-05 David Malcolm <dmalcolm@redhat.com>
1260
1261 PR c/69122
1262 * c-indentation.c (get_visual_column): Remove default argument.
1263 (should_warn_for_misleading_indentation): For the multiline case,
1264 update call to get_visual_column for next_stmt_exploc so that it
1265 captures the location of the first non-whitespace character in the
1266 relevant line. Don't issue warnings if there is non-whitespace
1267 before the next statement.
1268
818ab71a
JJ
12692016-01-04 Jakub Jelinek <jakub@redhat.com>
1270
1271 Update copyright years.
1272
745e411d
DM
12732015-12-21 David Malcolm <dmalcolm@redhat.com>
1274
1275 * c-common.c (binary_op_error): Convert first param from
1276 location_t to rich_location * and use it when emitting an error.
1277 * c-common.h (binary_op_error): Convert first param from
1278 location_t to rich_location *.
1279
de67c4c3
DM
12802015-12-16 David Malcolm <dmalcolm@redhat.com>
1281
1282 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1283 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1284
4a38b02b
IV
12852015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1286
1287 * c-common.c (c_common_attribute_table): Handle "omp declare target
1288 link" attribute.
1289
54d62f51
JJ
12902015-12-14 Jakub Jelinek <jakub@redhat.com>
1291
1292 PR c/68833
1293 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1294
8d4227c8
TB
12952014-12-12 Tobias Burnus <burnus@net-b.de>
1296
1297 PR fortran/68815
1298 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1299 specifiers (%d, %i,%u and %c).
1300
f6069ccc
DM
13012015-12-10 David Malcolm <dmalcolm@redhat.com>
1302
1303 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1304
63bbf46d
JJ
13052015-12-08 Jakub Jelinek <jakub@redhat.com>
1306
1307 PR c/48088
1308 PR c/68657
1309 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1310 * c-pragma.c (handle_pragma_diagnostic): Adjust
1311 control_warning_option caller.
1312
f79520bb
DM
13132015-12-07 David Malcolm <dmalcolm@redhat.com>
1314
1315 * c-common.c (c_cpp_error): Update for change to
1316 rich_location::set_range.
1317
b3d5bc62
JJ
13182015-12-04 Paolo Bonzini <bonzini@gnu.org>
1319
1320 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1321 shifting 1 out of the sign bit.
1322
13232015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1324
1325 * c-common.c (c_common_attribute_table[]): Update max arguments
1326 count for "simd" attribute.
1327 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1328
6eb4a537
JJ
13292015-12-03 Jakub Jelinek <jakub@redhat.com>
1330
1331 PR preprocessor/57580
1332 * c-ppoutput.c (print): Change printed field to bool.
1333 Move src_file last for smaller padding.
1334 (init_pp_output): Set print.printed to false instead of 0.
1335 (scan_translation_unit): Fix up formatting. Set print.printed
1336 to true after printing something other than newline.
1337 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1338 (maybe_print_line_1): Set print.printed to false instead of 0.
1339 (print_line_1): Likewise.
1340 (do_line_change): Set print.printed to true instead of 1.
1341 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1342 dump_macro): Set print.printed to false after printing newline.
1343
4250754e
JM
13442015-12-02 Jason Merrill <jason@redhat.com>
1345
f479b43d
JM
1346 * c-common.c (fold_for_warn): New.
1347 (warn_logical_operator, warn_tautological_cmp)
1348 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1349
4250754e
JM
1350 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1351 (c_fully_fold_internal, decl_constant_value_for_optimization):
1352 Move to c/c-fold.c.
1353 * c-common.h: Don't declare decl_constant_value_for_optimization.
1354
e9e32ee6
JM
13552015-12-02 Joseph Myers <joseph@codesourcery.com>
1356
1357 PR c/68162
1358 * c-common.h (c_build_qualified_type): Add extra default
1359 arguments.
1360
37d5ad46
JB
13612015-12-01 Julian Brown <julian@codesourcery.com>
1362 Cesar Philippidis <cesar@codesourcery.com>
1363 James Norris <James_Norris@mentor.com>
1364
1365 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1366 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1367 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1368
f07862c7
EB
13692015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1370
1371 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1372 (decl_sloc_common): Delete and move bulk of processing to...
1373 (decl_sloc): ...here.
1374 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1375 (dump_ada_double_name): Remove S parameter and compute the suffix.
1376 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1377 element type and deal with an anonymous one.
1378 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1379 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1380 and remove reference to QUAL_UNION_TYPE.
1381 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1382 (dump_nested_type): ...here. New function extracted from above.
1383 Generate a full declaration for anonymous element type of arrays.
1384 (print_ada_declaration): Really skip anonymous declarations. Remove
1385 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1386 Clean up processing of declarations of array types and objects.
1387 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1388 Remove obsolete code and tidy up.
1389
75c8aac3
JH
13902015-11-29 Jan Hubicka <hubicka@ucw.cz>
1391
1392 PR c/67581
1393 * c-common.c (handle_transparent_union_attribute): Update
1394 also type variants.
1395
b58d3df2
ML
13962015-11-27 Martin Liska <mliska@suse.cz>
1397
1398 PR c++/68312
1399 * array-notation-common.c (cilkplus_extract_an_triplets):
1400 Release vector of vectors.
1401 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1402
89a01fcf
EB
14032015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1404
1405 PR c++/68527
1406 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1407 (print_ada_struct_decl): Likewise.
1408
cc5c5226
IZ
14092015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1410
1411 PR c++/68001
1412 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1413 * cilk.c (recognize_spawn): Determine location in a more precise
1414 way.
1415
269adb9d
JM
14162015-11-19 Jason Merrill <jason@redhat.com>
1417
1418 * c-common.c (shorten_compare): But look through macros from
1419 system headers.
1420
d0eccfcd
JM
14212015-11-18 Jason Merrill <jason@redhat.com>
1422
1423 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1424 non-constant operand comes from a macro.
1425
3e44547c
JM
14262015-11-17 Jason Merrill <jason@redhat.com>
1427
1428 PR bootstrap/68346
1429 * c-common.c (warn_tautological_cmp): Fold before checking for
1430 constants.
1431
0f62c7a0
MP
14322015-11-16 Marek Polacek <polacek@redhat.com>
1433
1434 PR c++/68362
1435 * c-common.c (check_case_bounds): Fold low and high cases.
1436
a868811e
MP
14372015-11-16 Marek Polacek <polacek@redhat.com>
1438
1439 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1440 * c-common.c (c_common_get_alias_set): Likewise.
1441 (handle_visibility_attribute): Likewise.
1442
fff77217
KY
14432015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1444
1445 * c-common.c (handle_simd_attribute): New.
1446 (struct attribute_spec): Add entry for "simd".
1447 (handle_simd_attribute): New.
1448
269e63b7
KT
14492015-11-13 Kai Tietz <ktietz70@googlemail.com>
1450
1451 * c-lex.c (interpret_float): Use fold_convert.
1452
ebedc9a3
DM
14532015-11-13 David Malcolm <dmalcolm@redhat.com>
1454
1455 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1456 and store it on the result.
1457 * c-opts.c (c_common_init_options): Set
1458 global_dc->colorize_source_p.
1459
6e232ba4
JN
14602015-11-12 James Norris <jnorris@codesourcery.com>
1461 Joseph Myers <joseph@codesourcery.com>
1462
1463 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1464 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1465 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1466 PRAGMA_OACC_CLAUSE_LINK.
1467
e78bede6
MP
14682015-11-11 Marek Polacek <polacek@redhat.com>
1469
1470 PR c/68107
1471 PR c++/68266
1472 * c-common.c (valid_array_size_p): New function.
1473 * c-common.h (valid_array_size_p): Declare.
1474
3f8257db 14752015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1476
1477 PR bootstrap/68271
1478 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1479
69f293c9
AM
14802015-11-11 Andrew MacLeod <amacleod@redhat.com>
1481
1482 * array-notation-common.c: Remove unused header files.
1483 * c-ada-spec.c: Likewise.
1484 * c-cilkplus.c: Likewise.
1485 * c-common.c: Likewise.
1486 * c-cppbuiltin.c: Likewise.
1487 * c-dump.c: Likewise.
1488 * c-format.c: Likewise.
1489 * c-gimplify.c: Likewise.
1490 * c-indentation.c: Likewise.
1491 * c-lex.c: Likewise.
1492 * c-omp.c: Likewise.
1493 * c-opts.c: Likewise.
1494 * c-pch.c: Likewise.
1495 * c-ppoutput.c: Likewise.
1496 * c-pragma.c: Likewise.
1497 * c-pretty-print.c: Likewise.
1498 * c-semantics.c: Likewise.
1499 * c-ubsan.c: Likewise.
1500 * cilk.c: Likewise.
1501 * stub-objc.c: Likewise.
1502
3a40d81d
NS
15032015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1504 Cesar Philippidis <cesar@codesourcery.com>
1505 James Norris <jnorris@codesourcery.com>
1506 Julian Brown <julian@codesourcery.com>
1507 Nathan Sidwell <nathan@codesourcery.com>
1508
1509 * c-pragma.c (oacc_pragmas): Add "routine".
1510 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1511
ee45a32d
EB
15122015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1513
1514 * c-common.c (c_common_attributes): Add scalar_storage_order.
1515 (handle_scalar_storage_order_attribute): New function.
1516 * c-pragma.c (global_sso): New variable.
1517 (maybe_apply_pragma_scalar_storage_order): New function.
1518 (handle_pragma_scalar_storage_order): Likewise.
1519 (init_pragma): Register scalar_storage_order.
1520 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1521 * c.opt (Wscalar-storage-order): New warning.
1522 (fsso-struct=): New option.
1523
eb11eb15
MS
15242015-11-08 Martin Sebor <msebor@redhat.com>
1525
1526 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1527
0aad0198
RS
15282015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1529
1530 * c-common.c: Don't undef DEF_BUILTIN.
1531
8a645150
DM
15322015-11-06 David Malcolm <dmalcolm@redhat.com>
1533
1534 * c-common.c (c_cpp_error): Convert parameter from location_t to
1535 rich_location *. Eliminate the "column_override" parameter and
1536 the call to diagnostic_override_column.
1537 Update the "done_lexing" clause to set range 0
1538 on the rich_location, rather than overwriting a location_t.
1539 * c-common.h (c_cpp_error): Convert parameter from location_t to
1540 rich_location *. Eliminate the "column_override" parameter.
1541
7a5e4956
CP
15422015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1543 Thomas Schwinge <thomas@codesourcery.com>
1544 James Norris <jnorris@codesourcery.com>
1545
1546 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1547 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1548 clauses with parallel and kernels and loops.
1549 * c-pragma.h (enum pragma_omp_clause): Add entries for
1550 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1551 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1552 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1553 INDEPENDENT,SEQ}.
1554 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1555
e2f5cc96
MS
15562015-11-05 Martin Sebor <msebor@redhat.com>
1557
1558 PR c++/67942
1559 * c.opt (-Wplacement-new): New option.
1560
e01d41e5
JJ
15612015-11-05 Jakub Jelinek <jakub@redhat.com>
1562
1563 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1564 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1565 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1566 save_expr or create_tmp_var* if TEST is true.
1567 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1568 Don't call add_stmt here.
1569 (struct c_omp_check_loop_iv_data): New type.
1570 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1571 c_omp_check_loop_iv_exprs): New functions.
1572 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1573 distribute.
1574 (c_omp_declare_simd_clauses_to_numbers): Change
1575 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1576 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1577 from numbers to PARM_DECLs.
1578
595278be
MM
15792015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1580
1581 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1582 flag_checking.
1583
3f8257db 15842015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1585
1586 PR c++-common/67882
b3d5bc62
JJ
1587 * c-common.h (fold_offsetof_1): Add argument.
1588 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1589 offsetof expressions that reference elements past the end of
1590 an array.
1591
4bf9e5a8
TS
15922015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1593 Chung-Lin Tang <cltang@codesourcery.com>
1594
1595 * c-pragma.c (oacc_pragmas): Add "atomic".
1596 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1597
3b1661a9
ES
15982015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1599
1600 * c-common.c (handle_target_clones_attribute): New.
1601 (c_common_attribute_table): Add handle_target_clones_attribute.
1602 (handle_always_inline_attribute): Add check on target_clones attribute.
1603 (handle_target_attribute): Ditto.
1604
2adfab87
AM
16052015-10-29 Andrew MacLeod <amacleod@redhat.com>
1606
1607 * array-notation-common.c: Reorder #include's and remove duplicates.
1608 * c-ada-spec.c: Likewise.
1609 * c-cilkplus.c: Likewise.
1610 * c-common.c: Likewise.
1611 * c-cppbuiltin.c: Likewise.
1612 * c-dump.c: Likewise.
1613 * c-format.c: Likewise.
1614 * c-gimplify.c: Likewise.
1615 * c-indentation.c: Likewise.
1616 * c-lex.c: Likewise.
1617 * c-omp.c: Likewise.
1618 * c-opts.c: Likewise.
1619 * c-pch.c: Likewise.
1620 * c-ppoutput.c: Likewise.
1621 * c-pragma.c: Likewise.
1622 * c-pretty-print.c: Likewise.
1623 * c-semantics.c: Likewise.
1624 * c-ubsan.c: Likewise.
1625 * cilk.c: Likewise.
1626 * stub-objc.c: Likewise.
1627
d90ec4f2
JM
16282015-10-28 Jason Merrill <jason@redhat.com>
1629
1630 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1631
88bae6f4
TS
16322015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1633 James Norris <jnorris@codesourcery.com>
1634 Cesar Philippidis <cesar@codesourcery.com>
1635
1636 PR c/64765
1637 PR c/64880
1638 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1639 * c-omp.c (c_oacc_split_loop_clauses): New function.
1640
b1726d6c
MS
16412015-10-21 Martin Sebor <msebor@redhat.com>
1642
1643 PR driver/68043
1644 * c.opt: End each sentence that describes an option with a period.
1645
fa60eeb9
MP
16462015-10-20 Marek Polacek <polacek@redhat.com>
1647
1648 * array-notation-common.c (is_cilkplus_vector_p): Define.
1649 * c-common.h (is_cilkplus_vector_p): Declare.
1650
95979049
MP
16512015-10-20 Marek Polacek <polacek@redhat.com>
1652
1653 * c.opt (std=gnu++11): Do not describe as experimental.
1654 (std=gnu++14): Likewise.
1655
2a9fb712
JM
16562015-10-19 Jason Merrill <jason@redhat.com>
1657
1658 * c-cppbuiltin.c (c_cpp_builtins): Define
1659 __cpp_nontype_template_args.
1660
13b380a3
JM
16612015-10-19 Jason Merrill <jason@redhat.com>
1662
1663 * c-cppbuiltin.c (c_cpp_builtins): Define
1664 __cpp_enumerator_attributes, __cpp_fold_expressions,
1665 __cpp_unicode_characters.
1666
d9a6bd32
JJ
16672015-10-13 Jakub Jelinek <jakub@redhat.com>
1668 Aldy Hernandez <aldyh@redhat.com>
1669
1670 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1671 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1672 (c_define_builtins): Likewise.
1673 * c-common.h (enum c_omp_clause_split): Add
1674 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1675 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1676 (c_finish_omp_for): Add ORIG_DECLV argument.
1677 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1678 201511 instead of 201307.
1679 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1680 OMP_CRITICAL_CLAUSES to it.
1681 (c_finish_omp_ordered): Add CLAUSES argument, set
1682 OMP_ORDERED_CLAUSES to it.
1683 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1684 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1685 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1686 constructs and new OpenMP 4.5 clauses. Clear
1687 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1688 verification code.
1689 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1690 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1691 (enum pragma_omp_clause): Add
1692 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1693 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1694
624d31fe
RS
16952015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1696
1697 * c-lex.c (interpret_float): Use real_equal instead of
1698 REAL_VALUES_EQUAL.
1699
b8fd7909
JM
17002015-10-04 Jason Merrill <jason@redhat.com>
1701
1702 Implement N4514, C++ Extensions for Transactional Memory.
1703 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1704 (c_common_attribute_table): Add transaction_safe_dynamic.
1705 transaction_safe now affects type identity.
1706 (handle_tm_attribute): Handle transaction_safe_dynamic.
1707 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1708 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1709 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1710 (D_TRANSMEM): New.
1711 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1712 * c-pretty-print.c (pp_c_attributes_display): Don't print
1713 transaction_safe in C++.
1714
12651878
MP
17152015-10-02 Marek Polacek <polacek@redhat.com>
1716
1717 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1718
3e3b8d63
MP
17192015-10-02 Marek Polacek <polacek@redhat.com>
1720
1721 PR c/64249
1722 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1723 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1724 * c.opt (Wduplicated-cond): New option.
1725
0d1a8f75
JM
17262015-10-01 Joseph Myers <joseph@codesourcery.com>
1727
1728 * c.opt (std=c11): Do not describe as experimental.
1729 (std=gnu11): Likewise.
1730 (std=iso9899:2011): Likewise.
1731
3e32ee19
NS
17322015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1733
1734 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1735 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1736
974348ee
MP
17372015-09-25 Marek Polacek <polacek@redhat.com>
1738
1739 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1740 (ubsan_instrument_shift): Likewise.
1741
15dbc1a6
MP
17422015-09-25 Marek Polacek <polacek@redhat.com>
1743
1744 PR sanitizer/64906
1745 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1746
6b95d7cc
PP
17472015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1748
1749 * c-indentation.c (should_warn_for_misleading_indentation):
1750 Compare next_stmt_vis_column with guard_line_first_nws instead
1751 of with guard_line_vis_column.
1752
c1822f9c
MLI
17532015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1754
1755 PR c/49654
1756 PR c/49655
1757 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1758 options and options not valid for the current language.
1759
d5398058
PP
17602015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1761
1762 * c-indentation.c (should_warn_for_misleading_indentation):
1763 Float out and consolidate the calls to get_visual_column that
1764 are passed guard_exploc as an argument. Compare
1765 next_stmt_vis_column with guard_line_first_nws instead of with
1766 body_line_first_nws.
1767
6b333269
NS
17682015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1769
1770 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1771 Wnamespaces): New C++ warnings.
1772
a75f1574
JM
17732015-09-22 Jason Merrill <jason@redhat.com>
1774
1775 * c-common.h (abi_compat_version_crosses): New.
1776 (warn_abi_version): Declare.
1777 * c-common.c: Define it.
1778 * c-opts.c (c_common_post_options): Handle it.
1779 flag_abi_compat_version defaults to 8.
1780
bdaaa8b7
VV
17812015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1782
1783 Complete the implementation of N4230, Nested namespace definition.
1784 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1785 __cpp_nested_namespace_definitions.
1786
eaa797e8
MLI
17872015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1788
1789 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1790
c4914de6
MLI
17912015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1792
1793 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1794 when warning.
1795 * c-pragma.h (pragma_lex): Add optional loc argument.
1796
fcb87c50
MM
17972015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1798
1799 * c-format.c (check_format_arg): Adjust to use common block size in all
1800 object pools.
1801
31bdd08a
DM
18022015-09-15 David Malcolm <dmalcolm@redhat.com>
1803
1804 * c-format.c (location_from_offset): Update for change in
1805 signature of location_get_source_line.
1806 * c-indentation.c (get_visual_column): Likewise.
1807 (line_contains_hash_if): Likewise.
1808
aa9f4b4c
MP
18092015-09-14 Marek Polacek <polacek@redhat.com>
1810
1811 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1812 setting various warnings.
1813
aa256c4a
MP
18142015-09-14 Marek Polacek <polacek@redhat.com>
1815
1816 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1817 a negative value.
1818
0f876f22
MW
18192015-09-11 Mark Wielaard <mjw@redhat.com>
1820
1821 PR c/28901
1822 * c.opt (Wunused-variable): Option from common.opt.
1823 (Wunused-const-variable): New option.
1824
273aa49e
PC
18252015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1826
1827 PR c++/53184
1828 * c.opt ([Wsubobject-linkage]): Add.
1829
1807ffc1
MS
18302015-09-03 Martin Sebor <msebor@redhat.com>
1831
1832 PR c/66516
1833 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1834 functions.
1835 * c-common.c (reject_gcc_builtin): Define.
1836
38942840
BI
18372015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1838
1839 PR middle-end/60586
1840 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1841 prototype.
1842 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1843 cilk_gimplify_call_params_in_spawned_fn.
1844 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1845 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1846 unwrapping.
1847
c316b5e4
MP
18482015-08-25 Marek Polacek <polacek@redhat.com>
1849
1850 PR middle-end/67330
1851 * c-common.c (handle_weak_attribute): Don't check whether the
1852 visibility can be changed here.
1853
584a7c46
MLI
18542015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1855
1856 * c-lex.c (c_lex_with_flags): Use explicit locations.
1857
a79683d5
TS
18582015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1859
1860 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1861 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1862
61717a45
FXC
18632015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1864
1865 PR middle-end/36757
1866 * c-common.c (check_builtin_function_arguments): Add check
1867 for BUILT_IN_SIGNBIT argument.
1868
329524f5
PC
18692015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1870
1871 PR c++/67160
1872 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1873 in c++1z mode.
1874
4ee55665
MP
18752015-08-17 Marek Polacek <polacek@redhat.com>
1876
1877 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1878 with whitespaces before qualifier names.
1879
b893e375
MP
18802015-08-12 Marek Polacek <polacek@redhat.com>
1881
1882 PR c++/55095
1883 * c-common.c (maybe_warn_shift_overflow): Properly handle
1884 left-shifting 1 into the sign bit.
1885
c2d89095
MLI
18862015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1887
1888 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1889
971e17ff
AS
18902015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1891 Braden Obrzut <admin@maniacsvault.net>
1892 Jason Merrill <jason@redhat.com>
1893
1894 Add C++ Concepts TS support.
1895 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1896 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1897 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1898 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1899 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1900 * c.opt (fconcepts): New.
1901
b3d5bc62
JJ
19022015-08-02 Martin Sebor <msebor@redhat.com>
1903
1904 * c.opt (-Wframe-address): New warning option.
1905
8ebca419
PP
19062015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1907
1908 * c-indentation.c (should_warn_for_misleading_indentation):
1909 Improve heuristics.
1910
1a1e101f
PP
19112015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1912
1913 * c-indentation.c (get_visual_column): Add parameter first_nws,
1914 use it. Update comment documenting the function.
1915 (is_first_nonwhitespace_on_line): Remove.
1916 (should_warn_for_misleading_indentation): Replace usage of
1917 of is_first_nonwhitespace_on_line with get_visual_column.
1918
992118a1
PP
19192015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1920
1921 * c-indentation.h (struct token_indent_info): Define.
1922 (get_token_indent_info): Define.
1923 (warn_for_misleading_information): Declare.
1924 * c-common.h (warn_for_misleading_information): Remove.
1925 * c-identation.c (warn_for_misleading_indentation):
1926 Change declaration to take three token_indent_infos. Adjust
1927 accordingly.
1928 * c-identation.c (should_warn_for_misleading_indentation):
1929 Likewise. Bail out early if the body is a compound statement.
1930 (guard_tinfo_to_string): Define.
1931
e8fa3817
JM
19322015-07-30 Jason Merrill <jason@redhat.com>
1933
1934 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1935 '*' for reference decay.
1936
173864e8
MP
19372015-07-30 Marek Polacek <polacek@redhat.com>
1938
1939 * c-common.c (warn_tautological_cmp): Bail for float types.
1940
f2afe6dd
MP
19412015-07-27 Marek Polacek <polacek@redhat.com>
1942
1943 PR bootstrap/67030
1944 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1945
05b28fd6
MP
19462015-07-27 Marek Polacek <polacek@redhat.com>
1947
1948 PR c++/66555
1949 PR c/54979
1950 * c-common.c (find_array_ref_with_const_idx_r): New function.
1951 (warn_tautological_cmp): New function.
1952 * c-common.h (warn_tautological_cmp): Declare.
1953 * c.opt (Wtautological-compare): New option.
1954
5a5062b8
MP
19552015-07-23 Marek Polacek <polacek@redhat.com>
1956
1957 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1958 (ubsan_instrument_shift): Likewise.
1959
dc891fe7
MP
19602015-07-23 Marek Polacek <polacek@redhat.com>
1961
1962 PR sanitizer/66908
1963 * c-ubsan.c: Include gimplify.h.
1964 (ubsan_instrument_division): Unshare OP0 and OP1.
1965 (ubsan_instrument_shift): Likewise.
1966
451b5e48
MP
19672015-07-20 Marek Polacek <polacek@redhat.com>
1968 Richard Sandiford <richard.sandiford@arm.com>
1969
1970 PR c++/55095
1971 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1972 Use EXPR_LOC_OR_LOC.
1973 (maybe_warn_shift_overflow): New function.
1974 * c-common.h (maybe_warn_shift_overflow): Declare.
1975 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1976 * c.opt (Wshift-overflow): New option.
1977
fb0b2914
ML
19782015-07-16 Martin Liska <mliska@suse.cz>
1979
1980 * c-format.c (static void check_format_info_main): Use
1981 object_allocator instead of pool_allocator.
1982 (check_format_arg): Likewise.
1983 (check_format_info_main): Likewise.
1984
903f5c23
AM
19852015-07-15 Andrew MacLeod <amacleod@redhat.com>
1986
1987 * c-opts.c: Remove multiline #include comment.
1988
026c3cfd
AH
19892015-07-12 Aldy Hernandez <aldyh@redhat.com>
1990
1991 * c-common.c: Fix double word typos.
1992
bb49ee66
EB
19932015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1994
1995 * c-ada-spec.h (cpp_operation): Revert latest change.
1996 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1997 constructors and destructors.
1998
1916bcb5
AM
19992015-07-09 Andrew MacLeod <amacleod@redhat.com>
2000
2001 * c-common.h: Adjust includes for flags.h changes.
2002 * stub-objc.c: Likewise.
026c3cfd 2003
a9dcd529
EB
20042015-07-08 Eric Botcazou <ebotcazou@adacore.com>
2005
2006 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
2007 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
2008
b03b462f
JJ
20092015-07-08 Jakub Jelinek <jakub@redhat.com>
2010
2011 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
2012 are to be removed, return NULL rather than original clauses list.
2013
c7131fb2
AM
20142015-07-07 Andrew MacLeod <amacleod@redhat.com>
2015
2016 * array-notation-common.c: Adjust includes.
2017 * c-ada-spec.c: Likewise.
2018 * c-cilkplus.c: Likewise.
2019 * c-common.h: Likewise.
2020 * c-cppbuiltin.c: Likewise.
2021 * c-dump.c: Likewise.
2022 * c-format.c: Likewise.
2023 * c-gimplify.c: Likewise.
2024 * c-indentation.c: Likewise.
2025 * c-lex.c: Likewise.
2026 * c-omp.c: Likewise.
2027 * c-opts.c: Likewise.
2028 * c-pch.c: Likewise.
2029 * c-ppoutput.c: Likewise.
2030 * c-pragma.c: Likewise.
2031 * c-pretty-print.c: Likewise.
2032 * c-semantics.c: Likewise.
2033 * c-ubsan.c: Likewise.
2034 * cilk.c: Likewise.
2035 * stub-objc.c: Likewise.
2036
2a7fb83f
EB
20372015-07-07 Eric Botcazou <ebotcazou@adacore.com>
2038
2039 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
2040 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
2041
a03c9bf1
JM
20422015-07-01 Jason Merrill <jason@redhat.com>
2043
36a85135
JM
2044 * c-common.h (D_CXX11): Rename from D_CXX0X.
2045 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
2046 * c-common.c: Adjust.
2047
e7fa68d5
JM
2048 * c-opts.c (c_common_post_options): Default to C++14.
2049
a03c9bf1
JM
2050 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
2051
fe95b036
ESR
20522015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2053
2054 Implement N4197 - Adding u8 character literals
b3d5bc62 2055 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 2056 CPP_CHAR.
b3d5bc62 2057 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2058 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2059 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2060 and CPP_UTF8CHAR tokens.
2061 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2062
da2e71c9
MLI
20632015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2064
2065 PR fortran/66605
2066 * c-common.c (do_warn_unused_parameter): Move here.
2067 * c-common.h (do_warn_unused_parameter): Declare.
2068
b155cfd9
MP
20692015-06-29 Marek Polacek <polacek@redhat.com>
2070
2071 PR c/66322
2072 * c-common.c (check_case_bounds): Add bool * parameter. Set
2073 OUTSIDE_RANGE_P.
2074 (c_add_case_label): Add bool * parameter. Pass it down to
2075 check_case_bounds.
2076 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2077 warning here.
2078 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2079 declarations.
2080
31521951
MP
20812015-06-27 Marek Polacek <polacek@redhat.com>
2082
2083 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2084 or VECTOR_INTEGER_TYPE_P throughout.
2085 * c-gimplify.c: Likewise.
2086
22d03525
MP
20872015-06-26 Marek Polacek <polacek@redhat.com>
2088
2089 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2090 * c-common.c (c_fully_fold_internal): Likewise.
2091 (c_alignof_expr): Likewise.
2092 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2093 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2094 * cilk.c (create_parm_list): Likewise.
22d03525 2095
af05e6e5
MP
20962015-06-26 Marek Polacek <polacek@redhat.com>
2097
2098 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2099
f0889939
AM
21002015-06-25 Andrew MacLeod <amacleod@redhat.com>
2101
2102 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2103 * c-gimplify.c: Likewise.
2104 * c-pragma.c: Likewise.
2105 * c-ubsan.c: Likewise.
2106 * cilk.c: Likewise.
2107
ca752f39
RS
21082015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2109
2110 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2111 ggc_hasher.
2112
16a16ec7
AM
21132015-06-25 Andrew MacLeod <amacleod@redhat.com>
2114
2115 * cilk.c: Move calls.h after tm.h in the include chain.
2116
0ae9bd27
MP
21172015-06-25 Marek Polacek <polacek@redhat.com>
2118
2119 * array-notation-common.c: Use VAR_P throughout.
2120 * c-ada-spec.c: Likewise.
2121 * c-common.c: Likewise.
2122 * c-format.c: Likewise.
2123 * c-gimplify.c: Likewise.
2124 * c-omp.c: Likewise.
2125 * c-pragma.c: Likewise.
2126 * c-pretty-print.c: Likewise.
2127 * cilk.c: Likewise.
2128
62f9079a
MP
21292015-06-25 Marek Polacek <polacek@redhat.com>
2130
2131 * cilk.c (extract_free_variables): Use is_global_var.
2132
0fa16060
RS
21332015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2134
2135 * c-common.c: Don't include target-def.h.
2136
a68ae2e1
MP
21372015-06-23 Marek Polacek <polacek@redhat.com>
2138
2139 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2140 when comparing INTEGER_CSTs.
2141
c6a2f2d9
PMR
21422015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2143
2144 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2145 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2146 (dump_ada_template): Skip partially specialized types.
2147
6b4db501
MM
21482015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2149
2150 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2151 swapping.
2152
abb226c9
AM
21532015-06-17 Andrew MacLeod <amacleod@redhat.com>
2154
2155 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2156 * c-ada-spec.c: Likewise.
2157 * c-cilkplus.c: Likewise.
2158 * c-common.c: Likewise.
2159 * c-common.h: Likewise.
2160 * c-cppbuiltin.c: Likewise.
2161 * c-dump.c: Likewise.
2162 * c-format.c: Likewise.
2163 * c-gimplify.c: Likewise.
2164 * c-indentation.c: Likewise.
2165 * c-lex.c: Likewise.
2166 * c-omp.c: Likewise.
2167 * c-opts.c: Likewise.
2168 * c-pch.c: Likewise.
2169 * c-ppoutput.c: Likewise.
2170 * c-pragma.c: Likewise.
2171 * c-pretty-print.c: Likewise.
2172 * c-semantics.c: Likewise.
2173 * c-ubsan.c: Likewise.
2174 * cilk.c: Likewise.
2175 * stub-objc.c: Likewise.
2176
076fecad
PP
21772015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2178
2179 PR c++/65168
2180 * c-common.c (c_common_truthvalue_conversion): Warn when
2181 converting an address of a reference to a truth value.
2182
13fdf2e2
AM
21832015-06-08 Andrew MacLeod <amacleod@redhat.com>
2184
2185 * array-notation-common.c : Adjust include files.
2186 * c-ada-spec.c : Likewise.
2187 * c-cilkplus.c : Likewise.
2188 * c-common.c : Likewise.
2189 * c-common.h : Likewise.
2190 * c-cppbuiltin.c : Likewise.
2191 * c-dump.c : Likewise.
2192 * c-format.c : Likewise.
2193 * c-gimplify.c : Likewise.
2194 * c-indentation.c : Likewise.
2195 * c-lex.c : Likewise.
2196 * c-omp.c : Likewise.
2197 * c-opts.c : Likewise.
2198 * c-pch.c : Likewise.
2199 * c-ppoutput.c : Likewise.
2200 * c-pragma.c : Likewise.
2201 * c-pretty-print.c : Likewise.
2202 * c-semantics.c : Likewise.
2203 * c-ubsan.c : Likewise.
2204 * cilk.c : Likewise.
2205 * stub-objc.c : Likewise.
2206
a1661b90
MP
22072015-06-08 Marek Polacek <polacek@redhat.com>
2208
2209 PR c/66415
2210 * c-format.c (location_from_offset): Return LOC if LINE is null.
2211
d7438551
AH
22122015-06-05 Aldy Hernandez <aldyh@redhat.com>
2213
2214 * c-common.h (c_parse_final_cleanups): New prototype.
2215 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2216
b3d5bc62
JJ
22172015-06-04 Sriraman Tallam <tmsriram@google.com>
2218
2219 * c-common.c (noplt): New attribute.
2220 (handle_noplt_attribute): New handler.
2221
ecb9f223
AM
22222015-06-04 Andrew MacLeod <amacleod@redhat.com>
2223
2224 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2225 * c-ada-spec.c: Likewise.
2226 * c-cilkplus.c: Likewise.
2227 * c-common.c: Likewise.
2228 * c-common.h: Likewise.
2229 * c-cppbuiltin.c: Likewise.
2230 * c-dump.c: Likewise.
2231 * c-format.c: Likewise.
2232 * c-gimplify.c: Likewise.
2233 * c-indentation.c: Likewise.
2234 * c-lex.c: Likewise.
2235 * c-omp.c: Likewise.
2236 * c-opts.c: Likewise.
2237 * c-pch.c: Likewise.
2238 * c-ppoutput.c: Likewise.
2239 * c-pragma.c: Likewise.
2240 * c-pretty-print.c: Likewise.
2241 * c-semantics.c: Likewise.
2242 * c-ubsan.c: Likewise.
2243 * cilk.c: Likewise.
2244 * stub-objc.c: Likewise.
2245
6ac48155
DM
22462015-06-02 David Malcolm <dmalcolm@redhat.com>
2247
2248 PR c/66220:
2249 * c-indentation.c (should_warn_for_misleading_indentation): Use
2250 expand_location rather than expand_location_to_spelling_point.
2251 Don't warn if the guarding statement is more indented than the
2252 next/body stmts.
2253
773ce42e
DM
22542015-06-02 David Malcolm <dmalcolm@redhat.com>
2255
2256 * c-indentation.c (warn_for_misleading_indentation): Bail out
2257 immediately if -Wmisleading-indentation isn't enabled.
2258
4fef8379
ML
22592015-06-01 Martin Liska <mliska@suse.cz>
2260
2261 * c-format.c (check_format_arg):Use new type-based pool allocator.
2262 (check_format_info_main) Likewise.
2263
1edfb384
EB
22642015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2265
2266 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2267 (has_nontrivial_methods): Likewise.
2268
9677ef52
MP
22692015-05-25 Marek Polacek <polacek@redhat.com>
2270
2271 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2272
fd5c817a
MP
22732015-05-22 Marek Polacek <polacek@redhat.com>
2274
2275 PR c/47043
2276 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2277
a2f45fe6 22782015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2279
2280 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2281 STACK_GROWS_DOWNWARD.
2282
a2f45fe6 22832015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2284
2285 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2286 STACK_GROWS_DOWNWARD rather than if it is defined.
2287
0fee2ac2 22882015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2289
0fee2ac2
MLI
2290 PR c/52952
2291 * c-format.c (location_column_from_byte_offset): New.
2292 (location_from_offset): New.
2293 (struct format_wanted_type): Add offset_loc field.
2294 (check_format_info): Move handling of location for extra arguments
2295 closer to the point of warning.
2296 (check_format_info_main): Pass the result of location_from_offset
2297 to warning_at.
2298 (format_type_warning): Pass the result of location_from_offset
2299 to warning_at.
2300
cf4ef6f7
MP
23012015-05-20 Marek Polacek <polacek@redhat.com>
2302
2303 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2304
3a65ee74
MP
23052015-05-20 Marek Polacek <polacek@redhat.com>
2306
2307 * c-ada-spec.c (dump_sloc): Use DECL_P.
2308
21b634ae
MP
23092015-05-20 Marek Polacek <polacek@redhat.com>
2310
2311 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2312 * c-common.c: Likewise.
2313
0e50b624
DM
23142015-05-19 David Malcolm <dmalcolm@redhat.com>
2315
2316 * c-common.h (fe_file_change): Strengthen param from
2317 const line_map * to const line_map_ordinary *.
2318 (pp_file_change): Likewise.
2319 * c-lex.c (fe_file_change): Likewise.
2320 (cb_define): Use linemap_check_ordinary when invoking
2321 SOURCE_LINE.
2322 (cb_undef): Likewise.
2323 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2324 invoking cb_file_change.
2325 (c_finish_options): Likewise.
2326 (push_command_line_include): Likewise.
2327 (cb_file_change): Strengthen param "new_map" from
2328 const line_map * to const line_map_ordinary *.
2329 * c-ppoutput.c (cb_define): Likewise for local "map".
2330 (pp_file_change): Likewise for param "map" and local "from".
2331
fab27f52
MM
23322015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2333
2334 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2335
2fe1d762
TV
23362015-05-18 Tom de Vries <tom@codesourcery.com>
2337
2338 * c-common.c (build_va_arg_1): New function.
2339 (build_va_arg): Add address operator to va_list operand if necessary.
2340
7a37fa90
MM
23412015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2342
2343 PR c/48956
2344 * c-common.c (int_safely_convertible_to_real_p): Define.
2345 (unsafe_conversion_p): Check conversions involving complex types.
2346 (conversion_warning): Add new warning message for conversions which
2347 discard imaginary component.
2348 * c-common.h: (enum conversion_safety): Add new enumerator for such
2349 conversions.
2350
3aa3c9fc
MP
23512015-05-14 Marek Polacek <polacek@redhat.com>
2352
2353 PR c/66066
2354 PR c/66127
2355 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2356 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2357 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2358 use it. If FOR_INT_CONST, require that all evaluated operands be
2359 INTEGER_CSTs.
2360
c3388e62
DM
23612015-05-12 David Malcolm <dmalcolm@redhat.com>
2362
2363 * c-common.h (warn_for_misleading_indentation): New prototype.
2364 * c-indentation.c: New file.
2365 * c.opt (Wmisleading-indentation): New option.
2366
c7b38fd5
TV
23672015-05-12 Tom de Vries <tom@codesourcery.com>
2368
2369 PR tree-optimization/66010
2370 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2371
381bf11e
JM
23722015-05-09 Jason Merrill <jason@redhat.com>
2373
edff0c06
JM
2374 * c-opts.c (c_common_post_options): Also clear
2375 cpp_opts->cpp_warn_cxx11_compat.
2376
129211bc
JM
2377 * c-common.h (enum cxx_dialect): Add cxx_unset.
2378 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2379 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2380
381bf11e
JM
2381 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2382 (std=gnu++0x): Mark as Undocumented.
2383 (std=gnu++1y): Add deprecated message.
2384
fe191308
JM
23852015-05-08 Jason Merrill <jason@redhat.com>
2386
765189ff
JM
2387 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2388 * c-opts.c: Adjust.
2389
fe191308
JM
2390 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2391
755e528f
MP
23922015-05-08 Marek Polacek <polacek@redhat.com>
2393
2394 PR c/64918
2395 * c.opt (Woverride-init-side-effects): New option.
2396
0173bd2a
MP
23972015-05-07 Marek Polacek <polacek@redhat.com>
2398
2399 PR c/65179
2400 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2401 negative value.
2402 * c.opt (Wshift-negative-value): New option.
2403 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2404 when -Wextra and C99/C++11 mode.
2405
e0f0d3b9
MP
24062015-05-07 Marek Polacek <polacek@redhat.com>
2407 Martin Uecker <uecker@eecs.berkeley.edu>
2408
2409 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2410 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2411
8243e2a9
JM
24122015-05-05 Jason Merrill <jason@redhat.com>
2413
2414 * c.opt (Wterminate): New.
2415
577cd070
MP
24162015-04-30 Marek Polacek <polacek@redhat.com>
2417
2418 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2419 require that the non-constant be of a boolean type.
2420
0373796b
JT
24212015-04-29 Josh Triplett <josh@joshtriplett.org>
2422
e0f0d3b9
MP
2423 * c-common.c (handle_section_attribute): Refactor to reduce
2424 nesting and distinguish between error cases.
0373796b 2425
716c0ba6
MP
24262015-04-29 Marek Polacek <polacek@redhat.com>
2427
2428 PR c/64610
2429 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2430 with 0/1.
2431
8848828b
JJ
24322015-04-29 Jakub Jelinek <jakub@redhat.com>
2433
2434 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2435 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2436 HOST_BITS_PER_WIDE_INT.
2437
ecd0e562
TV
24382015-04-28 Tom de Vries <tom@codesourcery.com>
2439
2440 PR tree-optimization/65887
2441 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2442
2a877204 24432015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2444 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2445
2446 * c-ada-spec.c (in_function): Delete.
2447 (dump_generic_ada_node): Do not change in_function and remove the
2448 redundant code dealing with it.
2449 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2450 (print_ada_methods): Output the static member functions in a nested
2451 package after the regular methods as well as associated renamings.
2452
4853031e
MP
24532015-04-24 Marek Polacek <polacek@redhat.com>
2454
2455 PR c/65830
2456 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2457 and OPT_Wshift_count_overflow.
2458
8c2b7f79
MP
2459 PR c/63357
2460 * c-common.c (warn_logical_operator): Warn if the operands have the
2461 same expressions.
2462
b8787813
MP
24632015-04-24 Marek Polacek <polacek@redhat.com>
2464
2465 PR c/61534
2466 * c-common.c (warn_logical_operator): Bail if either operand comes
2467 from a macro expansion.
2468
8fba1830
BRF
24692015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2470
2471 PR target/55143
2472 * c-common.c (c_default_pointer_mode): Add definition.
2473 * c-common.h (c_default_pointer_mode): Add declaration.
2474
17958621
JJ
24752015-03-11 Jakub Jelinek <jakub@redhat.com>
2476
2477 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2478 on record_builtin_type argument.
2479
7ccb1a11
JJ
24802015-03-10 Jakub Jelinek <jakub@redhat.com>
2481
2482 PR c/65120
2483 * c-common.c (warn_logical_not_parentheses): Don't warn for
2484 !x == 0 or !x != 0.
2485
04fd785e
MP
24862015-03-07 Marek Polacek <polacek@redhat.com>
2487
2488 PR sanitizer/65280
2489 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2490 before trying to figure out whether we have a flexible array member.
2491
a4e26206
EB
24922015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2493 Jonathan Wakely <jwakely.gcc@gmail.com>
2494
2495 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2496
0d2489f4
EB
24972015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2498
2499 PR ada/65319
2500 * c-ada-spec.c (print_destructor): Remove obsolete code.
2501
83ed54d7
EB
25022015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2503
2504 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2505 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2506 DECL_TEMPLATE_RESULT emulations.
2507 (dump_ada_template)): Add guard for TYPE_METHODS.
2508
7631f0e2
MP
25092015-02-27 Marek Polacek <polacek@redhat.com>
2510
2511 PR c/65040
2512 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2513
d1783ae5
KT
25142015-02-27 Kai Tietz <ktietz@redhat.com>
2515
2516 PR c/35330
2517 * c-pragma.c (handle_pragma_weak): Do not try to create
2518 weak/alias of declarations not being function, or variable
2519 declarations.
2520
56a9f6bc
TS
25212015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2522
2523 PR libgomp/64625
2524 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2525 Remove macros.
2526 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2527
3d5cb23d
MP
25282015-02-16 Marek Polacek <polacek@redhat.com>
2529
2530 PR c/65066
2531 * c-format.c (check_format_types): Handle null param.
2532
fa008882
MP
25332015-02-13 Marek Polacek <polacek@redhat.com>
2534
2535 PR c/65040
2536 * c-format.c (check_format_types): Don't warn about different
2537 signedness if the original value is in the range of WANTED_TYPE.
2538
785f21af
JM
25392015-02-12 Jason Merrill <jason@redhat.com>
2540
2541 PR c++/64956
2542 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2543 to the current highest version.
2544 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2545
4886ec8e
JJ
25462015-02-04 Jakub Jelinek <jakub@redhat.com>
2547
2548 PR c/64824
2549 PR c/64868
2550 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2551 instead of RDIV_EXPR. Use build_binary_op instead of
2552 build2_loc.
2553
40fecdd6
JM
25542015-01-30 Joseph Myers <joseph@codesourcery.com>
2555
2556 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2557 to pass input_location as first argument.
2558
a0c88d06
TV
25592015-01-23 Tom de Vries <tom@codesourcery.com>
2560
2561 PR libgomp/64672
2562 * c.opt (fopenacc): Mark as LTO option.
2563
1506ae0e
TV
25642015-01-23 Tom de Vries <tom@codesourcery.com>
2565
2566 PR libgomp/64707
2567 * c.opt (fopenmp): Mark as LTO option.
2568
31be63ab
JJ
25692015-01-21 Jakub Jelinek <jakub@redhat.com>
2570
2571 PR c/63307
b1726d6c 2572 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2573 (compare_decls): Fix up formatting.
2574
25752015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2576
2577 PR c/63307
2578 * cilk.c: Include vec.h.
2579 (struct cilk_decls): New structure.
2580 (wrapper_parm_cb): Split this function to...
2581 (fill_decls_vec): ...this...
2582 (create_parm_list): ...and this.
2583 (compare_decls): New function.
2584 (for_local_cb): Remove.
2585 (wrapper_local_cb): Ditto.
2586 (build_wrapper_type): For now first traverse and fill vector of
2587 declarations then sort it and then deal with sorted vector.
2588 (cilk_outline): Ditto.
2589 (declare_one_free_variable): Ditto.
2590
6875457f
JM
25912015-01-21 Jason Merrill <jason@redhat.com>
2592
2593 PR c++/64629
2594 * c-format.c (check_format_arg): Call decl_constant_value.
2595
185c9e56
ML
25962015-01-19 Martin Liska <mliska@suse.cz>
2597
2598 * c-common.c (handle_noicf_attribute): New function.
2599
41dbbb37
TS
26002015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2601 Bernd Schmidt <bernds@codesourcery.com>
2602 James Norris <jnorris@codesourcery.com>
2603 Cesar Philippidis <cesar@codesourcery.com>
2604 Ilmir Usmanov <i.usmanov@samsung.com>
2605 Jakub Jelinek <jakub@redhat.com>
2606
2607 * c.opt (fopenacc): New option.
2608 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2609 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2610 New macros.
2611 * c-common.h (c_finish_oacc_wait): New prototype.
2612 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2613 (c_finish_oacc_wait): New function.
2614 * c-pragma.c (oacc_pragmas): New variable.
2615 (c_pp_lookup_pragma, init_pragma): Handle it.
2616 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2617 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2618 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2619 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2620 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2621 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2622 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2623 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2624 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2625 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2626 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2627 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2628 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2629 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2630 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2631 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2632 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2633 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2634 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2635 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2636 PRAGMA_OACC_CLAUSE_WORKER.
2637
3f8257db 26382015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2639
2640 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2641 for the new option fstack-protector_explicit.
2642 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2643 (handle_stack_protect_attribute): New function.
2644
3f8257db 26452015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2646
2647 * c.opt: New option -Warray-bounds=.
2648
adfac8df
JJ
26492015-01-09 Michael Collison <michael.collison@linaro.org>
2650
2651 * array-notation-common.c: Include hash-set.h, machmode.h,
2652 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2653 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2654 * c-ada-spec.c: Ditto.
2655 * c-cilkplus.c: Ditto.
2656 * c-common.c: Include input.h due to flattening of tree.h.
2657 Define macro GCC_C_COMMON_C.
2658 * c-common.h: Flatten tree.h header files into c-common.h.
2659 Remove include of tree-core.h.
2660 * c-cppbuiltin.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 * c-dump.c: Ditto.
2665 * c-format.c: Flatten tree.h header files into c-common.h.
2666 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2667 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2668 fold-const.h, wide-int.h, and inchash.h due to
2669 flattening of tree.h.
2670 * c-dump.c: Include hash-set.h, machmode.h,
2671 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2672 fold-const.h, wide-int.h, and inchash.h due to
2673 flattening of tree.h.
2674 * c-format.c: Include hash-set.h, machmode.h,
2675 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2676 fold-const.h, wide-int.h, inchash.h and real.h due to
2677 flattening of tree.h.
2678 * c-gimplify.c: Include hash-set.h, machmode.h,
2679 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2680 fold-const.h, wide-int.h, and inchash.h due to
2681 flattening of tree.h.
2682 * cilk.c: Ditto.
2683 * c-lex.c: Ditto.
2684 * c-omp.c: Ditto.
2685 * c-opts.c: Ditto.
2686 * c-pch.c: Ditto.
2687 * c-ppoutput.c: Ditto.
2688 * c-pragma.c: Ditto.
2689 * c-pretty-print.c: Ditto.
2690 * c-semantics.c: Ditto.
2691 * c-ubsan.c: Ditto.
2692 * stub-objc.c: Ditto.
2693
f5481fc4
JM
26942015-01-08 Jason Merrill <jason@redhat.com>
2695
2696 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2697 do_ubsan_in_current_function.
2698 (ubsan_maybe_instrument_reference_or_call): Likewise.
2699 * c-ubsan.h: Declare it.
2700
de35aa66
MS
27012015-01-08 Mike Stump <mikestump@comcast.net>
2702
2703 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2704
4a9a42ab
MP
27052015-01-07 Marek Polacek <polacek@redhat.com>
2706
2707 PR c/64440
2708 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2709 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2710
2f42e5de
TS
27112015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2712
2713 PR c++/31397
2714 * c.opt (Wsuggest-override): New option.
2715
5624e564
JJ
27162015-01-05 Jakub Jelinek <jakub@redhat.com>
2717
2718 Update copyright years.
2719
5bd012f8
MP
27202015-01-05 Marek Polacek <polacek@redhat.com>
2721
2722 PR c/64423
2723 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2724 parameter. Use it.
2725 * c-common.h (warn_array_subscript_with_type_char): Update
2726 declaration.
2727
a7fa8d18
ESR
27282014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2729
2730 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2731 Control macro with flag_sized_deallocation.
2732
3f8257db 27332014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2734
2735 * c.opt (Wdiscarded-array-qualifiers): New option.
2736
1f8d3e84
JJ
27372014-12-19 Jakub Jelinek <jakub@redhat.com>
2738
2739 PR preprocessor/63831
2740 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2741 and __has_cpp_attribute here.
2742 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2743 c_common_has_attribute.
2744 * c-common.h (c_common_has_attribute): New prototype.
2745 * c-lex.c (init_c_lex): Set cb->has_attribute to
2746 c_common_has_attribute instead of cb_has_attribute.
2747 (get_token_no_padding): New function.
2748 (cb_has_attribute): Renamed to ...
2749 (c_common_has_attribute): ... this. No longer static. Use
2750 get_token_no_padding, require ()s, don't build TREE_LIST
2751 unnecessarily, fix up formatting, adjust diagnostics, call
2752 init_attributes.
2753
20b06add
JM
27542014-12-15 Jason Merrill <jason@redhat.com>
2755
2756 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2757 (-Wsized-deallocation): New.
2758 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2759 to on in C++14 and up.
2760
94a073b2
JM
27612014-12-11 Jason Merrill <jason@redhat.com>
2762
acaa5911
JM
2763 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2764
94a073b2
JM
2765 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2766 we aren't complaining about VLAs.
2767
7fb66c15
MP
27682014-12-06 Marek Polacek <polacek@redhat.com>
2769
2770 PR tree-optimization/64183
2771 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2772 shift-expression if it is integer_type_node. Use types_compatible_p.
2773
b731b390
JJ
27742014-11-29 Jakub Jelinek <jakub@redhat.com>
2775
2776 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2777 last argument from create_tmp_var_raw and create_tmp_var calls.
2778 * cilk.c (gimplify_cilk_spawn): Likewise.
2779 * c-omp.c (c_finish_omp_atomic): Likewise.
2780
6a4da643
MP
27812014-11-28 Marek Polacek <polacek@redhat.com>
2782
2783 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2784 instead of unsigned_type_node.
2785
541e35a6
MP
27862014-11-28 Marek Polacek <polacek@redhat.com>
2787
2788 PR c/63862
2789 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2790 to op1_utype.
2791 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2792 expression to unsigned_type_node.
2793
dcc97066
MW
27942014-11-20 Mark Wielaard <mjw@redhat.com>
2795
2796 PR debug/38757
2797 * c-opts.c (set_std_c89): Set lang_hooks.name.
2798 (set_std_c99): Likewise.
2799 (set_std_c11): Likewise.
2800 (set_std_cxx98): Likewise.
2801 (set_std_cxx11): Likewise.
2802 (set_std_cxx14): Likewise.
2803 (set_std_cxx1z): Likewise.
2804
aa7da51a
JJ
28052014-11-21 Jakub Jelinek <jakub@redhat.com>
2806
2807 PR target/63764
2808 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2809 return type to bool.
009a3480 2810 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2811 (convert_vector_to_pointer_for_subscript): Change return type to
2812 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2813 and copy it into a TARGET_EXPR and use that instead of *vecp
2814 directly.
2815
538dd0b7
DM
28162014-11-19 David Malcolm <dmalcolm@redhat.com>
2817
2818 Merger of git branch "gimple-classes-v2-option-3".
2819 * ChangeLog.gimple-classes: New.
2820 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2821 from being just a vec<gimple> to a vec<gbind *>.
2822
c39a5e99
JJ
28232014-11-18 Jakub Jelinek <jakub@redhat.com>
2824
2825 PR sanitizer/63813
2826 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2827 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2828 get_pointer_alignment for non-pointers. Use ptype, or if it is
2829 reference type, corresponding pointer type, as type of kind
2830 argument.
2831 (ubsan_maybe_instrument_reference,
2832 ubsan_maybe_instrument_member_call): Adjust callers.
2833
8537a4a9
MP
28342014-11-15 Marek Polacek <polacek@redhat.com>
2835
2836 PR middle-end/63884
2837 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2838 for NULL fndecl.
2839 (extract_array_notation_exprs): Return for NULL node.
2840
2079956a
JM
28412014-11-12 Joseph Myers <joseph@codesourcery.com>
2842
2843 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2844 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2845
1304953e
JJ
28462014-11-12 Jakub Jelinek <jakub@redhat.com>
2847
2848 PR c/59708
2849 * c-common.c (check_builtin_function_arguments): Handle
2850 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2851
e5e44252
AK
28522014-11-10 Andi Kleen <ak@linux.intel.com>
2853
2854 PR c/60804
2855 * c-common.h (check_no_cilk): Declare.
2856 * cilk.c (get_error_location): New function.
2857 (check_no_cilk): Dito.
2858
e64b984d
AK
28592014-11-10 Andi Kleen <ak@linux.intel.com>
2860
2861 * cilk.c (recognize_spawn): Use expression location
2862 for error message.
2863
13c21655
PC
28642014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2865
2866 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2867
42fd12b1
ESR
28682014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2869
2870 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2871 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2872 (__cpp_range_based_for, __cpp_initializer_lists,
2873 __cpp_delegating_constructors, __cpp_nsdmi,
2874 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2875 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2876 __has_cpp_attribute.
2877 * c-lex.c (cb_has_attribute): New callback CPP function;
2878 (init_c_lex): Set has_attribute callback.
2879
6f450181
RB
28802014-11-04 Richard Biener <rguenther@suse.de>
2881
2882 * c-common.c (shorten_compare): Do not shorten mixed
2883 DFP and non-DFP compares.
2884
26f0e1d6
ESR
28852014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2886
2887 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2888 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2889 Commentary and rearrangement of tests.
2890 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2891 Commentary and rearrangement of tests.
2892 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2893 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2894
ef4bddc2
RS
28952014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2896
2897 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2898 enum from machine_mode.
2899
c582198b
AM
29002014-10-28 Andrew MacLeod <amacleod@redhat.com>
2901
adfac8df
JJ
2902 * c-common.c: Adjust include files.
2903 * c-gimplify.c: Ditto.
2904 * cilk.c: Ditto.
2905 * c-pragma.c: Ditto.
2906 * c-ubsan.c: Ditto.
c582198b 2907
60393bbc
AM
29082014-10-27 Andrew MacLeod <amacleod@redhat.com>
2909
2910 * c-gimplify.c: Adjust include files.
2911
d723bb7c
MLI
29122014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2913
2914 PR c++/53061
2915 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2916 c_common_initialize_diagnostics.
2917 * c-common.h: Likewise.
2918
90f3520e
MP
29192014-10-24 Marek Polacek <polacek@redhat.com>
2920
2921 PR c/56980
2922 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2923 print "struct"/"union"/"enum" for typedefed names.
2924
59d7607a
MP
29252014-10-23 Marek Polacek <polacek@redhat.com>
2926
2927 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2928 in unsigned type.
2929
d95a2703
JJ
29302014-10-22 Jakub Jelinek <jakub@redhat.com>
2931 Yury Gribov <y.gribov@samsung.com>
2932
2933 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2934 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2935 instead of flag_sanitize_recover as bool flag.
2936
8e6ef852
KY
29372014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2938
2939 * cilk.c: Revert previous change.
2940
948cf550
IZ
29412014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2942
2943 PR c/63307
2944 * cilk.c: Include vec.h.
2945 (struct cilk_decls): New structure.
2946 (wrapper_parm_cb): Split this function to...
2947 (fill_decls_vec): ...this...
2948 (create_parm_list): ...and this.
2949 (compare_decls): New function.
2950 (for_local_cb): Remove.
2951 (wrapper_local_cb): Ditto.
2952 (build_wrapper_type): For now first traverse and fill vector of
2953 declarations then sort it and then deal with sorted vector.
2954 (cilk_outline): Ditto.
2955 (declare_one_free_variable): Ditto.
2956
92574c7c
MP
29572014-10-17 Marek Polacek <polacek@redhat.com>
2958
2959 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2960 * c.opt (Wimplicit-int): Initialize to -1.
2961
83685514
AM
29622014-10-16 Andrew MacLeod <amacleod@redhat.com>
2963
2964 * c-pragma.c: Adjust include files.
2965 * c-semantics.c: Likewise.
2966
5b8300ea
DD
29672014-10-16 DJ Delorie <dj@redhat.com>
2968
2969 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2970 multiples of bytes.
2971
5f83e90b
JM
29722014-10-14 Jason Merrill <jason@redhat.com>
2973
2974 PR c++/63455
2975 * c-common.h (CPP_PREPARSED_EXPR): New.
2976 (N_CP_TTYPES): Adjust.
2977
d73326ca
MP
29782014-10-15 Marek Polacek <polacek@redhat.com>
2979
2980 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2981
78a7c317
DD
29822014-10-14 DJ Delorie <dj@redhat.com>
2983
2984 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2985 types, not just __int128.
2986 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2987 types, not just __int128.
2988 (cpp_atomic_builtins): Round pointer sizes up.
2989 (type_suffix): Use type precision, not specific types.
2990 * c-common.c (c_common_reswords): Remove __int128 special case.
2991 (c_common_type_for_size): Check for all __intN types, not just
2992 __int128.
2993 (c_common_type_for_mode): Likewise.
2994 (c_common_signed_or_unsigned_type): Likewise.
2995 (c_build_bitfield_integer_type): Likewise.
2996 (c_common_nodes_and_builtins): Likewise.
2997 (keyword_begins_type_specifier): Likewise.
2998 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2999 __intN variants.
3000
2a22f99c
TS
30012014-10-12 Trevor Saunders <tsaunders@mozilla.com>
3002
3003 * c-common.c: Use hash_table instead of hashtab.
3004
2a8ef767
ESR
30052014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3006
adfac8df 3007 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
3008 C++11 section.
3009
3c9aabbd
MG
30102014-10-03 Marc Glisse <marc.glisse@inria.fr>
3011
3012 PR c++/54427
3013 PR c++/57198
3014 PR c++/58845
3015 * c-common.c (warn_logical_operator): Punt for vectors.
3016
a15f7cb8
ESR
30172014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3018
3019 Implement SD-6: SG10 Feature Test Recommendations
3020 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
3021 macros and the __has_header macro.
3022
8d0cf15e
JM
30232014-09-30 Jason Merrill <jason@redhat.com>
3024
dd5d5481
JM
3025 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
3026 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
3027 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3028
b752325e
JM
3029 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
3030 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3031
8d0cf15e
JM
3032 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
3033 * c-common.c (c_common_reswords): Remove __is_convertible_to.
3034
083e891e
MP
30352014-09-24 Marek Polacek <polacek@redhat.com>
3036
3037 PR c/61405
3038 PR c/53874
3039 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
3040
7861b648
AK
30412014-09-23 Andi Kleen <ak@linux.intel.com>
3042
3043 * c-common.c (handle_no_reorder_attribute): New function.
3044 (c_common_attribute_table): Add no_reorder attribute.
3045
9a79452d
JM
30462014-09-22 Joseph Myers <joseph@codesourcery.com>
3047
3048 * c-cppbuiltin.c (c_cpp_builtins): Define
3049 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
3050 modes.
3051
dd69f047
JM
30522014-09-18 Joseph Myers <joseph@codesourcery.com>
3053
3054 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
3055 for supported floating-point modes.
3056
737a4826
MLI
30572014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3058
3059 * c.opt (Wpsabi): Use LangEnabledBy.
3060 * c-opts.c (c_common_handle_option): Do not handle here.
3061
8cc4b7a2
JM
30622014-09-12 Joseph Myers <joseph@codesourcery.com>
3063
3064 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3065 macros for floating-point modes.
3066
179b5a55
MG
30672014-09-11 Marc Glisse <marc.glisse@inria.fr>
3068
3069 PR target/58757
3070 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3071 __*_DENORM_MIN__ without denormals.
3072
570a11fe
JJ
30732014-09-10 Jakub Jelinek <jakub@redhat.com>
3074
3075 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3076 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3077 ubsan_create_data callers.
3078 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3079 index is constant or BIT_AND_EXPR with constant mask and is
3080 small enough for the bound.
3081 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3082 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3083
b559c810
MLI
30842014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3085
3086 * c.opt: Add CppReason to various flags.
3087 (Wdate-time): Re-sort.
3088 * c-common.c: Include c-common.h earlier.
3089 (struct reason_option_codes_t): Delete.
3090 (c_option_controlling_cpp_error): Prefix global type and struct
3091 with cpp_.
3092
1ef33fd4
MLI
30932014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3094
3095 * c.opt (Wnormalized): New.
3096 (Wnormalized=): Use Enum and Reject Negative.
3097 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3098
66bb34c0
JM
30992014-09-08 Joseph Myers <joseph@codesourcery.com>
3100
3101 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3102 digits of floating-point modes if -fbuilding-libgcc.
3103
53d68b9f
JM
31042014-09-05 Joseph Myers <joseph@codesourcery.com>
3105
3106 * c-cppbuiltin.c (c_cpp_builtins): Also define
3107 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3108 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3109 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3110 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3111 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3112 __LIBGCC_STACK_GROWS_DOWNWARD__,
3113 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3114 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3115 __LIBGCC_DWARF_FRAME_REGISTERS__,
3116 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3117 __LIBGCC_STACK_POINTER_REGNUM__ and
3118 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3119 (builtin_define_with_value): Handle backslash-escaping in string
3120 macro values.
3121
f65586dc
RB
31222014-09-05 Richard Biener <rguenther@suse.de>
3123
3124 PR middle-end/63148
3125 * c-format.c (check_format_arg): Properly handle
3126 effectively signed POINTER_PLUS_EXPR offset.
3127
2b71f4a4
MLI
31282014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3129
3130 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3131 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3132 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3133 and Init.
3134 * c-opts.c (c_common_handle_option): Do not handle here.
3135 (sanitize_cpp_opts): Likewise.
3136 * c-common.c (struct reason_option_codes_t): Handle
3137 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3138
d2e4feca
MP
31392014-09-03 Marek Polacek <polacek@redhat.com>
3140
3141 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3142
9a771876
JJ
31432014-09-02 Jakub Jelinek <jakub@redhat.com>
3144 Balaji V. Iyer <balaji.v.iyer@intel.com>
3145 Igor Zamyatin <igor.zamyatin@intel.com>
3146
3147 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3148 * c-common.c (c_common_reswords): Added _Cilk_for.
3149 * c-common.h (enum rid): Added RID_CILK_FOR.
3150 (cilk_for_number_of_iterations): Add declaration.
3151 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3152 CILK_FOR.
3153 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3154 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3155
81b5d104
MLI
31562014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3157
3158 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3159 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3160 Wundef): Use CPP, Var and Init.
3161 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3162
b753b37b
MLI
31632014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3164
3165 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3166 * c-opts.c (c_common_handle_option): Do not handle here.
3167
028aee17
JM
31682014-08-25 Jason Merrill <jason@redhat.com>
3169
3170 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3171 -std=c++14 and -std=gnu++14, rather than the reverse.
3172 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3173 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3174 * c-common.h (cxx_dialect): Remove cxx1y.
3175
e4276ba5
ESR
31762014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3177
3178 * c-common.h (enum cxx_dialect): Add cxx14.
3179 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3180 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3181 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3182
a545cacd
JM
31832014-08-22 Jason Merrill <jason@redhat.com>
3184
3185 * c.opt (std=gnu++17): Fix alias.
3186
59ea0364
MP
31872014-08-22 Marek Polacek <polacek@redhat.com>
3188
3189 PR c++/62199
3190 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3191 check for vector types. Drop LHS argument.
3192 * c-common.h (warn_logical_not_parentheses): Adjust.
3193
596e808c
MLI
31942014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3195
3196 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3197 (Wmultichar): Likewise.
3198 (Wdate-time): Use C-family languages instead of Common. Use CPP
3199 and Var.
3200 * c-opts.c (c_common_handle_option): Do not handle the above
3201 options here.
3202 (sanitize_cpp_opts): Likewise.
3203
18767f65
MLI
32042014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3205
3206 PR fortran/44054
3207 * c-opts.c: Include tree-diagnostics.h.
3208 (c_diagnostic_finalizer): New.
3209 (c_common_initialize_diagnostics): Use it.
3210
b4413594
MLI
32112014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3212
3213 PR preprocessor/51303
3214 * c-common.c (struct reason_option_codes_t option_codes):
3215 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3216
43f9a13c
MLI
32172014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3218
3219 PR c/60975
3220 PR c/53063
3221 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3222 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3223 (c_common_post_options): Call init_global_opts_from_cpp.
3224 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3225
04159acf
MP
32262014-08-19 Marek Polacek <polacek@redhat.com>
3227
3228 PR c++/62153
3229 * c-common.c (maybe_warn_bool_compare): New function.
3230 * c-common.h (maybe_warn_bool_compare): Declare.
3231 * c.opt (Wbool-compare): New option.
3232
35aff4fb
MP
32332014-08-19 Marek Polacek <polacek@redhat.com>
3234
3235 * c.opt (Wc99-c11-compat): New option.
3236
177cce46
MP
32372014-08-19 Marek Polacek <polacek@redhat.com>
3238
3239 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3240 to warn_c90_c99_compat.
3241 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3242 to -1.
3243
6ae9194f
MLI
32442014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3245 Steven Bosscher <steven@gcc.gnu.org>
3246
3247 PR c/52952
3248 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3249 format_check_results.
3250 (check_function_format): Use true and add comment for boolean
3251 argument.
3252 (finish_dollar_format_checking): Use explicit location when warning.
3253 (check_format_info): Likewise.
3254 (check_format_arg): Set extra_arg_loc and format_string_loc.
3255 (check_format_info_main): Use explicit location when warning.
3256 (check_format_types): Pass explicit location.
3257 (format_type_warning): Likewise.
3258
8e54f6d3
MLI
32592014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3260
3261 PR fortran/44054
3262 * c-format.c: Handle Fortran flags.
3263
cd4e76fc
IZ
32642014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3265
3266 PR other/61962
3267 * array-notation-common.c (find_rank): Added handling for other
3268 types of references.
3269
f3bede71
MP
32702014-08-10 Marek Polacek <polacek@redhat.com>
3271
3272 PR c/51849
3273 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3274 * c.opt (Wc90-c99-compat): Add option.
3275
9f25a338
TS
32762014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3277
3278 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3279
62e4eb35
MP
32802014-08-03 Marek Polacek <polacek@redhat.com>
3281
3282 * c-common.c (check_case_value): Add location_t parameter. Use it.
3283 (c_add_case_label): Pass loc to check_case_value.
3284
b787e7a2
TS
32852014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3286
3287 * cilk.c: Use hash_map instead of pointer_map.
3288
6e2830c3
TS
32892014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3290
3291 * c-gimplify.c: Use hash_set instead of pointer_set.
3292
a7ee52fb
IZ
32932014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3294
3295 PR middle-end/61455
3296 * array-notation-common.c (extract_array_notation_exprs): Handling
3297 of DECL_EXPR added.
3298
944fa280
JJ
32992014-08-01 Jakub Jelinek <jakub@redhat.com>
3300
3301 * c-common.h (min_align_of_type): Removed prototype.
3302 * c-common.c (min_align_of_type): Removed.
3303 * c-ubsan.h (ubsan_maybe_instrument_reference,
3304 ubsan_maybe_instrument_member_call): New prototypes.
3305 * c-ubsan.c: Include stor-layout.h and builtins.h.
3306 (ubsan_maybe_instrument_reference_or_call,
3307 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3308 functions.
3309
b4dfdc11
MG
33102014-07-31 Marc Glisse <marc.glisse@inria.fr>
3311
3312 PR c++/60517
3313 * c.opt (-Wreturn-local-addr): Move to common.opt.
3314
a41844e5
JM
33152014-07-30 Jason Merrill <jason@redhat.com>
3316
3317 PR c++/61659
3318 PR c++/61687
3319 Revert:
3320 * c.opt (-fuse-all-virtuals): New.
3321
976d5a22
TT
33222014-07-30 Tom Tromey <tromey@redhat.com>
3323
3324 PR c/59855
3325 * c.opt (Wdesignated-init): New option.
3326 * c-common.c (c_common_attribute_table): Add "designated_init".
3327 (handle_designated_init): New function.
3328
cdc94aca
MP
33292014-07-24 Marek Polacek <polacek@redhat.com>
3330
3331 PR c/57653
3332 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3333
f41373b6
DS
33342014-07-16 Dodji Seketeli <dodji@redhat.com>
3335
3336 PR preprocessor/60723 - missing system-ness marks for macro tokens
3337 * c-ppoutput.c (struct print::prev_was_system_token): New data
3338 member.
3339 (init_pp_output): Initialize it.
3340 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3341 (do_line_change): Return a flag saying if a line marker was
3342 emitted or not.
3343 (scan_translation_unit): Detect if the system-ness of the token we
3344 are about to emit is different from the one of the previously
3345 emitted token. If so, emit a line marker. Avoid emitting useless
3346 adjacent line markers. Avoid emitting line markers for tokens
3347 originating from the expansion of built-in macros.
3348 (scan_translation_unit_directives_only): Adjust.
3349
4d661eaa
MP
33502014-07-15 Marek Polacek <polacek@redhat.com>
3351
3352 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3353 TYPE_MAX_VALUE is NULL.
3354
b108f48f
JJ
33552014-07-14 Jakub Jelinek <jakub@redhat.com>
3356
3357 PR middle-end/61294
3358 * c.opt (Wmemset-transposed-args): New warning.
3359
c0221884
JM
33602014-07-10 Jason Merrill <jason@redhat.com>
3361
3362 PR c++/61659
3363 PR c++/61687
3364 * c.opt (-fuse-all-virtuals): New.
3365
63dfbb95
RB
33662014-07-09 Richard Biener <rguenther@suse.de>
3367
3368 PR c-family/61741
3369 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3370 using unsigned arithmetic if overflow does not wrap instead of
3371 if overflow is undefined.
3372
773ec47f
MP
33732014-07-06 Marek Polacek <polacek@redhat.com>
3374
3375 PR c/6940
3376 * c.opt (Wsizeof-array-argument): New option.
3377
00a7ba58
JJ
33782014-07-03 Jakub Jelinek <jakub@redhat.com>
3379
b1726d6c 3380 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3381 comments->count <= 1, as comments->entries might be NULL.
3382
52ec0ea3
MP
33832014-07-01 Marek Polacek <polacek@redhat.com>
3384
3385 * c.opt (Wint-conversion): New option.
3386
d5c3d343
MP
33872014-07-01 Marek Polacek <polacek@redhat.com>
3388
3389 PR c/58286
3390 * c.opt (Wincompatible-pointer-types): New option.
3391
6e7ceb17
PC
33922014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3393
3394 PR c++/51400
3395 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3396 Do not discard TYPE_QUALS of type.
3397
da73100b
JM
33982014-06-26 Jason Merrill <jason@redhat.com>
3399
3400 * c-common.h (enum cxx_dialect): Add cxx1z.
3401 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3402 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3403
08eedf75
TJ
34042014-06-26 Teresa Johnson <tejohnson@google.com>
3405
3406 * c-common.h (get_dump_info): Declare.
3407 * c-gimplify.c (c_genericize): Use saved dump files.
3408 * c-opts.c (c_common_parse_file): Begin and end dumps
3409 once around parsing invocation.
3410 (get_dump_info): New function.
3411
7b56b2f8
MP
34122014-06-23 Marek Polacek <polacek@redhat.com>
3413 Andrew MacLeod <amacleod@redhat.com>
3414
3415 PR c/61553
3416 * c-common.c (get_atomic_generic_size): Don't segfault if the
3417 type doesn't have a size.
3418
0e37a2f3
MP
34192014-06-20 Marek Polacek <polacek@redhat.com>
3420
3421 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3422 (ubsan_walk_array_refs_r): New function.
3423 (c_genericize): Instrument array bounds.
3424 * c-ubsan.c: Include "internal-fn.h".
3425 (ubsan_instrument_division): Mark instrumented arrays as having
3426 side effects. Adjust ubsan_type_descriptor call.
3427 (ubsan_instrument_shift): Likewise.
3428 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3429 (ubsan_instrument_bounds): New function.
3430 (ubsan_array_ref_instrumented_p): New function.
3431 (ubsan_maybe_instrument_array_ref): New function.
3432 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3433 (ubsan_array_ref_instrumented_p): Declare.
3434 (ubsan_maybe_instrument_array_ref): Declare.
3435
34362014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3437
3438 PR lto/61123
3439 * c.opt (fshort-enums): Add to LTO.
3440 * c.opt (fshort-wchar): Likewise.
3441
5c3d09f7
MP
34422014-06-16 Marek Polacek <polacek@redhat.com>
3443
3444 PR c/60439
3445 * c.opt (Wswitch-bool): Add Var.
3446
9cf32741
JJ
34472014-06-12 Jakub Jelinek <jakub@redhat.com>
3448
3449 PR middle-end/61486
3450 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3451 #pragma omp target teams or
3452 #pragma omp {,target }teams distribute simd.
3453
62984918
JM
34542014-06-12 Jason Merrill <jason@redhat.com>
3455
3456 * c.opt (Wabi=, fabi-compat-version): New.
3457 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3458 (c_common_post_options): Handle flag_abi_compat_version default.
3459 Disallow -fabi-compat-version=1.
3460 * c-common.h (abi_version_crosses): New.
3461
f961457f
JH
34622014-06-11 Jan Hubicka <hubicka@ucw.cz>
3463
adfac8df 3464 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3465 section names that are no longer trees.
3466
92d28cbb
JJ
34672014-06-10 Jakub Jelinek <jakub@redhat.com>
3468
3469 PR fortran/60928
3470 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3471 (omp_pragmas): ... back here.
3472
742938c9
MP
34732014-06-05 Marek Polacek <polacek@redhat.com>
3474
3475 PR c/49706
3476 * c-common.c (warn_logical_not_parentheses): New function.
3477 * c-common.h (warn_logical_not_parentheses): Declare.
3478 * c.opt (Wlogical-not-parentheses): New option.
3479
9d548dfb
MP
34802014-06-04 Marek Polacek <polacek@redhat.com>
3481
3482 PR c/30020
3483 * c-common.c (check_case_bounds): Add location parameter.
3484 Use it.
3485 (c_add_case_label): Pass loc to check_case_bounds.
3486
fedfecef
MP
34872014-06-03 Marek Polacek <polacek@redhat.com>
3488
3489 PR c/60439
3490 * c.opt (Wswitch-bool): New option.
3491
f6a7cffc
TS
34922014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3493
040d18b6
TS
3494 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3495 Remove prototypes.
3496 (record_types_used_by_current_var_decl): Move prototype to where
3497 it belongs.
3498
f6a7cffc
TS
3499 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3500 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3501 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3502
632f2871
RS
35032014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3504
3505 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3506 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3507 void_zero_node.
3508 * c-pretty-print.c (pp_c_void_constant): New function.
3509 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3510 (c_pretty_printer::expression): Handle VOID_CST.
3511 * cilk.c (extract_free_variables): Likewise.
3512 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3513 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3514
766090c2
TS
35152014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3516
3517 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3518 * c-pragma.c (push_alignment): Adjust.
3519 (handle_pragma_push_options): Likewise.
3520
661a0813
MP
35212014-05-09 Marek Polacek <polacek@redhat.com>
3522
3523 PR c/50459
3524 * c-common.c (check_user_alignment): Return -1 if alignment is error
3525 node.
3526 (handle_aligned_attribute): Don't call default_conversion on
3527 FUNCTION_DECLs.
3528 (handle_vector_size_attribute): Likewise.
3529 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3530 (handle_sentinel_attribute): Call default_conversion and allow even
3531 integral types as an argument.
3532
2793eeab
MP
35332014-05-08 Marek Polacek <polacek@redhat.com>
3534
3535 PR c/61053
3536 * c-common.c (min_align_of_type): New function factored out from...
3537 (c_sizeof_or_alignof_type): ...here.
3538 * c-common.h (min_align_of_type): Declare.
3539
f827930a
MP
35402014-05-08 Marek Polacek <polacek@redhat.com>
3541
3542 PR c/61077
3543 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3544 parameter type of main.
3545
ca49b74e
DD
35462014-05-07 DJ Delorie <dj@redhat.com>
3547
3548 * c-cppbuiltin.c (print_bits_of_hex): New.
3549 (builtin_define_type_minmax): Print values using hex so as not to
3550 require a pre-computed list of string values.
3551
1d60af08
KZ
35522014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3553 Mike Stump <mikestump@comcast.net>
3554 Richard Sandiford <rdsandiford@googlemail.com>
3555
3556 * c-ada-spec.c: Include wide-int.h.
3557 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3558 (dump_generic_ada_node): Use wide-int interfaces.
3559 * c-common.c: Include wide-int-print.h.
3560 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3561 (pointer_int_sum): Use wide-int interfaces.
3562 (c_common_nodes_and_builtins): Use make_int_cst.
3563 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3564 (handle_alloc_size_attribute): Use wide-int interfaces.
3565 (get_nonnull_operand): Likewise.
3566 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3567 * c-lex.c: Include wide-int.h.
3568 (narrowest_unsigned_type): Take a widest_int rather than two
3569 HOST_WIDE_INTs.
3570 (narrowest_signed_type): Likewise.
3571 (interpret_integer): Update accordingly. Use wide-int interfaces.
3572 (lex_charconst): Use wide-int interfaces.
3573 * c-pretty-print.c: Include wide-int.h.
3574 (pp_c_integer_constant): Use wide-int interfaces.
3575 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3576 INT_CST_LT_UNSIGNED.
3577
b15458be
RB
35782014-05-06 Richard Biener <rguenther@suse.de>
3579
3580 * c-opts.c (c_common_post_options): For -freestanding,
3581 -fno-hosted and -fno-builtin disable pattern recognition
3582 if not enabled explicitely.
3583
6577374e
MP
35842014-05-02 Marek Polacek <polacek@redhat.com>
3585
3586 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3587
d00887e8
MP
35882014-05-01 Marek Polacek <polacek@redhat.com>
3589
3590 PR c/43245
3591 * c.opt (Wdiscarded-qualifiers): Add.
3592
f8ed5150
MP
35932014-04-30 Marek Polacek <polacek@redhat.com>
3594
3595 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3596 INT_MIN / -1 sanitization only for integer types.
3597
45484dcf
MP
35982014-04-25 Marek Polacek <polacek@redhat.com>
3599
3600 PR c/18079
3601 * c-common.c (handle_noinline_attribute): Warn if the attribute
3602 conflicts with always_inline attribute.
3603 (handle_always_inline_attribute): Warn if the attribute conflicts
3604 with noinline attribute.
3605
38e514c0
MP
36062014-04-25 Marek Polacek <polacek@redhat.com>
3607
3608 PR c/60156
3609 * c-common.c (check_main_parameter_types): Warn about variadic main.
3610
44875f92
MS
36112014-04-24 Mike Stump <mikestump@comcast.net>
3612
3613 * c.opt (Wshadow-ivar): Default to on.
3614
dcaaa5a0
DP
36152014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3616
3617 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3618
c07d7c02
MP
36192014-04-23 Marek Polacek <polacek@redhat.com>
3620
3621 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3622
1c33c9b7
JJ
36232014-04-22 Jakub Jelinek <jakub@redhat.com>
3624
3625 PR sanitizer/60275
3626 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3627 if flag_sanitize_undefined_trap_on_error.
3628 (ubsan_instrument_division, ubsan_instrument_shift,
3629 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3630 if !flag_sanitize_recover.
3631
793c625f
MG
36322014-04-22 Marc Glisse <marc.glisse@inria.fr>
3633
3634 PR libstdc++/43622
3635 * c-common.c (registered_builtin_types): Make non-static.
3636 * c-common.h (registered_builtin_types): Declare.
3637
b0f1bf36
RB
36382014-04-14 Richard Biener <rguenther@suse.de>
3639 Marc Glisse <marc.glisse@inria.fr>
3640
3641 PR c/60819
3642 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3643 apply may-alias the scalar pointer type when applicable.
3644
3b07fa4a
IZ
36452014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3646
3647 PR middle-end/60467
3648 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3649 as possible argument for Cilk_spawn.
3650
cbbd2b1c
TB
36512014-04-11 Tobias Burnus <burnus@net-b.de>
3652
3653 PR c/60194
3654 * c.opt (Wformat-signedness): Add
3655 * c-format.c(check_format_types): Use it.
3656
6415bd5d
JM
36572014-04-11 Jason Merrill <jason@redhat.com>
3658
3659 PR c++/57926
3660 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3661 default_conversion for an array argument.
3662
6525783a
MP
36632014-04-08 Marek Polacek <polacek@redhat.com>
3664
3665 PR sanitizer/60745
3666 * c-ubsan.c: Include asan.h.
3667 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3668
880a467b
NS
36692014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3670
3671 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3672
7b59ff2d
MP
36732014-04-02 Marek Polacek <polacek@redhat.com>
3674
3675 * c-common.h (c_expand_expr): Remove declaration.
3676
8edbfaa6
JJ
36772014-03-28 Jakub Jelinek <jakub@redhat.com>
3678
3679 PR c++/60689
3680 * c-common.c (add_atomic_size_parameter): When creating new
3681 params vector, push the size argument first.
3682
07d72e1d
JJ
36832014-03-26 Jakub Jelinek <jakub@redhat.com>
3684
3685 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3686 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3687 ubsan_create_data callers.
3688
b35e0fa0
JJ
36892014-03-22 Jakub Jelinek <jakub@redhat.com>
3690
3691 PR debug/60603
3692 * c-opts.c (c_finish_options): Restore cb_file_change call to
3693 <built-in>.
3694
39a1ebb3
JJ
36952014-03-13 Jakub Jelinek <jakub@redhat.com>
3696
3697 PR middle-end/36282
3698 * c-pragma.c (apply_pragma_weak): Only look at
3699 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3700 DECL_ASSEMBLER_NAME_SET_P (decl).
3701 (maybe_apply_pending_pragma_weaks): Exit early if
3702 vec_safe_is_empty (pending_weaks) rather than only when
3703 !pending_weaks.
3704 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3705 set assembler name back to NULL afterwards.
3706
a07f6ed2
JM
37072014-03-11 Jason Merrill <jason@redhat.com>
3708
3709 * c.opt: Add -std=gnu++14.
3710
75b107f5
IB
37112014-03-11 Ian Bolton <ian.bolton@arm.com>
3712
3713 * c-opts.c (c_common_post_options): Don't override
3714 -ffp-contract=fast if unsafe-math-optimizations is on.
3715
f42c637e
PM
37162014-03-08 Paulo Matos <paulo@matos-sorge.com>
3717
3718 * c.opt: Enable LTO FE for fshort-double.
3719
70e24808
JM
37202014-03-07 Jason Merrill <jason@redhat.com>
3721
3722 * c.opt: Add -std=c++14.
3723
3af9c5e9
MP
37242014-03-06 Marek Polacek <polacek@redhat.com>
3725
3726 PR c/60197
3727 * cilk.c (contains_cilk_spawn_stmt): New function.
3728 (contains_cilk_spawn_stmt_walker): Likewise.
3729 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3730 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3731
b3bdf019
JJ
37322014-03-03 Jakub Jelinek <jakub@redhat.com>
3733
3734 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3735 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3736 even when flag_preprocess_only.
3737
ca7e759d
JM
37382014-02-26 Jason Merrill <jason@redhat.com>
3739
3740 PR c++/59231
3741 PR c++/11586
3742 * c-common.c (shorten_compare): Don't check
3743 c_inhibit_evaluation_warnings.
3744
28e41874
JJ
37452014-02-19 Jakub Jelinek <jakub@redhat.com>
3746
cca615af
JJ
3747 PR c/37743
3748 * c-common.c (c_common_nodes_and_builtins): When initializing
3749 c_uint{16,32,64}_type_node, also set corresponding
3750 uint{16,32,64}_type_node to the same value.
3751
28e41874
JJ
3752 PR c++/60267
3753 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3754 for PRAGMA_IVDEP if flag_preprocess_only.
3755
c2bf53a1
JJ
37562014-02-12 Jakub Jelinek <jakub@redhat.com>
3757
3758 PR c/60101
3759 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3760 if false, add ADD itself, rather than vice versa.
3761 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3762 copy. For SAVE_EXPR, only call merge_tlist once.
3763
8fcbce72
JJ
37642014-02-08 Jakub Jelinek <jakub@redhat.com>
3765
3766 PR middle-end/60092
3767 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3768 and tree_to_uhwi.
3769 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3770 functions.
3771 (c_common_attribute_table): Add alloc_align and assume_aligned
3772 attributes.
3773
0a756a3f
MP
37742014-02-06 Marek Polacek <polacek@redhat.com>
3775
3776 PR c/60087
3777 * c-common.c (warn_for_sign_compare): Call warning_at with location
3778 instead of warning.
3779
7ec4847a
MP
37802014-02-05 Marek Polacek <polacek@redhat.com>
3781
3782 PR c/53123
3783 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3784 statement.
3785
66f20604
MP
37862014-02-04 Marek Polacek <polacek@redhat.com>
3787
3788 PR c/60036
3789 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3790 SAVE_EXPR.
3791
5d77fb19
MG
37922014-02-03 Marc Glisse <marc.glisse@inria.fr>
3793
3794 PR c++/53017
3795 PR c++/59211
3796 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3797 handle_vector_size_attribute, handle_nonnull_attribute): Call
3798 default_conversion on the attribute argument.
3799 (handle_nonnull_attribute): Increment the argument number.
3800
81e5eca8
MP
38012014-01-31 Marek Polacek <polacek@redhat.com>
3802
3803 PR c/59963
3804 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3805 build_function_call_vec.
3806 (resolve_overloaded_builtin): Likewise.
3807 * c-common.h (build_function_call_vec): Adjust declaration.
3808
68fca595
MP
38092014-01-30 Marek Polacek <polacek@redhat.com>
3810
3811 PR c/59940
3812 * c-common.h (unsafe_conversion_p): Adjust declaration.
3813 (warnings_for_convert_and_check): Likewise.
3814 (convert_and_check): Likewise.
3815 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3816 expansion_point_location_if_in_system_header on it.
3817 (warnings_for_convert_and_check): Add location parameter. Call
3818 expansion_point_location_if_in_system_header on it. Use it.
3819 (convert_and_check): Add location parameter. Use it.
3820 (conversion_warning): Likewise.
3821 (c_add_case_label): Adjust convert_and_check calls.
3822 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3823
b72271b9
BI
38242014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3825
3826 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3827 flag_cilkplus.
3828 * c-pragma.c (init_pragma): Likewise.
3829 * c.opt: Likewise.
3830
393e8e8b
MP
38312014-01-23 Marek Polacek <polacek@redhat.com>
3832
3833 PR c/59846
3834 * c-common.c (shorten_compare): Add location_t parameter.
3835 * c-common.h (shorten_binary_op): Adjust declaration.
3836
f04dda30
MP
38372014-01-23 Marek Polacek <polacek@redhat.com>
3838
3839 PR c/58346
3840 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3841 * c-common.h: Declare it.
3842
621955cb
EB
38432014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3844
3845 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3846 * c-ada-spec.c (dump_ads): Likewise.
3847 (cpp_check): Likewise.
3848 (dump_ada_specs): Likewise.
3849
38502014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3851
3852 PR c++/49718
3853 * c-common.c (handle_no_instrument_function_attribute): Allow
3854 no_instrument_function attribute in class member
3855 definition/declaration.
3856
241f845a
JJ
38572014-01-15 Jakub Jelinek <jakub@redhat.com>
3858
3859 PR c/58943
3860 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3861 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3862 being COMPOUND_EXPR.
3863 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3864 operand a SAVE_EXPR and second MODIFY_EXPR.
3865
e83b8e2e
JJ
38662014-01-09 Jakub Jelinek <jakub@redhat.com>
3867
3868 PR target/58115
3869 * c-pch.c (c_common_write_pch): Call
3870 prepare_target_option_nodes_for_pch.
3871
23a5b65a
RS
38722014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3873
3874 Update copyright years
3875
f9030485
RS
38762014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3877
3878 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3879 the copyright notice.
3880
f2aa696b
EB
38812013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3882
3883 * c-ada-spec.c (print_constructor): New function.
3884 (print_destructor): Retrieve the origin of the destructor.
3885 (print_ada_declaration): Revamp handling of constructors/destructors.
3886
3f8257db 38872013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3888 Bill Maddox <maddox@google.com>
3889 Jason Merrill <jason@redhat.com>
3890
3891 * c.opt: Add -fdeclone-ctor-dtor.
3892 * c-opts.c (c_common_post_options): Default to on iff -Os.
3893
41958c28
BI
38942013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3895
3896 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3897 attribute.
3898 * c-pragma.h (enum pragma_cilk_clause): Remove.
3899 (enum pragma_omp_clause): Added the following fields:
3900 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3901 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3902 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3903 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3904 PRAGMA_CILK_CLAUSE_UNIFORM.
3905
b1726d6c 3906
12893402
BI
39072013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3908
3909 * cilk.c (cilk_outline): Made this function non-static.
3910 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3911 (create_cilk_wrapper): Added a new parameter: a function pointer.
3912 (c_install_body_w_frame_cleanup): Remove
3913 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3914 * c-common.h (cilk_outline): New prototype.
3915 (gimplify_cilk_spawn): Removed two parameters.
3916 (cilk_install_body_with_frame_cleanup): New prototype.
3917 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3918 CILK_SPAWN_STMT case.
3919
085b42ed
BS
39202013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3921
2ce064c3
BS
3922 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3923
085b42ed
BS
3924 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3925 (int_array_type_node): Remove.
3926 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3927
9e36c9ed
MP
39282013-12-05 Marek Polacek <polacek@redhat.com>
3929
3930 PR c/52023
3931 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3932 [ADJUST_FIELD_ALIGN].
3933
296674db
JM
39342013-12-04 Joseph Myers <joseph@codesourcery.com>
3935
3936 PR c/52023
3937 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3938 and check field alignment if set.
3939 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3940 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3941
b1726d6c 39422013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3943 Marek Polacek <polacek@redhat.com>
3944
3945 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3946 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3947
d7947e19
L
39482013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3949
3950 PR c/59309
3951 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3952 arguments.
3953
fad7652e
JJ
39542013-11-29 Jakub Jelinek <jakub@redhat.com>
3955
3956 PR c/59280
3957 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3958 goto invalid. If it is error_mark_node, don't issue further
3959 diagnostics.
3960
8b5e1202
SO
39612013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3962
3963 * c.opt (Wopenmp-simd): New.
3964
0a508bb6
JJ
39652013-11-22 Jakub Jelinek <jakub@redhat.com>
3966
3967 * c-ubsan.h (ubsan_instrument_return): New prototype.
3968 * c-ubsan.c (ubsan_instrument_return): New function.
3969
2fb9a547
AM
39702013-11-22 Andrew MacLeod <amacleod@redhat.com>
3971
3972 * c-common.c: Add required include files from gimple.h.
3973 * c-gimplify.c: Likewise
3974 * cilk.c: Likewise
3975
8400e75e
DM
39762013-11-22 David Malcolm <dmalcolm@redhat.com>
3977
3978 * c-common.c (unsafe_conversion_p): Remove use of
3979 EXPR_LOC_OR_HERE macro.
3980 (conversion_warning): Likewise.
3981 (warnings_for_convert_and_check): Likewise.
3982 (warn_for_collisions_1): Likewise.
3983 (shorten_compare): Likewise, and remove use of in_system_header
3984 macro, using the location from the former.
3985 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3986 (cb_def_pragma): Remove use of in_system_header macro.
3987 (lex_string): Likewise.
3988 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3989
eb1ce453
KZ
39902013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3991 Mike Stump <mikestump@comcast.net>
3992 Richard Sandiford <rdsandiford@googlemail.com>
3993
3994 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3995 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3996 tree_fits_shwi_p or tree_fits_uhwi_p.
3997 (dump_generic_ada_node): Likewise.
3998 * c-format.c (check_format_arg): Likewise.
3999 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4000
6b3b8c27
KZ
40012013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4002
4003 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
4004
49b0aa18
JC
40052013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4006
4007 PR c/53001
4008 * c-common.c (unsafe_conversion_p): Make this function
4009 return an enumeration with more detail.
4010 (conversion_warning): Use the new return type of
4011 unsafe_conversion_p to separately warn either about conversions
4012 that lower floating point number precision or about the other
4013 kinds of conversions.
4014 * c-common.h (enum conversion_safety): New enumeration.
4015 (unsafe_conversion_p): switching return type to
4016 conversion_safety enumeration.
4017 * c.opt: Adding new warning -Wfloat-conversion and
4018 enabling it with -Wconversion.
4019
b826515a
BS
40202013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4021
4022 * c-opts.c: Include plugin.h.
4023 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
4024
b9a55b13
MP
40252013-11-19 Marek Polacek <polacek@redhat.com>
4026
4027 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
4028 call.
4029 (ubsan_instrument_shift): Likewise.
4030 (ubsan_instrument_vla): Likewise.
4031
7d362f6c
RS
40322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4033
4034 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
4035 cast to unsigned type.
4036
386b1f1f
RS
40372013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4038
4039 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
4040 tree_low_cst.
4041 (complete_array_type): Update comment to refer to tree_to_[su]hwi
4042 rather than tree_low_cst.
4043
ae7e9ddd
RS
40442013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4045
4046 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
4047 tree_to_uhwi throughout.
4048
9439e9a1
RS
40492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4050
4051 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
4052 tree_low_cst (..., 0) with tree_to_shwi throughout.
4053
cc269bb6
RS
40542013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4055
4056 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4057 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4058
9541ffee
RS
40592013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4060
4061 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4062 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4063
c02065fc
AH
40642013-11-15 Aldy Hernandez <aldyh@redhat.com>
4065
4066 * c-cilkplus.c: New file.
4067 * c-common.c (readonly_error): Add location argument.
4068 * c-common.h (readonly_error): Same.
4069 (c_finish_cilk_clauses): Protoize.
4070 (c_check_cilk_loop): Same.
4071 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4072 Do not fail on error_mark_node.
4073 Abstract increment canonicalization to here...
4074 (c_omp_for_incr_canonicalize_ptr): New.
4075 c-pragma.c (init_pragma): Register "simd" pragma.
4076 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4077 (enum pragma_cilk_clause): New.
4078
9cc65f15
RS
40792013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4080
4081 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4082 wchar_type and host_integerp checks.
4083
18f429e2
AM
40842013-11-14 Andrew MacLeod <amacleod@redhat.com>
4085
4086 * c-common.c: Likewise.
4087 * c-gimplify.c: Likewise.
4088 * cilk.c: Likewise.
4089
d8a2d370
DN
40902013-11-14 Diego Novillo <dnovillo@google.com>
4091
4092 * c-common.c: Include fold-const.h.
4093 Include stor-layout.h.
4094 Include calls.h.
4095 Include stringpool.h.
4096 Include attribs.h.
4097 Include varasm.h.
4098 Include trans-mem.h.
4099 * c-cppbuiltin.c: Include stor-layout.h.
4100 Include stringpool.h.
4101 * c-format.c: Include stringpool.h.
4102 * c-lex.c: Include stringpool.h.
4103 Include stor-layout.h.
4104 * c-pragma.c: Include stringpool.h.
4105 Include attribs.h.
4106 Include varasm.h.
4107 Include gcc-symtab.h.
4108 * c-pretty-print.c: Include stor-layout.h.
4109 Include attribs.h.
4110 * cilk.c: Include stringpool.h.
4111 Include calls.h.
4112
38b7bc7f
JM
41132013-11-13 Joseph Myers <joseph@codesourcery.com>
4114
4115 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4116 * c-common.c (c_common_reswords): Add __auto_type.
4117 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4118
45b0be94
AM
41192013-11-12 Andrew MacLeod <amacleod@redhat.com>
4120
18f429e2
AM
4121 * c-common.c: Include gimplify.h.
4122 * c-gimplify.c: Likewise.
4123 * cilk.c: Likewise.
4124 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4125 * c-ubsan.c: Don't include gimple.h.
45b0be94 4126
582d9b50
JM
41272013-11-12 Joseph Myers <joseph@codesourcery.com>
4128
4129 * c-common.c (c_common_reswords): Add _Thread_local.
4130
6b28e197
JM
41312013-11-09 Joseph Myers <joseph@codesourcery.com>
4132
4133 * c-common.c (atomic_size_supported_p): New function.
4134 (resolve_overloaded_atomic_exchange)
4135 (resolve_overloaded_atomic_compare_exchange)
4136 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4137 Use it instead of comparing size with a local list of sizes.
4138
267bac10
JM
41392013-11-07 Andrew MacLeod <amacleod@redhat.com>
4140 Joseph Myers <joseph@codesourcery.com>
4141
4142 * c-common.h (enum rid): Add RID_ATOMIC.
4143 * c-common.c (c_common_reswords): Add _Atomic.
4144 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4145 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4146 * c-format.c (check_format_types): Check for extra _Atomic
4147 qualifiers in format argument.
4148 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4149 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4150
5157b91e
TB
41512013-11-06 Tobias Burnus <burnus@net-b.de>
4152
4153 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4154
6dbe0958
JM
41552013-11-06 Joseph Myers <joseph@codesourcery.com>
4156
4157 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4158 standards modes.
4159 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4160 to mean lack of IEEE 754 support.
4161
e8ff5196
TB
41622013-11-05 Tobias Burnus <burnus@net-b.de>
4163
4164 * c.opt (-Wdate-time): New option
4165 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4166
254a0760
JM
41672013-11-05 Joseph Myers <joseph@codesourcery.com>
4168
4169 * c-cppbuiltin.c (cpp_iec_559_value): Test
4170 flag_excess_precision_cmdline not flag_excess_precision.
4171
6d7f7e0a
TB
41722013-11-05 Tobias Burnus <burnus@net-b.de>
4173
4174 * c.opt (fopenmp-simd): New option.
4175 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4176 (omp_pragmas): ... this new struct.
4177 (c_pp_lookup_pragma): Also walk omp_pragmas.
4178 (init_pragma): Init pragmas for -fopenmp-simd.
4179
55a7f02f
MP
41802013-11-04 Marek Polacek <polacek@redhat.com>
4181
4182 PR c++/58979
4183 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4184
9193fb05
JM
41852013-11-04 Joseph Myers <joseph@codesourcery.com>
4186
4187 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4188 New functions.
4189 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4190
94159ecf
EB
41912013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4192
4193 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4194 (dump_ada_specs): Adjust prototype of second callback.
4195 * c-ada-spec.c (cpp_check): New global variable.
4196 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4197 (print_generic_ada_decl): Likewise.
4198 (has_static_fields): Change return type to bool and add guard.
4199 (has_nontrivial_methods): New predicate.
4200 (is_tagged_type): Change return type to bool.
4201 (separate_class_package): Call has_nontrivial_methods.
4202 (pp_ada_tree_identifier): Minor tweaks.
4203 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4204 (dump_ada_array_domains): Likewise.
4205 (dump_ada_array_type): Likewise.
4206 (dump_template_types): Remove cpp_check parameter and do not pass it to
4207 dump_generic_ada_node.
4208 (dump_ada_template): Likewise.
4209 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4210 recursively.
4211 (print_ada_methods): Change return type to integer. Remove cpp_check
4212 parameter and do not pass it down.
4213 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4214 dump_generic_ada_node.
4215 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4216 accessing methods.
4217 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4218 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4219 value of print_ada_methods.
4220 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4221 Set cpp_check to it before invoking dump_ada_nodes.
4222 (dump_ada_specs): Likewise.
4223
b906f4ca
MP
42242013-11-03 Marek Polacek <polacek@redhat.com>
4225
4226 * c-ubsan.c: Don't include hash-table.h.
4227 (ubsan_instrument_vla): New function.
4228 * c-ubsan.h: Declare it.
4229
5e20cdc9
DM
42302013-10-31 David Malcolm <dmalcolm@redhat.com>
4231
4232 Automated part of renaming of symtab_node_base to symtab_node.
4233
4234 Patch autogenerated by rename_symtab.py from
4235 https://github.com/davidmalcolm/gcc-refactoring-scripts
4236 revision 58bb219cc090b2f4516a9297d868c245495ee622
4237
4238 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4239 symtab_node_base to symtab_node.
4240
7057e645
ESR
42412013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4242
4243 Implement C++14 digit separators.
4244 * c-lex.c (interpret_float): Remove digit separators from scratch string
4245 before building real literal.
4246
193ea7bc
JJ
42472013-10-30 Jakub Jelinek <jakub@redhat.com>
4248
4249 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4250
939b37da
BI
42512013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4252
4253 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4254 fields.
4255 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4256 enabled.
4257 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4258 (insert_cilk_frame): New prototype.
4259 (cilk_init_builtins): Likewise.
4260 (gimplify_cilk_spawn): Likewise.
4261 (c_cilk_install_body_w_frame_cleanup): Likewise.
4262 (cilk_detect_spawn_and_unwrap): Likewise.
4263 (cilk_set_spawn_marker): Likewise.
4264 (build_cilk_sync): Likewise.
4265 (build_cilk_spawn): Likewise.
4266 * cilk.c: New file.
4267
67348ccc
DM
42682013-10-29 David Malcolm <dmalcolm@redhat.com>
4269
4270 Patch autogenerated by refactor_symtab.py from
4271 https://github.com/davidmalcolm/gcc-refactoring-scripts
4272 revision 58bb219cc090b2f4516a9297d868c245495ee622
4273
4274 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4275 to a true class hierarchy.
4276 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4277
d570872d
RS
42782013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4279
4280 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4281
98906124
JL
42822013-10-26 Jeff Law <law@redhat.com>
4283
adfac8df
JJ
4284 * c-common.c (c_define_builtins): Remove mudflap support.
4285 * c.opt: Ignore and warn for mudflap options.
98906124 4286
d73749df 42872013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4288
4289 PR other/33426
4290 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4291 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4292
3f04b1bb
JM
42932013-10-23 Jason Merrill <jason@redhat.com>
4294
4295 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4296
acf0174b
JJ
42972013-10-11 Jakub Jelinek <jakub@redhat.com>
4298
acd15a28
JJ
4299 * c-common.h (omp_clause_mask::operator !=): New method.
4300 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4301 instead of if (mask & something) tests everywhere.
4302
acf0174b
JJ
4303 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4304 201307 instead of 201107.
4305 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4306 (c_common_attribute_table): Add "omp declare target" and
4307 "omp declare simd" attributes.
4308 (handle_omp_declare_target_attribute,
4309 handle_omp_declare_simd_attribute): New functions.
4310 * c-omp.c: Include c-pragma.h.
4311 (c_finish_omp_taskgroup): New function.
4312 (c_finish_omp_atomic): Add swapped argument, if true,
4313 build the operation first with rhs, lhs arguments and use NOP_EXPR
4314 build_modify_expr.
4315 (c_finish_omp_for): Add code argument, pass it down to make_code.
4316 (c_omp_split_clauses): New function.
4317 (c_split_parallel_clauses): Removed.
4318 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4319 c_omp_declare_simd_clauses_to_decls): New functions.
4320 * c-common.h (omp_clause_mask): New type.
4321 (OMP_CLAUSE_MASK_1): Define.
4322 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4323 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4324 omp_clause_mask::operator |, omp_clause_mask::operator &,
4325 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4326 omp_clause_mask::operator ==): New methods.
4327 (enum c_omp_clause_split): New.
4328 (c_finish_omp_taskgroup): New prototype.
4329 (c_finish_omp_atomic): Add swapped argument.
4330 (c_finish_omp_for): Add code argument.
4331 (c_omp_split_clauses): New prototype.
4332 (c_split_parallel_clauses): Removed.
4333 (c_omp_declare_simd_clauses_to_numbers,
4334 c_omp_declare_simd_clauses_to_decls): New prototypes.
4335 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4336 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4337 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4338 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4339 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4340 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4341 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4342 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4343 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4344 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4345 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4346 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4347 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4348 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4349 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4350 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4351 PRAGMA_OMP_CLAUSE_UNIFORM.
4352
826cacfe
MG
43532013-10-09 Marc Glisse <marc.glisse@inria.fr>
4354
4355 PR tree-optimization/20318
4356 * c-common.c (handle_returns_nonnull_attribute): New function.
4357 (c_common_attribute_table): Add returns_nonnull.
4358
2284b034
MG
43592013-10-03 Marc Glisse <marc.glisse@inria.fr>
4360
4361 PR c++/19476
4362 * c.opt (fcheck-new): Move to common.opt.
4363
b56e9788
MP
43642013-09-25 Marek Polacek <polacek@redhat.com>
4365 Jakub Jelinek <jakub@redhat.com>
4366
4367 PR sanitizer/58413
4368 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4369 an expression if we can prove it is correct.
4370 (ubsan_instrument_division): Likewise. Remove unnecessary
4371 check.
4372
ce6923c5
MP
43732013-09-18 Marek Polacek <polacek@redhat.com>
4374
4375 PR sanitizer/58411
4376 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4377 Declare it.
4378 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4379
fb5610fb
IS
43802013-09-14 Iain Sandoe <iain@codesourcery.com>
4381
4382 PR target/48094
4383 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4384 fobjc-gc, freplace-objc-classes): Accept for LTO.
4385
88b0e79e
JC
43862013-09-13 Jacek Caban <jacek@codeweavers.com>
4387
4388 * c-target.def: New hook
4389
c9b0866a
PC
43902013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4391
4392 PR c++/43452
4393 * c.opt (Wdelete-incomplete): Add.
4394
0af94e6f
JR
43952013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4396
4397 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4398 (vector_types_compatible_elements_p): New function.
4399 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4400 declaration.
4401 (vector_types_compatible_elements_p): Declare.
4402
7c26172c
GDR
44032013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4404
4405 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4406 a virtual member function.
4407 (pp_simple_type_specifier): Remove.
4408 (pp_c_type_specifier): Likewise.
4409 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4410 Rename from pp_c_type_specifier. Adjust.
4411 (c_pretty_printer::c_pretty_printer): Do not assign to
4412 simple_type_specifier.
4413
20059c8b
GDR
44142013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4415
4416 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4417 member function.
4418 (c_pretty_printer::storage_class_specifier): Likewise.
4419 (c_pretty_printer::initializer): Likewise.
4420 (pp_declaration): Remove.
4421 (pp_declaration_specifiers): Likewise.
4422 (pp_abstract_declarator): Likewise.
4423 (pp_declarator): Likewise.
4424 (pp_type_id): Likewise.
4425 (pp_statement): Likewise.
4426 (pp_constant): Likewise.
4427 (pp_id_expression): Likewise.
4428 (pp_primary_expression): Likewise.
4429 (pp_unary_expression): Likewise.
4430 (pp_multiplicative_expression): Likewise.
4431 (pp_conditional_expression): Likewise.
4432 (pp_assignment_expression): Likewise.
4433 (pp_expression): Likewise.
4434 (pp_c_type_id): Likewise.
4435 (pp_c_storage_class_specifier): Likewise.
4436 * c-pretty-print.c (pp_c_type_cast): Tidy.
4437 (pp_c_pointer): Likewise.
4438 (pp_c_type_specifier): Likewise.
4439 (pp_c_parameter_type_list): Likewise.
4440 (pp_c_function_definition): Likewise.
4441 (pp_c_init_declarator): Likewise.
4442 (pp_c_initializer_list): Likewise.
4443 (pp_c_constructor_elts): Likewise.
4444 (c_pretty_printer::direct_abstract_declarator): Likewise.
4445 (c_pretty_printer::declaration_specifiers): Likewise.
4446 (c_pretty_printer::primary_expression): Likewise.
4447 (c_pretty_printer::postfix_expression): Likewise.
4448 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4449 (c_pretty_printer::storage_class_specifier): Rename from
4450 pp_c_storage_class_specifier.
4451 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4452 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4453 storage_class_specifier, initializer, offset_list, flags.
4454
de5a5fa1
MP
44552013-08-30 Marek Polacek <polacek@redhat.com>
4456
4457 * c-ubsan.c: New file.
4458 * c-ubsan.h: New file.
4459
8f0e4d72
GDR
44602013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4461
4462 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4463 member function.
4464 (c_pretty_printer::declaration_specifiers): Likewise.
4465 (c_pretty_printer::declarator): Likewise.
4466 (c_pretty_printer::abstract_declarator): Likewise.
4467 (c_pretty_printer::direct_abstract_declarator): Likewise.
4468 (c_pretty_printer::direct_declarator): Likewise.
4469 (c_pretty_printer::function_specifier): Likewise.
4470 (pp_declaration): Adjust.
4471 (pp_declaration_specifiers): Likewise.
4472 (pp_abstract_declarator): Likewise.
4473 (pp_direct_declarator): Likewise.
4474 (pp_function_specifier): Likewise.
4475 (pp_direct_abstract_declarator): Remove as unused.
4476 (pp_c_declaration): Remove.
4477 (pp_c_declaration_specifiers): Likewise.
4478 (pp_c_declarator): Likewise.
4479 (pp_c_direct_declarator): Likewise.
4480 (pp_c_function_specifier): Likewise.
4481 (pp_c_direct_abstract_declarator): Likewise.
4482 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4483 from pp_c_abstract_declarator. Adjust.
4484 (c_pretty_printer::direct_abstract_declarator): Rename from
4485 pp_c_direct_abstract_declarator. Adjust.
4486 (c_pretty_printer::function_specifier): Rename from
4487 pp_c_function_specifier. Adjust.
4488 (c_pretty_printer::declaration_specifiers): Rename from
4489 pp_c_declaration_specifiers. Adjust.
4490 (c_pretty_printer::direct_declarator): Rename from
4491 pp_c_direct_declarator. Adjust.
4492 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4493 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4494 (c_pretty_printer::c_pretty_printer): Do not assign to
4495 declaration, declaration_specifiers, declarator,
4496 direct_declarator, direct_abstract_declarator, function_specifier.
4497
00d34d3a
GDR
44982013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4499
4500 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4501 virtual member function.
4502 (c_pretty_printer::multiplicative_expression): Likewise.
4503 (c_pretty_printer::conditional_expression): Likewise.
4504 (c_pretty_printer::assignment_expression): Likewise.
4505 (c_pretty_printer::expression): Likewise.
4506 (pp_unary_expression): Adjust.
4507 (pp_multiplicative_expression): Likewise.
4508 (pp_assignment_expression): Likewise.
4509 (pp_conditional_expression): Likewise.
4510 (pp_expression): Likewise.
4511 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4512 from pp_c_unary_expression. Adjust.
4513 (c_pretty_printer::multiplicative_expression): Rename from
4514 pp_c_multiplicative_expression. Adjust.
4515 (c_pretty_printer::conditional_expression): Rename from
4516 pp_c_conditional_expression. Adjust.
4517 (c_pretty_printer::assignment_expression): Rename from
4518 pp_c_assignment_expression. Adjust.
4519 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4520 (c_pretty_printer::c_pretty_printer): Do not assign to
4521 unary_expression, multiplicative_expression,
4522 conditional_expression, expression.
4523
fb22178f
GDR
45242013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4525
4526 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4527 virtual member function.
4528 (pp_postfix_expression): Adjust.
4529 (pp_c_postfix_expression): Remove.
4530 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4531 from pp_c_postfix_expression. Adjust.
4532 (c_pretty_printer::c_pretty_printer): Do not assign to
4533 postfix_expression.
4534
7ecc2600
GDR
45352013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4536
4537 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4538 virtua member function.
4539 (pp_primary_expression): Adjust.
4540 (pp_c_primary_expression): Remove.
4541 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4542 from pp_c_primary_expression. Adjust.
4543 (pp_c_initializer_list): Use pp_primary_expression.
4544 (c_pretty_printer::c_pretty_printer): Do not assign to
4545 primary_expression.
4546
0691175f
GDR
45472013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4548
4549 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4550 * c-pretty-print.c (M_): Remove.
4551 (c_pretty_printer::translate_string): Define.
4552 (pp_c_type_specifier): Use it.
4553 (pp_c_primary_expression): Likewise.
4554 (pp_c_expression): Likewise.
4555
66dfe4c4
GDR
45562013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4557
4558 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4559 virtual function.
4560 (pp_c_id_expression): Remove.
4561 (pp_id_expression): Adjust.
4562 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4563 pp_c_id_expression. Adjust.
4564 (pp_c_postfix_expression): Use pp_id_expression.
4565 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4566
ca43e9d5
GDR
45672013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4568
4569 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4570 member function.
4571 (pp_constant): Adjust.
4572 (pp_c_constant): Remove.
4573 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4574 pp_c_constant. Adjust.
4575 (pp_c_constant)
4576 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4577 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4578
da6ca2b5
GDR
45792013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4580
4581 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4582 (c_pretty_printer::c_pretty_printer): Declare.
4583 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4584 c_pretty_printer_init. Adjust.
4585 (print_c_tree): Do not call c_pretty_printer_init.
4586 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4587
65a372f4
AC
45882013-08-09 Arnaud Charlet <charlet@adacore.com>
4589
4590 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4591
fd9b0f32
PC
45922013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4593
4594 PR c++/58080
4595 * c-common.c (pointer_int_sum): Add bool parameter.
4596 * c-common.h (pointer_int_sum): Adjust declaration.
4597
e0aec1e9
GDR
45982013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4599
4600 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4601 c_pretty_printer variable.
4602
b066401f
GDR
46032013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4604
4605 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4606 (pp_base): Remove.
4607 (pp_c_base): Likewise. Adjust users.
4608 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4609 (pp_c_whitespace): Do not call pp_base.
4610 (pp_c_left_paren): Likewise.
4611 (pp_c_right_paren): Likewise.
4612 (pp_c_left_brace): Likewise.
4613 (pp_c_right_brace): Likewise.
4614 (pp_c_left_bracket): Likewise.
4615 (pp_c_right_bracket): Likewise.
4616 (pp_c_dot): Likewise.
4617 (pp_c_ampersand): Likewise.
4618 (pp_c_star): Likewise.
4619 (pp_c_arrow): Likewise.
4620 (pp_c_semicolon): Likewise.
4621 (pp_c_complement): Likewise.
4622 (pp_c_exclamation): Likewise.
4623 (pp_c_direct_declarator): Likewise.
4624 (pp_c_ws_string): Likewise.
4625 (pp_c_identifier): Likewise.
4626 (pp_c_statement): Likewise.
4627 (print_c_tree): Likewise.
4628
65e5a578
ESR
46292013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4630
4631 PR c++/58072
4632 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4633 provide useful error strings.
4634
137a1a27
GDR
46352013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4636
4637 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4638 printer functions instead of pp_string or operators and punctuators.
4639 (dump_generic_ada_node): Likewise.
4640 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4641 (pp_c_relational_expression): Likewise.
4642 (pp_c_logical_or_expression): Likewise.
4643
07838b13
GDR
46442013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4645
4646 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4647 functions instead of pp_character.
4648 (pp_ada_tree_identifier): Likewise.
4649 (dump_ada_double_name): Likewise.
4650 (dump_ada_function_declaration): Likewise.
4651 (dump_ada_array_domains): Likewise.
4652 (dump_template_types): Likewise.
4653 (dump_generic_ada_node): Likewise.
4654 (print_ada_declaration): Likewise.
4655 (print_ada_struct_decl): Likewise.
4656 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4657
433cc7b0
TT
46582013-07-23 Tom Tromey <tromey@redhat.com>
4659
4660 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4661 * c-common.c (c_common_reswords): Add _Generic.
4662
688010ba
OB
46632013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4664
4665 * c-common.c: Fix typos.
4666 * c-common.h: Likewise.
4667
2a99e5e6
LL
46682013-07-13 Lubos Lunak <l.lunak@suse.cz>
4669
4670 PR c++/55203
4671 * c-common.c (c_common_attribute_table): Add warn_unused.
4672 (handle_warn_unused_attribute): New.
4673
c26302d5
JJ
46742013-07-10 Jakub Jelinek <jakub@redhat.com>
4675
4676 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4677 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4678
dfeadaa0
PC
46792013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4680
4681 PR c++/57869
4682 * c.opt: Add Wconditionally-supported.
4683
6a2fa4b2
GS
46842013-07-08 Graham Stott <graham.stott@btinternet.com>
4685
adfac8df 4686 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4687 unused variables l_length and l_node.
4688
ecdbd01a 46892013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4690
4691 PR c/57821
4692 * c-common.c (complete_array_type): Delay folding first index
4693 like other indices. When folding, check for index overflow.
4694
bedc293e
MG
46952013-06-27 Marc Glisse <marc.glisse@inria.fr>
4696
4697 PR c++/57509
4698 * c-common.h (c_build_vec_perm_expr): New complain argument.
4699 * c-common.c (c_build_vec_perm_expr): Likewise.
4700 Use save_expr also in C++.
4701
604b2bfc
GDR
47022013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4703
4704 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4705 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4706 * c-opts.c (c_common_post_options): Likewise.
4707
dfeadaa0 47082013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4709
4710 * array-notation-common.c (length_mismatch_in_expr): Changed the
4711 parameter type's from a dynamic array to a vec_tree. Also removed
4712 the size parameters.
4713 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4714 the change above.
4715
2ce86d2e
BI
47162013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4717
4718 * c-common.h (struct cilkplus_an_parts): New structure.
4719 (struct cilkplus_an_loop_parts): Likewise.
4720 (cilkplus_extract_an_triplets): New prototype.
4721 (fix_sec_implicit_args): Likewise.
4722 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4723 (fix_sec_implicit_args): Likewise.
604b2bfc 4724
07a6825b
BI
47252013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4726
4727 * array-notation-common.c (find_inv_trees): Removed an unwanted
4728 typecasting.
4729 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4730 enum rid to enum tree_code.
4731
08346abd
JH
47322013-06-11 Jan Hubicka <jh@suse.cz>
4733
4734 * c-common.c (handle_alias_ifunc_attribute): Do not set
4735 DECL_EXTERNAL for weakref variables.
4736 * c-pragma.c (handle_pragma_weak): Make sure aliases
4737 are not declared as external.
4738
d60f1706
BI
47392013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4740
4741 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4742 function from c/c-array-notation.c.
4743 (is_cilkplus_reduce_builtin): Likewise.
4744 (find_rank): Likewise.
4745 (extract_array_notation_exprs): Likewise.
4746 (replace_array_notations): Likewise.
4747 (find_inv_trees): Likewise.
4748 (replace_inv_trees): Likewise.
4749 (contains_array_notation_expr): Likewise.
4750 (find_correct_array_notation_type): Likewise.
4751 * c-common.h (struct inv_list): Moved this struct from the file
4752 c/c-array-notation.c and added a new field called additional tcodes.
4753 (length_mismatch_in_expr_p): New prototype.
4754 (is_cilkplus_reduce_builtin): Likewise.
4755 (find_rank): Likewise.
4756 (extract_array_notation_exprs): Likewise.
4757 (replace_array_notation): Likewise.
4758 (find_inv_trees): Likewise.
4759 (replace_inv_trees): Likewise.
4760 (find_correct_array_notation_type): Likewise.
dfeadaa0 4761
36536d79
BI
47622013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4763
4764 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4765 function array_notation_init_builtins is called.
4766 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4767 * c-common.def (ARRAY_NOTATION_REF): New tree.
4768 * c-common.h (build_array_notation_expr): New function declaration.
4769 (build_array_notation_ref): Likewise.
4770 (extract_sec_implicit_index_arg): New extern declaration.
4771 (is_sec_implicit_index_fn): Likewise.
4772 (ARRAY_NOTATION_CHECK): New define.
4773 (ARRAY_NOTATION_ARRAY): Likewise.
4774 (ARRAY_NOTATION_START): Likewise.
4775 (ARRAY_NOTATION_LENGTH): Likewise.
4776 (ARRAY_NOTATION_STRIDE): Likewise.
4777 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4778 ARRAY_NOTATION_REF.
4779 (pp_c_expression): Likewise.
4780 * c.opt (flag_enable_cilkplus): New flag.
4781 * array-notation-common.c: New file.
4782
f7716d57
JJ
47832013-05-14 Jakub Jelinek <jakub@redhat.com>
4784
4785 PR c++/57274
4786 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4787
a5e0cd1d
MG
47882013-05-10 Marc Glisse <marc.glisse@inria.fr>
4789
4790 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4791 vectors.
4792
f6bc1c4a
HS
47932013-05-07 Han Shen <shenhan@google.com>
4794
4795 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4796
3f12f6e9
SKS
47972013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4798
4799 * c-common.c (check_user_alignment): Emit error for negative values.
4800
61949153
PC
48012013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4802
4803 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4804
e93e18e9
PC
48052013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4806
4807 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4808 __GXX_EXPERIMENTAL_CXX1Y__.
4809
44d90fe1
PC
48102013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4811 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4812
4813 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4814 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4815 to simply use OPT_Wpointer_arith.
4816 (c_sizeof_or_alignof_type): Likewise.
4817
13f39b2e
PC
48182013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4819
4820 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4821
4b84d650
JJ
48222013-04-12 Jakub Jelinek <jakub@redhat.com>
4823
4824 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4825 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4826 specifiers.
4827
fb037b5d
SB
48282013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4829
4830 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4831
4e856798
PC
48322013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4833
4834 * c-common.c (pointer_int_sum): Remove dead code.
4835
4b1baac8
RS
48362013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4837
4838 PR middle-end/56524
4839 * c-common.c (handle_optimize_attribute): Don't call
4840 save_optabs_if_changed.
4841
0b50e654
JJ
48422013-03-05 Jakub Jelinek <jakub@redhat.com>
4843
4844 PR middle-end/56461
4845 * c-pch.c (pch_init): Free target_validity at the end.
4846
48c41403
JJ
48472013-03-04 Jakub Jelinek <jakub@redhat.com>
4848
4849 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4850
e664c61c
KS
48512013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4852 Jakub Jelinek <jakub@redhat.com>
4853
4854 PR sanitizer/56454
4855 * c-common.c (handle_no_sanitize_address_attribute): New function.
4856 (c_common_attribute_table): Add no_sanitize_address attribute.
4857 (handle_no_address_safety_analysis_attribute): Add
4858 no_sanitize_address attribute, not no_address_safety_analysis
4859 attribute.
4860
a475fd3d 48612013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4862
4863 PR target/52555
4864 * c-common.c (handle_optimize_attribute): Call
4865 save_optabs_if_changed.
4866
f6007d99
JJ
48672013-02-18 Jakub Jelinek <jakub@redhat.com>
4868 Steven Bosscher <steven@gcc.gnu.org>
4869
4870 PR pch/54117
4871 * c-opts.c (c_common_post_options): If debug info is enabled
4872 and non-dwarf*, refuse to load PCH files and when writing PCH
4873 file warn.
4874
cf35e2b1
JJ
48752013-02-05 Jakub Jelinek <jakub@redhat.com>
4876
4877 PR middle-end/56167
4878 * c-common.c (handle_error_attribute): Fix condition.
4879
32887460
JJ
48802013-01-30 Jakub Jelinek <jakub@redhat.com>
4881
4882 PR c++/55742
4883 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4884
5af057d8
JM
48852013-01-18 Jason Merrill <jason@redhat.com>
4886
4887 PR target/54908
4888 * c.opt (-fextern-tls-init): New.
4889 * c-opts.c (c_common_post_options): Handle it.
4890
cc83c823
JJ
48912013-01-09 Jakub Jelinek <jakub@redhat.com>
4892
4893 PR c/48418
4894 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4895 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4896 and is either negative or bigger or equal to type precision
4897 of the first operand.
4898
a859517f
MP
48992012-12-03 Marek Polacek <polacek@redhat.com>
4900
4901 PR c/55570
4902 * c-common.c (check_user_alignment): Swap order of tests,
4903 check TREE_CODE first.
4904
2d7aa578
ESR
49052012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4906
4907 PR c++/52654
4908 * c-common.h (overflow_type): New enum.
4909 (build_userdef_literal): Add overflow_type argument.
4910 (tree_userdef_literal): Add overflow_type.
4911 (USERDEF_LITERAL_OVERFLOW): New access macro.
4912 * c-common.c (build_userdef_literal): Add overflow_type
4913 argument.
4914 * c-lex.c (c_lex_with_flags): Add overflow_type to
4915 build_userdef_literal calls.
4916 (interpret_integer, interpret_float): Add overflow_type argument.
4917
cc3c4f62
RB
49182012-11-28 Richard Biener <rguenther@suse.de>
4919
4920 PR c/35634
4921 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4922 here and use a type with proper overflow behavior for types that would
4923 need to be promoted for the arithmetic.
4924
77bc5132
JJ
49252012-11-23 Jakub Jelinek <jakub@redhat.com>
4926
4927 PR sanitizer/55435
4928 * c-common.c (handle_no_address_safety_analysis_attribute): New
4929 function.
4930 (c_common_attribute_table): Add no_address_safety_analysis.
4931
5dc99c46
SB
49322012-11-16 Simon Baldwin <simonb@google.com>
4933
4934 * c.opt: Add f[no-]canonical-system-headers.
4935 * c-opts.c (c_common_handle_option): Handle
4936 OPT_fcanonical_system_headers.
4937
a4a0016d
ESR
49382012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4939
4940 PR c++/54413
4941 * c-opts.c (c_common_handle_option): Set new flags.
4942 * c.opt: Describe new flags.
4943
7dbb85a7
JM
49442012-11-09 Jason Merrill <jason@redhat.com>
4945
4946 * c.opt (Wabi-tag): New.
4947
ad7bac31
AK
49482012-11-09 Andi Kleen <ak@linux.intel.com>
4949
4950 PR 55139
4951 * c-common.c (get_atomic_generic_size): Mask with
4952 MEMMODEL_MASK
4953
7332899a
MLI
49542012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4955
4956 PR c/53063
4957 * c.opt (Wformat): Make it Alias Wformat=1.
4958 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4959 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4960 LangEnabledBy.
4961 (Wformat=): RejectNegative. Use LangEnabledBy.
4962 (Wnonnull): Use LangEnabledBy.
4963 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4964 * c-format.c (set_Wformat): Delete.
4965 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4966 (maybe_read_dollar_number): Likewise.
4967 (avoid_dollar_number): Likewise.
4968 (finish_dollar_format_checking): Likewise.
4969 (check_format_info): Likewise.
4970 (check_format_info_main): Likewise.
4971 (check_format_types): Likewise.
4972 (format_type_warning): Likewise.
4973 * c-common.c (int): Likewise.
4974 (check_function_sentinel): Likewise.
4975 * c-common.h (warn_format,set_Wformat): Do not declare here.
4976
34a180a6
MLI
49772012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4978
4979 PR c/53063
4980 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4981 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4982 Use LangEnabledBy.
4983 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4984 common.opt.
4985 (Wvariadic-macros): Init(1).
4986 * c-opts.c (c_common_handle_option): Do not handle them
4987 explicitly.
4988 (c_common_post_options): Likewise.
4989 (sanitize_cpp_opts): warn_unused_macros is now
4990 cpp_warn_unused_macros.
4991 (push_command_line_include): Likewise.
4992 * c-common.c (warn_unknown_pragmas): Do not define.
4993 * c-common.h (warn_unknown_pragmas): Do not declare.
4994
3f46d6a5
MLI
49952012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4996
4997 PR c/51294
4998 * c-common.c (conversion_warning): Handle conditional expressions.
4999
880661a4
JW
50002012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5001
5002 PR c++/54930
5003 * c.opt (Wreturn_local_addr): Define new option.
5004
4514a96b
JM
50052012-10-25 Jason Merrill <jason@redhat.com>
5006
f14edc1a
JM
5007 * c.opt (Wvirtual-move-assign): New.
5008
4514a96b
JM
5009 * c.opt (Winherited-variadic-ctor): New.
5010
93100c6b
MG
50112012-10-25 Marc Glisse <marc.glisse@inria.fr>
5012
5013 PR c++/54427
5014 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
5015
1efcb8c6
JM
50162012-10-23 Joseph Myers <joseph@codesourcery.com>
5017
5018 * c-common.h (pch_cpp_save_state): Declare.
5019 * c-target.def (c_preinclude): New hook.
5020 * c-opts.c (done_preinclude): New.
5021 (push_command_line_include): Handle default preincluded header.
5022 (cb_file_change): Call pch_cpp_save_state when calling
5023 push_command_line_include.
5024 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
5025 (pch_cpp_save_state): New.
5026 (pch_init): Call pch_cpp_save_state conditionally, instead of
5027 calling cpp_save_state.
5028
4a0ae68e
MLI
50292012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5030
5031 PR c/53063
5032 PR c/40989
5033 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
5034 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
5035 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
5036 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
5037 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
5038 * c-opts.c (c_common_handle_option): Remove explicit handling from
5039 here.
5040 (c_common_post_options): Likewise.
5041
67e4210b
EB
50422012-10-18 Eric Botcazou <ebotcazou@adacore.com>
5043
5044 * c-ada-spec.c (LOCATION_COL): Delete.
5045 (compare_location): New function.
5046 (compare_node): Use it.
5047 (compare_comment): Likewise.
5048
65d4f2cd
MLI
50492012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5050
5051 PR c/53063
5052 PR c/40989
5053 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
5054 * c-opts.c (c_common_handle_option): Do not set them here. Add
5055 comment.
5056 (c_common_post_options): Likewise.
5057
909881cb
EB
50582012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5059
5060 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5061 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5062 Remove POINTER_TYPE handling, add large unsigned handling and use
5063 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5064
3a785c97
JJ
50652012-10-12 Jakub Jelinek <jakub@redhat.com>
5066
5067 PR c/54381
5068 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5069 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5070 locs and array of 3 trees instead of just single loc and single
5071 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5072 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5073 For *cmp* builtins that take two sources strings report warnings
5074 about first and second source, not about destination and source.
5075
5e54f81d
MG
50762012-10-12 Marc Glisse <marc.glisse@inria.fr>
5077
5078 PR c++/53055
5079 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5080
f5b02f1e
EB
50812012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5082
5083 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5084 declaring something coming from another file.
5085
b46dbc6c
AC
50862012-10-10 Arnaud Charlet <charlet@adacore.com>
5087
f5b02f1e 5088 PR ada/54845
b46dbc6c
AC
5089 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5090
5d9de0d0
PC
50912012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5092
5093 PR c++/54194
5094 * c-common.c (warn_about_parentheses): Add location_t parameter;
5095 use EXPR_LOC_OR_LOC.
5096 * c-common.h: Update declaration.
5097
a212e43f
MG
50982012-10-09 Marc Glisse <marc.glisse@inria.fr>
5099
5100 PR c++/54427
5101 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5102 more operations. Make error messages optional.
5103 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5104 (scalar_to_vector): Declare.
5105
b1db7f91
JM
51062012-10-08 Jason Merrill <jason@redhat.com>
5107
5108 * c-common.c (c_common_reswords): Add thread_local.
5109
e28d52cf
DS
51102012-10-08 Dodji Seketeli <dodji@redhat.com>
5111
5112 PR c++/53528 C++11 attribute support
5113 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5114 new functions.
5115 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5116 static function.
5117 (handle_aligned_attribute): In choose strictest alignment
5118 among many. Use new check_cxx_fundamental_alignment_constraints.
5119 (handle_transparent_union_attribute): In c++11 attribute syntax,
5120 don't look through typedefs.
5121
3b78de56
AC
51222012-10-04 Arnaud Charlet <charlet@adacore.com>
5123
5124 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5125 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5126 out of dumpfile.h.
5127
6040bb5f
DC
51282012-09-25 Dehao Chen <dehao@google.com>
5129
5130 PR middle-end/54645
3b78de56 5131 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5132 map when read in the pch.
5133
3f8257db 51342012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5135
5136 * c-ada-spec.c: Style fixes.
5137
3f8257db 51382012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5139
5140 * c.opt (-fada-spec-parent): Define new command line switch.
5141 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5142 is specified, generate binding spec as a child of the specified unit.
5143
0ccb505d
PC
51442012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5145 Manuel López-Ibáñez <manu@gcc.gnu.org>
5146
5147 PR c++/53210
5148 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5149
c583af79
AC
51502012-08-23 Arnaud Charlet <charlet@adacore.com>
5151
5152 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5153 for pointers, and add missing Convention C pragma.
5154 (print_ada_struct_decl): Add missing aliased keyword.
5155 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5156
1a4049e7
JJ
51572012-08-17 Jakub Jelinek <jakub@redhat.com>
5158
5159 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5160 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5161 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5162 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5163 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5164
70b5e7dc
RG
51652012-08-10 Richard Guenther <rguenther@suse.de>
5166
5167 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5168
f8923f7e
SB
51692012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5170
5171 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5172 instead of separate pp_newline and pp_flush.
5173 (print_c_tree): Likewise.
5174
e45abe1f
RH
51752012-07-26 Richard Henderson <rth@redhat.com>
5176
5177 * c-common.c (handle_hot_attribute): Allow labels.
5178 (handle_cold_attribute): Likewise.
5179
332f1d24
JJ
51802012-07-20 Jakub Jelinek <jakub@redhat.com>
5181
5182 PR c++/28656
5183 * c-common.c (check_function_nonnull): Handle multiple nonnull
5184 attributes properly.
5185
7ee2468b
SB
51862012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5187
5188 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5189 * c-ada-spec.c: Likewise.
5190 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5191
ee7b28eb
SB
51922012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5193
5194 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5195 Remove code conditional on it.
5196
6bdf3519
SB
51972012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5198
5199 * c-gimplify.c: Do not include basic-block.h.
5200 * c-common.c: Do not include linfuncs.h.
5201
532aafad
SB
52022012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5203
5204 * c-common.h: Include tree.h.
5205
8d0d1915
JM
52062012-07-02 Jason Merrill <jason@redhat.com>
5207
5208 PR c++/53524
5209 * c-common.c (get_priority): Call default_conversion.
5210
fbc873ad
UB
52112012-07-01 Uros Bizjak <ubizjak@gmail.com>
5212
5213 * c-pch.c (c_common_write_pch): Remove unused variables.
5214
d4a10d0a
SB
52152012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5216
5217 * cppspec.c: Moved from gcc/ to here.
5218
6f3a2e23
KT
52192012-06-27 Kai Tietz <ktietz@redhat.com>
5220
5221 PR preprocessor/37215
5222 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5223
8ca92d04
SB
52242012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5225
5226 * c-common.h (c_common_print_pch_checksum): Remove.
5227 * c-pch.c: Do not include output.h.
5228 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5229 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5230 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5231 (struct c_pch_header): Remove.
5232 (get_ident): Update gpch version.
5233 (pch_init): Do not print executable_checksum to asm_out_file.
5234 Do not fail if there is no asm_out_file to read back from. Set
5235 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5236 (c_common_write_pch): Verify that nothing was written to asm_out_file
5237 since pch_init was called. Do not write a c_pch_header, and do not
5238 copy from asm_out_file to the PCH.
5239 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5240 the content of asm_out_file from the PCH.
5241 (c_common_print_pch_checksum): Remove.
5242 * c-opts.c (c_common_init): Print out executable_checksum directly.
5243
70f42967
SB
52442012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5245
5246 * c-target.def (objc_declare_unresolved_class_reference,
5247 objc_declare_class_definition): Add new hooks.
5248
a8781821
SB
52492012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5250
5251 * c-lex.c: Do not include output.h.
5252 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5253 Remove uses of ASM_OUTPUT_IDENT.
5254
9e1a8dd1
RR
52552012-06-15 Marc Glisse <marc.glisse@inria.fr>
5256
5257 PR c++/51033
5258 * c-common.h (c_build_vec_perm_expr): Move decl here.
5259 * c-common.c (c_build_vec_perm_expr): Move definition
5260 here.
5261
6f07a821
SB
52622012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5263
5264 * c.opt (fconserve-space): Turn into a no-op.
5265
9faeb493 52662012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5267
5268 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5269 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5270 both the start and end of the function.
5271
a4b7d13c
SB
52722012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5273
5274 * c-common.c: Do not include output.h.
5275 * c-pragma.c: Likewise.
5276
c265f413
SA
52772012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5278
5279 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5280 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5281 (lang_decl_name): Handle namespace decls.
5282
be7a421e
SB
52832012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5284
5285 * c-ada-spec.c: Do not include output.h.
5286 * c-semantics.c: Likewise.
5287
65de6659
JM
52882012-05-29 Joseph Myers <joseph@codesourcery.com>
5289
5290 * c-common.c: Fix typo.
5291
ca5f4331
MM
52922012-05-29 Michael Matz <matz@suse.de>
5293
5294 * c-common.h (c_expand_decl): Remove prototype.
5295
4f7f7aca
MLI
52962012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5297
5298 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5299 * c-opts.c (c_common_handle_option): Remove code handling
5300 warn_missing_braces.
5301
4a792f9b
PC
53022012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5303
5304 PR c++/25137
5305 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5306 -Wmissing_braces.
5307
650dc14a
DS
53082012-05-22 Dodji Seketeli <dodji@redhat.com>
5309
5310 PR c++/53322
5311 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5312
9b095bf1
MLI
53132012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5314
5315 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5316 * c-opts.c (c_common_handle_option): Do not handle explicitly
5317 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5318
0b2c4be5
DS
53192012-05-16 Dodji Seketeli <dodji@redhat.com>
5320
5321 PR preprocessor/7263
5322 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5323 to cpp_classify_number. For diagnostics, use the precise location
5324 instead of the global input_location.
5325
a1bde5af
PC
53262012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5327
d02924ef 5328 PR c++/11856
a1bde5af
PC
5329 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5330
d1ede5f4
BS
53312012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5332
a1bde5af 5333 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5334
f2bc201f
MLI
53352012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5336
5337 PR 53063
5338 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5339 Wreorder): Use LangEnabledBy.
5340 * c-opts.c (c_common_handle_option): Do not enable them
5341 explicitly. Call lang-specific generated functions.
5342 (c_common_post_options): Do not set them here.
5343
95744782
MLI
53442012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5345
5346 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5347 Wmissing-field-initializers,Wmissing-parameter-type,
5348 Wold-style-declaration,Woverride-init): Use EnabledBy.
5349 * c-opts.c (c_common_post_options): Do not set here explicitly.
5350
7d5a5747
MLI
53512012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5352
5353 PR 53063
5354 * c-opts.c (c_common_handle_option): Use handle_generated_option
5355 to enable sub-options.
5356
5a3c9cf2
PC
53572012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5358
5359 PR c++/53158
5360 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5361
3ac8781c
RG
53622012-05-10 Richard Guenther <rguenther@suse.de>
5363
5364 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5365 adjust commentary about TYPE_IS_SIZETYPE types.
5366
1e537948
MLI
53672012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5368
5369 PR c++/53261
5370 * c-common.c (warn_logical_operator): Check that argument of
5371 integer_zerop is not NULL.
5372
f2c4a785
MLI
53732012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5374
5375 PR c/43772
5376 * c-common.c (warn_logical_operator): Do not warn if either side
5377 is already true or false.
5378
50f305ca
MLI
53792012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5380
5381 PR c/51712
5382 * c-common.c (expr_original_type): New.
5383 (shorten_compare): Do not warn for enumeration types.
5384
0c3641b0
MLI
53852012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5386
5387 * c.opt (fpermissive): Add Var(flag_permissive).
5388
7edaa4d2
MG
53892012-04-30 Marc Glisse <marc.glisse@inria.fr>
5390
5391 PR c++/51033
5392 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5393 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5394
b9c8da34
DS
53952012-04-30 Dodji Seketeli <dodji@redhat.com>
5396
5397 Add -Wvarargs option
5398 * c.opt (Wvarargs): Define new option.
5399
e6c69da0
MLI
54002012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5401
5402 * c-common.c (check_function_arguments): Replace
5403 Wmissing-format-attribute with Wsuggest-attribute=format.
5404
90137d8f
MLI
54052012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5406
5407 * c.opt (Wsuggest-attribute=format): New. Alias of
5408 Wmissing-format-attribute.
5409 * c-format.c (decode_format_type): Replace
5410 Wmissing-format-attribute with Wsuggest-attribute=format.
5411 (check_function_format): Likewise.
5412
9faeb493 54132012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5414
5415 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5416 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5417 * c.opt: Add Wliteral-suffix.
5418
c1771a20
MLI
54192012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5420
5421 PR c/44774
5422 * c.opt (Wpedantic): New.
5423 (pedantic): Alias Wpedantic.
5424 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5425 (c_common_post_options): Likewise.
5426 (sanitize_cpp_opts): Likewise.
5427 * c-lex.c (interpret_float): Likewise.
5428 * c-format.c (check_format_types): Likewise.
5429 * c-common.c (pointer_int_sum): Likewise.
5430 (c_sizeof_or_alignof_type): Likewise.
5431 (c_add_case_label): Likewise.
5432 (c_do_switch_warnings): Likewise.
5433 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5434
04b391c1
JM
54352012-04-15 Jason Merrill <jason@redhat.com>
5436
5437 PR c++/52818
5438 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5439 (C_STD_NAME): Distinguish between C++98 and C++11.
5440
ac868f29
EB
54412012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5442
5443 PR target/52624
5444 * c-common.h (uint16_type_node): Rename into...
5445 (c_uint16_type_node): ...this.
5446 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5447 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5448
fd4116f4
MLI
54492012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5450
5451 * c-common.c (warn_if_unused_value): Move definition to here.
5452 * c-common.h (warn_if_unused_value): Move declaration to here.
5453
573ac65e
WB
54542012-03-23 William Bader <williambader@hotmail.com>
5455
5456 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5457
552b8185
JM
54582012-03-20 Jason Merrill <jason@redhat.com>
5459
5460 * c-common.h (enum cxx_dialect): Add cxx1y.
5461 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5462 test.
5463 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5464 * c-opts.c (c_common_post_options): Likewise.
5465 (set_std_cxx1y): New.
5466 (c_common_handle_option): Call it.
5467 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5468
04398fa8
PC
54692012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5470
5471 PR c++/14710
5472 * c.opt ([Wuseless-cast]): Add.
5473
d2a12ae7
RG
54742012-03-16 Richard Guenther <rguenther@suse.de>
5475
5476 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5477
a12bf402
MLI
54782012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5479
5480 PR c++/44783
5481 * c.opt (ftemplate-backtrace-limit) Add.
5482
5c30094f
RO
54832012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5484
5485 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5486 handling.
5487 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5488 (init_pragma): Don't register extern_prefix.
5489
21fa2faf
RG
54902012-03-12 Richard Guenther <rguenther@suse.de>
5491
5492 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5493 (builtin_type_for_size): Likewise.
5494
e3793c6f
JJ
54952012-02-13 Jakub Jelinek <jakub@redhat.com>
5496
5497 PR c++/52215
5498 * c-common.c (sync_resolve_params): Don't decide whether to convert
5499 or not based on TYPE_SIZE comparison, convert whenever arg_type
5500 is unsigned INTEGER_TYPE.
5501
93286335
PC
55022012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5503
5504 PR c/52118
5505 * c.opt ([Wunused-local-typedefs]): Fix description.
5506
7a421706
MS
55072012-01-24 Mike Stump <mikestump@comcast.net>
5508
5509 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5510 exactly.
5511
ba9b1f11
RG
55122012-01-18 Richard Guenther <rguenther@suse.de>
5513
5514 * c-opts.c (c_common_post_options): Reset LTO flags if
5515 we are about to generate a PCH.
5516
465406be
PC
55172012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5518
5519 PR c++/51777
5520 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5521 use pp_unsigned_wide_integer.
5522
aee15221
RG
55232012-01-10 Richard Guenther <rguenther@suse.de>
5524
5525 PR middle-end/51806
5526 * c-opts.c (c_common_handle_option): Move -Werror handling
5527 to language independent code.
5528
5720c0dc
RG
55292012-01-05 Richard Guenther <rguenther@suse.de>
5530
5531 PR middle-end/51764
5532 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5533 from common.opt.
5534
73ac190a
PC
55352011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5536
5537 PR c++/51316
5538 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5539 of array types with an unknown bound.
5540
48b0b196
JM
55412011-12-20 Joseph Myers <joseph@codesourcery.com>
5542
5543 * c-common.c (flag_isoc99): Update comment to refer to C11.
5544 (flag_isoc1x): Change to flag_isoc11.
5545 * c-common.h (flag_isoc99): Update comment to refer to C11.
5546 (flag_isoc1x): Change to flag_isoc11.
5547 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5548 C11.
5549 * c-opts.c (set_std_c1x): Change to set_std_c11.
5550 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5551 Call set_std_c11.
5552 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5553 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5554 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5555 standard.
5556 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5557 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5558 (std=gnu1x): Make alias of std=gnu11.
5559
d58d6eb5
JM
55602011-12-19 Jason Merrill <jason@redhat.com>
5561
5562 PR c++/51228
5563 * c-common.c (handle_transparent_union_attribute): Check the first
5564 field if the type is complete.
5565
b3908fcc
JW
55662011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5567
5568 PR libstdc++/51365
5569 * c-common.c (RID_IS_FINAL): Add.
5570 * c-common.h (RID_IS_FINAL): Add.
5571
fea3ca91
IS
55722011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5573
5574 * c.opt (fgnu-runtime): Provide full description.
5575 (fnext-runtime): Likewise.
5576 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5577
62bad7cd
AM
55782011-11-28 Andrew MacLeod <amacleod@redhat.com>
5579
5580 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5581 predefines in one place. Add LOCK_FREE predefines.
5582 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5583 new func.
5584
c466c4ff
AM
55852011-11-24 Andrew MacLeod <amacleod@redhat.com>
5586
5587 PR c/51256
9faeb493 5588 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5589 conditions
9faeb493
UB
5590 (resolve_overloaded_atomic_exchange,
5591 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5592 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5593 error_mark_node for error conditions.
9faeb493 5594
a5952633
RG
55952011-11-08 Richard Guenther <rguenther@suse.de>
5596
5597 PR middle-end/51010
5598 c-family/
5599
0a35513e
AH
56002011-11-07 Richard Henderson <rth@redhat.com>
5601 Aldy Hernandez <aldyh@redhat.com>
5602 Torvald Riegel <triegel@redhat.com>
5603
5604 Merged from transactional-memory.
5605
5606 * c-common.c (handle_tm_wrap_attribute,
5607 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5608 (struct c_common_reswords): Added __transaction* keywords.
5609 (struct c_common_attribute_table): Added transaction* and tm_regparm
5610 attributes.
5611 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5612 masks.
5613 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5614 find_tm_attribute): Declare.
5615
6d87092d
JM
56162011-11-07 Jason Merrill <jason@redhat.com>
5617
5618 PR c++/35688
5619 * c-common.c, c-common.h: Revert yesterday's changes.
5620
8e7860a1
JM
56212011-11-06 Jason Merrill <jason@redhat.com>
5622
5623 PR c++/35688
5624 * c-common.c (decl_has_visibility_attr): Split out from...
5625 (c_determine_visibility): ...here.
5626 * c-common.h: Declare it.
5627
d19fa6b5
JM
56282011-11-06 Joseph Myers <joseph@codesourcery.com>
5629
5630 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5631 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5632 type.
5633 (check_user_alignment): New. Split out of
5634 handle_aligned_attribute. Disallow integer constants with
5635 noninteger types. Conditionally allow zero.
5636 (handle_aligned_attribute): Use check_user_alignment.
5637 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5638
86951993
AM
56392011-11-06 Andrew MacLeod <amacleod@redhat.com>
5640 Richard Henderson <rth@redhat.com>
5641
5642 Merged from cxx-mem-model.
5643
5644 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5645 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5646 parameters that are the same type size.
5647 (get_atomic_generic_size): New. Find size of generic
5648 atomic function parameters and do typechecking.
5649 (add_atomic_size_parameter): New. Insert size into parameter list.
5650 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5651 either __atomic_exchange_n or external library call.
9faeb493 5652 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5653 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5654 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5655 __atomic_load_n or an external library call.
5656 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5657 __atomic_store_n or an external library call.
5658 (resolve_overloaded_builtin): Handle new __atomic builtins.
5659
cf9e9959
EB
56602011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5661
5662 PR c++/50608
5663 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5664 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5665 <INDIRECT_REF>: Return the argument.
5666 <ARRAY_REF>: Remove special code for negative offset.
5667 Call fold_build_pointer_plus instead of size_binop.
5668 (fold_offsetof): Remove STOP_REF argument and adjust.
5669 * c-common.h (fold_offsetof_1): Declare.
5670 (fold_offsetof): Remove STOP_REF argument.
5671
25339f10
JM
56722011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5673
5674 PR c++/50810
5675 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5676 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5677 Wnarrowing for C++0x and C++98.
5678 * c.opt ([Wnarrowing]): Update.
5679
89401152
PC
56802011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5681
5682 PR c++/44277
5683 * c.opt: Add Wzero-as-null-pointer-constant.
5684
97e3ad20
JM
56852011-10-31 Jason Merrill <jason@redhat.com>
5686
15694fdd
JM
5687 * c.opt (-fdeduce-init-list): Off by default.
5688
97e3ad20
JM
5689 PR c++/50920
5690 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5691 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5692 and -Wc++11-compat.
5693 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5694
fb9120e3
RAV
56952011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5696
5697 PR c++/30066
5698 * c.opt (fvisibility-inlines-hidden): Description change.
5699
3ce4f9e4
ESR
57002011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5701
5702 Implement C++11 user-defined literals.
5703 * c-common.c (build_userdef_literal): New.
5704 * c-common.def: New tree code.
5705 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5706 * c-lex.c (interpret_float): Add suffix parm.
5707 (c_lex_with_flags): Build literal tokens.
5708
5f53c243
PC
57092011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5710
5711 PR c++/50841
5712 Revert:
5713 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5714
5715 PR c++/50810
5716 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5717 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5718 Wnarrowing for C++0x and C++98.
5719 * c.opt ([Wnarrowing]): Update.
5720
263734e1
PC
57212011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5722
5723 PR c++/50810
5724 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5725 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5726 Wnarrowing for C++0x and C++98.
5727 * c.opt ([Wnarrowing]): Update.
5728
d2e312d7
PC
57292011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5730
5731 PR c++/45385
5732 * c-common.c (conversion_warning): Remove code looking for
5733 artificial operands.
5734
d17687f6
DS
57352011-10-18 Dodji Seketeli <dodji@redhat.com>
5736
5737 PR bootstrap/50760
5738 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5739 !NO_IMPLICIT_EXTERN_C.
d17687f6 5740
fc8396e9
PC
57412011-10-17 Michael Spertus <mike_spertus@symantec.com>
5742
5743 * c-common.c (c_common_reswords): Add __bases,
5744 __direct_bases.
5745 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5746
57472011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5748
5749 PR c++/50757
5750 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5751
847e697a
TT
57522011-10-15 Tom Tromey <tromey@redhat.com>
5753 Dodji Seketeli <dodji@redhat.com>
5754
5755 * c.opt (fdebug-cpp): New option.
5756 * c-opts.c (c_common_handle_option): Handle the option.
5757 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5758 output stream in parameter. Factorized from ...
5759 (maybe_print_line): ... this. Dump location debug information when
5760 -fdebug-cpp is in effect.
5761 (print_line_1): New static function. Takes an output stream in
5762 parameter. Factorized from ...
5763 (print_line): ... here. Dump location information when -fdebug-cpp
5764 is in effect.
5765 (scan_translation_unit): Dump location information when
5766 -fdebug-cpp is in effect.
5767
92582b75
TT
57682011-10-15 Tom Tromey <tromey@redhat.com>
5769 Dodji Seketeli <dodji@redhat.com>
5770
5771 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5772 without argument.
5773 * c-opts.c (c_common_handle_option)<case
5774 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5775 cases. Handle -ftrack-macro-expansion with and without argument.
5776
46427374
TT
57772011-10-15 Tom Tromey <tromey@redhat.com>
5778 Dodji Seketeli <dodji@redhat.com>
5779
5780 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5781 (print_line, cb_define, do_line_change): Adjust to avoid touching
5782 the internals of struct line_map. Use the public API instead.
5783 * c-pch.c (c_common_read_pch): Likewise.
5784 * c-lex.c (fe_file_change): Likewise.
5785
fc8396e9
PC
57862011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5787
5788 PR c++/17212
5789 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5790
57912011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5792
5793 PR c++/33067
5794 * c-pretty-print.c (pp_c_floating_constant): Output
5795 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5796
e79983f4
MM
57972011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5798
5799 * c-common.c (def_builtin_1): Delete old interface with two
5800 parallel arrays to hold standard builtin declarations, and replace
5801 it with a function based interface that can support creating
5802 builtins on the fly in the future. Change all uses, and poison
5803 the old names. Make sure 0 is not a legitimate builtin index.
5804 * c-omp.c (c_finish_omp_barrier): Ditto.
5805 (c_finish_omp_taskwait): Ditto.
5806 (c_finish_omp_flush): Ditto.
5807
6637388f
TG
58082011-10-11 Tristan Gingold <gingold@adacore.com>
5809
5810 * c.opt: (fallow-parameterless-variadic-functions): New.
5811
3797cb21
DS
58122011-09-08 Dodji Seketeli <dodji@redhat.com>
5813
5814 PR c++/33255 - Support -Wunused-local-typedefs warning
5815 * c-common.h (struct c_language_function::local_typedefs): New
5816 field.
9faeb493
UB
5817 (record_locally_defined_typedef, maybe_record_typedef_use)
5818 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5819 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5820 (maybe_record_typedef_use)
5821 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5822 * c.opt: Declare new -Wunused-local-typedefs flag.
5823
693ddb1b
EB
58242011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5825
5826 PR middle-end/50266
5827 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5828 computations.
5829
830c740f
RG
58302011-09-05 Richard Guenther <rguenther@suse.de>
5831
5832 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5833 of integer_minus_one_node for empty array upper bounds.
5834
892a371f
DS
58352011-08-28 Dodji Seketeli <dodji@redhat.com>
5836
5837 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5838 it's the first time it's being called on this main TU.
5839
0e3fdb48
RB
58402011-08-24 Richard Guenther <rguenther@suse.de>
5841
5842 PR c/49396
5843 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5844
58452011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5846
5847 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5848 defined in cpp_init_builtins and c_cpp_builtins.
5849
d4a83c10
JM
58502011-08-19 Joseph Myers <joseph@codesourcery.com>
5851
5852 * c-common.c (c_common_reswords): Add __builtin_complex.
5853 * c-common.h (RID_BUILTIN_COMPLEX): New.
5854
bbceee64
JM
58552011-08-18 Joseph Myers <joseph@codesourcery.com>
5856
5857 * c-common.c (c_common_reswords): Add _Noreturn.
5858 (keyword_is_function_specifier): Handle RID_NORETURN.
5859 * c-common.h (RID_NORETURN): New.
5860
3f8257db 58612011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5862
5863 * c-common.c (unsafe_conversion_p): New function. Check if it is
5864 unsafe to convert an expression to the type.
5865 (conversion_warning): Adjust, use unsafe_conversion_p.
5866 * c-common.h (unsafe_conversion_p): New function declaration.
5867
20906c66
JJ
58682011-08-02 Jakub Jelinek <jakub@redhat.com>
5869
5870 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5871 (c_finish_omp_taskyield): New prototype.
5872 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5873 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5874 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5875 or RHS1 have side-effects, evaluate those too in the right spot,
5876 if it is a decl and LHS is also a decl, error out if they
5877 aren't the same.
5878 (c_finish_omp_taskyield): New function.
5879 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5880 * c-pragma.c (omp_pragmas): Add taskyield.
5881 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5882 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5883 PRAGMA_OMP_CLAUSE_MERGEABLE.
5884
770e5a2e
DS
58852011-07-25 Dodji Seketeli <dodji@redhat.com>
5886
5887 * c-common.h (set_underlying_type): Remove parm name from
5888 declaration.
5889
1baae426
RG
58902011-07-25 Romain Geissler <romain.geissler@gmail.com>
5891
5892 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5893
fcb21722
JM
58942011-07-22 Jason Merrill <jason@redhat.com>
5895
76f86d00
JM
5896 PR c++/49793
5897 * c.opt (Wnarrowing): New.
5898
3a636414
JM
5899 PR c++/30112
5900 * c-common.h: Declare c_linkage_bindings.
5901 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5902
fcb21722
JM
5903 PR c++/49813
5904 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5905 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5906 as flag_isoc99 for 'restrict'.
5907 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5908
02614448
ILT
59092011-07-21 Ian Lance Taylor <iant@google.com>
5910
5911 PR middle-end/49705
5912 * c-common.c (c_disable_warnings): New static function.
5913 (c_enable_warnings): New static function.
5914 (c_fully_fold_internal): Change local unused_p to bool. Call
5915 c_disable_warnings and c_enable_warnings rather than change
5916 c_inhibit_evaluation_warnings.
5917
34429675
JM
59182011-07-20 Jason Merrill <jason@redhat.com>
5919
5920 PR c++/6709 (DR 743)
5921 PR c++/42603 (DR 950)
5922 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5923 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5924 (CPP_DECLTYPE): New.
5925 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5926
5d49b6a7
RG
59272011-07-19 Richard Guenther <rguenther@suse.de>
5928
5929 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5930 * c-omp.c (c_finish_omp_for): Likewise.
5931
e84a58ff
EB
59322011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5933
5934 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5935 body on the next line.
5936
329af3c7
JM
59372011-07-08 Jason Merrill <jason@redhat.com>
5938
4063e61b
JM
5939 PR c++/45437
5940 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5941
329af3c7
JM
5942 PR c++/49673
5943 * c-common.c (c_apply_type_quals_to_decl): Don't check
5944 TYPE_NEEDS_CONSTRUCTING.
5945
1a072294
RG
59462011-07-06 Richard Guenther <rguenther@suse.de>
5947
5948 * c-common.c (c_common_nodes_and_builtins):
5949 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5950
fce5dddd
RG
59512011-07-05 Richard Guenther <rguenther@suse.de>
5952
5953 * c-common.c (c_common_nodes_and_builtins): Build all common
5954 tree nodes first.
5955
45d439ac
JJ
59562011-06-27 Jakub Jelinek <jakub@redhat.com>
5957
56300785
JJ
5958 * c-common.h (c_tree_chain_next): New static inline function.
5959
45d439ac
JJ
5960 * c-common.c (check_builtin_function_arguments): Handle
5961 BUILT_IN_ASSUME_ALIGNED.
5962
e0a8ecf2
AM
59632011-06-21 Andrew MacLeod <amacleod@redhat.com>
5964
5965 * c-common.c: Add sync_ or SYNC__ to builtin names.
5966 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5967
59682011-06-20 Pierre Vittet <piervit@pvittet.com>
5969
5970 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5971 handler.
5972 (gen_pragma_handler): New union.
5973 (internal_pragma_handler): New type.
5974 (c_register_pragma_with_data)
5975 (c_register_pragma_with_expansion_and_data): New functions.
5976
5977 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5978 (c_register_pragma, c_register_pragma_with_expansion)
5979 (c_invoke_pragma_handler): Changed to work with
5980 internal_pragma_handler.
5981 (c_register_pragma_with_data)
5982 (c_register_pragma_with_expansion_and_data): New functions.
5983
677f3fa8
JM
59842011-06-14 Joseph Myers <joseph@codesourcery.com>
5985
5986 * c-common.c: Include common/common-target.h.
5987 (handle_section_attribute): Use
5988 targetm_common.have_named_sections.
5989 * c-cppbuiltin.c: Include common/common-target.h.
5990 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5991
d7fc8c14
RG
59922011-06-10 Richard Guenther <rguenther@suse.de>
5993
5994 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5995 to print a IDENTIFIER_NODE.
5996
10e48e39
RO
59972011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5998 Joseph Myers <joseph@codesourcery.com>
5999
6000 * c.opt (fbuilding-libgcc): New option.
6001 * c-cppbuiltin.c (c_cpp_builtins): Define
6002 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
6003
6976ae51
JM
60042011-06-07 Jason Merrill <jason@redhat.com>
6005
3ff60975
JM
6006 * c-common.c (max_tinst_depth): Lower default to 900.
6007
6976ae51
JM
6008 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
6009
009db074
RG
60102011-06-07 Richard Guenther <rguenther@suse.de>
6011
6012 * c-common.c (c_common_nodes_and_builtins): Do not set
6013 size_type_node or call set_sizetype.
6014
b4592b92
DS
60152011-06-07 Dodji Seketeli <dodji@redhat.com>
6016
6017 PR debug/49130
6018 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 6019 type when using pointer comparison to compare types.
b4592b92 6020
014ab419
JW
60212011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
6022
6023 * c.opt: Add -Wdelete-non-virtual-dtor.
6024 * c-opts.c (c_common_handle_option): Include it in -Wall.
6025
4f60111f
NF
60262011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6027
6028 PR bootstrap/49190
6029
6030 Revert:
6031 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6032
6033 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6034 not tree_common.
6035
4cc4f2f4
JJ
60362011-05-27 Jakub Jelinek <jakub@redhat.com>
6037
6038 PR c++/49165
6039 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
6040 C++ don't call c_common_truthvalue_conversion on void type arms.
6041
38e01f9e
NF
60422011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6043
6044 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
6045 (stmt_list_stack): Define.
6046 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6047 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
6048
92e948a8
NF
60492011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6050
6051 * c-common.c (warning_candidate_p): Check for BLOCKs.
6052
a2fc3e63
NF
60532011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6054
6055 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6056 not tree_common.
6057
0957c029
JJ
60582011-05-25 Jakub Jelinek <jakub@redhat.com>
6059
6060 * c-common.c (def_fn_type): Remove extra va_end.
6061
828fb3ba
JM
60622011-05-23 Jason Merrill <jason@redhat.com>
6063
6064 PR c++/48106
6065 * c-common.c (c_common_get_narrower): New.
6066 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6067
dde05067
NF
60682011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6069
6070 * c-common.h (check_function_arguments): Tweak prototype of
6071 check_function_arguments.
6072 * c-common.c (check_function_arguments): Likewise. Adjust
6073 calls to check_function_nonnull, check_function_format, and
6074 check_function_sentinel.
6075 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6076 separate attributes and typelist arguments. Use
6077 FOREACH_FUNCTION_ARGS to iterate over argument types.
6078
3c0d13bf
PC
60792011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6080
6081 * c-common.c (c_common_reswords): Reorder.
6082 * c-common.h (rid): Likewise.
6083
8242dd04
NF
60842011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6085
6086 * c-common.c (def_fn_type): Don't call build_function_type, call
6087 build_function_type_array or build_varargs_function_type_array
6088 instead.
6089 (c_common_nodes_and_builtins): Likewise.
6090
3d528853
NF
60912011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6092
6093 * c-common.c (c_add_case_label): Omit the loc argument to
6094 build_case_label.
6095 * c-common.h (build_case_label): Remove.
6096 * c-semantics.c (build_case_label): Remove.
6097
a04a722b
JM
60982011-05-05 Joseph Myers <joseph@codesourcery.com>
6099
6100 * c-objc.h (objc_start_method_definition): Update prototype.
6101 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6102
e19a18d4
NF
61032011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6104
6105 * c-common.c (check_main_parameter_types): Reindent. Don't use
6106 TYPE_ARG_TYPES directly.
6107 (handle_nonnull_attribute): Likewise.
6108 (sync_resolve_params): Likewise.
6109 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6110 to check_format_string.
6111 (handle_format_attribute): Likewise.
6112 (check_format_string): Take a function type to examine instead of
6113 a type list. Use a function_arg_iterator to step through argument
6114 types.
6115
c62c040f
RG
61162011-05-04 Richard Guenther <rguenther@suse.de>
6117
6118 * c-common.c (fix_string_type): Use size_int for index type bounds.
6119 (start_fname_decls): Do not pass NULL to build_int_cst.
6120 (c_init_attributes): Likewise.
6121 * c-lex.c (c_lex_with_flags): Likewise.
6122
c12ff9d8
JM
61232011-04-27 Jason Merrill <jason@redhat.com>
6124
6125 * c-common.c (make_tree_vector_from_list): New.
6126 * c-common.h: Declare it.
6127
304dfbe3
RG
61282011-04-26 Richard Guenther <rguenther@suse.de>
6129
6130 PR preprocessor/48248
6131 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6132 for output size with -P.
6133
3c0d13bf
PC
61342011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6135
6136 * c-common.c (struct c_common_resword): Add __underlying_type.
6137 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6138
04695783
JM
61392011-04-20 Jim Meyering <meyering@redhat.com>
6140
6141 * c-format.c (init_dollar_format_checking): Remove useless
6142 if-before-free.
6143
0dc33c3c
NP
61442011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6145
6146 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6147 (objc_detect_field_duplicates): New.
0dc33c3c 6148 * stub-objc.c: Likewise.
3c0d13bf 6149
c59633d9
NP
61502011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6151
6152 * stub-objc.c (objc_declare_protocols): Renamed to
6153 objc_declare_protocol.
6154 * c-objc.h: Likewise.
3c0d13bf 6155
32dabdaf
NP
61562011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6157
6158 * stub-objc.c (objc_declare_class): Updated argument name.
6159
81f653d6
NF
61602011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6161
6162 * c-common.h (c_common_init_ts): Declare.
6163 * c-common.c (c_common_init_ts): Define.
6164
eb345401
NP
61652011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6166
6167 * c-objc.h (objc_build_message_expr): Updated prototype.
6168 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6169
a358e188
MJ
61702011-04-12 Martin Jambor <mjambor@suse.cz>
6171
6172 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6173 of cgraph_node.
6174
e6313a78
RG
61752011-04-11 Richard Guenther <rguenther@suse.de>
6176
6177 * c-common.c (complete_array_type): Build a range type of
6178 proper type.
6179
dcf0c47e
NF
61802011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6181
6182 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6183 (handle_type_generic_attribute): Likewise.
6184
1ee44b26
JM
61852011-04-07 Jason Merrill <jason@redhat.com>
6186
6187 PR c++/48450
6188 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6189 conversion from C++0x scoped enum.
6190
acce4e77
JM
61912011-04-06 Joseph Myers <joseph@codesourcery.com>
6192
6193 * c-target-def.h: New file.
6194 * c-target.def: New file.
6195 * c-target.h: New file.
6196 * c-common.c (targetcm): Don't define here.
6197 * c-common.h (default_handle_c_option): Declare.
6198 * c-format.c: Include c-target.h instead of target.h.
6199 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6200 include tm.h.
6201 (default_handle_c_option): Move from targhooks.c.
6202
e2eefb55
JJ
62032011-03-29 Jakub Jelinek <jakub@redhat.com>
6204
6205 PR preprocessor/48248
6206 * c-ppoutput.c (print): Add src_file field.
6207 (init_pp_output): Initialize it.
6208 (maybe_print_line): Don't optimize by adding up to 8 newlines
6209 if map->to_file and print.src_file are different file.
6210 (print_line): Update print.src_file.
6211
ba78087b
KT
62122011-03-25 Kai Tietz <ktietz@redhat.com>
6213
6214 * c-ada-spec.c (compare_comment): Use filename_cmp
6215 instead of strcmp for filename.
6216
0edf1bb2
JL
62172011-03-25 Jeff Law <law@redhat.com>
6218
adfac8df 6219 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6220
c7dc8804
JM
62212011-03-25 Jason Merrill <jason@redhat.com>
6222
6223 * c.opt: Add -std=c++03.
6224
d1d879b1
EB
62252011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6226
6227 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6228
3f8257db 62292011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6230
6231 PR target/12171
5050afdf
KT
6232 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6233 Display allowed attributes for function pointer types.
6234 (pp_c_attributes_display): New function to display
6235 attributes having affects_type_identity flag set to true.
6236 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6237
62d784f7
KT
6238 * c-common.c (c_common_attribute_table):
6239 Add new element.
6240 (c_common_format_attribute_table): Likewise.
6241
82d37118
JM
62422011-03-18 Jason Merrill <jason@redhat.com>
6243
49a000c3
JM
6244 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6245 * c-common.h: Don't declare it here.
6246 * c-common.c: Or define it here.
6247 * c-opts.c (c_common_handle_option): Or set it here.
6248
82d37118
JM
6249 PR c++/35315
6250 * c-common.c (handle_transparent_union_attribute): Don't
6251 make a duplicate type in C++.
6252
17bc631c
JM
62532011-03-15 Jason Merrill <jason@redhat.com>
6254
6255 * c-common.c (max_constexpr_depth): New.
6256 * c-common.h: Declare it.
6257 * c-opts.c (c_common_handle_option): Set it.
6258 * c.opt (fconstexpr-depth): New option.
6259
1b9b91a6
JM
62602011-03-11 Jason Merrill <jason@redhat.com>
6261
f231b5ff
JM
6262 * c-common.c (attribute_takes_identifier_p): Add missing const.
6263
1b9b91a6
JM
6264 PR c++/46803
6265 * c-common.c (attribute_takes_identifier_p): Assume that an
6266 unknown attribute takes an identifier.
6267
a19e4d44
NF
62682011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6269
6270 PR c/47786
6271 * c-common.c (c_type_hash): Call list_length instead of iterating
6272 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6273
982d62f6
JJ
62742011-02-19 Jakub Jelinek <jakub@redhat.com>
6275
6276 PR c/47809
6277 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6278
0a256240
NP
62792011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6280
6281 * c.opt (fobjc-abi-version=) New.
6282 (fobjc-nilcheck): New.
6283
ba9e6dd5
NF
62842011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6285
6286 PR c++/46890
6287 * c-common.h (keyword_is_decl_specifier): Declare.
6288 * c-common.c (keyword_is_decl_specifier): Define.
6289 (keyword_is_function_specifier): New function.
6290
7273813a
JJ
62912011-01-26 Jakub Jelinek <jakub@redhat.com>
6292
6293 PR c/47473
6294 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6295 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6296 REAL_TYPE.
6297
908ef79b
AC
62982011-01-26 Arnaud Charlet <charlet@adacore.com>
6299
6300 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6301
237e9384
JJ
63022011-01-26 Jakub Jelinek <jakub@redhat.com>
6303
6304 PR pch/47430
6305 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6306 after init_c_lex if pch_file is set.
6307
47ea1edf
DK
63082011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6309
d4dba752 6310 PR c++/43601
47ea1edf
DK
6311 * c.opt (-fkeep-inline-dllexport): New switch.
6312
2aa9c6ae
RG
63132011-01-12 Richard Guenther <rguenther@suse.de>
6314
6315 PR middle-end/32511
6316 * c-common.c (handle_weak_attribute): Warn instead of error
6317 on declaring an inline function weak.
6318
7bd11157
TT
63192011-01-05 Tom Tromey <tromey@redhat.com>
6320
6321 * c-common.h (lvalue_error): Update.
6322 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6323 not error.
6324
0e66e494 63252010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6326
b4f588c4
NP
6327 PR objc/47075
6328 * c-objc.h (objc_finish_message_expr): Added argument to
6329 prototype.
6330
f4da8dce
NF
63312010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6332
6333 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6334 Use prototype_p.
6335
46270f14
NP
63362010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6337
6338 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6339 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6340
4816c593
NF
63412010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6342
6343 * c-common.h (readonly_error): Declare.
6344 * c-common.c (readonly_error): Define.
6345
7a6daeb0
NF
63462010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6347
6348 * c-common.h (invalid_indirection_error): Declare.
6349 * c-common.c (invalid_indirection_error): Define.
6350
892f6119
RG
63512010-12-03 Richard Guenther <rguenther@suse.de>
6352
6353 PR c/46745
6354 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6355 (pp_c_unary_expression): Likewise.
6356 (pp_c_expression): Likewise.
6357
6c39e757
NP
63582010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6359
6360 * c-common.h (objc_finish_function): New.
6361 (objc_non_volatilized_type): Removed.
6362 (objc_type_quals_match): Removed.
6363 * stub-objc.c (objc_finish_function): New.
6364 (objc_non_volatilized_type): Removed.
6365 (objc_type_quals_match): Removed.
9faeb493 6366
7c475d11
JM
63672010-11-30 Joseph Myers <joseph@codesourcery.com>
6368
6369 * c-common.h (parse_optimize_options): Declare.
6370 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6371 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6372
71f3e391
JM
63732010-11-29 Joseph Myers <joseph@codesourcery.com>
6374
6375 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6376 GET_ENVIRONMENT.
6377 * c-pch.c (O_BINARY): Don't define here.
6378 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6379
d5fabb58
JM
63802010-11-25 Joseph Myers <joseph@codesourcery.com>
6381
6382 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6383 targetm.except_unwind_info.
6384
299404a1
JM
63852010-11-23 Joseph Myers <joseph@codesourcery.com>
6386
6387 * c-opts.c (c_common_handle_option): Pass location to
6388 set_struct_debug_option.
6389
c98cd5bf
JM
63902010-11-23 Joseph Myers <joseph@codesourcery.com>
6391
6392 * c-common.c (visibility_options): Move from ../opts.c.
6393 * c-common.h (struct visibility_flags, visibility_options):
6394 Declare here.
6395 * c-opts.c (finish_options): Rename to c_finish_options.
6396 (c_common_init): Update call to finish_options.
6397
a9546771
NP
63982010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6399
6400 PR objc/34033
6401 * c-lex.c (lex_string): Check that each string in an Objective-C
6402 string concat sequence starts with either one or zero '@', and
6403 that there are no spurious '@' signs at the end.
6404
24a57808
JM
64052010-11-20 Joseph Myers <joseph@codesourcery.com>
6406
6407 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6408 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6409 HANDLE_PRAGMA_VISIBILITY.
6410 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6411 HANDLE_PRAGMA_VISIBILITY): Don't define.
6412 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6413
a9aa2c3a
NF
64142010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6415
6416 PR c++/16189
6417 PR c++/36888
6418 PR c++/45331
6419 * c-common.h (keyword_begins_type_specifier): Declare.
6420 (keyword_is_storage_class_specifier): Declare.
6421 (keyword_is_type_qualifier): Declare.
6422 * c-common.c (keyword_begins_type_specifier): New function.
6423 (keyword_is_storage_class_specifier): New function.
6424 (keyword_is_type_qualifier): Declare.
6425
5386338c
JM
64262010-11-19 Joseph Myers <joseph@codesourcery.com>
6427
6428 PR c/46547
6429 * c-common.c (in_late_binary_op): Define.
6430 (c_common_truthvalue_conversion): Check in_late_binary_op before
6431 calling c_save_expr.
6432 * c-common.h (in_late_binary_op): Declare.
6433
69ccdddb
JM
64342010-11-19 Joseph Myers <joseph@codesourcery.com>
6435
6436 * c-opts.c (c_common_handle_option): Update calls to
6437 set_struct_debug_option.
6438
6b192a09
NP
64392010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6440
6441 * c-common.h (objc_declare_protocols): Added additional argument.
6442 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6443
fb52b50a
NF
64442010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6445
6446 PR c/33193
6447 * c-common.h (build_real_imag_expr): Declare.
6448 * c-semantics.c (build_real_imag_expr): Define.
6449
b37421c6
JM
64502010-11-17 Joseph Myers <joseph@codesourcery.com>
6451
6452 * c-opts.c (c_common_parse_file): Take no arguments.
6453 * c-common.h (c_common_parse_file): Update prototype.
6454
07078664
JJ
64552010-11-16 Jakub Jelinek <jakub@redhat.com>
6456
6457 PR c++/46401
6458 * c-common.c (warning_candidate_p): Don't track non-const calls
6459 or STRING_CSTs.
6460
c6a13190
ILT
64612010-11-15 Ian Lance Taylor <iant@google.com>
6462
6463 * c-lex.c (init_c_lex): Set macro debug callbacks if
6464 flag_dump_go_spec is set.
6465
925e8657
NP
64662010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6467
6468 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6469 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6470
bb0a9581
NF
64712010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6472
6473 PR preprocessor/45038
6474 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6475 dialects.
6476
c5fa0890
JM
64772010-11-12 Joseph Myers <joseph@codesourcery.com>
6478
6479 * c-common.h (c_family_lang_mask): Declare.
6480 * c-opts.c (c_family_lang_mask): Make extern.
6481 * c-pragma.c (handle_pragma_diagnostic): Use
6482 control_warning_option.
6483
a4d8c676
JM
64842010-11-12 Joseph Myers <joseph@codesourcery.com>
6485
6486 * c-common.c (parse_optimize_options): Update call to
6487 decode_options.
6488 * c-common.h (c_common_handle_option): Update prototype.
6489 * c-opts.c (c_common_handle_option): Take location_t parameter and
6490 pass it to other functions.
6491
f954bd2c
JM
64922010-11-11 Joseph Myers <joseph@codesourcery.com>
6493
6494 * c-opts.c (warning_as_error_callback): Remove.
6495 (c_common_initialize_diagnostics): Don't call
6496 register_warning_as_error_callback.
6497 (c_common_handle_option): Handle -Werror=normalized= here.
6498
d8a07487
JM
64992010-11-10 Joseph Myers <joseph@codesourcery.com>
6500
6501 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6502 in diagnostic.
6503 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6504 letter.
6505 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6506 Remove trailing '.' from diagnostics.
6507 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6508
d5478783
JM
65092010-11-10 Joseph Myers <joseph@codesourcery.com>
6510
6511 * c-common.c (parse_optimize_options): Pass global_dc to
6512 decode_options.
6513 * c-opts.c (c_common_handle_option): Pass &global_options to
6514 set_Wstrict_aliasing.
6515 * c.opt (v): Don't mark Common or document here.
6516
91ebb981
IS
65172010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6518
6519 PR target/44981
6520 * c-format.c (format_type): New type gcc_objc_string_format_type.
6521 (valid_stringptr_type_p): New.
6522 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6523 (check_format_string): Pass expected type, use
91ebb981
IS
6524 valid_stringptr_type_p (), check that the format string types are
6525 consistent with the format specification.
6526 (decode_format_attr): Warn if NSString is used outside objective-c.
6527 (format_types_orig): Add NSString.
6528 (format_name): New.
6529 (format_flags): New.
6530 (check_format_arg): Handle format strings requiring an external parser.
6531 first_target_format_type: New variable.
6532 (handle_format_attribute): Set up first_target_format_type, pass the
6533 expected format arg string type to check_format_string().
6534 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6535 * stub-objc.c (objc_string_ref_type_p): New.
6536 (objc_check_format_arg): New.
6537
bede2adc
NP
65382010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6539
9faeb493 6540 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6541 * c-common.h (objc_build_class_component_ref): New.
6542 * stub-objc.c (objc_build_class_component_ref): New.
6543
9a179d01
NP
65442010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6545
6546 * c.opt (Wproperty-assign-default): New option.
6547
22d8d616
NP
65482010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6549
6550 Implemented -fobjc-std=objc1 flag.
6551 * c.opt (fobjc-std=objc1): New option.
6552
2debdb4f
NP
65532010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6554
6555 Implemented format and noreturn attributes for Objective-C methods.
6556 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6557 attribute for Objective-C methods.
6558
ec52b111
JM
65592010-10-31 Jason Merrill <jason@redhat.com>
6560
6561 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6562 EXPR_LOC_OR_HERE.
6563
46a88c12
NP
65642010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6565
6566 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6567 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6568 (objc_add_property_declaration): Removed arguments for copies and
6569 ivar.
6570 (objc_build_getter_call): Renamed to
6571 objc_maybe_build_component_ref.
6572 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6573 (objc_is_property_ref): New.
6574 * c-common.c (c_common_reswords): Removed copies and ivar.
6575 * stub-objc.c (objc_add_property_declaration): Removed arguments
6576 for copies and ivar.
6577 (objc_build_getter_call): Renamed to
6578 objc_maybe_build_component_ref.
6579 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6580 (objc_is_property_ref): New.
9faeb493 6581
1e4bf85b
AC
65822010-10-29 Arnaud Charlet <charlet@adacore.com>
6583 Matthew Gingell <gingell@adacore.com>
6584
6585 * c-ada-spec.c (separate_class_package): New function.
6586 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6587 name of their enclosing package.
6588 (print_ada_declaration): Use separate_class_package.
6589
81f0bab2
JM
65902010-10-27 Jason Merrill <jason@redhat.com>
6591
2b08f2c5
JM
6592 * c-common.c (c_common_reswords): Add __is_literal_type.
6593 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6594
81f0bab2
JM
6595 * c-common.c (check_case_value): Remove special C++ code.
6596
200290f2
NP
65972010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6598
6599 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6600 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6601 and RID_LAST_PATTR.
6602 (objc_add_property_declaration): Added additional arguments.
6603 (objc_property_attribute_kind): Removed.
6604 (objc_set_property_attr): Removed.
6605 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6606 copy and nonatomic.
6607 * stub-objc.c (objc_add_property_declaration): Added additional
6608 arguments.
6609 (objc_set_property_attr): Removed.
9faeb493 6610
f614132b
NP
66112010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6612
6613 * c-common.h (objc_add_property_variable): Renamed to
6614 objc_add_property_declaration. Added location argument.
6615 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6616
b8a18805
NP
66172010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6618
6619 * c-common.h (objc_maybe_printable_name): New.
6620 * stub-objc.c (objc_maybe_printable_name): New.
6621
3f8257db
JJ
66222010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6623 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6624
6625 * c-common.h (c_common_mark_addressable_vec): Declare.
6626 * c-common.c (c_common_mark_addressable_vec): New function.
6627
249a82c4
NP
66282010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6629
6630 * c-common.h (objc_set_method_type): Removed.
6631 (objc_add_method_declaration): Added boolean argument.
6632 (objc_start_method_definition): Same change.
6633 (objc_build_method_signature): Same change.
6634 * stub-objc.c (objc_set_method_type): Removed.
6635 (objc_add_method_declaration): Added boolean argument.
6636 (objc_start_method_definition): Same change.
6637 (objc_build_method_signature): Same change.
6638
977e30bc
NP
66392010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6640
6641 * c-common.h (finish_file): Removed.
6642 (objc_write_global_declarations): New.
6643 * c-opts.c (c_common_parse_file): Do not call finish_file.
6644 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6645
da57d1b9
NP
66462010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6647
6648 Implemented parsing @synthesize and @dynamic for
6649 Objective-C/Objective-C++.
6650 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6651 (objc_add_synthesize_declaration): New.
6652 (objc_add_dynamic_declaration): New.
6653 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6654 * stub-objc.c (objc_add_synthesize_declaration): New.
6655 (objc_add_dynamic_declaration): New.
9faeb493 6656
0069111f
MM
66572010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6658
6659 PR target/46041
6660 * c-cppbuiltin.c (mode_has_fma): Move function here from
6661 builtins.c. Don't use the fma optab, instead just use the
6662 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6663 using -save-temps.
6664
e426b47b
NP
66652010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6666
6667 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6668
3f8257db 6669 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6670
9faeb493 6671 Radar 4330422
e426b47b
NP
6672 * c-common.h (objc_non_volatilized_type): New declaration
6673 * stub-objc.c (objc_non_volatilized_type): New stub.
6674
90fbfdc3
NP
66752010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6676
e426b47b 6677 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6678
3f8257db 6679 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6680
9faeb493 6681 Radar 4133425
90fbfdc3 6682 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6683 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6684
c37d8c30
IS
66852010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6686
6687 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6688 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6689 (objc_ivar_visibility_kind): New enum.
6690 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6691 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6692 visibility enum.
6693
1b1562a5
MM
66942010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6695
6696 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6697 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6698 has the appropriate fma builtins.
6699 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6700
668ea4b1
IS
67012010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6702
1b1562a5 6703 merge from FSF apple 'trunk' branch.
3f8257db 6704 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6705
668ea4b1
IS
6706 Radars 4436866, 4505126, 4506903, 4517826
6707 * c-common.c (c_common_resword): Define @property and its attributes.
6708 * c-common.h: Define property attribute enum entries.
6709 (OBJC_IS_PATTR_KEYWORD): New.
6710 (objc_property_attribute_kind): New enum.
6711 Declare objc_set_property_attr (), objc_add_property_variable (),
6712 objc_build_getter_call () and objc_build_setter_call ().
6713 * stub-objc.c (objc_set_property_attr): New stub.
6714 (objc_add_property_variable): Likewise.
6715 (objc_build_getter_call): Likewise.
6716 (objc_build_setter_call) Likewise.
1b1562a5 6717
a1178b30
IS
67182010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6719
1b1562a5 6720 merge from FSF apple 'trunk' branch.
3f8257db 6721 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6722
6723 Radar 3803157 (method attributes)
6724 * c-common.c (handle_deprecated_attribute): Recognize
6725 objc methods as valid declarations.
6726 * c-common.h: Declare objc_method_decl ().
1b1562a5 6727 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6728
a75bfaa6
JM
67292010-10-08 Joseph Myers <joseph@codesourcery.com>
6730
6731 * c-common.c (parse_optimize_options): Call
6732 decode_cmdline_options_to_array_default_mask before
6733 decode_options. Update arguments to decode_options.
6734 * c-common.h (c_common_init_options_struct): Declare.
6735 * c-opts.c (c_common_init_options_struct): New. Split out from
6736 c_common_init_options.
6737
f05b9d93
NP
67382010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6739
6740 Implemented fast enumeration for Objective-C.
6741 * c-common.h (objc_finish_foreach_loop): New.
6742 * stub-objc.c (objc_finish_foreach_loop): New.
6743
1ebe4b4f
JM
67442010-10-05 Joseph Myers <joseph@codesourcery.com>
6745
6746 * c-common.h (struct diagnostic_context): Don't declare here.
6747 (c_common_initialize_diagnostics): Declare using
6748 diagnostic_context typedef.
6749 * c-opts.c (c_common_handle_option): Pass global_dc to
6750 handle_generated_option.
6751
d4d24ba4
JM
67522010-10-04 Joseph Myers <joseph@codesourcery.com>
6753
6754 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6755 handle_generated_option.
6756
478a1c5b
ILT
67572010-10-03 Ian Lance Taylor <iant@google.com>
6758
6759 * c.opt (-fplan9-extensions): New option.
6760
82a1c2fe
FXC
67612010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6762
6763 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6764 Remove.
6765 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6766 of duplicating code.
6767
92902b1b
IS
67682010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6769
6770 * c-common.c: Add two new entries for @optional
6771 and @required keywords.
6772
6773 merge from FSF 'apple/trunk' branch.
3f8257db 6774 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6775
6776 Radar 4386773
6777 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6778 objective-c keywords.
6779 (objc_set_method_opt): New declaration.
6780 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6781
46625112
JM
67822010-09-30 Joseph Myers <joseph@codesourcery.com>
6783
6784 * c-common.c (handle_optimize_attribute): Pass &global_options to
6785 cl_optimization_save and cl_optimization_restore.
6786 * c-opts.c (c_common_handle_option): Pass &global_options to
6787 handle_generated_option.
6788 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6789 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6790 &global_options to cl_optimization_restore.
6791
49b91f05
NP
67922010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6793
6794 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6795 Objective-C/Objective-C++ keywords.
6796
13ed556f 67972010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6798
9faeb493
UB
6799 Merge from 'apple/trunk' branch on FSF servers.
6800
3f8257db 6801 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6802
6803 Radar 4281748
6804 * c-common.h (objc_check_global_decl): New declaration.
6805 * stub-objc.c (objc_check_global_decl): New stub.
6806
f0036cca
JM
68072010-09-29 Joseph Myers <joseph@codesourcery.com>
6808
6809 * c.opt: Don't use VarExists.
6810
e3339d0f
JM
68112010-09-29 Joseph Myers <joseph@codesourcery.com>
6812
6813 * c-common.c (c_cpp_error): Update names of diagnostic_context
6814 members.
6815 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6816 cl_optimization members.
6817 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6818 sanitize_cpp_opts, finish_options): Update names of cpp_options
6819 members.
6820
1973201f
NP
68212010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6822
6823 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6824 (objc_is_reserved_word): Removed.
6825 * c-common.c: Updated comments.
6826 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6827 objc_is_reserved_word.
6828 * stub-objc.c (objc_is_reserved_word): Removed.
6829
f7e71da5
IS
68302010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6831
9faeb493 6832 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6833 include attributes.
6834 (objc_start_method_definition): Likewise.
6835 (objc_build_keyword_decl): Likewise.
6836 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6837 (objc_start_method_definition): Likewise.
6838 (objc_build_keyword_decl): Likewise.
6839
c165dca7
IS
68402010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6841
6842 * c-common.h (objc_start_class_interface): Adjust prototype.
6843 (objc_start_category_interface): Likewise.
6844 (objc_start_protocol): Likewise.
6845 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6846 (objc_start_class_interface): Likewise.
6847 (objc_start_category_interface): Likewise.
6848
7458026b
ILT
68492010-09-27 Ian Lance Taylor <iant@google.com>
6850
6851 * c-common.c (c_common_attribute_table): Add no_split_stack.
6852 (handle_no_split_stack_attribute): New static function.
6853
b581b85b
NP
68542010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6855
9faeb493 6856 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6857
3f8257db 6858 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6859
9faeb493 6860 Radar 4229905
b581b85b
NP
6861 * c-common.h (objc_have_common_type): New declaration.
6862 * stub-objc.c (objc_have_common_type): New stub.
6863
6864 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6865
6866 Radar 4154928
6867 * c-common.h (objc_common_type): New prototype.
9faeb493 6868 * stub-objc.c (objc_common_type): New stub.
b581b85b 6869
46a4da10
JH
68702010-09-24 Jan Hubicka <jh@suse.cz>
6871
6872 * c-common.c (handle_leaf_attribute): New function.
6873 (struct attribute_spec c_common_att): Add leaf.
6874
e200444e
JM
68752010-09-22 Joseph Myers <joseph@codesourcery.com>
6876
6877 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6878 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6879 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6880 -include-barrier, -include-directory, -include-directory=,
6881 -include-directory-after, -include-directory-after=,
6882 -include-prefix, -include-prefix=, -include-with-prefix,
6883 -include-with-prefix=, -include-with-prefix-after,
6884 -include-with-prefix-after=, -include-with-prefix-before,
6885 -include-with-prefix-before=, -no-integrated-cpp,
6886 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6887 -output=, -pedantic, -pedantic-errors, -preprocess,
6888 -print-missing-file-dependencies, -trace-includes, -traditional,
6889 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6890 -user-dependencies, -verbose, -write-dependencies,
6891 -write-user-dependencies, no-integrated-cpp, traditional): New.
6892
29a80ea6
NP
68932010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6894
6895 PR objc/23710
ac1fc2fc
NP
6896 * c-common.h (objc_start_method_definition): Return bool instead
6897 of void.
6898 * stub-objc.c (objc_start_method_definition): Return bool instead
6899 of void.
6900
69012010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6902
6903 PR objc/25965
6904 * c-common.h (objc_get_interface_ivars): New declaration.
6905 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6906
de621752
ILT
69072010-09-15 Ian Lance Taylor <iant@google.com>
6908
6909 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6910 messages. Remove period at end of warning message.
de621752 6911
ba885ec5
NS
69122010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6913
6914 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6915 (handle_alias_attribute): ... here.
6916 (handle_ifunc_attribute): New.
6917
c5ee1358
MM
69182010-09-06 Mark Mitchell <mark@codesourcery.com>
6919
6920 * c-common.h (do_warn_double_promotion): Declare.
6921 * c-common.c (do_warn_double_promotion): Define.
6922
0a0b3574
MM
69232010-09-05 Mark Mitchell <mark@codesourcery.com>
6924
6925 * c.opt (Wdouble-promotion): New.
6926
d1779886
JM
69272010-09-02 Joseph Myers <joseph@codesourcery.com>
6928
6929 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6930 fvtable-thunks, fxref): Mark no longer supported in help text.
6931
2d2bd949
JM
69322010-09-02 Joseph Myers <joseph@codesourcery.com>
6933
6934 * c.opt (Wimport, fall-virtual, falt-external-templates,
6935 fdefault-inline, fenum-int-equiv, fexternal-templates,
6936 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6937 fname-mangling-version-, fnew-abi, fnonnull-objects,
6938 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6939 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6940 applicable.
6941 (fhandle-exceptions): Mark with Alias and Warn.
6942 * c-opts.c (c_common_handle_option): Don't handle options marked
6943 as ignored.
6944
5de8299c
JM
69452010-09-02 Joseph Myers <joseph@codesourcery.com>
6946
6947 * c.opt (Wcomments, Werror-implicit-function-declaration,
6948 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6949 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6950 aliases.
6951 * c-common.c (option_codes): Use OPT_Wcomment instead of
6952 OPT_Wcomments.
6953 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6954 Don't handle options marked as aliases.
6955
0ceb0201
RG
69562010-08-25 Richard Guenther <rguenther@suse.de>
6957
6958 * c-common.c (c_common_get_alias_set): Remove special
6959 handling for pointers.
6960
ac47786e
NF
69612010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6962
6963 * c-common.c: Use FOR_EACH_VEC_ELT.
6964 * c-gimplify.c: Likewise.
6965 * c-pragma.c: Likewise.
6966
c878765b
JM
69672010-08-16 Joseph Myers <joseph@codesourcery.com>
6968
6969 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6970 RejectDriver.
6971 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6972 RejectDriver.
6973 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6974 instead of OPT_MDX and OPT_MMDX.
6975
603349bf
JM
69762010-08-16 Joseph Myers <joseph@codesourcery.com>
6977
6978 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6979
644fa7ac
JM
69802010-08-12 Joseph Myers <joseph@codesourcery.com>
6981
6982 * c.opt (MD, MMD): Change to MDX and MMDX.
6983 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6984
481e1176
JM
69852010-08-11 Joseph Myers <joseph@codesourcery.com>
6986
6987 * c-opts.c (c_common_handle_option): Call handle_generated_option
6988 instead of handle_option.
6989
ac8dc9f7
NF
69902010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6991
6992 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6993 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6994
4f8c876d
NF
69952010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6996
6997 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6998 (pending_redefine_extname): Change type to a VEC.
6999 (add_to_renaming_pragma_list): Update for new type of
7000 pending_redefine_extname.
ac8dc9f7 7001 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 7002
3b0c690e
AC
70032010-08-04 Arnaud Charlet <charlet@adacore.com>
7004
7005 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
7006 visited.
7007 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
7008 decide whether a type has already been declared/seen.
7009 Do not go to the original type.
7010 (dump_nested_types): New parameter forward.
7011 Generate forward declaration if needed and mark type as visited.
7012 (print_ada_declaration): Call dump_nested_types if not already done.
7013 Mark types as visited.
7014
1890bccc
JM
70152010-08-03 Joseph Myers <joseph@codesourcery.com>
7016
7017 * c.opt (-print-pch-checksum): Remove option.
7018 * c-opts.c (c_common_handle_option): Don't handle
7019 OPT_print_pch_checksum.
7020
5f20c657
JM
70212010-07-27 Joseph Myers <joseph@codesourcery.com>
7022
7023 * c-common.h (c_common_handle_option): Update prototype and return
7024 value type.
7025 * c-opts.c (c_common_handle_option): Update prototype and return
7026 value type. Update calls to handle_option and
7027 enable_warning_as_error.
7028
f551f80c
JJ
70292010-07-27 Jakub Jelinek <jakub@redhat.com>
7030
7031 PR c/45079
7032 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
7033
61ff2bdc
JM
70342010-07-27 Joseph Myers <joseph@codesourcery.com>
7035
7036 * c-common.h (c_common_missing_argument): Remove.
7037 * c-opts.c (c_common_missing_argument): Remove.
7038 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
7039 idirafter, imacros, include, isysroot, isystem, iquote): Add
7040 MissingArgError.
7041 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7042
7a9bf9a4
JM
70432010-07-27 Joseph Myers <joseph@codesourcery.com>
7044
7045 * c-common.h (c_common_option_lang_mask,
7046 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
7047 New.
7048 (c_common_init_options): Update prototype.
7049 * c-opts.c (c_common_option_lang_mask): New.
7050 (c_common_initialize_diagnostics): Split out of
7051 c_common_init_options.
7052 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
7053 New.
7054 (c_common_init_options): Update prototype. Use decoded options in
7055 search for -lang-asm.
7056
910ad8de
NF
70572010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7058
7059 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7060 * c-format.c: Likewise.
7061
718f9c0f
MLI
70622010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7063
7064 * c-common.h: Include diagnostic-core.h. Error if already
7065 included.
7066 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7067
4d451982
MLI
70682010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7069
adfac8df 7070 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7071 Do not include expr.h
7072 (vector_mode_valid_p): Move here.
7073
119fe915
SB
70742010-06-21 DJ Delorie <dj@redhat.com>
7075
7076 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7077 allow these pragmas anywhere.
7078
70792010-06-14 Jakub Jelinek <jakub@redhat.com>
7080
7081 PR bootstrap/44509
7082 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7083 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7084 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7085 ggc_strdup instead of xstrdup.
7086
70872010-06-10 Jakub Jelinek <jakub@redhat.com>
7088
7089 * c-cppbuiltin.c: Include cpp-id-data.h.
7090 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7091 (lazy_hex_fp_value): New function.
7092 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7093
6662d794
MLI
70942010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7095
7096 * c-gimplify.c: Do not include tree-flow.h
7097
38f8b050
JR
70982010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7099
7100 PR other/44034
7101 * c-common.c: Rename targetm member:
7102 targetm.enum_va_list -> targetm.enum_va_list_p
7103
9589f23e
AS
71042010-06-28 Anatoly Sokolov <aesok@post.ru>
7105
7106 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7107
3b06d379
SB
71082010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7109
7110 * c-cppbuiltin.c: Do not include except.h.
7111
d166d4c3
AK
71122010-06-24 Andi Kleen <ak@linux.intel.com>
7113
9faeb493
UB
7114 * c-common.c (warn_for_omitted_condop): New.
7115 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7116
70cb8be6
JM
71172010-06-21 Joseph Myers <joseph@codesourcery.com>
7118
7119 * c.opt (lang-objc): Remove.
7120 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7121
a4c97feb
JR
71222010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7123
7124 * c-opts.c: Include "tm_p.h".
7125
6e2f1956
JM
71262010-06-20 Joseph Myers <joseph@codesourcery.com>
7127
7128 * c-common.c (parse_optimize_options): Update call to
7129 decode_options.
7130
bc87224e
NF
71312010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7132
7133 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7134 new type of types_used_by_cur_var_decl.
7135
b49cf425
JR
71362010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7137
7138 PR bootstrap/44512
7139 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7140 for C++ standard compliance.
7141
59f9c2ed
JM
71422010-06-16 Jason Merrill <jason@redhat.com>
7143
7144 * c.opt: Add -Wnoexcept.
7145
33766b66
RG
71462010-06-16 Richard Guenther <rguenther@suse.de>
7147
7148 PR c/44555
7149 * c-common.c (c_common_truthvalue_conversion): Remove
7150 premature and wrong optimization concering ADDR_EXPRs.
7151
eff7e30c
AC
71522010-06-15 Arnaud Charlet <charlet@adacore.com>
7153
7154 * c-ada-spec.c (dump_sloc): Remove column info.
7155 (is_simple_enum): New function.
7156 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7157 enum types when relevant.
7158
6312e84d
MLI
71592010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7160
9faeb493 7161 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7162 location.
7163
1cb42611
JM
71642010-06-10 Joseph Myers <joseph@codesourcery.com>
7165
7166 * c-opts.c (c_common_handle_option): Don't handle
7167 OPT_fshow_column.
7168
a9429e29
LB
71692010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7170
7171 * c-pragma.c (push_alignment): Use typed GC allocation.
7172 (handle_pragma_push_options): Likewise.
7173
7174 * c-common.c (parse_optimize_options): Likewise.
7175
7176 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7177 option.
7178
5498f011
JM
71792010-06-07 Joseph Myers <joseph@codesourcery.com>
7180
7181 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7182 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7183 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7184 flag_signed_bitfields, warn_strict_null_sentinel,
7185 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7186 flag_gen_declaration, flag_no_gnu_keywords,
7187 flag_implement_inlines, flag_implicit_templates,
7188 flag_implicit_inline_templates, flag_optional_diags,
7189 flag_elide_constructors, flag_default_inline, flag_rtti,
7190 flag_conserve_space, flag_access_control, flag_check_new,
7191 flag_new_for_scope, flag_weak, flag_working_directory,
7192 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7193 flag_enforce_eh_specs, flag_threadsafe_statics,
7194 flag_pretty_templates): Remove.
7195 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7196 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7197 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7198 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7199 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7200 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7201 flag_no_gnu_keywords, flag_implement_inlines,
7202 flag_implicit_templates, flag_implicit_inline_templates,
7203 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7204 flag_rtti, flag_conserve_space, flag_access_control,
7205 flag_check_new, flag_new_for_scope, flag_weak,
7206 flag_working_directory, flag_use_cxa_atexit,
7207 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7208 flag_threadsafe_statics, flag_pretty_templates,
7209 warn_strict_null_sentinel): Remove.
7210 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7211 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7212 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7213 fimplicit-inline-templates, fimplicit-templates,
7214 flax-vector-conversions, fms-extensions, fnil-receivers,
7215 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7216 frtti, fshort-double, fshort-enums, fshort-wchar,
7217 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7218 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7219 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7220 gen-decls, undef): Use Var.
7221 (fdefault-inline, foptional-diags): Document as doing nothing.
7222 * c-opts.c (c_common_handle_option): Remove cases for options now
7223 using Var. Mark ignored options as such.
7224
39dabefd
SB
72252010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7226
9faeb493 7227 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7228 * c-common.def: Likewise.
7229 * c-common.h: Likewise.
7230 * c-cppbuiltin.c: Likewise.
7231 * c-dump.c: Likewise.
7232 * c-format.c: Likewise.
7233 * c-format.h : Likewise.
7234 * c-gimplify.c: Likewise.
7235 * c-lex.c: Likewise.
7236 * c-omp.c: Likewise.
7237 * c.opt: Likewise.
7238 * c-opts.c: Likewise.
7239 * c-pch.c: Likewise.
7240 * c-ppoutput.c: Likewise.
7241 * c-pragma.c: Likewise.
7242 * c-pragma.h: Likewise.
7243 * c-pretty-print.c: Likewise.
7244 * c-pretty-print.h: Likewise.
7245 * c-semantics.c: Likewise.
7246 * stub-objc.c: Likewise.
7247
7248 * c-common.c: Include gt-c-family-c-common.h.
7249 * c-pragma.c: Include gt-c-family-c-pragma.h.
7250\f
818ab71a 7251Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
7252
7253Copying and distribution of this file, with or without modification,
7254are permitted in any medium without royalty provided the copyright
7255notice and this notice are preserved.
This page took 2.610843 seconds and 5 git commands to generate.