]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
* g++.dg/cpp1z/aligned-new7.C: Fix for small MAX_STACK_ALIGNMENT targets.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
4c712374
BE
12016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2
3 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
4 integer shift ops in boolean context.
5
62016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
7
8 * c.opt (Walloca): New.
9 (Walloca-larger-than=): New.
10 (Wvla-larger-than=): New.
11
8fa18c06
MP
122016-10-17 Marek Polacek <polacek@redhat.com>
13
14 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
15 Return immediately when finding a match.
16 (warn_tautological_cmp): Remove a boolean variable that is no longer
17 needed.
18
b12b1915
MP
192016-10-17 Marek Polacek <polacek@redhat.com>
20
21 * c-attribs.c: New file.
22 * c-common.c: Move attributes handling to c-attribs.c.
23 (get_nonnull_operand): No longer static.
24 * c-common.h: Move the declarations from c-attribs.c to its own section.
25
2045acd9
JM
262016-10-14 Jason Merrill <jason@redhat.com>
27
28 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
29 and __cpp_deduction_guides.
30
14a2c9aa
JM
312016-10-13 Jason Merrill <jason@redhat.com>
32
33 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
34
4d0cdd0c
TP
352016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
36
37 * c-cppbuiltin.c: Include memmodel.h.
38 * c-opts.c: Likewise.
39 * c-pragma.c: Likewise.
40 * c-warn.c: Likewise.
41
70f6d5e1
JJ
422016-10-12 Jakub Jelinek <jakub@redhat.com>
43
44 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
45 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
46 * c-opts.c (sanitize_cpp_opts): Initialize
47 cpp_opts->cpp_warn_implicit_fallthrough.
48
78f61294
MP
492016-10-11 Marek Polacek <polacek@redhat.com>
50
51 * c-common.c (warning_candidate_p): Change the return type to bool
52 and return true/false instead of 1/0.
53 (vector_mode_valid_p): Likewise.
54
038b5cc0
MP
552016-10-11 Marek Polacek <polacek@redhat.com>
56
57 * c-common.c (fold_for_warn): No longer static.
58 (bool_promoted_to_int_p): Likewise.
59 (c_common_get_narrower): Likewise.
60 (constant_expression_warning): Move to c-warn.c.
61 (constant_expression_error): Likewise.
62 (overflow_warning): Likewise.
63 (warn_logical_operator): Likewise.
64 (find_array_ref_with_const_idx_r): Likewise.
65 (warn_tautological_cmp): Likewise.
66 (expr_has_boolean_operands_p): Likewise.
67 (warn_logical_not_parentheses): Likewise.
68 (warn_if_unused_value): Likewise.
69 (strict_aliasing_warning): Likewise.
70 (sizeof_pointer_memaccess_warning): Likewise.
71 (check_main_parameter_types): Likewise.
72 (conversion_warning): Likewise.
73 (warnings_for_convert_and_check): Likewise.
74 (match_case_to_enum_1): Likewise.
75 (match_case_to_enum): Likewise.
76 (c_do_switch_warnings): Likewise.
77 (warn_for_omitted_condop): Likewise.
78 (readonly_error): Likewise.
79 (lvalue_error): Likewise.
80 (invalid_indirection_error): Likewise.
81 (warn_array_subscript_with_type_char): Likewise.
82 (warn_about_parentheses): Likewise.
83 (warn_for_unused_label): Likewise.
84 (warn_for_div_by_zero): Likewise.
85 (warn_for_memset): Likewise.
86 (warn_for_sign_compare): Likewise.
87 (do_warn_double_promotion): Likewise.
88 (do_warn_unused_parameter): Likewise.
89 (record_locally_defined_typedef): Likewise.
90 (maybe_record_typedef_use): Likewise.
91 (maybe_warn_unused_local_typedefs): Likewise.
92 (maybe_warn_bool_compare): Likewise.
93 (maybe_warn_shift_overflow): Likewise.
94 (warn_duplicated_cond_add_or_warn): Likewise.
95 (diagnose_mismatched_attributes): Likewise.
96 * c-common.h: Move the declarations from c-warn.c to its own section.
97 * c-warn.c: New file.
98
627be19f
JM
992016-10-08 Jason Merrill <jason@redhat.com>
100
101 * c-common.c (c_common_truthvalue_conversion): Don't distribute
102 into COND_EXPR in C++.
103
7bad794a
JJ
1042016-10-08 Jakub Jelinek <jakub@redhat.com>
105
106 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
107 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
108 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
109
be845b04
JJ
1102016-10-07 Jakub Jelinek <jakub@redhat.com>
111
112 Implement LWG2296 helper intrinsic
113 * c-common.h (enum rid): Add RID_ADDRESSOF.
114 * c-common.c (c_common_reswords): Add __builtin_addressof.
115
c09c4992
BE
1162016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
117
118 PR c++/77700
119 * c-common.c (c_common_truthvalue_conversion): Warn also for
120 suspicious enum values in boolean context.
121
342cfb3e
JJ
1222016-10-06 Jakub Jelinek <jakub@redhat.com>
123
124 Implement P0258R2 - helper for C++17
125 std::has_unique_object_representations trait
126 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
127 * c-common.c (c_common_reswords): Add
128 __has_unique_object_representations.
129
2e69f143
JJ
1302016-10-05 Jakub Jelinek <jakub@redhat.com>
131
132 PR sanitizer/66343
133 * c-ubsan.c (ubsan_instrument_return): Don't call
134 initialize_sanitizer_builtins here.
135
700fff34
BE
1362016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
137
138 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
139 conditional expression in boolean context when only one arm is
140 non-boolean.
141
9563bfcd
JJ
1422016-10-05 Jakub Jelinek <jakub@redhat.com>
143
04a32443
JJ
144 PR sanitizer/77823
145 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
146 is not integral.
147
9563bfcd
JJ
148 * c-common.c (c_common_reswords): Update comment for C++11.
149
f1644724
JM
1502016-10-04 Jason Merrill <jason@redhat.com>
151
152 * c-common.c (make_tree_vector_from_ctor): New.
153 * c-common.h: Declare it.
154
5a79befb
JJ
1552016-10-04 Jakub Jelinek <jakub@redhat.com>
156
157 * c-cppbuiltin.c (c_cpp_builtins): Don't define
158 __LIBGCC_JCR_SECTION_NAME__.
159
1633d3b9
BE
1602016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
161
162 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
163 left shift in boolean context.
164
a2c6e7f2
JJ
1652016-09-29 Jakub Jelinek <jakub@redhat.com>
166
167 Implement P0001R1 - C++17 removal of register storage class specifier
168 * c.opt (Wregister): New warning.
169 * c-opts.c (c_common_post_options): Enable -Wregister by
170 default for C++17.
171
75304c87
JG
1722016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
173
174 * c-opts.c (c_common_post_options): Remove special case for
175 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
176 in C++.
177
bbfac6da
JJ
1782016-09-27 Jakub Jelinek <jakub@redhat.com>
179
6e39060a
JJ
180 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
181 -std=c++1z.
182
bbfac6da
JJ
183 * c-ada-spec.c (print_ada_declaration): Remove break after return.
184
e73cf9a2
TP
1852016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
186
187 * c-common.c: Include memmodel.h.
188
c6147dc4
MP
1892016-09-26 Marek Polacek <polacek@redhat.com>
190
191 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
192
81fea426
MP
1932016-09-26 Marek Polacek <polacek@redhat.com>
194
195 PR c/7652
196 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
197 (handle_fallthrough_attribute): New function.
198 (attribute_fallthrough_p): New function.
199 * c-common.h (attribute_fallthrough_p): Declare.
200
9a2300e9
MP
2012016-09-24 Marek Polacek <polacek@redhat.com>
202
203 PR c/77490
204 * c.opt (Wbool-operation): New.
205
a09e9e35
BE
2062016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
207
208 * c-common.c (c_common_truthvalue_conversion): Inhibit
209 Wint-in-bool-context warning with from_macro_definition_at.
210 Mention the expression will always evaluate to true.
211
d43b4ccc
MS
2122016-09-21 Martin Sebor <msebor@redhat.com>
213
214 PR bootstrap/77676
215 * c.opt (fprintf-return-value): Temporarily initialize to zero
216 to unblock bootstrap failures.
217
2e1c20b1
JJ
2182016-09-21 Jakub Jelinek <jakub@redhat.com>
219
220 PR c++/77651
221 * c.opt (Waligned-new=): Add RejectNegative.
222 (faligned-new=): Likewise. Spelling fix - change
223 aligned_new_threshhold to aligned_new_threshold.
224 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
225 to aligned_new_threshold.
226
88d0c3f0
MS
2272016-09-20 Martin Sebor <msebor@redhat.com>
228
229 PR middle-end/49905
230 * c.opt: Add -Wformat-length and -fprintf-return-value.
231
144a96e4
BE
2322016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
233
234 PR c++/77434
235 * c.opt (Wint-in-bool-context): New warning.
236 * c-common.c (c_common_truthvalue_conversion): Warn on integer
237 constants in boolean context.
238
63012d9a
JM
2392016-09-19 Joseph Myers <joseph@codesourcery.com>
240
241 * c-common.c (max_align_t_align): Also consider alignment of
242 float128_type_node.
243
931388ce
JM
2442016-09-15 Jason Merrill <jason@redhat.com>
245
246 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
247 DECL_EXTERNAL.
248
38711381
JM
2492016-09-14 Jason Merrill <jason@redhat.com>
250
251 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
252 limit FIELD_DECL, either.
253
e51fbec3
MP
2542016-09-14 Marek Polacek <polacek@redhat.com>
255
256 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
257 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
258 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
259
254830ba
DM
2602016-09-13 David Malcolm <dmalcolm@redhat.com>
261
262 * c-common.c (warn_logical_not_parentheses): Replace
263 rich_location::add_fixit_insert calls with add_fixit_insert_before
264 and add_fixit_insert_after, eliminating the "next_loc" calculation.
265
42763690
JM
2662016-09-13 Jason Merrill <jason@redhat.com>
267 Tom de Vries <tom@codesourcery.com>
268
269 PR c++/77427
270 * c-common.c (set_underlying_type): Don't treat array as builtin type.
271
9453eee9
JM
2722016-09-13 Jason Merrill <jason@redhat.com>
273
274 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
275 limit types at all.
276
e96809e3
JM
2772016-09-12 Jason Merrill <jason@redhat.com>
278
279 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
280 bit/byte confusion, allow large alignment for types.
281
54dcdb88
BE
2822016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
283
284 PR c++/77496
285 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
286
d1463eb9
DM
2872016-09-12 David Malcolm <dmalcolm@redhat.com>
288
289 PR c/72858
290 * c-format.c (argument_parser::check_argument_type): Add params
291 "type_start" and "conversion_char". Use the former to generate
292 offset_to_type_start and pass it and conversion_char to
293 check_format_types.
294 (check_format_info_main): Capture the start of the type
295 information as "type_start", and pass it an format_char
296 to arg_parser.check_argument_type.
297 (check_format_types): Provide an example in the leading comment.
298 Add params "offset_to_type_start" and "conversion_char"; pass
299 them to format_type_warning calls.
300 (test_get_modifier_for_format_len): Likewise.
301 (matching_type_p): New function.
302 (get_format_for_type): Add param "conversion_char" and move
303 implementation into...
304 (get_format_for_type_1): ...new function, called twice.
305 Use new function matching_type_p rather than checking for
306 TYPE_CANONICAL equality.
307 (get_corrected_substring): New function.
308 (format_type_warning): Provide an example in the leading comment.
309 Add params "offset_to_type_start" and "conversion_char". Replace
310 call to get_format_for_type with call to get_corrected_substring
311 and move rejection of hints for widths/precisions there.
312 (assert_format_for_type_streq): Add param "conversion_char".
313 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
314 (test_get_format_for_type_printf): Add conversion chars to the
315 tests, adding coverage for various combinations of integer
316 vs double conversions, and for preserving octal and hexadecimal
317 conversions.
318 (test_get_format_for_type_scanf): Add conversion chars to the
319 tests.
320
5b28efbb
TV
3212016-09-10 Tom de Vries <tom@codesourcery.com>
322
323 PR C/71602
324 * c-common.c (build_va_arg): Handle more strict
325 targetm.canonical_va_list_type. Replace first argument type error with
326 assert.
327
3f0177e7
MS
3282016-09-09 Martin Sebor <msebor@redhat.com>
329
330 PR c/77520
331 PR c/77521
332 * c-format.c (argument_parser::find_format_char_info): Use %qc
333 format directive unconditionally.
334
af63ba4b
JM
3352016-09-09 Jason Merrill <jason@redhat.com>
336
337 Implement C++17 new of over-aligned types.
338 * c.opt: Add -faligned-new and -Waligned-new.
339 * c-common.c (max_align_t_align): Split out from...
340 (cxx_fundamental_alignment_p): ...here.
341 * c-common.h: Declare it.
342 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
343
c65248cb
JM
3442016-09-09 Joseph Myers <joseph@codesourcery.com>
345
346 * c-cppbuiltin.c (builtin_define_type_width): New function.
347 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
348 macros.
349
e5106e27
DM
3502016-09-07 David Malcolm <dmalcolm@redhat.com>
351
352 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
353 a POINTER_TYPE.
354 (substring_loc::get_location): Move to substring-locations.c,
355 keeping implementation as...
356 (c_get_substring_location): New function, from the above, reworked
357 to use accessors rather than member lookup.
358 * c-common.h (class substring_loc): Move to substring-locations.h,
359 replacing with a forward decl.
360 (c_get_substring_location): New decl.
361 * c-format.c: Include "substring-locations.h".
362 (format_warning_va): Move to substring-locations.c.
363 (format_warning_at_substring): Likewise.
364
a42e7952
MS
3652016-09-06 Martin Sebor <msebor@redhat.com>
366
367 PR c/77336
368 * c-format.c (check_function_format): Avoid issuing warnings for
369 functions unless they call format functions with non-constant
370 format strings.
371
b772a565
RB
3722016-09-06 Richard Biener <rguenther@suse.de>
373
374 PR c/77450
375 * c-common.c (c_common_mark_addressable_vec): Handle
376 COMPOUND_LITERAL_EXPR.
377
25ff5dd3
MP
3782016-09-05 Marek Polacek <polacek@redhat.com>
379
380 PR c/77423
381 * c-common.c (bool_promoted_to_int_p): New function.
382 (expr_has_boolean_operands_p): New function.
383 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
384 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
385
21234eb5
TV
3862016-09-04 Tom de Vries <tom@codesourcery.com>
387
388 revert:
389 2016-08-29 Tom de Vries <tom@codesourcery.com>
390
391 * c-common.c (build_va_arg): Replace first argument type error
392 with assert.
393
9dc5773f
JJ
3942016-09-02 Jakub Jelinek <jakub@redhat.com>
395
396 PR c/65467
397 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
398 (c_finish_omp_for): Reject _Atomic qualified iterators.
399
4002016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
401
402 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
403 size to guarantee it fits the output of the formatted function
404 regardless of its arguments.
405
295844f6
MP
4062016-09-01 Marek Polacek <polacek@redhat.com>
407
408 PR c/7652
409 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
410 FALLTHRU comments.
411
3d06b6f2
MP
4122016-08-29 Marek Polacek <polacek@redhat.com>
413
414 PR c/77292
415 * c-common.c (warn_logical_not_parentheses): Don't warn for
416 a comparison or a logical operator.
417
34cedad5
TV
4182016-08-29 Tom de Vries <tom@codesourcery.com>
419
420 * c-common.c (build_va_arg): Fix type comparison assert.
421
f162d717
TV
4222016-08-29 Tom de Vries <tom@codesourcery.com>
423
424 * c-common.c (build_va_arg): Replace first argument type error
425 with assert.
426
ba9bbd6f
TV
4272016-08-29 Tom de Vries <tom@codesourcery.com>
428
429 PR c/77398
430 * c-common.c (build_va_arg): Add first argument error. Build va_arg
431 with error_mark_node as va_list instead of with illegal va_list.
432
ebef225f
MP
4332016-08-25 Marek Polacek <polacek@redhat.com>
434 David Malcolm <dmalcolm@redhat.com>
435
436 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
437 * c-common.h (warn_logical_not_parentheses): Update declaration.
438
b00e6e75
MP
4392016-08-22 Marek Polacek <polacek@redhat.com>
440
441 PR c++/77321
442 * c-common.c (warn_for_memset): Check type for null.
443
6dc198e3
JM
4442016-08-22 Joseph Myers <joseph@codesourcery.com>
445
446 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
447 _FloatNx types for suffixes for built-in functions.
448
c65699ef
JM
4492016-08-19 Joseph Myers <joseph@codesourcery.com>
450
451 PR c/32187
452 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
453 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
454 (RID_FLOAT128X): New enum rid values.
455 (CASE_RID_FLOATN_NX): New macro.
456 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
457 keywords.
458 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
459 corresponding complex types.
460 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
461 _FloatNx and corresponding complex types.
462 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
463 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
464 and _FloatNx types for the widest type for determining
465 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
466 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
467 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
468 and _FloatNx types.
469 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
470 constants.
471 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
472 _FloatNx types.
473
cc015f3a
DM
4742016-08-18 David Malcolm <dmalcolm@redhat.com>
475
476 * c-opts.c (c_diagnostic_finalizer): Update for change to
477 diagnostic_show_locus.
478
cb18fd07
DM
4792016-08-18 David Malcolm <dmalcolm@redhat.com>
480
481 * c-common.c: Include "spellcheck.h".
482 (cb_get_suggestion): New function.
483 * c-common.h (cb_get_suggestion): New decl.
484 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
485 cb_get_suggestion.
486
a76989dc
MP
4872016-08-18 Marek Polacek <polacek@redhat.com>
488
489 PR c/71514
490 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
491 and pointer-to-VLA.
492
65e736c0
DM
4932016-08-16 David Malcolm <dmalcolm@redhat.com>
494
495 PR c/72857
496 * c-common.c (substring_loc::get_range): Rename to...
497 (substring_loc::get_location): ...this, converting param from a
498 source_range * to a location_t *. Call
499 get_source_location_for_substring rather than
500 get_source_range_for_substring, and pass in m_caret_idx.
501 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
502 (substring_loc::get_range): Replace with...
503 (substring_loc::get_location): ...this.
504 (substring_loc::set_caret_index): New method.
505 (substring_loc): Add field m_caret_idx.
506 * c-format.c (format_warning_va): Update for above changes.
507 Rename local "substring_loc" to "fmt_substring_loc" to avoid
508 clashing with type name.
509 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
510 (check_argument_type): Likewise.
511 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
512 Use a copy when emitting warnings, setting the caret index from TYPE.
513
7e1dde14
EB
5142016-08-16 Eric Botcazou <ebotcazou@adacore.com>
515 Arnaud Charlet <charlet@adacore.com>
516
517 * c-ada-spec.c (dump_number): New function.
518 (handle_escape_character): Likewise.
519 (print_ada_macros): Add handling of constant integers and strings.
520
191816a3
MP
5212016-08-12 Marek Polacek <polacek@redhat.com>
522
523 PR c/7652
524 * c-common.c (scalar_to_vector): Adjust fall through comment.
525 * c-opts.c (c_common_handle_option): Likewise.
526 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
527 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
528 fall through comment.
529 * cilk.c (extract_free_variables): Add FALLTHRU.
530
452df4a4
JM
5312016-08-10 Jason Merrill <jason@redhat.com>
532
533 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
534
f3365c12
JM
5352016-08-09 Jason Merrill <jason@redhat.com>
536
537 * c-common.c (c_common_attribute_table): vector_size affects type
538 identity.
539
f0bc3323
MP
5402016-08-09 Marek Polacek <polacek@redhat.com>
541
542 PR c/7652
543 * c-ada-spec.c (dump_generic_ada_node): Add return.
544
98e5a19a
JM
5452016-08-09 Jason Merrill <jason@redhat.com>
546
547 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
548 C++17 constexpr lambdas.
549
895aa8e1
DM
5502016-08-08 David Malcolm <dmalcolm@redhat.com>
551
552 PR c/64955
553 * c-common.h (selftest::c_format_c_tests): New declaration.
554 (selftest::run_c_tests): New declaration.
555 * c-format.c: Include "selftest.h.
556 (format_warning_va): Add param "corrected_substring" and use
557 it to add a replacement fix-it hint.
558 (format_warning_at_substring): Likewise.
559 (format_warning_at_char): Update for new param of
560 format_warning_va.
561 (argument_parser::check_argument_type): Pass "fki" to
562 check_format_types.
563 (check_format_types): Add param "fki" and pass it to
564 format_type_warning.
565 (deref_n_times): New function.
566 (get_modifier_for_format_len): New function.
567 (selftest::test_get_modifier_for_format_len): New function.
568 (get_format_for_type): New function.
569 (format_type_warning): Add param "fki" and use it to attempt
570 to provide hints for argument types when calling
571 format_warning_at_substring.
572 (selftest::get_info): New function.
573 (selftest::assert_format_for_type_streq): New function.
574 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
575 (selftest::test_get_format_for_type_printf): New function.
576 (selftest::test_get_format_for_type_scanf): New function.
577 (selftest::c_format_c_tests): New function.
578
e52ed3fe
DM
5792016-08-08 David Malcolm <dmalcolm@redhat.com>
580
581 PR c/52952
582 * c-format.c: Include "diagnostic.h".
583 (location_column_from_byte_offset): Delete.
584 (location_from_offset): Delete.
585 (format_warning_va): New function.
586 (format_warning_at_substring): New function.
587 (format_warning_at_char): New function.
588 (check_format_arg): Capture location of format_tree and pass to
589 check_format_info_main.
590 (argument_parser): Add fields "start_of_this_format" and
591 "format_string_cst".
592 (flag_chars_t::validate): Add param "format_string_cst". Convert
593 warning_at call using location_from_offset to call to
594 format_warning_at_char.
595 (argument_parser::argument_parser): Add param "format_string_cst_"
596 and use use it to initialize field "format_string_cst".
597 Initialize new field "start_of_this_format".
598 (argument_parser::read_format_flags): Convert warning_at call
599 using location_from_offset to a call to format_warning_at_char.
600 (argument_parser::read_any_format_left_precision): Likewise.
601 (argument_parser::read_any_format_precision): Likewise.
602 (argument_parser::read_any_other_modifier): Likewise.
603 (argument_parser::find_format_char_info): Likewise, in three places.
604 (argument_parser::parse_any_scan_set): Likewise, in one place.
605 (argument_parser::handle_conversions): Likewise, in two places.
606 (argument_parser::check_argument_type): Add param "fmt_param_loc"
607 and use it to make a substring_loc. Pass the latter to
608 check_format_types.
609 (check_format_info_main): Add params "fmt_param_loc" and
610 "format_string_cst". Convert warning_at calls using
611 location_from_offset to calls to format_warning_at_char. Pass the
612 new params to the arg_parser ctor. Pass "format_string_cst" to
613 flag_chars.validate. Pass "fmt_param_loc" to
614 arg_parser.check_argument_type.
615 (check_format_types): Convert first param from a location_t
616 to a const substring_loc & and rename to "fmt_loc". Attempt
617 to extract the range of the relevant parameter and pass it
618 to format_type_warning.
619 (format_type_warning): Convert first param from a location_t
620 to a const substring_loc & and rename to "fmt_loc". Add
621 params "param_range" and "type". Replace calls to warning_at
622 with calls to format_warning_at_substring.
623
1c4d457e
DM
6242016-08-08 David Malcolm <dmalcolm@redhat.com>
625
626 * c-format.c (class flag_chars_t): New class.
627 (struct length_modifier): New struct.
628 (class argument_parser): New class.
629 (flag_chars_t::flag_chars_t): New ctor.
630 (flag_chars_t::has_char_p): New method.
631 (flag_chars_t::add_char): New method.
632 (flag_chars_t::validate): New method.
633 (flag_chars_t::get_alloc_flag): New method.
634 (flag_chars_t::assignment_suppression_p): New method.
635 (argument_parser::argument_parser): New ctor.
636 (argument_parser::read_any_dollar): New method.
637 (argument_parser::read_format_flags): New method.
638 (argument_parser::read_any_format_width): New method.
639 (argument_parser::read_any_format_left_precision): New method.
640 (argument_parser::read_any_format_precision): New method.
641 (argument_parser::handle_alloc_chars): New method.
642 (argument_parser::read_any_length_modifier): New method.
643 (argument_parser::read_any_other_modifier): New method.
644 (argument_parser::find_format_char_info): New method.
645 (argument_parser::validate_flag_pairs): New method.
646 (argument_parser::give_y2k_warnings): New method.
647 (argument_parser::parse_any_scan_set): New method.
648 (argument_parser::handle_conversions): New method.
649 (argument_parser::check_argument_type): New method.
650 (check_format_info_main): Introduce classes argument_parser
651 and flag_chars_t, moving the code within the loop into methods
652 of these classes. Make various locals "const".
653
88fa5555
DM
6542016-08-05 David Malcolm <dmalcolm@redhat.com>
655
656 * c-common.c: Include "substring-locations.h".
657 (get_cpp_ttype_from_string_type): New function.
658 (g_string_concat_db): New global.
659 (substring_loc::get_range): New method.
660 * c-common.h (g_string_concat_db): New declaration.
661 (class substring_loc): New class.
662 * c-lex.c (lex_string): When concatenating strings, capture the
663 locations of all tokens using a new obstack, and record the
664 concatenation locations within g_string_concat_db.
665 * c-opts.c (c_common_init_options): Construct g_string_concat_db
666 on the ggc-heap.
667
78169471
MP
6682016-07-29 Marek Polacek <polacek@redhat.com>
669
638fc14f
MP
670 PR c/71926
671 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
672 parentheses warning.
673
78169471
MP
674 PR c/71574
675 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
676
1225d6b1
ML
6772016-07-28 Martin Liska <mliska@suse.cz>
678
679 PR gcov-profile/68025
680 * c-common.c (handle_no_profile_instrument_function_attribute):
681
ec1e2a40
BE
6822016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
683
684 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
685 BITS_PER_UNIT_LOG.
686
5ec2cd9f
JM
6872016-07-25 Jason Merrill <jason@redhat.com>
688
689 PR c++/65970
690 * c.opt (fconstexpr-loop-limit): New.
691
9dc5773f 6922016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
693
694 PR c++/71675
695 * c-common.c (resolve_overloaded_builtin): Avoid converting
696 __atomic_compare_exchange_n return type to that of what its
697 first argument points to.
698
e3fe09c1
UB
6992016-07-22 Uros Bizjak <ubizjak@gmail.com>
700
701 * c-common.c: Use HOST_WIDE_INT_M1U instead of
702 ~(unsigned HOST_WIDE_INT) 0.
703
bc91c436
ML
7042016-07-22 Martin Liska <mliska@suse.cz>
705
706 PR gcov-profile/69028
707 PR gcov-profile/62047
708 * cilk.c (create_cilk_helper_decl): Set location of a new decl
709 to the current_function_decl.
710
451dcc66
JM
7112016-07-21 Jason Merrill <jason@redhat.com>
712
713 PR c++/65168
714 * c-common.c (c_common_truthvalue_conversion): Check
715 c_inhibit_evaluation_warnings for warning about address of
716 reference.
717
de6a69ee
DM
7182016-07-20 David Malcolm <dmalcolm@redhat.com>
719
720 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
721 const char *.
722
d022c55a
JM
7232016-07-15 Jason Merrill <jason@redhat.com>
724
725 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
726
ddbbcb19
JJ
7272016-07-15 Jakub Jelinek <jakub@redhat.com>
728
729 PR c/71858
730 * c-common.h (enum lookup_name_fuzzy_kind): Add
731 FUZZY_LOOKUP_FUNCTION_NAME.
732
d0cf395a
JM
7332016-07-08 Jason Merrill <jason@redhat.com>
734
735 P0145: Refining Expression Order for C++.
736 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
737 * c-opts.c: Adjust.
738
98d44e93
MT
7392016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
740
741 PR c++/71214
742 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
743
f9d8d994
TS
7442016-06-29 Thomas Schwinge <thomas@codesourcery.com>
745
746 * c-pragma.h (enum pragma_kind): Rename
747 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
748 users.
749
4aa83879
RB
7502016-06-29 Richard Biener <rguenther@suse.de>
751
752 PR middle-end/71002
753 * c-common.c (c_common_get_alias_set): Remove union type punning case.
754
a25bd9e6
JM
7552016-06-24 Jason Merrill <jason@redhat.com>
756
757 P0145R2: Refining Expression Order for C++.
758 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
759 MODIFY_EXPR.
760
a86451b9
JJ
7612016-06-24 Jakub Jelinek <jakub@redhat.com>
762
763 * c-common.c (check_builtin_function_arguments): Require last
764 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
765 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
766 if the last argument is pointer to enumerated or boolean type.
767
1a4f11c8
DM
7682016-06-22 David Malcolm <dmalcolm@redhat.com>
769
770 PR c/70339
771 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
772 (lookup_name_fuzzy): New prototype.
773
fe55692c
JDA
7742016-06-21 John David Anglin <danglin@gcc.gnu.org>
775
776 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
777
4eb24e01
JM
7782016-06-14 Jason Merrill <jason@redhat.com>
779
780 P0145R2: Refining Expression Order for C++.
781 * c.opt (fargs-in-order): New.
782 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
783
ef7cf206
JJ
7842016-06-13 Jakub Jelinek <jakub@redhat.com>
785
0dda258b
JJ
786 PR sanitizer/71498
787 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
788 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
789
ef7cf206
JJ
790 PR preprocessor/71183
791 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
792 to cb_get_source_date_epoch.
793
50b15873
JJ
7942016-06-10 Jakub Jelinek <jakub@redhat.com>
795
796 PR c/68657
797 * c.opt (Wpsabi): Add Warning flag.
798
4d926e34
MS
7992016-06-10 Martin Sebor <msebor@redhat.com>
800
801 PR c/71392
802 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
803 the nonnull attribute in type-generic builtins.
804
e01b4e16
MS
8052016-06-09 Martin Sebor <msebor@redhat.com>
806
807 PR c/70883
808 * c-common.c (builtin_function_validate_nargs): Make text of error
809 message consistent with others like it.
810
44a845ca
MS
8112016-06-08 Martin Sebor <msebor@redhat.com>
812 Jakub Jelinek <jakub@redhat.com>
813
814 PR c++/70507
815 PR c/68120
816 * c-common.c (check_builtin_function_arguments): Handle
817 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
818
a80a7051
RB
8192016-06-08 Richard Biener <rguenther@suse.de>
820
821 * c-common.c (parse_optimize_options): Improve diagnostic messages.
822
bfd67b47
RB
8232016-06-07 Richard Biener <rguenther@suse.de>
824
825 PR c/61564
826 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
827 options and warn about others.
828
15c98b2e
ES
8292016-06-01 Eduard Sanou <dhole@openmailbox.org>
830
831 * c-common.c (get_source_date_epoch): Rename to
832 cb_get_source_date_epoch.
833 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
834 message when the parsing fails. Use error_at instead of fatal_error.
835 * c-common.h (get_source_date_epoch): Rename to
836 cb_get_source_date_epoch.
837 * c-common.h (cb_get_source_date_epoch): Prototype.
838 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
839 * c-common.h (c_omp_region_type): Remove trailing comma.
840 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
841 * c-lex.c (c_lex_with_flags): Remove initialization of
842 pfile->source_date_epoch.
843
00631022
JJ
8442016-05-30 Jakub Jelinek <jakub@redhat.com>
845
846 PR c++/71349
847 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
848 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
849 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
850 instead of C_OMP_CLAUSE_SPLIT_FOR.
851
f17a223d
RB
8522016-05-24 Richard Biener <rguenther@suse.de>
853
854 PR middle-end/70434
855 PR c/69504
856 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
857 (convert_vector_to_array_for_subscript): ... this.
858 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
859 VIEW_CONVERT_EXPR to an array type. Rename to ...
860 (convert_vector_to_array_for_subscript): ... this.
861
4f2e1536
MP
8622016-05-12 Marek Polacek <polacek@redhat.com>
863
864 PR c/70756
865 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
866 size_in_bytes and pass LOC to it.
867
d6e83a8d
MM
8682016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
869
870 PR c/43651
871 * c.opt (Wduplicate-decl-specifier): New option.
872
5c3a10fb
MP
8732016-05-11 Marek Polacek <polacek@redhat.com>
874
875 PR c++/71024
876 * c-common.c (diagnose_mismatched_attributes): New function.
877 * c-common.h (diagnose_mismatched_attributes): Declare.
878
deef7113
MP
8792016-05-04 Marek Polacek <polacek@redhat.com>
880
881 * c.opt (Wdangling-else): New option.
882
79ce98bc
MP
8832016-05-03 Marek Polacek <polacek@redhat.com>
884
885 PR c/70859
886 * c-common.c (builtin_function_validate_nargs): Add location
887 parameter. Use it.
888 (check_builtin_function_arguments): Add location and arguments
889 parameters. Use them.
890 * c-common.h (check_builtin_function_arguments): Update declaration.
891
381cdae4
RB
8922016-05-03 Richard Biener <rguenther@suse.de>
893
894 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
895 allow call args to gimplify to SSA names.
896
1d793c34
MP
8972016-05-03 Marek Polacek <polacek@redhat.com>
898
899 * c-common.h (enum c_omp_region_type): Remove stray comma.
900
77886428
CP
9012016-05-02 Cesar Philippidis <cesar@codesourcery.com>
902
903 * c-common.h (enum c_omp_region_type): Define.
904
697e0b28
RS
9052016-05-02 Richard Sandiford <richard.sandiford@arm.com>
906
907 * c-common.c (shorten_compare): Use wi::to_wide.
908
e7ff0319
CP
9092016-04-29 Cesar Philippidis <cesar@codesourcery.com>
910
911 PR middle-end/70626
912 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
913 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
914 reduction clauses in acc parallel loops.
915
2fff3db8
MP
9162016-04-29 Marek Polacek <polacek@redhat.com>
917
918 PR c/70852
919 * c-common.c (warn_for_memset): Check domain before accessing it.
920
509063eb
DV
9212016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
922
923 PR/69089
924 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
925 "aligned" attribute.
926
b632761d
JM
9272016-04-28 Jason Merrill <jason@redhat.com>
928
929 * c-lex.c (c_common_has_attribute): Handle nodiscard.
930
174f6622
ES
9312016-04-28 Eduard Sanou <dhole@openmailbox.org>
932 Matthias Klose <doko@debian.org>
933
934 * c-common.c (get_source_date_epoch): New function, gets the environment
935 variable SOURCE_DATE_EPOCH and parses it as long long with error
936 handling.
937 * c-common.h (get_source_date_epoch): Prototype.
938 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
939
6bc2bb18
RB
9402015-04-27 Ryan Burn <contact@rnburn.com>
941
942 PR c++/69024
943 PR c++/68997
944 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
945 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
946 external linkage.
947 (cilk_detect_and_unwrap): Corresponding changes.
948 (extract_free_variables): Don't extract free variables from
949 AGGR_INIT_EXPR slot.
950 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
951 (cilk_recognize_spawn): Likewise.
952
c1e1f433
BS
9532016-04-27 Bernd Schmidt <bschmidt@redhat.com>
954
955 * c.opt (Wmemset-elt-size): New option.
956 * c-common.c (warn_for_memset): New function.
957 * c-common.h (warn_for_memset): Declare.
958
d067e05f
JM
9592016-04-25 Jason Merrill <jason@redhat.com>
960
961 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
962 No longer static.
963 * c-common.h: Declare it.
964 * c-lex.c (c_common_has_attribute): Add maybe_unused.
965
9aa36ae5
JM
9662016-04-22 Jason Merrill <jason@redhat.com>
967
968 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
969
477d4906
IV
9702016-04-20 Ilya Verbin <ilya.verbin@intel.com>
971
972 PR c++/69363
973 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
974 * c-common.h (c_finish_cilk_clauses): Remove declaration.
975
fe37c7af
MM
9762016-04-18 Michael Matz <matz@suse.de>
977
978 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
979 and SET_DECL_ALIGN.
980
23f2660f
EB
9812016-04-17 Eric Botcazou <ebotcazou@adacore.com>
982
983 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
984 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
985 to incomplete types.
986 (dump_nested_type): Remove redundant tests and tidy up.
987 (print_ada_declaration): Also set TREE_VISITED on the declaration of
988 a type which is the typedef of an original type.
989
1e77281b
MP
9902016-04-15 Marek Polacek <polacek@redhat.com>
991
992 PR c/70651
993 * c-common.c (build_va_arg): Change two asserts into errors and return
994 error_mark_node.
995
b3a77f21
MP
9962016-04-13 Marek Polacek <polacek@redhat.com>
997
998 PR c++/70639
999 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1000 for switch statements, too.
1001
322b8466
JM
10022016-03-28 Jason Merrill <jason@redhat.com>
1003
1004 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1005
fbdb6baf
MP
10062016-03-23 Marek Polacek <polacek@redhat.com>
1007
1008 PR c++/69884
1009 * c.opt (Wignored-attributes): New option.
1010
5c240f4d
DM
10112016-03-22 David Malcolm <dmalcolm@redhat.com>
1012
1013 PR c/69993
1014 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1015 diagnostic text, reversing the order of the warning and note so
1016 that they appear in source order.
1017
14ba7b28
MP
10182016-03-17 Marek Polacek <polacek@redhat.com>
1019
1020 PR c/69407
1021 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1022 operations.
1023
08a1cadc
JM
10242016-03-14 Jason Merrill <jason@redhat.com>
1025
2aaeea19
JM
1026 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1027
08a1cadc
JM
1028 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1029
c06d25bb
RB
10302016-03-09 Richard Biener <rguenther@suse.de>
1031
1032 PR c/70143
1033 * c-common.c (strict_aliasing_warning): Add back
1034 alias_sets_conflict_p check.
1035
80aac5c8
JM
10362016-03-08 Jason Merrill <jason@redhat.com>
1037
1038 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1039
64b23c13
DM
10402016-03-04 David Malcolm <dmalcolm@redhat.com>
1041
1042 PR c/68187
1043 * c-indentation.c (get_visual_column): Move code to determine next
1044 tab stop to...
1045 (next_tab_stop): ...this new function.
1046 (line_contains_hash_if): Delete function.
1047 (detect_preprocessor_logic): Delete function.
1048 (get_first_nws_vis_column): New function.
1049 (detect_intervening_unindent): New function.
1050 (should_warn_for_misleading_indentation): Replace call to
1051 detect_preprocessor_logic with a call to
1052 detect_intervening_unindent.
1053
729526f5
DM
10542016-03-04 David Malcolm <dmalcolm@redhat.com>
1055
1056 PR c/68187
1057 * c-indentation.c (should_warn_for_misleading_indentation): When
1058 suppressing warnings about cases where the guard and body are on
1059 the same column, only use the first non-whitespace column in place
1060 of the guard token column when dealing with "else" clauses.
1061 When rejecting aligned BODY and NEXT, loosen the requirement
1062 from equality with the first non-whitespace of guard to simply
1063 that they not be indented relative to it.
1064
e9a35493
RB
10652016-03-04 Richard Biener <rguenther@suse.de>
1066
1067 PR c++/70054
1068 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1069 instead of alias_sets_conflict_p.
1070
1be56bc5
MP
10712016-03-01 Marek Polacek <polacek@redhat.com>
1072
1073 PR c++/69795
1074 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1075 any DECL.
1076
35886f0b
MS
10772016-02-22 Martin Sebor <msebor@redhat.com>
1078
1079 PR middle-end/69780
1080 * c-common.c (check_builtin_function_arguments): Validate and
1081 reject invalid arguments to __builtin_alloca_with_align.
1082
4246c8da
MW
10832016-02-20 Mark Wielaard <mjw@redhat.com>
1084
1085 PR c/28901
1086 * c.opt (Wunused-const-variable): Turn into Alias for...
1087 (Wunused-const-variable=): New option.
1088
268be88c
BE
10892016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1090
1091 PR c++/69865
1092 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1093 here...
1094 (c_common_init_options): ...to here.
1095 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1096
871b3f47
JJ
10972016-02-19 Jakub Jelinek <jakub@redhat.com>
1098
1099 PR c++/69826
1100 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1101 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1102 flag_preprocess_only.
1103
bf14eba2
JJ
11042016-02-16 Jakub Jelinek <jakub@redhat.com>
1105
1106 PR c/69835
1107 * c.opt (Wnonnull-compare): Enable for -Wall.
1108
ba6b3795
JJ
11092016-02-15 Jakub Jelinek <jakub@redhat.com>
1110
1111 PR c++/69797
1112 * c-common.c (sync_resolve_size): Diagnose too few arguments
1113 even when params is non-NULL empty vector.
1114
a011cd92
BS
11152016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1116
1117 PR target/60410
1118 * c.opt (fshort-double): Remove.
1119
46cb9332
MS
11202016-02-05 Martin Sebor <msebor@redhat.com>
1121
1122 PR c++/69662
1123 * c.opt (Warning options): Update -Wplacement-new to take
1124 an optional argument.
1125
e1b81f2b
JJ
11262016-02-01 Jakub Jelinek <jakub@redhat.com>
1127
1128 PR preprocessor/69543
1129 PR c/69558
1130 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1131 instead of loc to control_warning_option.
1132
b6adbb9f
NS
11332016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1134
1135 * c.opt (fopenacc-dim=): New option.
1136
5d70666e
RB
11372016-01-27 Ryan Burn <contact@rnburn.com>
1138
1139 PR cilkplus/69267
1140 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1141 gimplify_arg. Removed superfluous post_p argument.
1142 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1143 superfluous post_p argument.
1144 * c-gimplify.c (c_gimplify_expr): Likewise.
1145
01e1dea3
DM
11462016-01-26 David Malcolm <dmalcolm@redhat.com>
1147
1148 PR other/69006
1149 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1150 pp_newline_and_flush with pp_flush.
1151
9f04a53e
MS
11522016-01-20 Martin Sebor <msebor@redhat.com>
1153
1154 PR c/69405
1155 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1156 an incompatible argument when the argument isn't a valid tree node.
1157
7f26f7df
JM
11582016-01-18 Jason Merrill <jason@redhat.com>
1159
1160 PR c++/68767
1161 * c-common.c (check_function_arguments_recurse): Fold the whole
1162 COND_EXPR, not just the condition.
1163
f62bf092
TV
11642016-01-18 Tom de Vries <tom@codesourcery.com>
1165
1166 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1167 classify as loop clause.
1168
e0a575ff
JJ
11692016-01-15 Jakub Jelinek <jakub@redhat.com>
1170
1171 PR bootstrap/68271
1172 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1173 C++ FE no longer has limit on number of pragmas.
1174
11752015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1176
1177 PR c++/69048
1178 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1179 to add missing cleanup point.
b6e3db06 1180
c7df95d8
DM
11812016-01-14 David Malcolm <dmalcolm@redhat.com>
1182
1183 PR c++/68819
1184 * c-indentation.c (get_visual_column): Add location_t param.
1185 Handle the column number being zero by effectively disabling the
1186 warning, with an "inform".
1187 (should_warn_for_misleading_indentation): Add location_t argument
1188 for all uses of get_visual_column.
1189
21efdd80
PP
11902016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1191
1192 PR c++/69029
1193 * c-indentation.c (should_warn_for_misleading_indentation):
1194 Don't warn about do-while statements.
1195
7a127fa7
MS
11962016-01-07 Martin Sebor <msebor@redhat.com>
1197
1198 PR c/68966
1199 * c-common.c (sync_resolve_size): Reject first argument when it's
1200 a pointer to _Bool.
1201
c589e975
DM
12022016-01-05 David Malcolm <dmalcolm@redhat.com>
1203
1204 PR c/69122
1205 * c-indentation.c (get_visual_column): Remove default argument.
1206 (should_warn_for_misleading_indentation): For the multiline case,
1207 update call to get_visual_column for next_stmt_exploc so that it
1208 captures the location of the first non-whitespace character in the
1209 relevant line. Don't issue warnings if there is non-whitespace
1210 before the next statement.
1211
818ab71a
JJ
12122016-01-04 Jakub Jelinek <jakub@redhat.com>
1213
1214 Update copyright years.
1215
745e411d
DM
12162015-12-21 David Malcolm <dmalcolm@redhat.com>
1217
1218 * c-common.c (binary_op_error): Convert first param from
1219 location_t to rich_location * and use it when emitting an error.
1220 * c-common.h (binary_op_error): Convert first param from
1221 location_t to rich_location *.
1222
de67c4c3
DM
12232015-12-16 David Malcolm <dmalcolm@redhat.com>
1224
1225 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1226 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1227
4a38b02b
IV
12282015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1229
1230 * c-common.c (c_common_attribute_table): Handle "omp declare target
1231 link" attribute.
1232
54d62f51
JJ
12332015-12-14 Jakub Jelinek <jakub@redhat.com>
1234
1235 PR c/68833
1236 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1237
8d4227c8
TB
12382014-12-12 Tobias Burnus <burnus@net-b.de>
1239
1240 PR fortran/68815
1241 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1242 specifiers (%d, %i,%u and %c).
1243
f6069ccc
DM
12442015-12-10 David Malcolm <dmalcolm@redhat.com>
1245
1246 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1247
63bbf46d
JJ
12482015-12-08 Jakub Jelinek <jakub@redhat.com>
1249
1250 PR c/48088
1251 PR c/68657
1252 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1253 * c-pragma.c (handle_pragma_diagnostic): Adjust
1254 control_warning_option caller.
1255
f79520bb
DM
12562015-12-07 David Malcolm <dmalcolm@redhat.com>
1257
1258 * c-common.c (c_cpp_error): Update for change to
1259 rich_location::set_range.
1260
b3d5bc62
JJ
12612015-12-04 Paolo Bonzini <bonzini@gnu.org>
1262
1263 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1264 shifting 1 out of the sign bit.
1265
12662015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1267
1268 * c-common.c (c_common_attribute_table[]): Update max arguments
1269 count for "simd" attribute.
1270 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1271
6eb4a537
JJ
12722015-12-03 Jakub Jelinek <jakub@redhat.com>
1273
1274 PR preprocessor/57580
1275 * c-ppoutput.c (print): Change printed field to bool.
1276 Move src_file last for smaller padding.
1277 (init_pp_output): Set print.printed to false instead of 0.
1278 (scan_translation_unit): Fix up formatting. Set print.printed
1279 to true after printing something other than newline.
1280 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1281 (maybe_print_line_1): Set print.printed to false instead of 0.
1282 (print_line_1): Likewise.
1283 (do_line_change): Set print.printed to true instead of 1.
1284 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1285 dump_macro): Set print.printed to false after printing newline.
1286
4250754e
JM
12872015-12-02 Jason Merrill <jason@redhat.com>
1288
f479b43d
JM
1289 * c-common.c (fold_for_warn): New.
1290 (warn_logical_operator, warn_tautological_cmp)
1291 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1292
4250754e
JM
1293 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1294 (c_fully_fold_internal, decl_constant_value_for_optimization):
1295 Move to c/c-fold.c.
1296 * c-common.h: Don't declare decl_constant_value_for_optimization.
1297
e9e32ee6
JM
12982015-12-02 Joseph Myers <joseph@codesourcery.com>
1299
1300 PR c/68162
1301 * c-common.h (c_build_qualified_type): Add extra default
1302 arguments.
1303
37d5ad46
JB
13042015-12-01 Julian Brown <julian@codesourcery.com>
1305 Cesar Philippidis <cesar@codesourcery.com>
1306 James Norris <James_Norris@mentor.com>
1307
1308 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1309 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1310 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1311
f07862c7
EB
13122015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1313
1314 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1315 (decl_sloc_common): Delete and move bulk of processing to...
1316 (decl_sloc): ...here.
1317 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1318 (dump_ada_double_name): Remove S parameter and compute the suffix.
1319 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1320 element type and deal with an anonymous one.
1321 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1322 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1323 and remove reference to QUAL_UNION_TYPE.
1324 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1325 (dump_nested_type): ...here. New function extracted from above.
1326 Generate a full declaration for anonymous element type of arrays.
1327 (print_ada_declaration): Really skip anonymous declarations. Remove
1328 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1329 Clean up processing of declarations of array types and objects.
1330 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1331 Remove obsolete code and tidy up.
1332
75c8aac3
JH
13332015-11-29 Jan Hubicka <hubicka@ucw.cz>
1334
1335 PR c/67581
1336 * c-common.c (handle_transparent_union_attribute): Update
1337 also type variants.
1338
b58d3df2
ML
13392015-11-27 Martin Liska <mliska@suse.cz>
1340
1341 PR c++/68312
1342 * array-notation-common.c (cilkplus_extract_an_triplets):
1343 Release vector of vectors.
1344 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1345
89a01fcf
EB
13462015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1347
1348 PR c++/68527
1349 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1350 (print_ada_struct_decl): Likewise.
1351
cc5c5226
IZ
13522015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1353
1354 PR c++/68001
1355 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1356 * cilk.c (recognize_spawn): Determine location in a more precise
1357 way.
1358
269adb9d
JM
13592015-11-19 Jason Merrill <jason@redhat.com>
1360
1361 * c-common.c (shorten_compare): But look through macros from
1362 system headers.
1363
d0eccfcd
JM
13642015-11-18 Jason Merrill <jason@redhat.com>
1365
1366 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1367 non-constant operand comes from a macro.
1368
3e44547c
JM
13692015-11-17 Jason Merrill <jason@redhat.com>
1370
1371 PR bootstrap/68346
1372 * c-common.c (warn_tautological_cmp): Fold before checking for
1373 constants.
1374
0f62c7a0
MP
13752015-11-16 Marek Polacek <polacek@redhat.com>
1376
1377 PR c++/68362
1378 * c-common.c (check_case_bounds): Fold low and high cases.
1379
a868811e
MP
13802015-11-16 Marek Polacek <polacek@redhat.com>
1381
1382 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1383 * c-common.c (c_common_get_alias_set): Likewise.
1384 (handle_visibility_attribute): Likewise.
1385
fff77217
KY
13862015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1387
1388 * c-common.c (handle_simd_attribute): New.
1389 (struct attribute_spec): Add entry for "simd".
1390 (handle_simd_attribute): New.
1391
269e63b7
KT
13922015-11-13 Kai Tietz <ktietz70@googlemail.com>
1393
1394 * c-lex.c (interpret_float): Use fold_convert.
1395
ebedc9a3
DM
13962015-11-13 David Malcolm <dmalcolm@redhat.com>
1397
1398 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1399 and store it on the result.
1400 * c-opts.c (c_common_init_options): Set
1401 global_dc->colorize_source_p.
1402
6e232ba4
JN
14032015-11-12 James Norris <jnorris@codesourcery.com>
1404 Joseph Myers <joseph@codesourcery.com>
1405
1406 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1407 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1408 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1409 PRAGMA_OACC_CLAUSE_LINK.
1410
e78bede6
MP
14112015-11-11 Marek Polacek <polacek@redhat.com>
1412
1413 PR c/68107
1414 PR c++/68266
1415 * c-common.c (valid_array_size_p): New function.
1416 * c-common.h (valid_array_size_p): Declare.
1417
3f8257db 14182015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1419
1420 PR bootstrap/68271
1421 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1422
69f293c9
AM
14232015-11-11 Andrew MacLeod <amacleod@redhat.com>
1424
1425 * array-notation-common.c: Remove unused header files.
1426 * c-ada-spec.c: Likewise.
1427 * c-cilkplus.c: Likewise.
1428 * c-common.c: Likewise.
1429 * c-cppbuiltin.c: Likewise.
1430 * c-dump.c: Likewise.
1431 * c-format.c: Likewise.
1432 * c-gimplify.c: Likewise.
1433 * c-indentation.c: Likewise.
1434 * c-lex.c: Likewise.
1435 * c-omp.c: Likewise.
1436 * c-opts.c: Likewise.
1437 * c-pch.c: Likewise.
1438 * c-ppoutput.c: Likewise.
1439 * c-pragma.c: Likewise.
1440 * c-pretty-print.c: Likewise.
1441 * c-semantics.c: Likewise.
1442 * c-ubsan.c: Likewise.
1443 * cilk.c: Likewise.
1444 * stub-objc.c: Likewise.
1445
3a40d81d
NS
14462015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1447 Cesar Philippidis <cesar@codesourcery.com>
1448 James Norris <jnorris@codesourcery.com>
1449 Julian Brown <julian@codesourcery.com>
1450 Nathan Sidwell <nathan@codesourcery.com>
1451
1452 * c-pragma.c (oacc_pragmas): Add "routine".
1453 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1454
ee45a32d
EB
14552015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1456
1457 * c-common.c (c_common_attributes): Add scalar_storage_order.
1458 (handle_scalar_storage_order_attribute): New function.
1459 * c-pragma.c (global_sso): New variable.
1460 (maybe_apply_pragma_scalar_storage_order): New function.
1461 (handle_pragma_scalar_storage_order): Likewise.
1462 (init_pragma): Register scalar_storage_order.
1463 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1464 * c.opt (Wscalar-storage-order): New warning.
1465 (fsso-struct=): New option.
1466
eb11eb15
MS
14672015-11-08 Martin Sebor <msebor@redhat.com>
1468
1469 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1470
0aad0198
RS
14712015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1472
1473 * c-common.c: Don't undef DEF_BUILTIN.
1474
8a645150
DM
14752015-11-06 David Malcolm <dmalcolm@redhat.com>
1476
1477 * c-common.c (c_cpp_error): Convert parameter from location_t to
1478 rich_location *. Eliminate the "column_override" parameter and
1479 the call to diagnostic_override_column.
1480 Update the "done_lexing" clause to set range 0
1481 on the rich_location, rather than overwriting a location_t.
1482 * c-common.h (c_cpp_error): Convert parameter from location_t to
1483 rich_location *. Eliminate the "column_override" parameter.
1484
7a5e4956
CP
14852015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1486 Thomas Schwinge <thomas@codesourcery.com>
1487 James Norris <jnorris@codesourcery.com>
1488
1489 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1490 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1491 clauses with parallel and kernels and loops.
1492 * c-pragma.h (enum pragma_omp_clause): Add entries for
1493 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1494 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1495 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1496 INDEPENDENT,SEQ}.
1497 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1498
e2f5cc96
MS
14992015-11-05 Martin Sebor <msebor@redhat.com>
1500
1501 PR c++/67942
1502 * c.opt (-Wplacement-new): New option.
1503
e01d41e5
JJ
15042015-11-05 Jakub Jelinek <jakub@redhat.com>
1505
1506 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1507 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1508 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1509 save_expr or create_tmp_var* if TEST is true.
1510 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1511 Don't call add_stmt here.
1512 (struct c_omp_check_loop_iv_data): New type.
1513 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1514 c_omp_check_loop_iv_exprs): New functions.
1515 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1516 distribute.
1517 (c_omp_declare_simd_clauses_to_numbers): Change
1518 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1519 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1520 from numbers to PARM_DECLs.
1521
595278be
MM
15222015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1523
1524 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1525 flag_checking.
1526
3f8257db 15272015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1528
1529 PR c++-common/67882
b3d5bc62
JJ
1530 * c-common.h (fold_offsetof_1): Add argument.
1531 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1532 offsetof expressions that reference elements past the end of
1533 an array.
1534
4bf9e5a8
TS
15352015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1536 Chung-Lin Tang <cltang@codesourcery.com>
1537
1538 * c-pragma.c (oacc_pragmas): Add "atomic".
1539 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1540
3b1661a9
ES
15412015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1542
1543 * c-common.c (handle_target_clones_attribute): New.
1544 (c_common_attribute_table): Add handle_target_clones_attribute.
1545 (handle_always_inline_attribute): Add check on target_clones attribute.
1546 (handle_target_attribute): Ditto.
1547
2adfab87
AM
15482015-10-29 Andrew MacLeod <amacleod@redhat.com>
1549
1550 * array-notation-common.c: Reorder #include's and remove duplicates.
1551 * c-ada-spec.c: Likewise.
1552 * c-cilkplus.c: Likewise.
1553 * c-common.c: Likewise.
1554 * c-cppbuiltin.c: Likewise.
1555 * c-dump.c: Likewise.
1556 * c-format.c: Likewise.
1557 * c-gimplify.c: Likewise.
1558 * c-indentation.c: Likewise.
1559 * c-lex.c: Likewise.
1560 * c-omp.c: Likewise.
1561 * c-opts.c: Likewise.
1562 * c-pch.c: Likewise.
1563 * c-ppoutput.c: Likewise.
1564 * c-pragma.c: Likewise.
1565 * c-pretty-print.c: Likewise.
1566 * c-semantics.c: Likewise.
1567 * c-ubsan.c: Likewise.
1568 * cilk.c: Likewise.
1569 * stub-objc.c: Likewise.
1570
d90ec4f2
JM
15712015-10-28 Jason Merrill <jason@redhat.com>
1572
1573 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1574
88bae6f4
TS
15752015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1576 James Norris <jnorris@codesourcery.com>
1577 Cesar Philippidis <cesar@codesourcery.com>
1578
1579 PR c/64765
1580 PR c/64880
1581 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1582 * c-omp.c (c_oacc_split_loop_clauses): New function.
1583
b1726d6c
MS
15842015-10-21 Martin Sebor <msebor@redhat.com>
1585
1586 PR driver/68043
1587 * c.opt: End each sentence that describes an option with a period.
1588
fa60eeb9
MP
15892015-10-20 Marek Polacek <polacek@redhat.com>
1590
1591 * array-notation-common.c (is_cilkplus_vector_p): Define.
1592 * c-common.h (is_cilkplus_vector_p): Declare.
1593
95979049
MP
15942015-10-20 Marek Polacek <polacek@redhat.com>
1595
1596 * c.opt (std=gnu++11): Do not describe as experimental.
1597 (std=gnu++14): Likewise.
1598
2a9fb712
JM
15992015-10-19 Jason Merrill <jason@redhat.com>
1600
1601 * c-cppbuiltin.c (c_cpp_builtins): Define
1602 __cpp_nontype_template_args.
1603
13b380a3
JM
16042015-10-19 Jason Merrill <jason@redhat.com>
1605
1606 * c-cppbuiltin.c (c_cpp_builtins): Define
1607 __cpp_enumerator_attributes, __cpp_fold_expressions,
1608 __cpp_unicode_characters.
1609
d9a6bd32
JJ
16102015-10-13 Jakub Jelinek <jakub@redhat.com>
1611 Aldy Hernandez <aldyh@redhat.com>
1612
1613 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1614 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1615 (c_define_builtins): Likewise.
1616 * c-common.h (enum c_omp_clause_split): Add
1617 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1618 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1619 (c_finish_omp_for): Add ORIG_DECLV argument.
1620 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1621 201511 instead of 201307.
1622 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1623 OMP_CRITICAL_CLAUSES to it.
1624 (c_finish_omp_ordered): Add CLAUSES argument, set
1625 OMP_ORDERED_CLAUSES to it.
1626 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1627 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1628 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1629 constructs and new OpenMP 4.5 clauses. Clear
1630 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1631 verification code.
1632 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1633 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1634 (enum pragma_omp_clause): Add
1635 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1636 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1637
624d31fe
RS
16382015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1639
1640 * c-lex.c (interpret_float): Use real_equal instead of
1641 REAL_VALUES_EQUAL.
1642
b8fd7909
JM
16432015-10-04 Jason Merrill <jason@redhat.com>
1644
1645 Implement N4514, C++ Extensions for Transactional Memory.
1646 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1647 (c_common_attribute_table): Add transaction_safe_dynamic.
1648 transaction_safe now affects type identity.
1649 (handle_tm_attribute): Handle transaction_safe_dynamic.
1650 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1651 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1652 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1653 (D_TRANSMEM): New.
1654 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1655 * c-pretty-print.c (pp_c_attributes_display): Don't print
1656 transaction_safe in C++.
1657
12651878
MP
16582015-10-02 Marek Polacek <polacek@redhat.com>
1659
1660 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1661
3e3b8d63
MP
16622015-10-02 Marek Polacek <polacek@redhat.com>
1663
1664 PR c/64249
1665 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1666 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1667 * c.opt (Wduplicated-cond): New option.
1668
0d1a8f75
JM
16692015-10-01 Joseph Myers <joseph@codesourcery.com>
1670
1671 * c.opt (std=c11): Do not describe as experimental.
1672 (std=gnu11): Likewise.
1673 (std=iso9899:2011): Likewise.
1674
3e32ee19
NS
16752015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1676
1677 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1678 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1679
974348ee
MP
16802015-09-25 Marek Polacek <polacek@redhat.com>
1681
1682 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1683 (ubsan_instrument_shift): Likewise.
1684
15dbc1a6
MP
16852015-09-25 Marek Polacek <polacek@redhat.com>
1686
1687 PR sanitizer/64906
1688 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1689
6b95d7cc
PP
16902015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1691
1692 * c-indentation.c (should_warn_for_misleading_indentation):
1693 Compare next_stmt_vis_column with guard_line_first_nws instead
1694 of with guard_line_vis_column.
1695
c1822f9c
MLI
16962015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1697
1698 PR c/49654
1699 PR c/49655
1700 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1701 options and options not valid for the current language.
1702
d5398058
PP
17032015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1704
1705 * c-indentation.c (should_warn_for_misleading_indentation):
1706 Float out and consolidate the calls to get_visual_column that
1707 are passed guard_exploc as an argument. Compare
1708 next_stmt_vis_column with guard_line_first_nws instead of with
1709 body_line_first_nws.
1710
6b333269
NS
17112015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1712
1713 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1714 Wnamespaces): New C++ warnings.
1715
a75f1574
JM
17162015-09-22 Jason Merrill <jason@redhat.com>
1717
1718 * c-common.h (abi_compat_version_crosses): New.
1719 (warn_abi_version): Declare.
1720 * c-common.c: Define it.
1721 * c-opts.c (c_common_post_options): Handle it.
1722 flag_abi_compat_version defaults to 8.
1723
bdaaa8b7
VV
17242015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1725
1726 Complete the implementation of N4230, Nested namespace definition.
1727 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1728 __cpp_nested_namespace_definitions.
1729
eaa797e8
MLI
17302015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1731
1732 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1733
c4914de6
MLI
17342015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1735
1736 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1737 when warning.
1738 * c-pragma.h (pragma_lex): Add optional loc argument.
1739
fcb87c50
MM
17402015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1741
1742 * c-format.c (check_format_arg): Adjust to use common block size in all
1743 object pools.
1744
31bdd08a
DM
17452015-09-15 David Malcolm <dmalcolm@redhat.com>
1746
1747 * c-format.c (location_from_offset): Update for change in
1748 signature of location_get_source_line.
1749 * c-indentation.c (get_visual_column): Likewise.
1750 (line_contains_hash_if): Likewise.
1751
aa9f4b4c
MP
17522015-09-14 Marek Polacek <polacek@redhat.com>
1753
1754 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1755 setting various warnings.
1756
aa256c4a
MP
17572015-09-14 Marek Polacek <polacek@redhat.com>
1758
1759 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1760 a negative value.
1761
0f876f22
MW
17622015-09-11 Mark Wielaard <mjw@redhat.com>
1763
1764 PR c/28901
1765 * c.opt (Wunused-variable): Option from common.opt.
1766 (Wunused-const-variable): New option.
1767
273aa49e
PC
17682015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1769
1770 PR c++/53184
1771 * c.opt ([Wsubobject-linkage]): Add.
1772
1807ffc1
MS
17732015-09-03 Martin Sebor <msebor@redhat.com>
1774
1775 PR c/66516
1776 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1777 functions.
1778 * c-common.c (reject_gcc_builtin): Define.
1779
38942840
BI
17802015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1781
1782 PR middle-end/60586
1783 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1784 prototype.
1785 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1786 cilk_gimplify_call_params_in_spawned_fn.
1787 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1788 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1789 unwrapping.
1790
c316b5e4
MP
17912015-08-25 Marek Polacek <polacek@redhat.com>
1792
1793 PR middle-end/67330
1794 * c-common.c (handle_weak_attribute): Don't check whether the
1795 visibility can be changed here.
1796
584a7c46
MLI
17972015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1798
1799 * c-lex.c (c_lex_with_flags): Use explicit locations.
1800
a79683d5
TS
18012015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1802
1803 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1804 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1805
61717a45
FXC
18062015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1807
1808 PR middle-end/36757
1809 * c-common.c (check_builtin_function_arguments): Add check
1810 for BUILT_IN_SIGNBIT argument.
1811
329524f5
PC
18122015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1813
1814 PR c++/67160
1815 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1816 in c++1z mode.
1817
4ee55665
MP
18182015-08-17 Marek Polacek <polacek@redhat.com>
1819
1820 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1821 with whitespaces before qualifier names.
1822
b893e375
MP
18232015-08-12 Marek Polacek <polacek@redhat.com>
1824
1825 PR c++/55095
1826 * c-common.c (maybe_warn_shift_overflow): Properly handle
1827 left-shifting 1 into the sign bit.
1828
c2d89095
MLI
18292015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1830
1831 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1832
971e17ff
AS
18332015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1834 Braden Obrzut <admin@maniacsvault.net>
1835 Jason Merrill <jason@redhat.com>
1836
1837 Add C++ Concepts TS support.
1838 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1839 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1840 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1841 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1842 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1843 * c.opt (fconcepts): New.
1844
b3d5bc62
JJ
18452015-08-02 Martin Sebor <msebor@redhat.com>
1846
1847 * c.opt (-Wframe-address): New warning option.
1848
8ebca419
PP
18492015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1850
1851 * c-indentation.c (should_warn_for_misleading_indentation):
1852 Improve heuristics.
1853
1a1e101f
PP
18542015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1855
1856 * c-indentation.c (get_visual_column): Add parameter first_nws,
1857 use it. Update comment documenting the function.
1858 (is_first_nonwhitespace_on_line): Remove.
1859 (should_warn_for_misleading_indentation): Replace usage of
1860 of is_first_nonwhitespace_on_line with get_visual_column.
1861
992118a1
PP
18622015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1863
1864 * c-indentation.h (struct token_indent_info): Define.
1865 (get_token_indent_info): Define.
1866 (warn_for_misleading_information): Declare.
1867 * c-common.h (warn_for_misleading_information): Remove.
1868 * c-identation.c (warn_for_misleading_indentation):
1869 Change declaration to take three token_indent_infos. Adjust
1870 accordingly.
1871 * c-identation.c (should_warn_for_misleading_indentation):
1872 Likewise. Bail out early if the body is a compound statement.
1873 (guard_tinfo_to_string): Define.
1874
e8fa3817
JM
18752015-07-30 Jason Merrill <jason@redhat.com>
1876
1877 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1878 '*' for reference decay.
1879
173864e8
MP
18802015-07-30 Marek Polacek <polacek@redhat.com>
1881
1882 * c-common.c (warn_tautological_cmp): Bail for float types.
1883
f2afe6dd
MP
18842015-07-27 Marek Polacek <polacek@redhat.com>
1885
1886 PR bootstrap/67030
1887 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1888
05b28fd6
MP
18892015-07-27 Marek Polacek <polacek@redhat.com>
1890
1891 PR c++/66555
1892 PR c/54979
1893 * c-common.c (find_array_ref_with_const_idx_r): New function.
1894 (warn_tautological_cmp): New function.
1895 * c-common.h (warn_tautological_cmp): Declare.
1896 * c.opt (Wtautological-compare): New option.
1897
5a5062b8
MP
18982015-07-23 Marek Polacek <polacek@redhat.com>
1899
1900 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1901 (ubsan_instrument_shift): Likewise.
1902
dc891fe7
MP
19032015-07-23 Marek Polacek <polacek@redhat.com>
1904
1905 PR sanitizer/66908
1906 * c-ubsan.c: Include gimplify.h.
1907 (ubsan_instrument_division): Unshare OP0 and OP1.
1908 (ubsan_instrument_shift): Likewise.
1909
451b5e48
MP
19102015-07-20 Marek Polacek <polacek@redhat.com>
1911 Richard Sandiford <richard.sandiford@arm.com>
1912
1913 PR c++/55095
1914 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1915 Use EXPR_LOC_OR_LOC.
1916 (maybe_warn_shift_overflow): New function.
1917 * c-common.h (maybe_warn_shift_overflow): Declare.
1918 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1919 * c.opt (Wshift-overflow): New option.
1920
fb0b2914
ML
19212015-07-16 Martin Liska <mliska@suse.cz>
1922
1923 * c-format.c (static void check_format_info_main): Use
1924 object_allocator instead of pool_allocator.
1925 (check_format_arg): Likewise.
1926 (check_format_info_main): Likewise.
1927
903f5c23
AM
19282015-07-15 Andrew MacLeod <amacleod@redhat.com>
1929
1930 * c-opts.c: Remove multiline #include comment.
1931
026c3cfd
AH
19322015-07-12 Aldy Hernandez <aldyh@redhat.com>
1933
1934 * c-common.c: Fix double word typos.
1935
bb49ee66
EB
19362015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1937
1938 * c-ada-spec.h (cpp_operation): Revert latest change.
1939 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1940 constructors and destructors.
1941
1916bcb5
AM
19422015-07-09 Andrew MacLeod <amacleod@redhat.com>
1943
1944 * c-common.h: Adjust includes for flags.h changes.
1945 * stub-objc.c: Likewise.
026c3cfd 1946
a9dcd529
EB
19472015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1948
1949 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1950 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1951
b03b462f
JJ
19522015-07-08 Jakub Jelinek <jakub@redhat.com>
1953
1954 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1955 are to be removed, return NULL rather than original clauses list.
1956
c7131fb2
AM
19572015-07-07 Andrew MacLeod <amacleod@redhat.com>
1958
1959 * array-notation-common.c: Adjust includes.
1960 * c-ada-spec.c: Likewise.
1961 * c-cilkplus.c: Likewise.
1962 * c-common.h: Likewise.
1963 * c-cppbuiltin.c: Likewise.
1964 * c-dump.c: Likewise.
1965 * c-format.c: Likewise.
1966 * c-gimplify.c: Likewise.
1967 * c-indentation.c: Likewise.
1968 * c-lex.c: Likewise.
1969 * c-omp.c: Likewise.
1970 * c-opts.c: Likewise.
1971 * c-pch.c: Likewise.
1972 * c-ppoutput.c: Likewise.
1973 * c-pragma.c: Likewise.
1974 * c-pretty-print.c: Likewise.
1975 * c-semantics.c: Likewise.
1976 * c-ubsan.c: Likewise.
1977 * cilk.c: Likewise.
1978 * stub-objc.c: Likewise.
1979
2a7fb83f
EB
19802015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1981
1982 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1983 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1984
a03c9bf1
JM
19852015-07-01 Jason Merrill <jason@redhat.com>
1986
36a85135
JM
1987 * c-common.h (D_CXX11): Rename from D_CXX0X.
1988 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1989 * c-common.c: Adjust.
1990
e7fa68d5
JM
1991 * c-opts.c (c_common_post_options): Default to C++14.
1992
a03c9bf1
JM
1993 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1994
fe95b036
ESR
19952015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1996
1997 Implement N4197 - Adding u8 character literals
b3d5bc62 1998 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1999 CPP_CHAR.
b3d5bc62 2000 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2001 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2002 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2003 and CPP_UTF8CHAR tokens.
2004 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2005
da2e71c9
MLI
20062015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2007
2008 PR fortran/66605
2009 * c-common.c (do_warn_unused_parameter): Move here.
2010 * c-common.h (do_warn_unused_parameter): Declare.
2011
b155cfd9
MP
20122015-06-29 Marek Polacek <polacek@redhat.com>
2013
2014 PR c/66322
2015 * c-common.c (check_case_bounds): Add bool * parameter. Set
2016 OUTSIDE_RANGE_P.
2017 (c_add_case_label): Add bool * parameter. Pass it down to
2018 check_case_bounds.
2019 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2020 warning here.
2021 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2022 declarations.
2023
31521951
MP
20242015-06-27 Marek Polacek <polacek@redhat.com>
2025
2026 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2027 or VECTOR_INTEGER_TYPE_P throughout.
2028 * c-gimplify.c: Likewise.
2029
22d03525
MP
20302015-06-26 Marek Polacek <polacek@redhat.com>
2031
2032 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2033 * c-common.c (c_fully_fold_internal): Likewise.
2034 (c_alignof_expr): Likewise.
2035 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2036 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2037 * cilk.c (create_parm_list): Likewise.
22d03525 2038
af05e6e5
MP
20392015-06-26 Marek Polacek <polacek@redhat.com>
2040
2041 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2042
f0889939
AM
20432015-06-25 Andrew MacLeod <amacleod@redhat.com>
2044
2045 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2046 * c-gimplify.c: Likewise.
2047 * c-pragma.c: Likewise.
2048 * c-ubsan.c: Likewise.
2049 * cilk.c: Likewise.
2050
ca752f39
RS
20512015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2052
2053 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2054 ggc_hasher.
2055
16a16ec7
AM
20562015-06-25 Andrew MacLeod <amacleod@redhat.com>
2057
2058 * cilk.c: Move calls.h after tm.h in the include chain.
2059
0ae9bd27
MP
20602015-06-25 Marek Polacek <polacek@redhat.com>
2061
2062 * array-notation-common.c: Use VAR_P throughout.
2063 * c-ada-spec.c: Likewise.
2064 * c-common.c: Likewise.
2065 * c-format.c: Likewise.
2066 * c-gimplify.c: Likewise.
2067 * c-omp.c: Likewise.
2068 * c-pragma.c: Likewise.
2069 * c-pretty-print.c: Likewise.
2070 * cilk.c: Likewise.
2071
62f9079a
MP
20722015-06-25 Marek Polacek <polacek@redhat.com>
2073
2074 * cilk.c (extract_free_variables): Use is_global_var.
2075
0fa16060
RS
20762015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2077
2078 * c-common.c: Don't include target-def.h.
2079
a68ae2e1
MP
20802015-06-23 Marek Polacek <polacek@redhat.com>
2081
2082 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2083 when comparing INTEGER_CSTs.
2084
c6a2f2d9
PMR
20852015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2086
2087 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2088 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2089 (dump_ada_template): Skip partially specialized types.
2090
6b4db501
MM
20912015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2092
2093 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2094 swapping.
2095
abb226c9
AM
20962015-06-17 Andrew MacLeod <amacleod@redhat.com>
2097
2098 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2099 * c-ada-spec.c: Likewise.
2100 * c-cilkplus.c: Likewise.
2101 * c-common.c: Likewise.
2102 * c-common.h: Likewise.
2103 * c-cppbuiltin.c: Likewise.
2104 * c-dump.c: Likewise.
2105 * c-format.c: Likewise.
2106 * c-gimplify.c: Likewise.
2107 * c-indentation.c: Likewise.
2108 * c-lex.c: Likewise.
2109 * c-omp.c: Likewise.
2110 * c-opts.c: Likewise.
2111 * c-pch.c: Likewise.
2112 * c-ppoutput.c: Likewise.
2113 * c-pragma.c: Likewise.
2114 * c-pretty-print.c: Likewise.
2115 * c-semantics.c: Likewise.
2116 * c-ubsan.c: Likewise.
2117 * cilk.c: Likewise.
2118 * stub-objc.c: Likewise.
2119
076fecad
PP
21202015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2121
2122 PR c++/65168
2123 * c-common.c (c_common_truthvalue_conversion): Warn when
2124 converting an address of a reference to a truth value.
2125
13fdf2e2
AM
21262015-06-08 Andrew MacLeod <amacleod@redhat.com>
2127
2128 * array-notation-common.c : Adjust include files.
2129 * c-ada-spec.c : Likewise.
2130 * c-cilkplus.c : Likewise.
2131 * c-common.c : Likewise.
2132 * c-common.h : Likewise.
2133 * c-cppbuiltin.c : Likewise.
2134 * c-dump.c : Likewise.
2135 * c-format.c : Likewise.
2136 * c-gimplify.c : Likewise.
2137 * c-indentation.c : Likewise.
2138 * c-lex.c : Likewise.
2139 * c-omp.c : Likewise.
2140 * c-opts.c : Likewise.
2141 * c-pch.c : Likewise.
2142 * c-ppoutput.c : Likewise.
2143 * c-pragma.c : Likewise.
2144 * c-pretty-print.c : Likewise.
2145 * c-semantics.c : Likewise.
2146 * c-ubsan.c : Likewise.
2147 * cilk.c : Likewise.
2148 * stub-objc.c : Likewise.
2149
a1661b90
MP
21502015-06-08 Marek Polacek <polacek@redhat.com>
2151
2152 PR c/66415
2153 * c-format.c (location_from_offset): Return LOC if LINE is null.
2154
d7438551
AH
21552015-06-05 Aldy Hernandez <aldyh@redhat.com>
2156
2157 * c-common.h (c_parse_final_cleanups): New prototype.
2158 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2159
b3d5bc62
JJ
21602015-06-04 Sriraman Tallam <tmsriram@google.com>
2161
2162 * c-common.c (noplt): New attribute.
2163 (handle_noplt_attribute): New handler.
2164
ecb9f223
AM
21652015-06-04 Andrew MacLeod <amacleod@redhat.com>
2166
2167 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2168 * c-ada-spec.c: Likewise.
2169 * c-cilkplus.c: Likewise.
2170 * c-common.c: Likewise.
2171 * c-common.h: Likewise.
2172 * c-cppbuiltin.c: Likewise.
2173 * c-dump.c: Likewise.
2174 * c-format.c: Likewise.
2175 * c-gimplify.c: Likewise.
2176 * c-indentation.c: Likewise.
2177 * c-lex.c: Likewise.
2178 * c-omp.c: Likewise.
2179 * c-opts.c: Likewise.
2180 * c-pch.c: Likewise.
2181 * c-ppoutput.c: Likewise.
2182 * c-pragma.c: Likewise.
2183 * c-pretty-print.c: Likewise.
2184 * c-semantics.c: Likewise.
2185 * c-ubsan.c: Likewise.
2186 * cilk.c: Likewise.
2187 * stub-objc.c: Likewise.
2188
6ac48155
DM
21892015-06-02 David Malcolm <dmalcolm@redhat.com>
2190
2191 PR c/66220:
2192 * c-indentation.c (should_warn_for_misleading_indentation): Use
2193 expand_location rather than expand_location_to_spelling_point.
2194 Don't warn if the guarding statement is more indented than the
2195 next/body stmts.
2196
773ce42e
DM
21972015-06-02 David Malcolm <dmalcolm@redhat.com>
2198
2199 * c-indentation.c (warn_for_misleading_indentation): Bail out
2200 immediately if -Wmisleading-indentation isn't enabled.
2201
4fef8379
ML
22022015-06-01 Martin Liska <mliska@suse.cz>
2203
2204 * c-format.c (check_format_arg):Use new type-based pool allocator.
2205 (check_format_info_main) Likewise.
2206
1edfb384
EB
22072015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2208
2209 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2210 (has_nontrivial_methods): Likewise.
2211
9677ef52
MP
22122015-05-25 Marek Polacek <polacek@redhat.com>
2213
2214 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2215
fd5c817a
MP
22162015-05-22 Marek Polacek <polacek@redhat.com>
2217
2218 PR c/47043
2219 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2220
a2f45fe6 22212015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2222
2223 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2224 STACK_GROWS_DOWNWARD.
2225
a2f45fe6 22262015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2227
2228 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2229 STACK_GROWS_DOWNWARD rather than if it is defined.
2230
0fee2ac2 22312015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2232
0fee2ac2
MLI
2233 PR c/52952
2234 * c-format.c (location_column_from_byte_offset): New.
2235 (location_from_offset): New.
2236 (struct format_wanted_type): Add offset_loc field.
2237 (check_format_info): Move handling of location for extra arguments
2238 closer to the point of warning.
2239 (check_format_info_main): Pass the result of location_from_offset
2240 to warning_at.
2241 (format_type_warning): Pass the result of location_from_offset
2242 to warning_at.
2243
cf4ef6f7
MP
22442015-05-20 Marek Polacek <polacek@redhat.com>
2245
2246 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2247
3a65ee74
MP
22482015-05-20 Marek Polacek <polacek@redhat.com>
2249
2250 * c-ada-spec.c (dump_sloc): Use DECL_P.
2251
21b634ae
MP
22522015-05-20 Marek Polacek <polacek@redhat.com>
2253
2254 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2255 * c-common.c: Likewise.
2256
0e50b624
DM
22572015-05-19 David Malcolm <dmalcolm@redhat.com>
2258
2259 * c-common.h (fe_file_change): Strengthen param from
2260 const line_map * to const line_map_ordinary *.
2261 (pp_file_change): Likewise.
2262 * c-lex.c (fe_file_change): Likewise.
2263 (cb_define): Use linemap_check_ordinary when invoking
2264 SOURCE_LINE.
2265 (cb_undef): Likewise.
2266 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2267 invoking cb_file_change.
2268 (c_finish_options): Likewise.
2269 (push_command_line_include): Likewise.
2270 (cb_file_change): Strengthen param "new_map" from
2271 const line_map * to const line_map_ordinary *.
2272 * c-ppoutput.c (cb_define): Likewise for local "map".
2273 (pp_file_change): Likewise for param "map" and local "from".
2274
fab27f52
MM
22752015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2276
2277 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2278
2fe1d762
TV
22792015-05-18 Tom de Vries <tom@codesourcery.com>
2280
2281 * c-common.c (build_va_arg_1): New function.
2282 (build_va_arg): Add address operator to va_list operand if necessary.
2283
7a37fa90
MM
22842015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2285
2286 PR c/48956
2287 * c-common.c (int_safely_convertible_to_real_p): Define.
2288 (unsafe_conversion_p): Check conversions involving complex types.
2289 (conversion_warning): Add new warning message for conversions which
2290 discard imaginary component.
2291 * c-common.h: (enum conversion_safety): Add new enumerator for such
2292 conversions.
2293
3aa3c9fc
MP
22942015-05-14 Marek Polacek <polacek@redhat.com>
2295
2296 PR c/66066
2297 PR c/66127
2298 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2299 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2300 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2301 use it. If FOR_INT_CONST, require that all evaluated operands be
2302 INTEGER_CSTs.
2303
c3388e62
DM
23042015-05-12 David Malcolm <dmalcolm@redhat.com>
2305
2306 * c-common.h (warn_for_misleading_indentation): New prototype.
2307 * c-indentation.c: New file.
2308 * c.opt (Wmisleading-indentation): New option.
2309
c7b38fd5
TV
23102015-05-12 Tom de Vries <tom@codesourcery.com>
2311
2312 PR tree-optimization/66010
2313 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2314
381bf11e
JM
23152015-05-09 Jason Merrill <jason@redhat.com>
2316
edff0c06
JM
2317 * c-opts.c (c_common_post_options): Also clear
2318 cpp_opts->cpp_warn_cxx11_compat.
2319
129211bc
JM
2320 * c-common.h (enum cxx_dialect): Add cxx_unset.
2321 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2322 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2323
381bf11e
JM
2324 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2325 (std=gnu++0x): Mark as Undocumented.
2326 (std=gnu++1y): Add deprecated message.
2327
fe191308
JM
23282015-05-08 Jason Merrill <jason@redhat.com>
2329
765189ff
JM
2330 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2331 * c-opts.c: Adjust.
2332
fe191308
JM
2333 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2334
755e528f
MP
23352015-05-08 Marek Polacek <polacek@redhat.com>
2336
2337 PR c/64918
2338 * c.opt (Woverride-init-side-effects): New option.
2339
0173bd2a
MP
23402015-05-07 Marek Polacek <polacek@redhat.com>
2341
2342 PR c/65179
2343 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2344 negative value.
2345 * c.opt (Wshift-negative-value): New option.
2346 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2347 when -Wextra and C99/C++11 mode.
2348
e0f0d3b9
MP
23492015-05-07 Marek Polacek <polacek@redhat.com>
2350 Martin Uecker <uecker@eecs.berkeley.edu>
2351
2352 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2353 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2354
8243e2a9
JM
23552015-05-05 Jason Merrill <jason@redhat.com>
2356
2357 * c.opt (Wterminate): New.
2358
577cd070
MP
23592015-04-30 Marek Polacek <polacek@redhat.com>
2360
2361 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2362 require that the non-constant be of a boolean type.
2363
0373796b
JT
23642015-04-29 Josh Triplett <josh@joshtriplett.org>
2365
e0f0d3b9
MP
2366 * c-common.c (handle_section_attribute): Refactor to reduce
2367 nesting and distinguish between error cases.
0373796b 2368
716c0ba6
MP
23692015-04-29 Marek Polacek <polacek@redhat.com>
2370
2371 PR c/64610
2372 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2373 with 0/1.
2374
8848828b
JJ
23752015-04-29 Jakub Jelinek <jakub@redhat.com>
2376
2377 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2378 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2379 HOST_BITS_PER_WIDE_INT.
2380
ecd0e562
TV
23812015-04-28 Tom de Vries <tom@codesourcery.com>
2382
2383 PR tree-optimization/65887
2384 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2385
2a877204 23862015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2387 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2388
2389 * c-ada-spec.c (in_function): Delete.
2390 (dump_generic_ada_node): Do not change in_function and remove the
2391 redundant code dealing with it.
2392 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2393 (print_ada_methods): Output the static member functions in a nested
2394 package after the regular methods as well as associated renamings.
2395
4853031e
MP
23962015-04-24 Marek Polacek <polacek@redhat.com>
2397
2398 PR c/65830
2399 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2400 and OPT_Wshift_count_overflow.
2401
8c2b7f79
MP
2402 PR c/63357
2403 * c-common.c (warn_logical_operator): Warn if the operands have the
2404 same expressions.
2405
b8787813
MP
24062015-04-24 Marek Polacek <polacek@redhat.com>
2407
2408 PR c/61534
2409 * c-common.c (warn_logical_operator): Bail if either operand comes
2410 from a macro expansion.
2411
8fba1830
BRF
24122015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2413
2414 PR target/55143
2415 * c-common.c (c_default_pointer_mode): Add definition.
2416 * c-common.h (c_default_pointer_mode): Add declaration.
2417
17958621
JJ
24182015-03-11 Jakub Jelinek <jakub@redhat.com>
2419
2420 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2421 on record_builtin_type argument.
2422
7ccb1a11
JJ
24232015-03-10 Jakub Jelinek <jakub@redhat.com>
2424
2425 PR c/65120
2426 * c-common.c (warn_logical_not_parentheses): Don't warn for
2427 !x == 0 or !x != 0.
2428
04fd785e
MP
24292015-03-07 Marek Polacek <polacek@redhat.com>
2430
2431 PR sanitizer/65280
2432 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2433 before trying to figure out whether we have a flexible array member.
2434
a4e26206
EB
24352015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2436 Jonathan Wakely <jwakely.gcc@gmail.com>
2437
2438 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2439
0d2489f4
EB
24402015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2441
2442 PR ada/65319
2443 * c-ada-spec.c (print_destructor): Remove obsolete code.
2444
83ed54d7
EB
24452015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2446
2447 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2448 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2449 DECL_TEMPLATE_RESULT emulations.
2450 (dump_ada_template)): Add guard for TYPE_METHODS.
2451
7631f0e2
MP
24522015-02-27 Marek Polacek <polacek@redhat.com>
2453
2454 PR c/65040
2455 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2456
d1783ae5
KT
24572015-02-27 Kai Tietz <ktietz@redhat.com>
2458
2459 PR c/35330
2460 * c-pragma.c (handle_pragma_weak): Do not try to create
2461 weak/alias of declarations not being function, or variable
2462 declarations.
2463
56a9f6bc
TS
24642015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2465
2466 PR libgomp/64625
2467 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2468 Remove macros.
2469 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2470
3d5cb23d
MP
24712015-02-16 Marek Polacek <polacek@redhat.com>
2472
2473 PR c/65066
2474 * c-format.c (check_format_types): Handle null param.
2475
fa008882
MP
24762015-02-13 Marek Polacek <polacek@redhat.com>
2477
2478 PR c/65040
2479 * c-format.c (check_format_types): Don't warn about different
2480 signedness if the original value is in the range of WANTED_TYPE.
2481
785f21af
JM
24822015-02-12 Jason Merrill <jason@redhat.com>
2483
2484 PR c++/64956
2485 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2486 to the current highest version.
2487 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2488
4886ec8e
JJ
24892015-02-04 Jakub Jelinek <jakub@redhat.com>
2490
2491 PR c/64824
2492 PR c/64868
2493 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2494 instead of RDIV_EXPR. Use build_binary_op instead of
2495 build2_loc.
2496
40fecdd6
JM
24972015-01-30 Joseph Myers <joseph@codesourcery.com>
2498
2499 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2500 to pass input_location as first argument.
2501
a0c88d06
TV
25022015-01-23 Tom de Vries <tom@codesourcery.com>
2503
2504 PR libgomp/64672
2505 * c.opt (fopenacc): Mark as LTO option.
2506
1506ae0e
TV
25072015-01-23 Tom de Vries <tom@codesourcery.com>
2508
2509 PR libgomp/64707
2510 * c.opt (fopenmp): Mark as LTO option.
2511
31be63ab
JJ
25122015-01-21 Jakub Jelinek <jakub@redhat.com>
2513
2514 PR c/63307
b1726d6c 2515 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2516 (compare_decls): Fix up formatting.
2517
25182015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2519
2520 PR c/63307
2521 * cilk.c: Include vec.h.
2522 (struct cilk_decls): New structure.
2523 (wrapper_parm_cb): Split this function to...
2524 (fill_decls_vec): ...this...
2525 (create_parm_list): ...and this.
2526 (compare_decls): New function.
2527 (for_local_cb): Remove.
2528 (wrapper_local_cb): Ditto.
2529 (build_wrapper_type): For now first traverse and fill vector of
2530 declarations then sort it and then deal with sorted vector.
2531 (cilk_outline): Ditto.
2532 (declare_one_free_variable): Ditto.
2533
6875457f
JM
25342015-01-21 Jason Merrill <jason@redhat.com>
2535
2536 PR c++/64629
2537 * c-format.c (check_format_arg): Call decl_constant_value.
2538
185c9e56
ML
25392015-01-19 Martin Liska <mliska@suse.cz>
2540
2541 * c-common.c (handle_noicf_attribute): New function.
2542
41dbbb37
TS
25432015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2544 Bernd Schmidt <bernds@codesourcery.com>
2545 James Norris <jnorris@codesourcery.com>
2546 Cesar Philippidis <cesar@codesourcery.com>
2547 Ilmir Usmanov <i.usmanov@samsung.com>
2548 Jakub Jelinek <jakub@redhat.com>
2549
2550 * c.opt (fopenacc): New option.
2551 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2552 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2553 New macros.
2554 * c-common.h (c_finish_oacc_wait): New prototype.
2555 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2556 (c_finish_oacc_wait): New function.
2557 * c-pragma.c (oacc_pragmas): New variable.
2558 (c_pp_lookup_pragma, init_pragma): Handle it.
2559 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2560 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2561 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2562 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2563 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2564 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2565 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2566 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2567 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2568 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2569 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2570 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2571 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2572 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2573 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2574 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2575 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2576 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2577 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2578 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2579 PRAGMA_OACC_CLAUSE_WORKER.
2580
3f8257db 25812015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2582
2583 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2584 for the new option fstack-protector_explicit.
2585 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2586 (handle_stack_protect_attribute): New function.
2587
3f8257db 25882015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2589
2590 * c.opt: New option -Warray-bounds=.
2591
adfac8df
JJ
25922015-01-09 Michael Collison <michael.collison@linaro.org>
2593
2594 * array-notation-common.c: Include hash-set.h, machmode.h,
2595 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2596 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2597 * c-ada-spec.c: Ditto.
2598 * c-cilkplus.c: Ditto.
2599 * c-common.c: Include input.h due to flattening of tree.h.
2600 Define macro GCC_C_COMMON_C.
2601 * c-common.h: Flatten tree.h header files into c-common.h.
2602 Remove include of tree-core.h.
2603 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2604 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2605 fold-const.h, wide-int.h, and inchash.h due to
2606 flattening of tree.h.
2607 * c-dump.c: Ditto.
2608 * c-format.c: Flatten tree.h header files into c-common.h.
2609 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2610 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2611 fold-const.h, wide-int.h, and inchash.h due to
2612 flattening of tree.h.
2613 * c-dump.c: Include hash-set.h, machmode.h,
2614 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2615 fold-const.h, wide-int.h, and inchash.h due to
2616 flattening of tree.h.
2617 * c-format.c: Include hash-set.h, machmode.h,
2618 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2619 fold-const.h, wide-int.h, inchash.h and real.h due to
2620 flattening of tree.h.
2621 * c-gimplify.c: Include hash-set.h, machmode.h,
2622 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2623 fold-const.h, wide-int.h, and inchash.h due to
2624 flattening of tree.h.
2625 * cilk.c: Ditto.
2626 * c-lex.c: Ditto.
2627 * c-omp.c: Ditto.
2628 * c-opts.c: Ditto.
2629 * c-pch.c: Ditto.
2630 * c-ppoutput.c: Ditto.
2631 * c-pragma.c: Ditto.
2632 * c-pretty-print.c: Ditto.
2633 * c-semantics.c: Ditto.
2634 * c-ubsan.c: Ditto.
2635 * stub-objc.c: Ditto.
2636
f5481fc4
JM
26372015-01-08 Jason Merrill <jason@redhat.com>
2638
2639 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2640 do_ubsan_in_current_function.
2641 (ubsan_maybe_instrument_reference_or_call): Likewise.
2642 * c-ubsan.h: Declare it.
2643
de35aa66
MS
26442015-01-08 Mike Stump <mikestump@comcast.net>
2645
2646 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2647
4a9a42ab
MP
26482015-01-07 Marek Polacek <polacek@redhat.com>
2649
2650 PR c/64440
2651 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2652 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2653
2f42e5de
TS
26542015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2655
2656 PR c++/31397
2657 * c.opt (Wsuggest-override): New option.
2658
5624e564
JJ
26592015-01-05 Jakub Jelinek <jakub@redhat.com>
2660
2661 Update copyright years.
2662
5bd012f8
MP
26632015-01-05 Marek Polacek <polacek@redhat.com>
2664
2665 PR c/64423
2666 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2667 parameter. Use it.
2668 * c-common.h (warn_array_subscript_with_type_char): Update
2669 declaration.
2670
a7fa8d18
ESR
26712014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2672
2673 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2674 Control macro with flag_sized_deallocation.
2675
3f8257db 26762014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2677
2678 * c.opt (Wdiscarded-array-qualifiers): New option.
2679
1f8d3e84
JJ
26802014-12-19 Jakub Jelinek <jakub@redhat.com>
2681
2682 PR preprocessor/63831
2683 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2684 and __has_cpp_attribute here.
2685 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2686 c_common_has_attribute.
2687 * c-common.h (c_common_has_attribute): New prototype.
2688 * c-lex.c (init_c_lex): Set cb->has_attribute to
2689 c_common_has_attribute instead of cb_has_attribute.
2690 (get_token_no_padding): New function.
2691 (cb_has_attribute): Renamed to ...
2692 (c_common_has_attribute): ... this. No longer static. Use
2693 get_token_no_padding, require ()s, don't build TREE_LIST
2694 unnecessarily, fix up formatting, adjust diagnostics, call
2695 init_attributes.
2696
20b06add
JM
26972014-12-15 Jason Merrill <jason@redhat.com>
2698
2699 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2700 (-Wsized-deallocation): New.
2701 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2702 to on in C++14 and up.
2703
94a073b2
JM
27042014-12-11 Jason Merrill <jason@redhat.com>
2705
acaa5911
JM
2706 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2707
94a073b2
JM
2708 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2709 we aren't complaining about VLAs.
2710
7fb66c15
MP
27112014-12-06 Marek Polacek <polacek@redhat.com>
2712
2713 PR tree-optimization/64183
2714 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2715 shift-expression if it is integer_type_node. Use types_compatible_p.
2716
b731b390
JJ
27172014-11-29 Jakub Jelinek <jakub@redhat.com>
2718
2719 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2720 last argument from create_tmp_var_raw and create_tmp_var calls.
2721 * cilk.c (gimplify_cilk_spawn): Likewise.
2722 * c-omp.c (c_finish_omp_atomic): Likewise.
2723
6a4da643
MP
27242014-11-28 Marek Polacek <polacek@redhat.com>
2725
2726 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2727 instead of unsigned_type_node.
2728
541e35a6
MP
27292014-11-28 Marek Polacek <polacek@redhat.com>
2730
2731 PR c/63862
2732 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2733 to op1_utype.
2734 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2735 expression to unsigned_type_node.
2736
dcc97066
MW
27372014-11-20 Mark Wielaard <mjw@redhat.com>
2738
2739 PR debug/38757
2740 * c-opts.c (set_std_c89): Set lang_hooks.name.
2741 (set_std_c99): Likewise.
2742 (set_std_c11): Likewise.
2743 (set_std_cxx98): Likewise.
2744 (set_std_cxx11): Likewise.
2745 (set_std_cxx14): Likewise.
2746 (set_std_cxx1z): Likewise.
2747
aa7da51a
JJ
27482014-11-21 Jakub Jelinek <jakub@redhat.com>
2749
2750 PR target/63764
2751 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2752 return type to bool.
009a3480 2753 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2754 (convert_vector_to_pointer_for_subscript): Change return type to
2755 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2756 and copy it into a TARGET_EXPR and use that instead of *vecp
2757 directly.
2758
538dd0b7
DM
27592014-11-19 David Malcolm <dmalcolm@redhat.com>
2760
2761 Merger of git branch "gimple-classes-v2-option-3".
2762 * ChangeLog.gimple-classes: New.
2763 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2764 from being just a vec<gimple> to a vec<gbind *>.
2765
c39a5e99
JJ
27662014-11-18 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR sanitizer/63813
2769 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2770 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2771 get_pointer_alignment for non-pointers. Use ptype, or if it is
2772 reference type, corresponding pointer type, as type of kind
2773 argument.
2774 (ubsan_maybe_instrument_reference,
2775 ubsan_maybe_instrument_member_call): Adjust callers.
2776
8537a4a9
MP
27772014-11-15 Marek Polacek <polacek@redhat.com>
2778
2779 PR middle-end/63884
2780 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2781 for NULL fndecl.
2782 (extract_array_notation_exprs): Return for NULL node.
2783
2079956a
JM
27842014-11-12 Joseph Myers <joseph@codesourcery.com>
2785
2786 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2787 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2788
1304953e
JJ
27892014-11-12 Jakub Jelinek <jakub@redhat.com>
2790
2791 PR c/59708
2792 * c-common.c (check_builtin_function_arguments): Handle
2793 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2794
e5e44252
AK
27952014-11-10 Andi Kleen <ak@linux.intel.com>
2796
2797 PR c/60804
2798 * c-common.h (check_no_cilk): Declare.
2799 * cilk.c (get_error_location): New function.
2800 (check_no_cilk): Dito.
2801
e64b984d
AK
28022014-11-10 Andi Kleen <ak@linux.intel.com>
2803
2804 * cilk.c (recognize_spawn): Use expression location
2805 for error message.
2806
13c21655
PC
28072014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2808
2809 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2810
42fd12b1
ESR
28112014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2812
2813 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2814 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2815 (__cpp_range_based_for, __cpp_initializer_lists,
2816 __cpp_delegating_constructors, __cpp_nsdmi,
2817 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2818 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2819 __has_cpp_attribute.
2820 * c-lex.c (cb_has_attribute): New callback CPP function;
2821 (init_c_lex): Set has_attribute callback.
2822
6f450181
RB
28232014-11-04 Richard Biener <rguenther@suse.de>
2824
2825 * c-common.c (shorten_compare): Do not shorten mixed
2826 DFP and non-DFP compares.
2827
26f0e1d6
ESR
28282014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2829
2830 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2831 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2832 Commentary and rearrangement of tests.
2833 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2834 Commentary and rearrangement of tests.
2835 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2836 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2837
ef4bddc2
RS
28382014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2839
2840 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2841 enum from machine_mode.
2842
c582198b
AM
28432014-10-28 Andrew MacLeod <amacleod@redhat.com>
2844
adfac8df
JJ
2845 * c-common.c: Adjust include files.
2846 * c-gimplify.c: Ditto.
2847 * cilk.c: Ditto.
2848 * c-pragma.c: Ditto.
2849 * c-ubsan.c: Ditto.
c582198b 2850
60393bbc
AM
28512014-10-27 Andrew MacLeod <amacleod@redhat.com>
2852
2853 * c-gimplify.c: Adjust include files.
2854
d723bb7c
MLI
28552014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2856
2857 PR c++/53061
2858 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2859 c_common_initialize_diagnostics.
2860 * c-common.h: Likewise.
2861
90f3520e
MP
28622014-10-24 Marek Polacek <polacek@redhat.com>
2863
2864 PR c/56980
2865 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2866 print "struct"/"union"/"enum" for typedefed names.
2867
59d7607a
MP
28682014-10-23 Marek Polacek <polacek@redhat.com>
2869
2870 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2871 in unsigned type.
2872
d95a2703
JJ
28732014-10-22 Jakub Jelinek <jakub@redhat.com>
2874 Yury Gribov <y.gribov@samsung.com>
2875
2876 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2877 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2878 instead of flag_sanitize_recover as bool flag.
2879
8e6ef852
KY
28802014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2881
2882 * cilk.c: Revert previous change.
2883
948cf550
IZ
28842014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2885
2886 PR c/63307
2887 * cilk.c: Include vec.h.
2888 (struct cilk_decls): New structure.
2889 (wrapper_parm_cb): Split this function to...
2890 (fill_decls_vec): ...this...
2891 (create_parm_list): ...and this.
2892 (compare_decls): New function.
2893 (for_local_cb): Remove.
2894 (wrapper_local_cb): Ditto.
2895 (build_wrapper_type): For now first traverse and fill vector of
2896 declarations then sort it and then deal with sorted vector.
2897 (cilk_outline): Ditto.
2898 (declare_one_free_variable): Ditto.
2899
92574c7c
MP
29002014-10-17 Marek Polacek <polacek@redhat.com>
2901
2902 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2903 * c.opt (Wimplicit-int): Initialize to -1.
2904
83685514
AM
29052014-10-16 Andrew MacLeod <amacleod@redhat.com>
2906
2907 * c-pragma.c: Adjust include files.
2908 * c-semantics.c: Likewise.
2909
5b8300ea
DD
29102014-10-16 DJ Delorie <dj@redhat.com>
2911
2912 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2913 multiples of bytes.
2914
5f83e90b
JM
29152014-10-14 Jason Merrill <jason@redhat.com>
2916
2917 PR c++/63455
2918 * c-common.h (CPP_PREPARSED_EXPR): New.
2919 (N_CP_TTYPES): Adjust.
2920
d73326ca
MP
29212014-10-15 Marek Polacek <polacek@redhat.com>
2922
2923 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2924
78a7c317
DD
29252014-10-14 DJ Delorie <dj@redhat.com>
2926
2927 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2928 types, not just __int128.
2929 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2930 types, not just __int128.
2931 (cpp_atomic_builtins): Round pointer sizes up.
2932 (type_suffix): Use type precision, not specific types.
2933 * c-common.c (c_common_reswords): Remove __int128 special case.
2934 (c_common_type_for_size): Check for all __intN types, not just
2935 __int128.
2936 (c_common_type_for_mode): Likewise.
2937 (c_common_signed_or_unsigned_type): Likewise.
2938 (c_build_bitfield_integer_type): Likewise.
2939 (c_common_nodes_and_builtins): Likewise.
2940 (keyword_begins_type_specifier): Likewise.
2941 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2942 __intN variants.
2943
2a22f99c
TS
29442014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2945
2946 * c-common.c: Use hash_table instead of hashtab.
2947
2a8ef767
ESR
29482014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2949
adfac8df 2950 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2951 C++11 section.
2952
3c9aabbd
MG
29532014-10-03 Marc Glisse <marc.glisse@inria.fr>
2954
2955 PR c++/54427
2956 PR c++/57198
2957 PR c++/58845
2958 * c-common.c (warn_logical_operator): Punt for vectors.
2959
a15f7cb8
ESR
29602014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2961
2962 Implement SD-6: SG10 Feature Test Recommendations
2963 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2964 macros and the __has_header macro.
2965
8d0cf15e
JM
29662014-09-30 Jason Merrill <jason@redhat.com>
2967
dd5d5481
JM
2968 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2969 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2970 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2971
b752325e
JM
2972 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2973 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2974
8d0cf15e
JM
2975 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2976 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2977
083e891e
MP
29782014-09-24 Marek Polacek <polacek@redhat.com>
2979
2980 PR c/61405
2981 PR c/53874
2982 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2983
7861b648
AK
29842014-09-23 Andi Kleen <ak@linux.intel.com>
2985
2986 * c-common.c (handle_no_reorder_attribute): New function.
2987 (c_common_attribute_table): Add no_reorder attribute.
2988
9a79452d
JM
29892014-09-22 Joseph Myers <joseph@codesourcery.com>
2990
2991 * c-cppbuiltin.c (c_cpp_builtins): Define
2992 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2993 modes.
2994
dd69f047
JM
29952014-09-18 Joseph Myers <joseph@codesourcery.com>
2996
2997 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2998 for supported floating-point modes.
2999
737a4826
MLI
30002014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3001
3002 * c.opt (Wpsabi): Use LangEnabledBy.
3003 * c-opts.c (c_common_handle_option): Do not handle here.
3004
8cc4b7a2
JM
30052014-09-12 Joseph Myers <joseph@codesourcery.com>
3006
3007 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3008 macros for floating-point modes.
3009
179b5a55
MG
30102014-09-11 Marc Glisse <marc.glisse@inria.fr>
3011
3012 PR target/58757
3013 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3014 __*_DENORM_MIN__ without denormals.
3015
570a11fe
JJ
30162014-09-10 Jakub Jelinek <jakub@redhat.com>
3017
3018 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3019 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3020 ubsan_create_data callers.
3021 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3022 index is constant or BIT_AND_EXPR with constant mask and is
3023 small enough for the bound.
3024 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3025 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3026
b559c810
MLI
30272014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3028
3029 * c.opt: Add CppReason to various flags.
3030 (Wdate-time): Re-sort.
3031 * c-common.c: Include c-common.h earlier.
3032 (struct reason_option_codes_t): Delete.
3033 (c_option_controlling_cpp_error): Prefix global type and struct
3034 with cpp_.
3035
1ef33fd4
MLI
30362014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3037
3038 * c.opt (Wnormalized): New.
3039 (Wnormalized=): Use Enum and Reject Negative.
3040 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3041
66bb34c0
JM
30422014-09-08 Joseph Myers <joseph@codesourcery.com>
3043
3044 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3045 digits of floating-point modes if -fbuilding-libgcc.
3046
53d68b9f
JM
30472014-09-05 Joseph Myers <joseph@codesourcery.com>
3048
3049 * c-cppbuiltin.c (c_cpp_builtins): Also define
3050 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3051 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3052 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3053 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3054 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3055 __LIBGCC_STACK_GROWS_DOWNWARD__,
3056 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3057 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3058 __LIBGCC_DWARF_FRAME_REGISTERS__,
3059 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3060 __LIBGCC_STACK_POINTER_REGNUM__ and
3061 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3062 (builtin_define_with_value): Handle backslash-escaping in string
3063 macro values.
3064
f65586dc
RB
30652014-09-05 Richard Biener <rguenther@suse.de>
3066
3067 PR middle-end/63148
3068 * c-format.c (check_format_arg): Properly handle
3069 effectively signed POINTER_PLUS_EXPR offset.
3070
2b71f4a4
MLI
30712014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3072
3073 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3074 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3075 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3076 and Init.
3077 * c-opts.c (c_common_handle_option): Do not handle here.
3078 (sanitize_cpp_opts): Likewise.
3079 * c-common.c (struct reason_option_codes_t): Handle
3080 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3081
d2e4feca
MP
30822014-09-03 Marek Polacek <polacek@redhat.com>
3083
3084 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3085
9a771876
JJ
30862014-09-02 Jakub Jelinek <jakub@redhat.com>
3087 Balaji V. Iyer <balaji.v.iyer@intel.com>
3088 Igor Zamyatin <igor.zamyatin@intel.com>
3089
3090 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3091 * c-common.c (c_common_reswords): Added _Cilk_for.
3092 * c-common.h (enum rid): Added RID_CILK_FOR.
3093 (cilk_for_number_of_iterations): Add declaration.
3094 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3095 CILK_FOR.
3096 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3097 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3098
81b5d104
MLI
30992014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3100
3101 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3102 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3103 Wundef): Use CPP, Var and Init.
3104 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3105
b753b37b
MLI
31062014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3107
3108 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3109 * c-opts.c (c_common_handle_option): Do not handle here.
3110
028aee17
JM
31112014-08-25 Jason Merrill <jason@redhat.com>
3112
3113 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3114 -std=c++14 and -std=gnu++14, rather than the reverse.
3115 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3116 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3117 * c-common.h (cxx_dialect): Remove cxx1y.
3118
e4276ba5
ESR
31192014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3120
3121 * c-common.h (enum cxx_dialect): Add cxx14.
3122 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3123 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3124 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3125
a545cacd
JM
31262014-08-22 Jason Merrill <jason@redhat.com>
3127
3128 * c.opt (std=gnu++17): Fix alias.
3129
59ea0364
MP
31302014-08-22 Marek Polacek <polacek@redhat.com>
3131
3132 PR c++/62199
3133 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3134 check for vector types. Drop LHS argument.
3135 * c-common.h (warn_logical_not_parentheses): Adjust.
3136
596e808c
MLI
31372014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3138
3139 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3140 (Wmultichar): Likewise.
3141 (Wdate-time): Use C-family languages instead of Common. Use CPP
3142 and Var.
3143 * c-opts.c (c_common_handle_option): Do not handle the above
3144 options here.
3145 (sanitize_cpp_opts): Likewise.
3146
18767f65
MLI
31472014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3148
3149 PR fortran/44054
3150 * c-opts.c: Include tree-diagnostics.h.
3151 (c_diagnostic_finalizer): New.
3152 (c_common_initialize_diagnostics): Use it.
3153
b4413594
MLI
31542014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3155
3156 PR preprocessor/51303
3157 * c-common.c (struct reason_option_codes_t option_codes):
3158 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3159
43f9a13c
MLI
31602014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3161
3162 PR c/60975
3163 PR c/53063
3164 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3165 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3166 (c_common_post_options): Call init_global_opts_from_cpp.
3167 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3168
04159acf
MP
31692014-08-19 Marek Polacek <polacek@redhat.com>
3170
3171 PR c++/62153
3172 * c-common.c (maybe_warn_bool_compare): New function.
3173 * c-common.h (maybe_warn_bool_compare): Declare.
3174 * c.opt (Wbool-compare): New option.
3175
35aff4fb
MP
31762014-08-19 Marek Polacek <polacek@redhat.com>
3177
3178 * c.opt (Wc99-c11-compat): New option.
3179
177cce46
MP
31802014-08-19 Marek Polacek <polacek@redhat.com>
3181
3182 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3183 to warn_c90_c99_compat.
3184 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3185 to -1.
3186
6ae9194f
MLI
31872014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3188 Steven Bosscher <steven@gcc.gnu.org>
3189
3190 PR c/52952
3191 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3192 format_check_results.
3193 (check_function_format): Use true and add comment for boolean
3194 argument.
3195 (finish_dollar_format_checking): Use explicit location when warning.
3196 (check_format_info): Likewise.
3197 (check_format_arg): Set extra_arg_loc and format_string_loc.
3198 (check_format_info_main): Use explicit location when warning.
3199 (check_format_types): Pass explicit location.
3200 (format_type_warning): Likewise.
3201
8e54f6d3
MLI
32022014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3203
3204 PR fortran/44054
3205 * c-format.c: Handle Fortran flags.
3206
cd4e76fc
IZ
32072014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3208
3209 PR other/61962
3210 * array-notation-common.c (find_rank): Added handling for other
3211 types of references.
3212
f3bede71
MP
32132014-08-10 Marek Polacek <polacek@redhat.com>
3214
3215 PR c/51849
3216 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3217 * c.opt (Wc90-c99-compat): Add option.
3218
9f25a338
TS
32192014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3220
3221 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3222
62e4eb35
MP
32232014-08-03 Marek Polacek <polacek@redhat.com>
3224
3225 * c-common.c (check_case_value): Add location_t parameter. Use it.
3226 (c_add_case_label): Pass loc to check_case_value.
3227
b787e7a2
TS
32282014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3229
3230 * cilk.c: Use hash_map instead of pointer_map.
3231
6e2830c3
TS
32322014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3233
3234 * c-gimplify.c: Use hash_set instead of pointer_set.
3235
a7ee52fb
IZ
32362014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3237
3238 PR middle-end/61455
3239 * array-notation-common.c (extract_array_notation_exprs): Handling
3240 of DECL_EXPR added.
3241
944fa280
JJ
32422014-08-01 Jakub Jelinek <jakub@redhat.com>
3243
3244 * c-common.h (min_align_of_type): Removed prototype.
3245 * c-common.c (min_align_of_type): Removed.
3246 * c-ubsan.h (ubsan_maybe_instrument_reference,
3247 ubsan_maybe_instrument_member_call): New prototypes.
3248 * c-ubsan.c: Include stor-layout.h and builtins.h.
3249 (ubsan_maybe_instrument_reference_or_call,
3250 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3251 functions.
3252
b4dfdc11
MG
32532014-07-31 Marc Glisse <marc.glisse@inria.fr>
3254
3255 PR c++/60517
3256 * c.opt (-Wreturn-local-addr): Move to common.opt.
3257
a41844e5
JM
32582014-07-30 Jason Merrill <jason@redhat.com>
3259
3260 PR c++/61659
3261 PR c++/61687
3262 Revert:
3263 * c.opt (-fuse-all-virtuals): New.
3264
976d5a22
TT
32652014-07-30 Tom Tromey <tromey@redhat.com>
3266
3267 PR c/59855
3268 * c.opt (Wdesignated-init): New option.
3269 * c-common.c (c_common_attribute_table): Add "designated_init".
3270 (handle_designated_init): New function.
3271
cdc94aca
MP
32722014-07-24 Marek Polacek <polacek@redhat.com>
3273
3274 PR c/57653
3275 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3276
f41373b6
DS
32772014-07-16 Dodji Seketeli <dodji@redhat.com>
3278
3279 PR preprocessor/60723 - missing system-ness marks for macro tokens
3280 * c-ppoutput.c (struct print::prev_was_system_token): New data
3281 member.
3282 (init_pp_output): Initialize it.
3283 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3284 (do_line_change): Return a flag saying if a line marker was
3285 emitted or not.
3286 (scan_translation_unit): Detect if the system-ness of the token we
3287 are about to emit is different from the one of the previously
3288 emitted token. If so, emit a line marker. Avoid emitting useless
3289 adjacent line markers. Avoid emitting line markers for tokens
3290 originating from the expansion of built-in macros.
3291 (scan_translation_unit_directives_only): Adjust.
3292
4d661eaa
MP
32932014-07-15 Marek Polacek <polacek@redhat.com>
3294
3295 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3296 TYPE_MAX_VALUE is NULL.
3297
b108f48f
JJ
32982014-07-14 Jakub Jelinek <jakub@redhat.com>
3299
3300 PR middle-end/61294
3301 * c.opt (Wmemset-transposed-args): New warning.
3302
c0221884
JM
33032014-07-10 Jason Merrill <jason@redhat.com>
3304
3305 PR c++/61659
3306 PR c++/61687
3307 * c.opt (-fuse-all-virtuals): New.
3308
63dfbb95
RB
33092014-07-09 Richard Biener <rguenther@suse.de>
3310
3311 PR c-family/61741
3312 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3313 using unsigned arithmetic if overflow does not wrap instead of
3314 if overflow is undefined.
3315
773ec47f
MP
33162014-07-06 Marek Polacek <polacek@redhat.com>
3317
3318 PR c/6940
3319 * c.opt (Wsizeof-array-argument): New option.
3320
00a7ba58
JJ
33212014-07-03 Jakub Jelinek <jakub@redhat.com>
3322
b1726d6c 3323 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3324 comments->count <= 1, as comments->entries might be NULL.
3325
52ec0ea3
MP
33262014-07-01 Marek Polacek <polacek@redhat.com>
3327
3328 * c.opt (Wint-conversion): New option.
3329
d5c3d343
MP
33302014-07-01 Marek Polacek <polacek@redhat.com>
3331
3332 PR c/58286
3333 * c.opt (Wincompatible-pointer-types): New option.
3334
6e7ceb17
PC
33352014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3336
3337 PR c++/51400
3338 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3339 Do not discard TYPE_QUALS of type.
3340
da73100b
JM
33412014-06-26 Jason Merrill <jason@redhat.com>
3342
3343 * c-common.h (enum cxx_dialect): Add cxx1z.
3344 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3345 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3346
08eedf75
TJ
33472014-06-26 Teresa Johnson <tejohnson@google.com>
3348
3349 * c-common.h (get_dump_info): Declare.
3350 * c-gimplify.c (c_genericize): Use saved dump files.
3351 * c-opts.c (c_common_parse_file): Begin and end dumps
3352 once around parsing invocation.
3353 (get_dump_info): New function.
3354
7b56b2f8
MP
33552014-06-23 Marek Polacek <polacek@redhat.com>
3356 Andrew MacLeod <amacleod@redhat.com>
3357
3358 PR c/61553
3359 * c-common.c (get_atomic_generic_size): Don't segfault if the
3360 type doesn't have a size.
3361
0e37a2f3
MP
33622014-06-20 Marek Polacek <polacek@redhat.com>
3363
3364 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3365 (ubsan_walk_array_refs_r): New function.
3366 (c_genericize): Instrument array bounds.
3367 * c-ubsan.c: Include "internal-fn.h".
3368 (ubsan_instrument_division): Mark instrumented arrays as having
3369 side effects. Adjust ubsan_type_descriptor call.
3370 (ubsan_instrument_shift): Likewise.
3371 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3372 (ubsan_instrument_bounds): New function.
3373 (ubsan_array_ref_instrumented_p): New function.
3374 (ubsan_maybe_instrument_array_ref): New function.
3375 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3376 (ubsan_array_ref_instrumented_p): Declare.
3377 (ubsan_maybe_instrument_array_ref): Declare.
3378
33792014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3380
3381 PR lto/61123
3382 * c.opt (fshort-enums): Add to LTO.
3383 * c.opt (fshort-wchar): Likewise.
3384
5c3d09f7
MP
33852014-06-16 Marek Polacek <polacek@redhat.com>
3386
3387 PR c/60439
3388 * c.opt (Wswitch-bool): Add Var.
3389
9cf32741
JJ
33902014-06-12 Jakub Jelinek <jakub@redhat.com>
3391
3392 PR middle-end/61486
3393 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3394 #pragma omp target teams or
3395 #pragma omp {,target }teams distribute simd.
3396
62984918
JM
33972014-06-12 Jason Merrill <jason@redhat.com>
3398
3399 * c.opt (Wabi=, fabi-compat-version): New.
3400 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3401 (c_common_post_options): Handle flag_abi_compat_version default.
3402 Disallow -fabi-compat-version=1.
3403 * c-common.h (abi_version_crosses): New.
3404
f961457f
JH
34052014-06-11 Jan Hubicka <hubicka@ucw.cz>
3406
adfac8df 3407 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3408 section names that are no longer trees.
3409
92d28cbb
JJ
34102014-06-10 Jakub Jelinek <jakub@redhat.com>
3411
3412 PR fortran/60928
3413 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3414 (omp_pragmas): ... back here.
3415
742938c9
MP
34162014-06-05 Marek Polacek <polacek@redhat.com>
3417
3418 PR c/49706
3419 * c-common.c (warn_logical_not_parentheses): New function.
3420 * c-common.h (warn_logical_not_parentheses): Declare.
3421 * c.opt (Wlogical-not-parentheses): New option.
3422
9d548dfb
MP
34232014-06-04 Marek Polacek <polacek@redhat.com>
3424
3425 PR c/30020
3426 * c-common.c (check_case_bounds): Add location parameter.
3427 Use it.
3428 (c_add_case_label): Pass loc to check_case_bounds.
3429
fedfecef
MP
34302014-06-03 Marek Polacek <polacek@redhat.com>
3431
3432 PR c/60439
3433 * c.opt (Wswitch-bool): New option.
3434
f6a7cffc
TS
34352014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3436
040d18b6
TS
3437 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3438 Remove prototypes.
3439 (record_types_used_by_current_var_decl): Move prototype to where
3440 it belongs.
3441
f6a7cffc
TS
3442 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3443 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3444 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3445
632f2871
RS
34462014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3447
3448 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3449 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3450 void_zero_node.
3451 * c-pretty-print.c (pp_c_void_constant): New function.
3452 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3453 (c_pretty_printer::expression): Handle VOID_CST.
3454 * cilk.c (extract_free_variables): Likewise.
3455 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3456 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3457
766090c2
TS
34582014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3459
3460 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3461 * c-pragma.c (push_alignment): Adjust.
3462 (handle_pragma_push_options): Likewise.
3463
661a0813
MP
34642014-05-09 Marek Polacek <polacek@redhat.com>
3465
3466 PR c/50459
3467 * c-common.c (check_user_alignment): Return -1 if alignment is error
3468 node.
3469 (handle_aligned_attribute): Don't call default_conversion on
3470 FUNCTION_DECLs.
3471 (handle_vector_size_attribute): Likewise.
3472 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3473 (handle_sentinel_attribute): Call default_conversion and allow even
3474 integral types as an argument.
3475
2793eeab
MP
34762014-05-08 Marek Polacek <polacek@redhat.com>
3477
3478 PR c/61053
3479 * c-common.c (min_align_of_type): New function factored out from...
3480 (c_sizeof_or_alignof_type): ...here.
3481 * c-common.h (min_align_of_type): Declare.
3482
f827930a
MP
34832014-05-08 Marek Polacek <polacek@redhat.com>
3484
3485 PR c/61077
3486 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3487 parameter type of main.
3488
ca49b74e
DD
34892014-05-07 DJ Delorie <dj@redhat.com>
3490
3491 * c-cppbuiltin.c (print_bits_of_hex): New.
3492 (builtin_define_type_minmax): Print values using hex so as not to
3493 require a pre-computed list of string values.
3494
1d60af08
KZ
34952014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3496 Mike Stump <mikestump@comcast.net>
3497 Richard Sandiford <rdsandiford@googlemail.com>
3498
3499 * c-ada-spec.c: Include wide-int.h.
3500 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3501 (dump_generic_ada_node): Use wide-int interfaces.
3502 * c-common.c: Include wide-int-print.h.
3503 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3504 (pointer_int_sum): Use wide-int interfaces.
3505 (c_common_nodes_and_builtins): Use make_int_cst.
3506 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3507 (handle_alloc_size_attribute): Use wide-int interfaces.
3508 (get_nonnull_operand): Likewise.
3509 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3510 * c-lex.c: Include wide-int.h.
3511 (narrowest_unsigned_type): Take a widest_int rather than two
3512 HOST_WIDE_INTs.
3513 (narrowest_signed_type): Likewise.
3514 (interpret_integer): Update accordingly. Use wide-int interfaces.
3515 (lex_charconst): Use wide-int interfaces.
3516 * c-pretty-print.c: Include wide-int.h.
3517 (pp_c_integer_constant): Use wide-int interfaces.
3518 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3519 INT_CST_LT_UNSIGNED.
3520
b15458be
RB
35212014-05-06 Richard Biener <rguenther@suse.de>
3522
3523 * c-opts.c (c_common_post_options): For -freestanding,
3524 -fno-hosted and -fno-builtin disable pattern recognition
3525 if not enabled explicitely.
3526
6577374e
MP
35272014-05-02 Marek Polacek <polacek@redhat.com>
3528
3529 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3530
d00887e8
MP
35312014-05-01 Marek Polacek <polacek@redhat.com>
3532
3533 PR c/43245
3534 * c.opt (Wdiscarded-qualifiers): Add.
3535
f8ed5150
MP
35362014-04-30 Marek Polacek <polacek@redhat.com>
3537
3538 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3539 INT_MIN / -1 sanitization only for integer types.
3540
45484dcf
MP
35412014-04-25 Marek Polacek <polacek@redhat.com>
3542
3543 PR c/18079
3544 * c-common.c (handle_noinline_attribute): Warn if the attribute
3545 conflicts with always_inline attribute.
3546 (handle_always_inline_attribute): Warn if the attribute conflicts
3547 with noinline attribute.
3548
38e514c0
MP
35492014-04-25 Marek Polacek <polacek@redhat.com>
3550
3551 PR c/60156
3552 * c-common.c (check_main_parameter_types): Warn about variadic main.
3553
44875f92
MS
35542014-04-24 Mike Stump <mikestump@comcast.net>
3555
3556 * c.opt (Wshadow-ivar): Default to on.
3557
dcaaa5a0
DP
35582014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3559
3560 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3561
c07d7c02
MP
35622014-04-23 Marek Polacek <polacek@redhat.com>
3563
3564 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3565
1c33c9b7
JJ
35662014-04-22 Jakub Jelinek <jakub@redhat.com>
3567
3568 PR sanitizer/60275
3569 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3570 if flag_sanitize_undefined_trap_on_error.
3571 (ubsan_instrument_division, ubsan_instrument_shift,
3572 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3573 if !flag_sanitize_recover.
3574
793c625f
MG
35752014-04-22 Marc Glisse <marc.glisse@inria.fr>
3576
3577 PR libstdc++/43622
3578 * c-common.c (registered_builtin_types): Make non-static.
3579 * c-common.h (registered_builtin_types): Declare.
3580
b0f1bf36
RB
35812014-04-14 Richard Biener <rguenther@suse.de>
3582 Marc Glisse <marc.glisse@inria.fr>
3583
3584 PR c/60819
3585 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3586 apply may-alias the scalar pointer type when applicable.
3587
3b07fa4a
IZ
35882014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3589
3590 PR middle-end/60467
3591 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3592 as possible argument for Cilk_spawn.
3593
cbbd2b1c
TB
35942014-04-11 Tobias Burnus <burnus@net-b.de>
3595
3596 PR c/60194
3597 * c.opt (Wformat-signedness): Add
3598 * c-format.c(check_format_types): Use it.
3599
6415bd5d
JM
36002014-04-11 Jason Merrill <jason@redhat.com>
3601
3602 PR c++/57926
3603 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3604 default_conversion for an array argument.
3605
6525783a
MP
36062014-04-08 Marek Polacek <polacek@redhat.com>
3607
3608 PR sanitizer/60745
3609 * c-ubsan.c: Include asan.h.
3610 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3611
880a467b
NS
36122014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3613
3614 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3615
7b59ff2d
MP
36162014-04-02 Marek Polacek <polacek@redhat.com>
3617
3618 * c-common.h (c_expand_expr): Remove declaration.
3619
8edbfaa6
JJ
36202014-03-28 Jakub Jelinek <jakub@redhat.com>
3621
3622 PR c++/60689
3623 * c-common.c (add_atomic_size_parameter): When creating new
3624 params vector, push the size argument first.
3625
07d72e1d
JJ
36262014-03-26 Jakub Jelinek <jakub@redhat.com>
3627
3628 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3629 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3630 ubsan_create_data callers.
3631
b35e0fa0
JJ
36322014-03-22 Jakub Jelinek <jakub@redhat.com>
3633
3634 PR debug/60603
3635 * c-opts.c (c_finish_options): Restore cb_file_change call to
3636 <built-in>.
3637
39a1ebb3
JJ
36382014-03-13 Jakub Jelinek <jakub@redhat.com>
3639
3640 PR middle-end/36282
3641 * c-pragma.c (apply_pragma_weak): Only look at
3642 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3643 DECL_ASSEMBLER_NAME_SET_P (decl).
3644 (maybe_apply_pending_pragma_weaks): Exit early if
3645 vec_safe_is_empty (pending_weaks) rather than only when
3646 !pending_weaks.
3647 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3648 set assembler name back to NULL afterwards.
3649
a07f6ed2
JM
36502014-03-11 Jason Merrill <jason@redhat.com>
3651
3652 * c.opt: Add -std=gnu++14.
3653
75b107f5
IB
36542014-03-11 Ian Bolton <ian.bolton@arm.com>
3655
3656 * c-opts.c (c_common_post_options): Don't override
3657 -ffp-contract=fast if unsafe-math-optimizations is on.
3658
f42c637e
PM
36592014-03-08 Paulo Matos <paulo@matos-sorge.com>
3660
3661 * c.opt: Enable LTO FE for fshort-double.
3662
70e24808
JM
36632014-03-07 Jason Merrill <jason@redhat.com>
3664
3665 * c.opt: Add -std=c++14.
3666
3af9c5e9
MP
36672014-03-06 Marek Polacek <polacek@redhat.com>
3668
3669 PR c/60197
3670 * cilk.c (contains_cilk_spawn_stmt): New function.
3671 (contains_cilk_spawn_stmt_walker): Likewise.
3672 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3673 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3674
b3bdf019
JJ
36752014-03-03 Jakub Jelinek <jakub@redhat.com>
3676
3677 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3678 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3679 even when flag_preprocess_only.
3680
ca7e759d
JM
36812014-02-26 Jason Merrill <jason@redhat.com>
3682
3683 PR c++/59231
3684 PR c++/11586
3685 * c-common.c (shorten_compare): Don't check
3686 c_inhibit_evaluation_warnings.
3687
28e41874
JJ
36882014-02-19 Jakub Jelinek <jakub@redhat.com>
3689
cca615af
JJ
3690 PR c/37743
3691 * c-common.c (c_common_nodes_and_builtins): When initializing
3692 c_uint{16,32,64}_type_node, also set corresponding
3693 uint{16,32,64}_type_node to the same value.
3694
28e41874
JJ
3695 PR c++/60267
3696 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3697 for PRAGMA_IVDEP if flag_preprocess_only.
3698
c2bf53a1
JJ
36992014-02-12 Jakub Jelinek <jakub@redhat.com>
3700
3701 PR c/60101
3702 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3703 if false, add ADD itself, rather than vice versa.
3704 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3705 copy. For SAVE_EXPR, only call merge_tlist once.
3706
8fcbce72
JJ
37072014-02-08 Jakub Jelinek <jakub@redhat.com>
3708
3709 PR middle-end/60092
3710 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3711 and tree_to_uhwi.
3712 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3713 functions.
3714 (c_common_attribute_table): Add alloc_align and assume_aligned
3715 attributes.
3716
0a756a3f
MP
37172014-02-06 Marek Polacek <polacek@redhat.com>
3718
3719 PR c/60087
3720 * c-common.c (warn_for_sign_compare): Call warning_at with location
3721 instead of warning.
3722
7ec4847a
MP
37232014-02-05 Marek Polacek <polacek@redhat.com>
3724
3725 PR c/53123
3726 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3727 statement.
3728
66f20604
MP
37292014-02-04 Marek Polacek <polacek@redhat.com>
3730
3731 PR c/60036
3732 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3733 SAVE_EXPR.
3734
5d77fb19
MG
37352014-02-03 Marc Glisse <marc.glisse@inria.fr>
3736
3737 PR c++/53017
3738 PR c++/59211
3739 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3740 handle_vector_size_attribute, handle_nonnull_attribute): Call
3741 default_conversion on the attribute argument.
3742 (handle_nonnull_attribute): Increment the argument number.
3743
81e5eca8
MP
37442014-01-31 Marek Polacek <polacek@redhat.com>
3745
3746 PR c/59963
3747 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3748 build_function_call_vec.
3749 (resolve_overloaded_builtin): Likewise.
3750 * c-common.h (build_function_call_vec): Adjust declaration.
3751
68fca595
MP
37522014-01-30 Marek Polacek <polacek@redhat.com>
3753
3754 PR c/59940
3755 * c-common.h (unsafe_conversion_p): Adjust declaration.
3756 (warnings_for_convert_and_check): Likewise.
3757 (convert_and_check): Likewise.
3758 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3759 expansion_point_location_if_in_system_header on it.
3760 (warnings_for_convert_and_check): Add location parameter. Call
3761 expansion_point_location_if_in_system_header on it. Use it.
3762 (convert_and_check): Add location parameter. Use it.
3763 (conversion_warning): Likewise.
3764 (c_add_case_label): Adjust convert_and_check calls.
3765 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3766
b72271b9
BI
37672014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3768
3769 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3770 flag_cilkplus.
3771 * c-pragma.c (init_pragma): Likewise.
3772 * c.opt: Likewise.
3773
393e8e8b
MP
37742014-01-23 Marek Polacek <polacek@redhat.com>
3775
3776 PR c/59846
3777 * c-common.c (shorten_compare): Add location_t parameter.
3778 * c-common.h (shorten_binary_op): Adjust declaration.
3779
f04dda30
MP
37802014-01-23 Marek Polacek <polacek@redhat.com>
3781
3782 PR c/58346
3783 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3784 * c-common.h: Declare it.
3785
621955cb
EB
37862014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3787
3788 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3789 * c-ada-spec.c (dump_ads): Likewise.
3790 (cpp_check): Likewise.
3791 (dump_ada_specs): Likewise.
3792
37932014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3794
3795 PR c++/49718
3796 * c-common.c (handle_no_instrument_function_attribute): Allow
3797 no_instrument_function attribute in class member
3798 definition/declaration.
3799
241f845a
JJ
38002014-01-15 Jakub Jelinek <jakub@redhat.com>
3801
3802 PR c/58943
3803 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3804 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3805 being COMPOUND_EXPR.
3806 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3807 operand a SAVE_EXPR and second MODIFY_EXPR.
3808
e83b8e2e
JJ
38092014-01-09 Jakub Jelinek <jakub@redhat.com>
3810
3811 PR target/58115
3812 * c-pch.c (c_common_write_pch): Call
3813 prepare_target_option_nodes_for_pch.
3814
23a5b65a
RS
38152014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3816
3817 Update copyright years
3818
f9030485
RS
38192014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3820
3821 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3822 the copyright notice.
3823
f2aa696b
EB
38242013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3825
3826 * c-ada-spec.c (print_constructor): New function.
3827 (print_destructor): Retrieve the origin of the destructor.
3828 (print_ada_declaration): Revamp handling of constructors/destructors.
3829
3f8257db 38302013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3831 Bill Maddox <maddox@google.com>
3832 Jason Merrill <jason@redhat.com>
3833
3834 * c.opt: Add -fdeclone-ctor-dtor.
3835 * c-opts.c (c_common_post_options): Default to on iff -Os.
3836
41958c28
BI
38372013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3838
3839 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3840 attribute.
3841 * c-pragma.h (enum pragma_cilk_clause): Remove.
3842 (enum pragma_omp_clause): Added the following fields:
3843 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3844 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3845 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3846 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3847 PRAGMA_CILK_CLAUSE_UNIFORM.
3848
b1726d6c 3849
12893402
BI
38502013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3851
3852 * cilk.c (cilk_outline): Made this function non-static.
3853 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3854 (create_cilk_wrapper): Added a new parameter: a function pointer.
3855 (c_install_body_w_frame_cleanup): Remove
3856 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3857 * c-common.h (cilk_outline): New prototype.
3858 (gimplify_cilk_spawn): Removed two parameters.
3859 (cilk_install_body_with_frame_cleanup): New prototype.
3860 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3861 CILK_SPAWN_STMT case.
3862
085b42ed
BS
38632013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3864
2ce064c3
BS
3865 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3866
085b42ed
BS
3867 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3868 (int_array_type_node): Remove.
3869 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3870
9e36c9ed
MP
38712013-12-05 Marek Polacek <polacek@redhat.com>
3872
3873 PR c/52023
3874 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3875 [ADJUST_FIELD_ALIGN].
3876
296674db
JM
38772013-12-04 Joseph Myers <joseph@codesourcery.com>
3878
3879 PR c/52023
3880 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3881 and check field alignment if set.
3882 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3883 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3884
b1726d6c 38852013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3886 Marek Polacek <polacek@redhat.com>
3887
3888 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3889 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3890
d7947e19
L
38912013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3892
3893 PR c/59309
3894 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3895 arguments.
3896
fad7652e
JJ
38972013-11-29 Jakub Jelinek <jakub@redhat.com>
3898
3899 PR c/59280
3900 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3901 goto invalid. If it is error_mark_node, don't issue further
3902 diagnostics.
3903
8b5e1202
SO
39042013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3905
3906 * c.opt (Wopenmp-simd): New.
3907
0a508bb6
JJ
39082013-11-22 Jakub Jelinek <jakub@redhat.com>
3909
3910 * c-ubsan.h (ubsan_instrument_return): New prototype.
3911 * c-ubsan.c (ubsan_instrument_return): New function.
3912
2fb9a547
AM
39132013-11-22 Andrew MacLeod <amacleod@redhat.com>
3914
3915 * c-common.c: Add required include files from gimple.h.
3916 * c-gimplify.c: Likewise
3917 * cilk.c: Likewise
3918
8400e75e
DM
39192013-11-22 David Malcolm <dmalcolm@redhat.com>
3920
3921 * c-common.c (unsafe_conversion_p): Remove use of
3922 EXPR_LOC_OR_HERE macro.
3923 (conversion_warning): Likewise.
3924 (warnings_for_convert_and_check): Likewise.
3925 (warn_for_collisions_1): Likewise.
3926 (shorten_compare): Likewise, and remove use of in_system_header
3927 macro, using the location from the former.
3928 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3929 (cb_def_pragma): Remove use of in_system_header macro.
3930 (lex_string): Likewise.
3931 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3932
eb1ce453
KZ
39332013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3934 Mike Stump <mikestump@comcast.net>
3935 Richard Sandiford <rdsandiford@googlemail.com>
3936
3937 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3938 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3939 tree_fits_shwi_p or tree_fits_uhwi_p.
3940 (dump_generic_ada_node): Likewise.
3941 * c-format.c (check_format_arg): Likewise.
3942 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3943
6b3b8c27
KZ
39442013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3945
3946 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3947
49b0aa18
JC
39482013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3949
3950 PR c/53001
3951 * c-common.c (unsafe_conversion_p): Make this function
3952 return an enumeration with more detail.
3953 (conversion_warning): Use the new return type of
3954 unsafe_conversion_p to separately warn either about conversions
3955 that lower floating point number precision or about the other
3956 kinds of conversions.
3957 * c-common.h (enum conversion_safety): New enumeration.
3958 (unsafe_conversion_p): switching return type to
3959 conversion_safety enumeration.
3960 * c.opt: Adding new warning -Wfloat-conversion and
3961 enabling it with -Wconversion.
3962
b826515a
BS
39632013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3964
3965 * c-opts.c: Include plugin.h.
3966 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3967
b9a55b13
MP
39682013-11-19 Marek Polacek <polacek@redhat.com>
3969
3970 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3971 call.
3972 (ubsan_instrument_shift): Likewise.
3973 (ubsan_instrument_vla): Likewise.
3974
7d362f6c
RS
39752013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3976
3977 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3978 cast to unsigned type.
3979
386b1f1f
RS
39802013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3981
3982 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3983 tree_low_cst.
3984 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3985 rather than tree_low_cst.
3986
ae7e9ddd
RS
39872013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3988
3989 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3990 tree_to_uhwi throughout.
3991
9439e9a1
RS
39922013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3993
3994 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3995 tree_low_cst (..., 0) with tree_to_shwi throughout.
3996
cc269bb6
RS
39972013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3998
3999 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4000 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4001
9541ffee
RS
40022013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4003
4004 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4005 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4006
c02065fc
AH
40072013-11-15 Aldy Hernandez <aldyh@redhat.com>
4008
4009 * c-cilkplus.c: New file.
4010 * c-common.c (readonly_error): Add location argument.
4011 * c-common.h (readonly_error): Same.
4012 (c_finish_cilk_clauses): Protoize.
4013 (c_check_cilk_loop): Same.
4014 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4015 Do not fail on error_mark_node.
4016 Abstract increment canonicalization to here...
4017 (c_omp_for_incr_canonicalize_ptr): New.
4018 c-pragma.c (init_pragma): Register "simd" pragma.
4019 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4020 (enum pragma_cilk_clause): New.
4021
9cc65f15
RS
40222013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4023
4024 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4025 wchar_type and host_integerp checks.
4026
18f429e2
AM
40272013-11-14 Andrew MacLeod <amacleod@redhat.com>
4028
4029 * c-common.c: Likewise.
4030 * c-gimplify.c: Likewise.
4031 * cilk.c: Likewise.
4032
d8a2d370
DN
40332013-11-14 Diego Novillo <dnovillo@google.com>
4034
4035 * c-common.c: Include fold-const.h.
4036 Include stor-layout.h.
4037 Include calls.h.
4038 Include stringpool.h.
4039 Include attribs.h.
4040 Include varasm.h.
4041 Include trans-mem.h.
4042 * c-cppbuiltin.c: Include stor-layout.h.
4043 Include stringpool.h.
4044 * c-format.c: Include stringpool.h.
4045 * c-lex.c: Include stringpool.h.
4046 Include stor-layout.h.
4047 * c-pragma.c: Include stringpool.h.
4048 Include attribs.h.
4049 Include varasm.h.
4050 Include gcc-symtab.h.
4051 * c-pretty-print.c: Include stor-layout.h.
4052 Include attribs.h.
4053 * cilk.c: Include stringpool.h.
4054 Include calls.h.
4055
38b7bc7f
JM
40562013-11-13 Joseph Myers <joseph@codesourcery.com>
4057
4058 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4059 * c-common.c (c_common_reswords): Add __auto_type.
4060 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4061
45b0be94
AM
40622013-11-12 Andrew MacLeod <amacleod@redhat.com>
4063
18f429e2
AM
4064 * c-common.c: Include gimplify.h.
4065 * c-gimplify.c: Likewise.
4066 * cilk.c: Likewise.
4067 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4068 * c-ubsan.c: Don't include gimple.h.
45b0be94 4069
582d9b50
JM
40702013-11-12 Joseph Myers <joseph@codesourcery.com>
4071
4072 * c-common.c (c_common_reswords): Add _Thread_local.
4073
6b28e197
JM
40742013-11-09 Joseph Myers <joseph@codesourcery.com>
4075
4076 * c-common.c (atomic_size_supported_p): New function.
4077 (resolve_overloaded_atomic_exchange)
4078 (resolve_overloaded_atomic_compare_exchange)
4079 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4080 Use it instead of comparing size with a local list of sizes.
4081
267bac10
JM
40822013-11-07 Andrew MacLeod <amacleod@redhat.com>
4083 Joseph Myers <joseph@codesourcery.com>
4084
4085 * c-common.h (enum rid): Add RID_ATOMIC.
4086 * c-common.c (c_common_reswords): Add _Atomic.
4087 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4088 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4089 * c-format.c (check_format_types): Check for extra _Atomic
4090 qualifiers in format argument.
4091 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4092 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4093
5157b91e
TB
40942013-11-06 Tobias Burnus <burnus@net-b.de>
4095
4096 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4097
6dbe0958
JM
40982013-11-06 Joseph Myers <joseph@codesourcery.com>
4099
4100 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4101 standards modes.
4102 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4103 to mean lack of IEEE 754 support.
4104
e8ff5196
TB
41052013-11-05 Tobias Burnus <burnus@net-b.de>
4106
4107 * c.opt (-Wdate-time): New option
4108 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4109
254a0760
JM
41102013-11-05 Joseph Myers <joseph@codesourcery.com>
4111
4112 * c-cppbuiltin.c (cpp_iec_559_value): Test
4113 flag_excess_precision_cmdline not flag_excess_precision.
4114
6d7f7e0a
TB
41152013-11-05 Tobias Burnus <burnus@net-b.de>
4116
4117 * c.opt (fopenmp-simd): New option.
4118 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4119 (omp_pragmas): ... this new struct.
4120 (c_pp_lookup_pragma): Also walk omp_pragmas.
4121 (init_pragma): Init pragmas for -fopenmp-simd.
4122
55a7f02f
MP
41232013-11-04 Marek Polacek <polacek@redhat.com>
4124
4125 PR c++/58979
4126 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4127
9193fb05
JM
41282013-11-04 Joseph Myers <joseph@codesourcery.com>
4129
4130 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4131 New functions.
4132 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4133
94159ecf
EB
41342013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4135
4136 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4137 (dump_ada_specs): Adjust prototype of second callback.
4138 * c-ada-spec.c (cpp_check): New global variable.
4139 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4140 (print_generic_ada_decl): Likewise.
4141 (has_static_fields): Change return type to bool and add guard.
4142 (has_nontrivial_methods): New predicate.
4143 (is_tagged_type): Change return type to bool.
4144 (separate_class_package): Call has_nontrivial_methods.
4145 (pp_ada_tree_identifier): Minor tweaks.
4146 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4147 (dump_ada_array_domains): Likewise.
4148 (dump_ada_array_type): Likewise.
4149 (dump_template_types): Remove cpp_check parameter and do not pass it to
4150 dump_generic_ada_node.
4151 (dump_ada_template): Likewise.
4152 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4153 recursively.
4154 (print_ada_methods): Change return type to integer. Remove cpp_check
4155 parameter and do not pass it down.
4156 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4157 dump_generic_ada_node.
4158 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4159 accessing methods.
4160 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4161 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4162 value of print_ada_methods.
4163 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4164 Set cpp_check to it before invoking dump_ada_nodes.
4165 (dump_ada_specs): Likewise.
4166
b906f4ca
MP
41672013-11-03 Marek Polacek <polacek@redhat.com>
4168
4169 * c-ubsan.c: Don't include hash-table.h.
4170 (ubsan_instrument_vla): New function.
4171 * c-ubsan.h: Declare it.
4172
5e20cdc9
DM
41732013-10-31 David Malcolm <dmalcolm@redhat.com>
4174
4175 Automated part of renaming of symtab_node_base to symtab_node.
4176
4177 Patch autogenerated by rename_symtab.py from
4178 https://github.com/davidmalcolm/gcc-refactoring-scripts
4179 revision 58bb219cc090b2f4516a9297d868c245495ee622
4180
4181 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4182 symtab_node_base to symtab_node.
4183
7057e645
ESR
41842013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4185
4186 Implement C++14 digit separators.
4187 * c-lex.c (interpret_float): Remove digit separators from scratch string
4188 before building real literal.
4189
193ea7bc
JJ
41902013-10-30 Jakub Jelinek <jakub@redhat.com>
4191
4192 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4193
939b37da
BI
41942013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4195
4196 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4197 fields.
4198 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4199 enabled.
4200 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4201 (insert_cilk_frame): New prototype.
4202 (cilk_init_builtins): Likewise.
4203 (gimplify_cilk_spawn): Likewise.
4204 (c_cilk_install_body_w_frame_cleanup): Likewise.
4205 (cilk_detect_spawn_and_unwrap): Likewise.
4206 (cilk_set_spawn_marker): Likewise.
4207 (build_cilk_sync): Likewise.
4208 (build_cilk_spawn): Likewise.
4209 * cilk.c: New file.
4210
67348ccc
DM
42112013-10-29 David Malcolm <dmalcolm@redhat.com>
4212
4213 Patch autogenerated by refactor_symtab.py from
4214 https://github.com/davidmalcolm/gcc-refactoring-scripts
4215 revision 58bb219cc090b2f4516a9297d868c245495ee622
4216
4217 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4218 to a true class hierarchy.
4219 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4220
d570872d
RS
42212013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4222
4223 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4224
98906124
JL
42252013-10-26 Jeff Law <law@redhat.com>
4226
adfac8df
JJ
4227 * c-common.c (c_define_builtins): Remove mudflap support.
4228 * c.opt: Ignore and warn for mudflap options.
98906124 4229
d73749df 42302013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4231
4232 PR other/33426
4233 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4234 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4235
3f04b1bb
JM
42362013-10-23 Jason Merrill <jason@redhat.com>
4237
4238 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4239
acf0174b
JJ
42402013-10-11 Jakub Jelinek <jakub@redhat.com>
4241
acd15a28
JJ
4242 * c-common.h (omp_clause_mask::operator !=): New method.
4243 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4244 instead of if (mask & something) tests everywhere.
4245
acf0174b
JJ
4246 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4247 201307 instead of 201107.
4248 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4249 (c_common_attribute_table): Add "omp declare target" and
4250 "omp declare simd" attributes.
4251 (handle_omp_declare_target_attribute,
4252 handle_omp_declare_simd_attribute): New functions.
4253 * c-omp.c: Include c-pragma.h.
4254 (c_finish_omp_taskgroup): New function.
4255 (c_finish_omp_atomic): Add swapped argument, if true,
4256 build the operation first with rhs, lhs arguments and use NOP_EXPR
4257 build_modify_expr.
4258 (c_finish_omp_for): Add code argument, pass it down to make_code.
4259 (c_omp_split_clauses): New function.
4260 (c_split_parallel_clauses): Removed.
4261 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4262 c_omp_declare_simd_clauses_to_decls): New functions.
4263 * c-common.h (omp_clause_mask): New type.
4264 (OMP_CLAUSE_MASK_1): Define.
4265 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4266 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4267 omp_clause_mask::operator |, omp_clause_mask::operator &,
4268 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4269 omp_clause_mask::operator ==): New methods.
4270 (enum c_omp_clause_split): New.
4271 (c_finish_omp_taskgroup): New prototype.
4272 (c_finish_omp_atomic): Add swapped argument.
4273 (c_finish_omp_for): Add code argument.
4274 (c_omp_split_clauses): New prototype.
4275 (c_split_parallel_clauses): Removed.
4276 (c_omp_declare_simd_clauses_to_numbers,
4277 c_omp_declare_simd_clauses_to_decls): New prototypes.
4278 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4279 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4280 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4281 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4282 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4283 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4284 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4285 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4286 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4287 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4288 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4289 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4290 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4291 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4292 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4293 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4294 PRAGMA_OMP_CLAUSE_UNIFORM.
4295
826cacfe
MG
42962013-10-09 Marc Glisse <marc.glisse@inria.fr>
4297
4298 PR tree-optimization/20318
4299 * c-common.c (handle_returns_nonnull_attribute): New function.
4300 (c_common_attribute_table): Add returns_nonnull.
4301
2284b034
MG
43022013-10-03 Marc Glisse <marc.glisse@inria.fr>
4303
4304 PR c++/19476
4305 * c.opt (fcheck-new): Move to common.opt.
4306
b56e9788
MP
43072013-09-25 Marek Polacek <polacek@redhat.com>
4308 Jakub Jelinek <jakub@redhat.com>
4309
4310 PR sanitizer/58413
4311 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4312 an expression if we can prove it is correct.
4313 (ubsan_instrument_division): Likewise. Remove unnecessary
4314 check.
4315
ce6923c5
MP
43162013-09-18 Marek Polacek <polacek@redhat.com>
4317
4318 PR sanitizer/58411
4319 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4320 Declare it.
4321 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4322
fb5610fb
IS
43232013-09-14 Iain Sandoe <iain@codesourcery.com>
4324
4325 PR target/48094
4326 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4327 fobjc-gc, freplace-objc-classes): Accept for LTO.
4328
88b0e79e
JC
43292013-09-13 Jacek Caban <jacek@codeweavers.com>
4330
4331 * c-target.def: New hook
4332
c9b0866a
PC
43332013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4334
4335 PR c++/43452
4336 * c.opt (Wdelete-incomplete): Add.
4337
0af94e6f
JR
43382013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4339
4340 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4341 (vector_types_compatible_elements_p): New function.
4342 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4343 declaration.
4344 (vector_types_compatible_elements_p): Declare.
4345
7c26172c
GDR
43462013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4347
4348 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4349 a virtual member function.
4350 (pp_simple_type_specifier): Remove.
4351 (pp_c_type_specifier): Likewise.
4352 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4353 Rename from pp_c_type_specifier. Adjust.
4354 (c_pretty_printer::c_pretty_printer): Do not assign to
4355 simple_type_specifier.
4356
20059c8b
GDR
43572013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4358
4359 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4360 member function.
4361 (c_pretty_printer::storage_class_specifier): Likewise.
4362 (c_pretty_printer::initializer): Likewise.
4363 (pp_declaration): Remove.
4364 (pp_declaration_specifiers): Likewise.
4365 (pp_abstract_declarator): Likewise.
4366 (pp_declarator): Likewise.
4367 (pp_type_id): Likewise.
4368 (pp_statement): Likewise.
4369 (pp_constant): Likewise.
4370 (pp_id_expression): Likewise.
4371 (pp_primary_expression): Likewise.
4372 (pp_unary_expression): Likewise.
4373 (pp_multiplicative_expression): Likewise.
4374 (pp_conditional_expression): Likewise.
4375 (pp_assignment_expression): Likewise.
4376 (pp_expression): Likewise.
4377 (pp_c_type_id): Likewise.
4378 (pp_c_storage_class_specifier): Likewise.
4379 * c-pretty-print.c (pp_c_type_cast): Tidy.
4380 (pp_c_pointer): Likewise.
4381 (pp_c_type_specifier): Likewise.
4382 (pp_c_parameter_type_list): Likewise.
4383 (pp_c_function_definition): Likewise.
4384 (pp_c_init_declarator): Likewise.
4385 (pp_c_initializer_list): Likewise.
4386 (pp_c_constructor_elts): Likewise.
4387 (c_pretty_printer::direct_abstract_declarator): Likewise.
4388 (c_pretty_printer::declaration_specifiers): Likewise.
4389 (c_pretty_printer::primary_expression): Likewise.
4390 (c_pretty_printer::postfix_expression): Likewise.
4391 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4392 (c_pretty_printer::storage_class_specifier): Rename from
4393 pp_c_storage_class_specifier.
4394 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4395 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4396 storage_class_specifier, initializer, offset_list, flags.
4397
de5a5fa1
MP
43982013-08-30 Marek Polacek <polacek@redhat.com>
4399
4400 * c-ubsan.c: New file.
4401 * c-ubsan.h: New file.
4402
8f0e4d72
GDR
44032013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4404
4405 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4406 member function.
4407 (c_pretty_printer::declaration_specifiers): Likewise.
4408 (c_pretty_printer::declarator): Likewise.
4409 (c_pretty_printer::abstract_declarator): Likewise.
4410 (c_pretty_printer::direct_abstract_declarator): Likewise.
4411 (c_pretty_printer::direct_declarator): Likewise.
4412 (c_pretty_printer::function_specifier): Likewise.
4413 (pp_declaration): Adjust.
4414 (pp_declaration_specifiers): Likewise.
4415 (pp_abstract_declarator): Likewise.
4416 (pp_direct_declarator): Likewise.
4417 (pp_function_specifier): Likewise.
4418 (pp_direct_abstract_declarator): Remove as unused.
4419 (pp_c_declaration): Remove.
4420 (pp_c_declaration_specifiers): Likewise.
4421 (pp_c_declarator): Likewise.
4422 (pp_c_direct_declarator): Likewise.
4423 (pp_c_function_specifier): Likewise.
4424 (pp_c_direct_abstract_declarator): Likewise.
4425 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4426 from pp_c_abstract_declarator. Adjust.
4427 (c_pretty_printer::direct_abstract_declarator): Rename from
4428 pp_c_direct_abstract_declarator. Adjust.
4429 (c_pretty_printer::function_specifier): Rename from
4430 pp_c_function_specifier. Adjust.
4431 (c_pretty_printer::declaration_specifiers): Rename from
4432 pp_c_declaration_specifiers. Adjust.
4433 (c_pretty_printer::direct_declarator): Rename from
4434 pp_c_direct_declarator. Adjust.
4435 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4436 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4437 (c_pretty_printer::c_pretty_printer): Do not assign to
4438 declaration, declaration_specifiers, declarator,
4439 direct_declarator, direct_abstract_declarator, function_specifier.
4440
00d34d3a
GDR
44412013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4442
4443 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4444 virtual member function.
4445 (c_pretty_printer::multiplicative_expression): Likewise.
4446 (c_pretty_printer::conditional_expression): Likewise.
4447 (c_pretty_printer::assignment_expression): Likewise.
4448 (c_pretty_printer::expression): Likewise.
4449 (pp_unary_expression): Adjust.
4450 (pp_multiplicative_expression): Likewise.
4451 (pp_assignment_expression): Likewise.
4452 (pp_conditional_expression): Likewise.
4453 (pp_expression): Likewise.
4454 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4455 from pp_c_unary_expression. Adjust.
4456 (c_pretty_printer::multiplicative_expression): Rename from
4457 pp_c_multiplicative_expression. Adjust.
4458 (c_pretty_printer::conditional_expression): Rename from
4459 pp_c_conditional_expression. Adjust.
4460 (c_pretty_printer::assignment_expression): Rename from
4461 pp_c_assignment_expression. Adjust.
4462 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4463 (c_pretty_printer::c_pretty_printer): Do not assign to
4464 unary_expression, multiplicative_expression,
4465 conditional_expression, expression.
4466
fb22178f
GDR
44672013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4468
4469 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4470 virtual member function.
4471 (pp_postfix_expression): Adjust.
4472 (pp_c_postfix_expression): Remove.
4473 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4474 from pp_c_postfix_expression. Adjust.
4475 (c_pretty_printer::c_pretty_printer): Do not assign to
4476 postfix_expression.
4477
7ecc2600
GDR
44782013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4479
4480 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4481 virtua member function.
4482 (pp_primary_expression): Adjust.
4483 (pp_c_primary_expression): Remove.
4484 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4485 from pp_c_primary_expression. Adjust.
4486 (pp_c_initializer_list): Use pp_primary_expression.
4487 (c_pretty_printer::c_pretty_printer): Do not assign to
4488 primary_expression.
4489
0691175f
GDR
44902013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4491
4492 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4493 * c-pretty-print.c (M_): Remove.
4494 (c_pretty_printer::translate_string): Define.
4495 (pp_c_type_specifier): Use it.
4496 (pp_c_primary_expression): Likewise.
4497 (pp_c_expression): Likewise.
4498
66dfe4c4
GDR
44992013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4500
4501 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4502 virtual function.
4503 (pp_c_id_expression): Remove.
4504 (pp_id_expression): Adjust.
4505 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4506 pp_c_id_expression. Adjust.
4507 (pp_c_postfix_expression): Use pp_id_expression.
4508 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4509
ca43e9d5
GDR
45102013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4511
4512 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4513 member function.
4514 (pp_constant): Adjust.
4515 (pp_c_constant): Remove.
4516 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4517 pp_c_constant. Adjust.
4518 (pp_c_constant)
4519 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4520 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4521
da6ca2b5
GDR
45222013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4523
4524 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4525 (c_pretty_printer::c_pretty_printer): Declare.
4526 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4527 c_pretty_printer_init. Adjust.
4528 (print_c_tree): Do not call c_pretty_printer_init.
4529 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4530
65a372f4
AC
45312013-08-09 Arnaud Charlet <charlet@adacore.com>
4532
4533 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4534
fd9b0f32
PC
45352013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4536
4537 PR c++/58080
4538 * c-common.c (pointer_int_sum): Add bool parameter.
4539 * c-common.h (pointer_int_sum): Adjust declaration.
4540
e0aec1e9
GDR
45412013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4542
4543 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4544 c_pretty_printer variable.
4545
b066401f
GDR
45462013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4547
4548 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4549 (pp_base): Remove.
4550 (pp_c_base): Likewise. Adjust users.
4551 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4552 (pp_c_whitespace): Do not call pp_base.
4553 (pp_c_left_paren): Likewise.
4554 (pp_c_right_paren): Likewise.
4555 (pp_c_left_brace): Likewise.
4556 (pp_c_right_brace): Likewise.
4557 (pp_c_left_bracket): Likewise.
4558 (pp_c_right_bracket): Likewise.
4559 (pp_c_dot): Likewise.
4560 (pp_c_ampersand): Likewise.
4561 (pp_c_star): Likewise.
4562 (pp_c_arrow): Likewise.
4563 (pp_c_semicolon): Likewise.
4564 (pp_c_complement): Likewise.
4565 (pp_c_exclamation): Likewise.
4566 (pp_c_direct_declarator): Likewise.
4567 (pp_c_ws_string): Likewise.
4568 (pp_c_identifier): Likewise.
4569 (pp_c_statement): Likewise.
4570 (print_c_tree): Likewise.
4571
65e5a578
ESR
45722013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4573
4574 PR c++/58072
4575 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4576 provide useful error strings.
4577
137a1a27
GDR
45782013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4579
4580 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4581 printer functions instead of pp_string or operators and punctuators.
4582 (dump_generic_ada_node): Likewise.
4583 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4584 (pp_c_relational_expression): Likewise.
4585 (pp_c_logical_or_expression): Likewise.
4586
07838b13
GDR
45872013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4588
4589 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4590 functions instead of pp_character.
4591 (pp_ada_tree_identifier): Likewise.
4592 (dump_ada_double_name): Likewise.
4593 (dump_ada_function_declaration): Likewise.
4594 (dump_ada_array_domains): Likewise.
4595 (dump_template_types): Likewise.
4596 (dump_generic_ada_node): Likewise.
4597 (print_ada_declaration): Likewise.
4598 (print_ada_struct_decl): Likewise.
4599 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4600
433cc7b0
TT
46012013-07-23 Tom Tromey <tromey@redhat.com>
4602
4603 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4604 * c-common.c (c_common_reswords): Add _Generic.
4605
688010ba
OB
46062013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4607
4608 * c-common.c: Fix typos.
4609 * c-common.h: Likewise.
4610
2a99e5e6
LL
46112013-07-13 Lubos Lunak <l.lunak@suse.cz>
4612
4613 PR c++/55203
4614 * c-common.c (c_common_attribute_table): Add warn_unused.
4615 (handle_warn_unused_attribute): New.
4616
c26302d5
JJ
46172013-07-10 Jakub Jelinek <jakub@redhat.com>
4618
4619 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4620 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4621
dfeadaa0
PC
46222013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4623
4624 PR c++/57869
4625 * c.opt: Add Wconditionally-supported.
4626
6a2fa4b2
GS
46272013-07-08 Graham Stott <graham.stott@btinternet.com>
4628
adfac8df 4629 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4630 unused variables l_length and l_node.
4631
ecdbd01a 46322013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4633
4634 PR c/57821
4635 * c-common.c (complete_array_type): Delay folding first index
4636 like other indices. When folding, check for index overflow.
4637
bedc293e
MG
46382013-06-27 Marc Glisse <marc.glisse@inria.fr>
4639
4640 PR c++/57509
4641 * c-common.h (c_build_vec_perm_expr): New complain argument.
4642 * c-common.c (c_build_vec_perm_expr): Likewise.
4643 Use save_expr also in C++.
4644
604b2bfc
GDR
46452013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4646
4647 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4648 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4649 * c-opts.c (c_common_post_options): Likewise.
4650
dfeadaa0 46512013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4652
4653 * array-notation-common.c (length_mismatch_in_expr): Changed the
4654 parameter type's from a dynamic array to a vec_tree. Also removed
4655 the size parameters.
4656 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4657 the change above.
4658
2ce86d2e
BI
46592013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4660
4661 * c-common.h (struct cilkplus_an_parts): New structure.
4662 (struct cilkplus_an_loop_parts): Likewise.
4663 (cilkplus_extract_an_triplets): New prototype.
4664 (fix_sec_implicit_args): Likewise.
4665 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4666 (fix_sec_implicit_args): Likewise.
604b2bfc 4667
07a6825b
BI
46682013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4669
4670 * array-notation-common.c (find_inv_trees): Removed an unwanted
4671 typecasting.
4672 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4673 enum rid to enum tree_code.
4674
08346abd
JH
46752013-06-11 Jan Hubicka <jh@suse.cz>
4676
4677 * c-common.c (handle_alias_ifunc_attribute): Do not set
4678 DECL_EXTERNAL for weakref variables.
4679 * c-pragma.c (handle_pragma_weak): Make sure aliases
4680 are not declared as external.
4681
d60f1706
BI
46822013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4683
4684 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4685 function from c/c-array-notation.c.
4686 (is_cilkplus_reduce_builtin): Likewise.
4687 (find_rank): Likewise.
4688 (extract_array_notation_exprs): Likewise.
4689 (replace_array_notations): Likewise.
4690 (find_inv_trees): Likewise.
4691 (replace_inv_trees): Likewise.
4692 (contains_array_notation_expr): Likewise.
4693 (find_correct_array_notation_type): Likewise.
4694 * c-common.h (struct inv_list): Moved this struct from the file
4695 c/c-array-notation.c and added a new field called additional tcodes.
4696 (length_mismatch_in_expr_p): New prototype.
4697 (is_cilkplus_reduce_builtin): Likewise.
4698 (find_rank): Likewise.
4699 (extract_array_notation_exprs): Likewise.
4700 (replace_array_notation): Likewise.
4701 (find_inv_trees): Likewise.
4702 (replace_inv_trees): Likewise.
4703 (find_correct_array_notation_type): Likewise.
dfeadaa0 4704
36536d79
BI
47052013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4706
4707 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4708 function array_notation_init_builtins is called.
4709 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4710 * c-common.def (ARRAY_NOTATION_REF): New tree.
4711 * c-common.h (build_array_notation_expr): New function declaration.
4712 (build_array_notation_ref): Likewise.
4713 (extract_sec_implicit_index_arg): New extern declaration.
4714 (is_sec_implicit_index_fn): Likewise.
4715 (ARRAY_NOTATION_CHECK): New define.
4716 (ARRAY_NOTATION_ARRAY): Likewise.
4717 (ARRAY_NOTATION_START): Likewise.
4718 (ARRAY_NOTATION_LENGTH): Likewise.
4719 (ARRAY_NOTATION_STRIDE): Likewise.
4720 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4721 ARRAY_NOTATION_REF.
4722 (pp_c_expression): Likewise.
4723 * c.opt (flag_enable_cilkplus): New flag.
4724 * array-notation-common.c: New file.
4725
f7716d57
JJ
47262013-05-14 Jakub Jelinek <jakub@redhat.com>
4727
4728 PR c++/57274
4729 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4730
a5e0cd1d
MG
47312013-05-10 Marc Glisse <marc.glisse@inria.fr>
4732
4733 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4734 vectors.
4735
f6bc1c4a
HS
47362013-05-07 Han Shen <shenhan@google.com>
4737
4738 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4739
3f12f6e9
SKS
47402013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4741
4742 * c-common.c (check_user_alignment): Emit error for negative values.
4743
61949153
PC
47442013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4745
4746 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4747
e93e18e9
PC
47482013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4749
4750 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4751 __GXX_EXPERIMENTAL_CXX1Y__.
4752
44d90fe1
PC
47532013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4754 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4755
4756 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4757 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4758 to simply use OPT_Wpointer_arith.
4759 (c_sizeof_or_alignof_type): Likewise.
4760
13f39b2e
PC
47612013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4762
4763 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4764
4b84d650
JJ
47652013-04-12 Jakub Jelinek <jakub@redhat.com>
4766
4767 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4768 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4769 specifiers.
4770
fb037b5d
SB
47712013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4772
4773 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4774
4e856798
PC
47752013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4776
4777 * c-common.c (pointer_int_sum): Remove dead code.
4778
4b1baac8
RS
47792013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4780
4781 PR middle-end/56524
4782 * c-common.c (handle_optimize_attribute): Don't call
4783 save_optabs_if_changed.
4784
0b50e654
JJ
47852013-03-05 Jakub Jelinek <jakub@redhat.com>
4786
4787 PR middle-end/56461
4788 * c-pch.c (pch_init): Free target_validity at the end.
4789
48c41403
JJ
47902013-03-04 Jakub Jelinek <jakub@redhat.com>
4791
4792 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4793
e664c61c
KS
47942013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4795 Jakub Jelinek <jakub@redhat.com>
4796
4797 PR sanitizer/56454
4798 * c-common.c (handle_no_sanitize_address_attribute): New function.
4799 (c_common_attribute_table): Add no_sanitize_address attribute.
4800 (handle_no_address_safety_analysis_attribute): Add
4801 no_sanitize_address attribute, not no_address_safety_analysis
4802 attribute.
4803
a475fd3d 48042013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4805
4806 PR target/52555
4807 * c-common.c (handle_optimize_attribute): Call
4808 save_optabs_if_changed.
4809
f6007d99
JJ
48102013-02-18 Jakub Jelinek <jakub@redhat.com>
4811 Steven Bosscher <steven@gcc.gnu.org>
4812
4813 PR pch/54117
4814 * c-opts.c (c_common_post_options): If debug info is enabled
4815 and non-dwarf*, refuse to load PCH files and when writing PCH
4816 file warn.
4817
cf35e2b1
JJ
48182013-02-05 Jakub Jelinek <jakub@redhat.com>
4819
4820 PR middle-end/56167
4821 * c-common.c (handle_error_attribute): Fix condition.
4822
32887460
JJ
48232013-01-30 Jakub Jelinek <jakub@redhat.com>
4824
4825 PR c++/55742
4826 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4827
5af057d8
JM
48282013-01-18 Jason Merrill <jason@redhat.com>
4829
4830 PR target/54908
4831 * c.opt (-fextern-tls-init): New.
4832 * c-opts.c (c_common_post_options): Handle it.
4833
cc83c823
JJ
48342013-01-09 Jakub Jelinek <jakub@redhat.com>
4835
4836 PR c/48418
4837 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4838 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4839 and is either negative or bigger or equal to type precision
4840 of the first operand.
4841
a859517f
MP
48422012-12-03 Marek Polacek <polacek@redhat.com>
4843
4844 PR c/55570
4845 * c-common.c (check_user_alignment): Swap order of tests,
4846 check TREE_CODE first.
4847
2d7aa578
ESR
48482012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4849
4850 PR c++/52654
4851 * c-common.h (overflow_type): New enum.
4852 (build_userdef_literal): Add overflow_type argument.
4853 (tree_userdef_literal): Add overflow_type.
4854 (USERDEF_LITERAL_OVERFLOW): New access macro.
4855 * c-common.c (build_userdef_literal): Add overflow_type
4856 argument.
4857 * c-lex.c (c_lex_with_flags): Add overflow_type to
4858 build_userdef_literal calls.
4859 (interpret_integer, interpret_float): Add overflow_type argument.
4860
cc3c4f62
RB
48612012-11-28 Richard Biener <rguenther@suse.de>
4862
4863 PR c/35634
4864 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4865 here and use a type with proper overflow behavior for types that would
4866 need to be promoted for the arithmetic.
4867
77bc5132
JJ
48682012-11-23 Jakub Jelinek <jakub@redhat.com>
4869
4870 PR sanitizer/55435
4871 * c-common.c (handle_no_address_safety_analysis_attribute): New
4872 function.
4873 (c_common_attribute_table): Add no_address_safety_analysis.
4874
5dc99c46
SB
48752012-11-16 Simon Baldwin <simonb@google.com>
4876
4877 * c.opt: Add f[no-]canonical-system-headers.
4878 * c-opts.c (c_common_handle_option): Handle
4879 OPT_fcanonical_system_headers.
4880
a4a0016d
ESR
48812012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4882
4883 PR c++/54413
4884 * c-opts.c (c_common_handle_option): Set new flags.
4885 * c.opt: Describe new flags.
4886
7dbb85a7
JM
48872012-11-09 Jason Merrill <jason@redhat.com>
4888
4889 * c.opt (Wabi-tag): New.
4890
ad7bac31
AK
48912012-11-09 Andi Kleen <ak@linux.intel.com>
4892
4893 PR 55139
4894 * c-common.c (get_atomic_generic_size): Mask with
4895 MEMMODEL_MASK
4896
7332899a
MLI
48972012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4898
4899 PR c/53063
4900 * c.opt (Wformat): Make it Alias Wformat=1.
4901 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4902 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4903 LangEnabledBy.
4904 (Wformat=): RejectNegative. Use LangEnabledBy.
4905 (Wnonnull): Use LangEnabledBy.
4906 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4907 * c-format.c (set_Wformat): Delete.
4908 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4909 (maybe_read_dollar_number): Likewise.
4910 (avoid_dollar_number): Likewise.
4911 (finish_dollar_format_checking): Likewise.
4912 (check_format_info): Likewise.
4913 (check_format_info_main): Likewise.
4914 (check_format_types): Likewise.
4915 (format_type_warning): Likewise.
4916 * c-common.c (int): Likewise.
4917 (check_function_sentinel): Likewise.
4918 * c-common.h (warn_format,set_Wformat): Do not declare here.
4919
34a180a6
MLI
49202012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4921
4922 PR c/53063
4923 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4924 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4925 Use LangEnabledBy.
4926 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4927 common.opt.
4928 (Wvariadic-macros): Init(1).
4929 * c-opts.c (c_common_handle_option): Do not handle them
4930 explicitly.
4931 (c_common_post_options): Likewise.
4932 (sanitize_cpp_opts): warn_unused_macros is now
4933 cpp_warn_unused_macros.
4934 (push_command_line_include): Likewise.
4935 * c-common.c (warn_unknown_pragmas): Do not define.
4936 * c-common.h (warn_unknown_pragmas): Do not declare.
4937
3f46d6a5
MLI
49382012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4939
4940 PR c/51294
4941 * c-common.c (conversion_warning): Handle conditional expressions.
4942
880661a4
JW
49432012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4944
4945 PR c++/54930
4946 * c.opt (Wreturn_local_addr): Define new option.
4947
4514a96b
JM
49482012-10-25 Jason Merrill <jason@redhat.com>
4949
f14edc1a
JM
4950 * c.opt (Wvirtual-move-assign): New.
4951
4514a96b
JM
4952 * c.opt (Winherited-variadic-ctor): New.
4953
93100c6b
MG
49542012-10-25 Marc Glisse <marc.glisse@inria.fr>
4955
4956 PR c++/54427
4957 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4958
1efcb8c6
JM
49592012-10-23 Joseph Myers <joseph@codesourcery.com>
4960
4961 * c-common.h (pch_cpp_save_state): Declare.
4962 * c-target.def (c_preinclude): New hook.
4963 * c-opts.c (done_preinclude): New.
4964 (push_command_line_include): Handle default preincluded header.
4965 (cb_file_change): Call pch_cpp_save_state when calling
4966 push_command_line_include.
4967 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4968 (pch_cpp_save_state): New.
4969 (pch_init): Call pch_cpp_save_state conditionally, instead of
4970 calling cpp_save_state.
4971
4a0ae68e
MLI
49722012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4973
4974 PR c/53063
4975 PR c/40989
4976 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4977 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4978 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4979 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4980 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4981 * c-opts.c (c_common_handle_option): Remove explicit handling from
4982 here.
4983 (c_common_post_options): Likewise.
4984
67e4210b
EB
49852012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4986
4987 * c-ada-spec.c (LOCATION_COL): Delete.
4988 (compare_location): New function.
4989 (compare_node): Use it.
4990 (compare_comment): Likewise.
4991
65d4f2cd
MLI
49922012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4993
4994 PR c/53063
4995 PR c/40989
4996 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4997 * c-opts.c (c_common_handle_option): Do not set them here. Add
4998 comment.
4999 (c_common_post_options): Likewise.
5000
909881cb
EB
50012012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5002
5003 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5004 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5005 Remove POINTER_TYPE handling, add large unsigned handling and use
5006 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5007
3a785c97
JJ
50082012-10-12 Jakub Jelinek <jakub@redhat.com>
5009
5010 PR c/54381
5011 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5012 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5013 locs and array of 3 trees instead of just single loc and single
5014 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5015 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5016 For *cmp* builtins that take two sources strings report warnings
5017 about first and second source, not about destination and source.
5018
5e54f81d
MG
50192012-10-12 Marc Glisse <marc.glisse@inria.fr>
5020
5021 PR c++/53055
5022 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5023
f5b02f1e
EB
50242012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5025
5026 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5027 declaring something coming from another file.
5028
b46dbc6c
AC
50292012-10-10 Arnaud Charlet <charlet@adacore.com>
5030
f5b02f1e 5031 PR ada/54845
b46dbc6c
AC
5032 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5033
5d9de0d0
PC
50342012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5035
5036 PR c++/54194
5037 * c-common.c (warn_about_parentheses): Add location_t parameter;
5038 use EXPR_LOC_OR_LOC.
5039 * c-common.h: Update declaration.
5040
a212e43f
MG
50412012-10-09 Marc Glisse <marc.glisse@inria.fr>
5042
5043 PR c++/54427
5044 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5045 more operations. Make error messages optional.
5046 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5047 (scalar_to_vector): Declare.
5048
b1db7f91
JM
50492012-10-08 Jason Merrill <jason@redhat.com>
5050
5051 * c-common.c (c_common_reswords): Add thread_local.
5052
e28d52cf
DS
50532012-10-08 Dodji Seketeli <dodji@redhat.com>
5054
5055 PR c++/53528 C++11 attribute support
5056 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5057 new functions.
5058 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5059 static function.
5060 (handle_aligned_attribute): In choose strictest alignment
5061 among many. Use new check_cxx_fundamental_alignment_constraints.
5062 (handle_transparent_union_attribute): In c++11 attribute syntax,
5063 don't look through typedefs.
5064
3b78de56
AC
50652012-10-04 Arnaud Charlet <charlet@adacore.com>
5066
5067 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5068 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5069 out of dumpfile.h.
5070
6040bb5f
DC
50712012-09-25 Dehao Chen <dehao@google.com>
5072
5073 PR middle-end/54645
3b78de56 5074 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5075 map when read in the pch.
5076
3f8257db 50772012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5078
5079 * c-ada-spec.c: Style fixes.
5080
3f8257db 50812012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5082
5083 * c.opt (-fada-spec-parent): Define new command line switch.
5084 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5085 is specified, generate binding spec as a child of the specified unit.
5086
0ccb505d
PC
50872012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5088 Manuel López-Ibáñez <manu@gcc.gnu.org>
5089
5090 PR c++/53210
5091 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5092
c583af79
AC
50932012-08-23 Arnaud Charlet <charlet@adacore.com>
5094
5095 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5096 for pointers, and add missing Convention C pragma.
5097 (print_ada_struct_decl): Add missing aliased keyword.
5098 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5099
1a4049e7
JJ
51002012-08-17 Jakub Jelinek <jakub@redhat.com>
5101
5102 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5103 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5104 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5105 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5106 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5107
70b5e7dc
RG
51082012-08-10 Richard Guenther <rguenther@suse.de>
5109
5110 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5111
f8923f7e
SB
51122012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5113
5114 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5115 instead of separate pp_newline and pp_flush.
5116 (print_c_tree): Likewise.
5117
e45abe1f
RH
51182012-07-26 Richard Henderson <rth@redhat.com>
5119
5120 * c-common.c (handle_hot_attribute): Allow labels.
5121 (handle_cold_attribute): Likewise.
5122
332f1d24
JJ
51232012-07-20 Jakub Jelinek <jakub@redhat.com>
5124
5125 PR c++/28656
5126 * c-common.c (check_function_nonnull): Handle multiple nonnull
5127 attributes properly.
5128
7ee2468b
SB
51292012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5130
5131 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5132 * c-ada-spec.c: Likewise.
5133 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5134
ee7b28eb
SB
51352012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5136
5137 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5138 Remove code conditional on it.
5139
6bdf3519
SB
51402012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5141
5142 * c-gimplify.c: Do not include basic-block.h.
5143 * c-common.c: Do not include linfuncs.h.
5144
532aafad
SB
51452012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5146
5147 * c-common.h: Include tree.h.
5148
8d0d1915
JM
51492012-07-02 Jason Merrill <jason@redhat.com>
5150
5151 PR c++/53524
5152 * c-common.c (get_priority): Call default_conversion.
5153
fbc873ad
UB
51542012-07-01 Uros Bizjak <ubizjak@gmail.com>
5155
5156 * c-pch.c (c_common_write_pch): Remove unused variables.
5157
d4a10d0a
SB
51582012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5159
5160 * cppspec.c: Moved from gcc/ to here.
5161
6f3a2e23
KT
51622012-06-27 Kai Tietz <ktietz@redhat.com>
5163
5164 PR preprocessor/37215
5165 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5166
8ca92d04
SB
51672012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5168
5169 * c-common.h (c_common_print_pch_checksum): Remove.
5170 * c-pch.c: Do not include output.h.
5171 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5172 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5173 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5174 (struct c_pch_header): Remove.
5175 (get_ident): Update gpch version.
5176 (pch_init): Do not print executable_checksum to asm_out_file.
5177 Do not fail if there is no asm_out_file to read back from. Set
5178 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5179 (c_common_write_pch): Verify that nothing was written to asm_out_file
5180 since pch_init was called. Do not write a c_pch_header, and do not
5181 copy from asm_out_file to the PCH.
5182 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5183 the content of asm_out_file from the PCH.
5184 (c_common_print_pch_checksum): Remove.
5185 * c-opts.c (c_common_init): Print out executable_checksum directly.
5186
70f42967
SB
51872012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5188
5189 * c-target.def (objc_declare_unresolved_class_reference,
5190 objc_declare_class_definition): Add new hooks.
5191
a8781821
SB
51922012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5193
5194 * c-lex.c: Do not include output.h.
5195 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5196 Remove uses of ASM_OUTPUT_IDENT.
5197
9e1a8dd1
RR
51982012-06-15 Marc Glisse <marc.glisse@inria.fr>
5199
5200 PR c++/51033
5201 * c-common.h (c_build_vec_perm_expr): Move decl here.
5202 * c-common.c (c_build_vec_perm_expr): Move definition
5203 here.
5204
6f07a821
SB
52052012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5206
5207 * c.opt (fconserve-space): Turn into a no-op.
5208
9faeb493 52092012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5210
5211 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5212 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5213 both the start and end of the function.
5214
a4b7d13c
SB
52152012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5216
5217 * c-common.c: Do not include output.h.
5218 * c-pragma.c: Likewise.
5219
c265f413
SA
52202012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5221
5222 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5223 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5224 (lang_decl_name): Handle namespace decls.
5225
be7a421e
SB
52262012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5227
5228 * c-ada-spec.c: Do not include output.h.
5229 * c-semantics.c: Likewise.
5230
65de6659
JM
52312012-05-29 Joseph Myers <joseph@codesourcery.com>
5232
5233 * c-common.c: Fix typo.
5234
ca5f4331
MM
52352012-05-29 Michael Matz <matz@suse.de>
5236
5237 * c-common.h (c_expand_decl): Remove prototype.
5238
4f7f7aca
MLI
52392012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5240
5241 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5242 * c-opts.c (c_common_handle_option): Remove code handling
5243 warn_missing_braces.
5244
4a792f9b
PC
52452012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5246
5247 PR c++/25137
5248 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5249 -Wmissing_braces.
5250
650dc14a
DS
52512012-05-22 Dodji Seketeli <dodji@redhat.com>
5252
5253 PR c++/53322
5254 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5255
9b095bf1
MLI
52562012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5257
5258 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5259 * c-opts.c (c_common_handle_option): Do not handle explicitly
5260 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5261
0b2c4be5
DS
52622012-05-16 Dodji Seketeli <dodji@redhat.com>
5263
5264 PR preprocessor/7263
5265 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5266 to cpp_classify_number. For diagnostics, use the precise location
5267 instead of the global input_location.
5268
a1bde5af
PC
52692012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5270
d02924ef 5271 PR c++/11856
a1bde5af
PC
5272 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5273
d1ede5f4
BS
52742012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5275
a1bde5af 5276 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5277
f2bc201f
MLI
52782012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5279
5280 PR 53063
5281 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5282 Wreorder): Use LangEnabledBy.
5283 * c-opts.c (c_common_handle_option): Do not enable them
5284 explicitly. Call lang-specific generated functions.
5285 (c_common_post_options): Do not set them here.
5286
95744782
MLI
52872012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5288
5289 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5290 Wmissing-field-initializers,Wmissing-parameter-type,
5291 Wold-style-declaration,Woverride-init): Use EnabledBy.
5292 * c-opts.c (c_common_post_options): Do not set here explicitly.
5293
7d5a5747
MLI
52942012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5295
5296 PR 53063
5297 * c-opts.c (c_common_handle_option): Use handle_generated_option
5298 to enable sub-options.
5299
5a3c9cf2
PC
53002012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5301
5302 PR c++/53158
5303 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5304
3ac8781c
RG
53052012-05-10 Richard Guenther <rguenther@suse.de>
5306
5307 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5308 adjust commentary about TYPE_IS_SIZETYPE types.
5309
1e537948
MLI
53102012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5311
5312 PR c++/53261
5313 * c-common.c (warn_logical_operator): Check that argument of
5314 integer_zerop is not NULL.
5315
f2c4a785
MLI
53162012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5317
5318 PR c/43772
5319 * c-common.c (warn_logical_operator): Do not warn if either side
5320 is already true or false.
5321
50f305ca
MLI
53222012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5323
5324 PR c/51712
5325 * c-common.c (expr_original_type): New.
5326 (shorten_compare): Do not warn for enumeration types.
5327
0c3641b0
MLI
53282012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5329
5330 * c.opt (fpermissive): Add Var(flag_permissive).
5331
7edaa4d2
MG
53322012-04-30 Marc Glisse <marc.glisse@inria.fr>
5333
5334 PR c++/51033
5335 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5336 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5337
b9c8da34
DS
53382012-04-30 Dodji Seketeli <dodji@redhat.com>
5339
5340 Add -Wvarargs option
5341 * c.opt (Wvarargs): Define new option.
5342
e6c69da0
MLI
53432012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5344
5345 * c-common.c (check_function_arguments): Replace
5346 Wmissing-format-attribute with Wsuggest-attribute=format.
5347
90137d8f
MLI
53482012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5349
5350 * c.opt (Wsuggest-attribute=format): New. Alias of
5351 Wmissing-format-attribute.
5352 * c-format.c (decode_format_type): Replace
5353 Wmissing-format-attribute with Wsuggest-attribute=format.
5354 (check_function_format): Likewise.
5355
9faeb493 53562012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5357
5358 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5359 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5360 * c.opt: Add Wliteral-suffix.
5361
c1771a20
MLI
53622012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5363
5364 PR c/44774
5365 * c.opt (Wpedantic): New.
5366 (pedantic): Alias Wpedantic.
5367 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5368 (c_common_post_options): Likewise.
5369 (sanitize_cpp_opts): Likewise.
5370 * c-lex.c (interpret_float): Likewise.
5371 * c-format.c (check_format_types): Likewise.
5372 * c-common.c (pointer_int_sum): Likewise.
5373 (c_sizeof_or_alignof_type): Likewise.
5374 (c_add_case_label): Likewise.
5375 (c_do_switch_warnings): Likewise.
5376 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5377
04b391c1
JM
53782012-04-15 Jason Merrill <jason@redhat.com>
5379
5380 PR c++/52818
5381 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5382 (C_STD_NAME): Distinguish between C++98 and C++11.
5383
ac868f29
EB
53842012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5385
5386 PR target/52624
5387 * c-common.h (uint16_type_node): Rename into...
5388 (c_uint16_type_node): ...this.
5389 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5390 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5391
fd4116f4
MLI
53922012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5393
5394 * c-common.c (warn_if_unused_value): Move definition to here.
5395 * c-common.h (warn_if_unused_value): Move declaration to here.
5396
573ac65e
WB
53972012-03-23 William Bader <williambader@hotmail.com>
5398
5399 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5400
552b8185
JM
54012012-03-20 Jason Merrill <jason@redhat.com>
5402
5403 * c-common.h (enum cxx_dialect): Add cxx1y.
5404 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5405 test.
5406 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5407 * c-opts.c (c_common_post_options): Likewise.
5408 (set_std_cxx1y): New.
5409 (c_common_handle_option): Call it.
5410 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5411
04398fa8
PC
54122012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5413
5414 PR c++/14710
5415 * c.opt ([Wuseless-cast]): Add.
5416
d2a12ae7
RG
54172012-03-16 Richard Guenther <rguenther@suse.de>
5418
5419 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5420
a12bf402
MLI
54212012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5422
5423 PR c++/44783
5424 * c.opt (ftemplate-backtrace-limit) Add.
5425
5c30094f
RO
54262012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5427
5428 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5429 handling.
5430 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5431 (init_pragma): Don't register extern_prefix.
5432
21fa2faf
RG
54332012-03-12 Richard Guenther <rguenther@suse.de>
5434
5435 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5436 (builtin_type_for_size): Likewise.
5437
e3793c6f
JJ
54382012-02-13 Jakub Jelinek <jakub@redhat.com>
5439
5440 PR c++/52215
5441 * c-common.c (sync_resolve_params): Don't decide whether to convert
5442 or not based on TYPE_SIZE comparison, convert whenever arg_type
5443 is unsigned INTEGER_TYPE.
5444
93286335
PC
54452012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5446
5447 PR c/52118
5448 * c.opt ([Wunused-local-typedefs]): Fix description.
5449
7a421706
MS
54502012-01-24 Mike Stump <mikestump@comcast.net>
5451
5452 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5453 exactly.
5454
ba9b1f11
RG
54552012-01-18 Richard Guenther <rguenther@suse.de>
5456
5457 * c-opts.c (c_common_post_options): Reset LTO flags if
5458 we are about to generate a PCH.
5459
465406be
PC
54602012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5461
5462 PR c++/51777
5463 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5464 use pp_unsigned_wide_integer.
5465
aee15221
RG
54662012-01-10 Richard Guenther <rguenther@suse.de>
5467
5468 PR middle-end/51806
5469 * c-opts.c (c_common_handle_option): Move -Werror handling
5470 to language independent code.
5471
5720c0dc
RG
54722012-01-05 Richard Guenther <rguenther@suse.de>
5473
5474 PR middle-end/51764
5475 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5476 from common.opt.
5477
73ac190a
PC
54782011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5479
5480 PR c++/51316
5481 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5482 of array types with an unknown bound.
5483
48b0b196
JM
54842011-12-20 Joseph Myers <joseph@codesourcery.com>
5485
5486 * c-common.c (flag_isoc99): Update comment to refer to C11.
5487 (flag_isoc1x): Change to flag_isoc11.
5488 * c-common.h (flag_isoc99): Update comment to refer to C11.
5489 (flag_isoc1x): Change to flag_isoc11.
5490 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5491 C11.
5492 * c-opts.c (set_std_c1x): Change to set_std_c11.
5493 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5494 Call set_std_c11.
5495 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5496 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5497 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5498 standard.
5499 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5500 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5501 (std=gnu1x): Make alias of std=gnu11.
5502
d58d6eb5
JM
55032011-12-19 Jason Merrill <jason@redhat.com>
5504
5505 PR c++/51228
5506 * c-common.c (handle_transparent_union_attribute): Check the first
5507 field if the type is complete.
5508
b3908fcc
JW
55092011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5510
5511 PR libstdc++/51365
5512 * c-common.c (RID_IS_FINAL): Add.
5513 * c-common.h (RID_IS_FINAL): Add.
5514
fea3ca91
IS
55152011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5516
5517 * c.opt (fgnu-runtime): Provide full description.
5518 (fnext-runtime): Likewise.
5519 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5520
62bad7cd
AM
55212011-11-28 Andrew MacLeod <amacleod@redhat.com>
5522
5523 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5524 predefines in one place. Add LOCK_FREE predefines.
5525 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5526 new func.
5527
c466c4ff
AM
55282011-11-24 Andrew MacLeod <amacleod@redhat.com>
5529
5530 PR c/51256
9faeb493 5531 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5532 conditions
9faeb493
UB
5533 (resolve_overloaded_atomic_exchange,
5534 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5535 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5536 error_mark_node for error conditions.
9faeb493 5537
a5952633
RG
55382011-11-08 Richard Guenther <rguenther@suse.de>
5539
5540 PR middle-end/51010
5541 c-family/
5542
0a35513e
AH
55432011-11-07 Richard Henderson <rth@redhat.com>
5544 Aldy Hernandez <aldyh@redhat.com>
5545 Torvald Riegel <triegel@redhat.com>
5546
5547 Merged from transactional-memory.
5548
5549 * c-common.c (handle_tm_wrap_attribute,
5550 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5551 (struct c_common_reswords): Added __transaction* keywords.
5552 (struct c_common_attribute_table): Added transaction* and tm_regparm
5553 attributes.
5554 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5555 masks.
5556 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5557 find_tm_attribute): Declare.
5558
6d87092d
JM
55592011-11-07 Jason Merrill <jason@redhat.com>
5560
5561 PR c++/35688
5562 * c-common.c, c-common.h: Revert yesterday's changes.
5563
8e7860a1
JM
55642011-11-06 Jason Merrill <jason@redhat.com>
5565
5566 PR c++/35688
5567 * c-common.c (decl_has_visibility_attr): Split out from...
5568 (c_determine_visibility): ...here.
5569 * c-common.h: Declare it.
5570
d19fa6b5
JM
55712011-11-06 Joseph Myers <joseph@codesourcery.com>
5572
5573 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5574 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5575 type.
5576 (check_user_alignment): New. Split out of
5577 handle_aligned_attribute. Disallow integer constants with
5578 noninteger types. Conditionally allow zero.
5579 (handle_aligned_attribute): Use check_user_alignment.
5580 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5581
86951993
AM
55822011-11-06 Andrew MacLeod <amacleod@redhat.com>
5583 Richard Henderson <rth@redhat.com>
5584
5585 Merged from cxx-mem-model.
5586
5587 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5588 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5589 parameters that are the same type size.
5590 (get_atomic_generic_size): New. Find size of generic
5591 atomic function parameters and do typechecking.
5592 (add_atomic_size_parameter): New. Insert size into parameter list.
5593 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5594 either __atomic_exchange_n or external library call.
9faeb493 5595 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5596 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5597 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5598 __atomic_load_n or an external library call.
5599 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5600 __atomic_store_n or an external library call.
5601 (resolve_overloaded_builtin): Handle new __atomic builtins.
5602
cf9e9959
EB
56032011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5604
5605 PR c++/50608
5606 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5607 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5608 <INDIRECT_REF>: Return the argument.
5609 <ARRAY_REF>: Remove special code for negative offset.
5610 Call fold_build_pointer_plus instead of size_binop.
5611 (fold_offsetof): Remove STOP_REF argument and adjust.
5612 * c-common.h (fold_offsetof_1): Declare.
5613 (fold_offsetof): Remove STOP_REF argument.
5614
25339f10
JM
56152011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5616
5617 PR c++/50810
5618 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5619 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5620 Wnarrowing for C++0x and C++98.
5621 * c.opt ([Wnarrowing]): Update.
5622
89401152
PC
56232011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5624
5625 PR c++/44277
5626 * c.opt: Add Wzero-as-null-pointer-constant.
5627
97e3ad20
JM
56282011-10-31 Jason Merrill <jason@redhat.com>
5629
15694fdd
JM
5630 * c.opt (-fdeduce-init-list): Off by default.
5631
97e3ad20
JM
5632 PR c++/50920
5633 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5634 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5635 and -Wc++11-compat.
5636 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5637
fb9120e3
RAV
56382011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5639
5640 PR c++/30066
5641 * c.opt (fvisibility-inlines-hidden): Description change.
5642
3ce4f9e4
ESR
56432011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5644
5645 Implement C++11 user-defined literals.
5646 * c-common.c (build_userdef_literal): New.
5647 * c-common.def: New tree code.
5648 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5649 * c-lex.c (interpret_float): Add suffix parm.
5650 (c_lex_with_flags): Build literal tokens.
5651
5f53c243
PC
56522011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5653
5654 PR c++/50841
5655 Revert:
5656 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5657
5658 PR c++/50810
5659 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5660 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5661 Wnarrowing for C++0x and C++98.
5662 * c.opt ([Wnarrowing]): Update.
5663
263734e1
PC
56642011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5665
5666 PR c++/50810
5667 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5668 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5669 Wnarrowing for C++0x and C++98.
5670 * c.opt ([Wnarrowing]): Update.
5671
d2e312d7
PC
56722011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5673
5674 PR c++/45385
5675 * c-common.c (conversion_warning): Remove code looking for
5676 artificial operands.
5677
d17687f6
DS
56782011-10-18 Dodji Seketeli <dodji@redhat.com>
5679
5680 PR bootstrap/50760
5681 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5682 !NO_IMPLICIT_EXTERN_C.
d17687f6 5683
fc8396e9
PC
56842011-10-17 Michael Spertus <mike_spertus@symantec.com>
5685
5686 * c-common.c (c_common_reswords): Add __bases,
5687 __direct_bases.
5688 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5689
56902011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5691
5692 PR c++/50757
5693 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5694
847e697a
TT
56952011-10-15 Tom Tromey <tromey@redhat.com>
5696 Dodji Seketeli <dodji@redhat.com>
5697
5698 * c.opt (fdebug-cpp): New option.
5699 * c-opts.c (c_common_handle_option): Handle the option.
5700 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5701 output stream in parameter. Factorized from ...
5702 (maybe_print_line): ... this. Dump location debug information when
5703 -fdebug-cpp is in effect.
5704 (print_line_1): New static function. Takes an output stream in
5705 parameter. Factorized from ...
5706 (print_line): ... here. Dump location information when -fdebug-cpp
5707 is in effect.
5708 (scan_translation_unit): Dump location information when
5709 -fdebug-cpp is in effect.
5710
92582b75
TT
57112011-10-15 Tom Tromey <tromey@redhat.com>
5712 Dodji Seketeli <dodji@redhat.com>
5713
5714 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5715 without argument.
5716 * c-opts.c (c_common_handle_option)<case
5717 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5718 cases. Handle -ftrack-macro-expansion with and without argument.
5719
46427374
TT
57202011-10-15 Tom Tromey <tromey@redhat.com>
5721 Dodji Seketeli <dodji@redhat.com>
5722
5723 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5724 (print_line, cb_define, do_line_change): Adjust to avoid touching
5725 the internals of struct line_map. Use the public API instead.
5726 * c-pch.c (c_common_read_pch): Likewise.
5727 * c-lex.c (fe_file_change): Likewise.
5728
fc8396e9
PC
57292011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5730
5731 PR c++/17212
5732 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5733
57342011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5735
5736 PR c++/33067
5737 * c-pretty-print.c (pp_c_floating_constant): Output
5738 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5739
e79983f4
MM
57402011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5741
5742 * c-common.c (def_builtin_1): Delete old interface with two
5743 parallel arrays to hold standard builtin declarations, and replace
5744 it with a function based interface that can support creating
5745 builtins on the fly in the future. Change all uses, and poison
5746 the old names. Make sure 0 is not a legitimate builtin index.
5747 * c-omp.c (c_finish_omp_barrier): Ditto.
5748 (c_finish_omp_taskwait): Ditto.
5749 (c_finish_omp_flush): Ditto.
5750
6637388f
TG
57512011-10-11 Tristan Gingold <gingold@adacore.com>
5752
5753 * c.opt: (fallow-parameterless-variadic-functions): New.
5754
3797cb21
DS
57552011-09-08 Dodji Seketeli <dodji@redhat.com>
5756
5757 PR c++/33255 - Support -Wunused-local-typedefs warning
5758 * c-common.h (struct c_language_function::local_typedefs): New
5759 field.
9faeb493
UB
5760 (record_locally_defined_typedef, maybe_record_typedef_use)
5761 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5762 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5763 (maybe_record_typedef_use)
5764 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5765 * c.opt: Declare new -Wunused-local-typedefs flag.
5766
693ddb1b
EB
57672011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5768
5769 PR middle-end/50266
5770 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5771 computations.
5772
830c740f
RG
57732011-09-05 Richard Guenther <rguenther@suse.de>
5774
5775 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5776 of integer_minus_one_node for empty array upper bounds.
5777
892a371f
DS
57782011-08-28 Dodji Seketeli <dodji@redhat.com>
5779
5780 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5781 it's the first time it's being called on this main TU.
5782
0e3fdb48
RB
57832011-08-24 Richard Guenther <rguenther@suse.de>
5784
5785 PR c/49396
5786 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5787
57882011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5789
5790 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5791 defined in cpp_init_builtins and c_cpp_builtins.
5792
d4a83c10
JM
57932011-08-19 Joseph Myers <joseph@codesourcery.com>
5794
5795 * c-common.c (c_common_reswords): Add __builtin_complex.
5796 * c-common.h (RID_BUILTIN_COMPLEX): New.
5797
bbceee64
JM
57982011-08-18 Joseph Myers <joseph@codesourcery.com>
5799
5800 * c-common.c (c_common_reswords): Add _Noreturn.
5801 (keyword_is_function_specifier): Handle RID_NORETURN.
5802 * c-common.h (RID_NORETURN): New.
5803
3f8257db 58042011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5805
5806 * c-common.c (unsafe_conversion_p): New function. Check if it is
5807 unsafe to convert an expression to the type.
5808 (conversion_warning): Adjust, use unsafe_conversion_p.
5809 * c-common.h (unsafe_conversion_p): New function declaration.
5810
20906c66
JJ
58112011-08-02 Jakub Jelinek <jakub@redhat.com>
5812
5813 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5814 (c_finish_omp_taskyield): New prototype.
5815 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5816 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5817 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5818 or RHS1 have side-effects, evaluate those too in the right spot,
5819 if it is a decl and LHS is also a decl, error out if they
5820 aren't the same.
5821 (c_finish_omp_taskyield): New function.
5822 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5823 * c-pragma.c (omp_pragmas): Add taskyield.
5824 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5825 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5826 PRAGMA_OMP_CLAUSE_MERGEABLE.
5827
770e5a2e
DS
58282011-07-25 Dodji Seketeli <dodji@redhat.com>
5829
5830 * c-common.h (set_underlying_type): Remove parm name from
5831 declaration.
5832
1baae426
RG
58332011-07-25 Romain Geissler <romain.geissler@gmail.com>
5834
5835 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5836
fcb21722
JM
58372011-07-22 Jason Merrill <jason@redhat.com>
5838
76f86d00
JM
5839 PR c++/49793
5840 * c.opt (Wnarrowing): New.
5841
3a636414
JM
5842 PR c++/30112
5843 * c-common.h: Declare c_linkage_bindings.
5844 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5845
fcb21722
JM
5846 PR c++/49813
5847 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5848 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5849 as flag_isoc99 for 'restrict'.
5850 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5851
02614448
ILT
58522011-07-21 Ian Lance Taylor <iant@google.com>
5853
5854 PR middle-end/49705
5855 * c-common.c (c_disable_warnings): New static function.
5856 (c_enable_warnings): New static function.
5857 (c_fully_fold_internal): Change local unused_p to bool. Call
5858 c_disable_warnings and c_enable_warnings rather than change
5859 c_inhibit_evaluation_warnings.
5860
34429675
JM
58612011-07-20 Jason Merrill <jason@redhat.com>
5862
5863 PR c++/6709 (DR 743)
5864 PR c++/42603 (DR 950)
5865 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5866 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5867 (CPP_DECLTYPE): New.
5868 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5869
5d49b6a7
RG
58702011-07-19 Richard Guenther <rguenther@suse.de>
5871
5872 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5873 * c-omp.c (c_finish_omp_for): Likewise.
5874
e84a58ff
EB
58752011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5876
5877 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5878 body on the next line.
5879
329af3c7
JM
58802011-07-08 Jason Merrill <jason@redhat.com>
5881
4063e61b
JM
5882 PR c++/45437
5883 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5884
329af3c7
JM
5885 PR c++/49673
5886 * c-common.c (c_apply_type_quals_to_decl): Don't check
5887 TYPE_NEEDS_CONSTRUCTING.
5888
1a072294
RG
58892011-07-06 Richard Guenther <rguenther@suse.de>
5890
5891 * c-common.c (c_common_nodes_and_builtins):
5892 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5893
fce5dddd
RG
58942011-07-05 Richard Guenther <rguenther@suse.de>
5895
5896 * c-common.c (c_common_nodes_and_builtins): Build all common
5897 tree nodes first.
5898
45d439ac
JJ
58992011-06-27 Jakub Jelinek <jakub@redhat.com>
5900
56300785
JJ
5901 * c-common.h (c_tree_chain_next): New static inline function.
5902
45d439ac
JJ
5903 * c-common.c (check_builtin_function_arguments): Handle
5904 BUILT_IN_ASSUME_ALIGNED.
5905
e0a8ecf2
AM
59062011-06-21 Andrew MacLeod <amacleod@redhat.com>
5907
5908 * c-common.c: Add sync_ or SYNC__ to builtin names.
5909 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5910
59112011-06-20 Pierre Vittet <piervit@pvittet.com>
5912
5913 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5914 handler.
5915 (gen_pragma_handler): New union.
5916 (internal_pragma_handler): New type.
5917 (c_register_pragma_with_data)
5918 (c_register_pragma_with_expansion_and_data): New functions.
5919
5920 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5921 (c_register_pragma, c_register_pragma_with_expansion)
5922 (c_invoke_pragma_handler): Changed to work with
5923 internal_pragma_handler.
5924 (c_register_pragma_with_data)
5925 (c_register_pragma_with_expansion_and_data): New functions.
5926
677f3fa8
JM
59272011-06-14 Joseph Myers <joseph@codesourcery.com>
5928
5929 * c-common.c: Include common/common-target.h.
5930 (handle_section_attribute): Use
5931 targetm_common.have_named_sections.
5932 * c-cppbuiltin.c: Include common/common-target.h.
5933 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5934
d7fc8c14
RG
59352011-06-10 Richard Guenther <rguenther@suse.de>
5936
5937 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5938 to print a IDENTIFIER_NODE.
5939
10e48e39
RO
59402011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5941 Joseph Myers <joseph@codesourcery.com>
5942
5943 * c.opt (fbuilding-libgcc): New option.
5944 * c-cppbuiltin.c (c_cpp_builtins): Define
5945 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5946
6976ae51
JM
59472011-06-07 Jason Merrill <jason@redhat.com>
5948
3ff60975
JM
5949 * c-common.c (max_tinst_depth): Lower default to 900.
5950
6976ae51
JM
5951 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5952
009db074
RG
59532011-06-07 Richard Guenther <rguenther@suse.de>
5954
5955 * c-common.c (c_common_nodes_and_builtins): Do not set
5956 size_type_node or call set_sizetype.
5957
b4592b92
DS
59582011-06-07 Dodji Seketeli <dodji@redhat.com>
5959
5960 PR debug/49130
5961 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5962 type when using pointer comparison to compare types.
b4592b92 5963
014ab419
JW
59642011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5965
5966 * c.opt: Add -Wdelete-non-virtual-dtor.
5967 * c-opts.c (c_common_handle_option): Include it in -Wall.
5968
4f60111f
NF
59692011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5970
5971 PR bootstrap/49190
5972
5973 Revert:
5974 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5975
5976 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5977 not tree_common.
5978
4cc4f2f4
JJ
59792011-05-27 Jakub Jelinek <jakub@redhat.com>
5980
5981 PR c++/49165
5982 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5983 C++ don't call c_common_truthvalue_conversion on void type arms.
5984
38e01f9e
NF
59852011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5986
5987 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5988 (stmt_list_stack): Define.
5989 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5990 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5991
92e948a8
NF
59922011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5993
5994 * c-common.c (warning_candidate_p): Check for BLOCKs.
5995
a2fc3e63
NF
59962011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5997
5998 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5999 not tree_common.
6000
0957c029
JJ
60012011-05-25 Jakub Jelinek <jakub@redhat.com>
6002
6003 * c-common.c (def_fn_type): Remove extra va_end.
6004
828fb3ba
JM
60052011-05-23 Jason Merrill <jason@redhat.com>
6006
6007 PR c++/48106
6008 * c-common.c (c_common_get_narrower): New.
6009 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6010
dde05067
NF
60112011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6012
6013 * c-common.h (check_function_arguments): Tweak prototype of
6014 check_function_arguments.
6015 * c-common.c (check_function_arguments): Likewise. Adjust
6016 calls to check_function_nonnull, check_function_format, and
6017 check_function_sentinel.
6018 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6019 separate attributes and typelist arguments. Use
6020 FOREACH_FUNCTION_ARGS to iterate over argument types.
6021
3c0d13bf
PC
60222011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6023
6024 * c-common.c (c_common_reswords): Reorder.
6025 * c-common.h (rid): Likewise.
6026
8242dd04
NF
60272011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6028
6029 * c-common.c (def_fn_type): Don't call build_function_type, call
6030 build_function_type_array or build_varargs_function_type_array
6031 instead.
6032 (c_common_nodes_and_builtins): Likewise.
6033
3d528853
NF
60342011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6035
6036 * c-common.c (c_add_case_label): Omit the loc argument to
6037 build_case_label.
6038 * c-common.h (build_case_label): Remove.
6039 * c-semantics.c (build_case_label): Remove.
6040
a04a722b
JM
60412011-05-05 Joseph Myers <joseph@codesourcery.com>
6042
6043 * c-objc.h (objc_start_method_definition): Update prototype.
6044 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6045
e19a18d4
NF
60462011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6047
6048 * c-common.c (check_main_parameter_types): Reindent. Don't use
6049 TYPE_ARG_TYPES directly.
6050 (handle_nonnull_attribute): Likewise.
6051 (sync_resolve_params): Likewise.
6052 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6053 to check_format_string.
6054 (handle_format_attribute): Likewise.
6055 (check_format_string): Take a function type to examine instead of
6056 a type list. Use a function_arg_iterator to step through argument
6057 types.
6058
c62c040f
RG
60592011-05-04 Richard Guenther <rguenther@suse.de>
6060
6061 * c-common.c (fix_string_type): Use size_int for index type bounds.
6062 (start_fname_decls): Do not pass NULL to build_int_cst.
6063 (c_init_attributes): Likewise.
6064 * c-lex.c (c_lex_with_flags): Likewise.
6065
c12ff9d8
JM
60662011-04-27 Jason Merrill <jason@redhat.com>
6067
6068 * c-common.c (make_tree_vector_from_list): New.
6069 * c-common.h: Declare it.
6070
304dfbe3
RG
60712011-04-26 Richard Guenther <rguenther@suse.de>
6072
6073 PR preprocessor/48248
6074 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6075 for output size with -P.
6076
3c0d13bf
PC
60772011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6078
6079 * c-common.c (struct c_common_resword): Add __underlying_type.
6080 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6081
04695783
JM
60822011-04-20 Jim Meyering <meyering@redhat.com>
6083
6084 * c-format.c (init_dollar_format_checking): Remove useless
6085 if-before-free.
6086
0dc33c3c
NP
60872011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6088
6089 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6090 (objc_detect_field_duplicates): New.
0dc33c3c 6091 * stub-objc.c: Likewise.
3c0d13bf 6092
c59633d9
NP
60932011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6094
6095 * stub-objc.c (objc_declare_protocols): Renamed to
6096 objc_declare_protocol.
6097 * c-objc.h: Likewise.
3c0d13bf 6098
32dabdaf
NP
60992011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6100
6101 * stub-objc.c (objc_declare_class): Updated argument name.
6102
81f653d6
NF
61032011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6104
6105 * c-common.h (c_common_init_ts): Declare.
6106 * c-common.c (c_common_init_ts): Define.
6107
eb345401
NP
61082011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6109
6110 * c-objc.h (objc_build_message_expr): Updated prototype.
6111 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6112
a358e188
MJ
61132011-04-12 Martin Jambor <mjambor@suse.cz>
6114
6115 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6116 of cgraph_node.
6117
e6313a78
RG
61182011-04-11 Richard Guenther <rguenther@suse.de>
6119
6120 * c-common.c (complete_array_type): Build a range type of
6121 proper type.
6122
dcf0c47e
NF
61232011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6124
6125 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6126 (handle_type_generic_attribute): Likewise.
6127
1ee44b26
JM
61282011-04-07 Jason Merrill <jason@redhat.com>
6129
6130 PR c++/48450
6131 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6132 conversion from C++0x scoped enum.
6133
acce4e77
JM
61342011-04-06 Joseph Myers <joseph@codesourcery.com>
6135
6136 * c-target-def.h: New file.
6137 * c-target.def: New file.
6138 * c-target.h: New file.
6139 * c-common.c (targetcm): Don't define here.
6140 * c-common.h (default_handle_c_option): Declare.
6141 * c-format.c: Include c-target.h instead of target.h.
6142 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6143 include tm.h.
6144 (default_handle_c_option): Move from targhooks.c.
6145
e2eefb55
JJ
61462011-03-29 Jakub Jelinek <jakub@redhat.com>
6147
6148 PR preprocessor/48248
6149 * c-ppoutput.c (print): Add src_file field.
6150 (init_pp_output): Initialize it.
6151 (maybe_print_line): Don't optimize by adding up to 8 newlines
6152 if map->to_file and print.src_file are different file.
6153 (print_line): Update print.src_file.
6154
ba78087b
KT
61552011-03-25 Kai Tietz <ktietz@redhat.com>
6156
6157 * c-ada-spec.c (compare_comment): Use filename_cmp
6158 instead of strcmp for filename.
6159
0edf1bb2
JL
61602011-03-25 Jeff Law <law@redhat.com>
6161
adfac8df 6162 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6163
c7dc8804
JM
61642011-03-25 Jason Merrill <jason@redhat.com>
6165
6166 * c.opt: Add -std=c++03.
6167
d1d879b1
EB
61682011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6169
6170 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6171
3f8257db 61722011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6173
6174 PR target/12171
5050afdf
KT
6175 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6176 Display allowed attributes for function pointer types.
6177 (pp_c_attributes_display): New function to display
6178 attributes having affects_type_identity flag set to true.
6179 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6180
62d784f7
KT
6181 * c-common.c (c_common_attribute_table):
6182 Add new element.
6183 (c_common_format_attribute_table): Likewise.
6184
82d37118
JM
61852011-03-18 Jason Merrill <jason@redhat.com>
6186
49a000c3
JM
6187 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6188 * c-common.h: Don't declare it here.
6189 * c-common.c: Or define it here.
6190 * c-opts.c (c_common_handle_option): Or set it here.
6191
82d37118
JM
6192 PR c++/35315
6193 * c-common.c (handle_transparent_union_attribute): Don't
6194 make a duplicate type in C++.
6195
17bc631c
JM
61962011-03-15 Jason Merrill <jason@redhat.com>
6197
6198 * c-common.c (max_constexpr_depth): New.
6199 * c-common.h: Declare it.
6200 * c-opts.c (c_common_handle_option): Set it.
6201 * c.opt (fconstexpr-depth): New option.
6202
1b9b91a6
JM
62032011-03-11 Jason Merrill <jason@redhat.com>
6204
f231b5ff
JM
6205 * c-common.c (attribute_takes_identifier_p): Add missing const.
6206
1b9b91a6
JM
6207 PR c++/46803
6208 * c-common.c (attribute_takes_identifier_p): Assume that an
6209 unknown attribute takes an identifier.
6210
a19e4d44
NF
62112011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6212
6213 PR c/47786
6214 * c-common.c (c_type_hash): Call list_length instead of iterating
6215 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6216
982d62f6
JJ
62172011-02-19 Jakub Jelinek <jakub@redhat.com>
6218
6219 PR c/47809
6220 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6221
0a256240
NP
62222011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6223
6224 * c.opt (fobjc-abi-version=) New.
6225 (fobjc-nilcheck): New.
6226
ba9e6dd5
NF
62272011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6228
6229 PR c++/46890
6230 * c-common.h (keyword_is_decl_specifier): Declare.
6231 * c-common.c (keyword_is_decl_specifier): Define.
6232 (keyword_is_function_specifier): New function.
6233
7273813a
JJ
62342011-01-26 Jakub Jelinek <jakub@redhat.com>
6235
6236 PR c/47473
6237 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6238 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6239 REAL_TYPE.
6240
908ef79b
AC
62412011-01-26 Arnaud Charlet <charlet@adacore.com>
6242
6243 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6244
237e9384
JJ
62452011-01-26 Jakub Jelinek <jakub@redhat.com>
6246
6247 PR pch/47430
6248 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6249 after init_c_lex if pch_file is set.
6250
47ea1edf
DK
62512011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6252
d4dba752 6253 PR c++/43601
47ea1edf
DK
6254 * c.opt (-fkeep-inline-dllexport): New switch.
6255
2aa9c6ae
RG
62562011-01-12 Richard Guenther <rguenther@suse.de>
6257
6258 PR middle-end/32511
6259 * c-common.c (handle_weak_attribute): Warn instead of error
6260 on declaring an inline function weak.
6261
7bd11157
TT
62622011-01-05 Tom Tromey <tromey@redhat.com>
6263
6264 * c-common.h (lvalue_error): Update.
6265 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6266 not error.
6267
0e66e494 62682010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6269
b4f588c4
NP
6270 PR objc/47075
6271 * c-objc.h (objc_finish_message_expr): Added argument to
6272 prototype.
6273
f4da8dce
NF
62742010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6275
6276 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6277 Use prototype_p.
6278
46270f14
NP
62792010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6280
6281 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6282 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6283
4816c593
NF
62842010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6285
6286 * c-common.h (readonly_error): Declare.
6287 * c-common.c (readonly_error): Define.
6288
7a6daeb0
NF
62892010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6290
6291 * c-common.h (invalid_indirection_error): Declare.
6292 * c-common.c (invalid_indirection_error): Define.
6293
892f6119
RG
62942010-12-03 Richard Guenther <rguenther@suse.de>
6295
6296 PR c/46745
6297 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6298 (pp_c_unary_expression): Likewise.
6299 (pp_c_expression): Likewise.
6300
6c39e757
NP
63012010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6302
6303 * c-common.h (objc_finish_function): New.
6304 (objc_non_volatilized_type): Removed.
6305 (objc_type_quals_match): Removed.
6306 * stub-objc.c (objc_finish_function): New.
6307 (objc_non_volatilized_type): Removed.
6308 (objc_type_quals_match): Removed.
9faeb493 6309
7c475d11
JM
63102010-11-30 Joseph Myers <joseph@codesourcery.com>
6311
6312 * c-common.h (parse_optimize_options): Declare.
6313 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6314 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6315
71f3e391
JM
63162010-11-29 Joseph Myers <joseph@codesourcery.com>
6317
6318 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6319 GET_ENVIRONMENT.
6320 * c-pch.c (O_BINARY): Don't define here.
6321 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6322
d5fabb58
JM
63232010-11-25 Joseph Myers <joseph@codesourcery.com>
6324
6325 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6326 targetm.except_unwind_info.
6327
299404a1
JM
63282010-11-23 Joseph Myers <joseph@codesourcery.com>
6329
6330 * c-opts.c (c_common_handle_option): Pass location to
6331 set_struct_debug_option.
6332
c98cd5bf
JM
63332010-11-23 Joseph Myers <joseph@codesourcery.com>
6334
6335 * c-common.c (visibility_options): Move from ../opts.c.
6336 * c-common.h (struct visibility_flags, visibility_options):
6337 Declare here.
6338 * c-opts.c (finish_options): Rename to c_finish_options.
6339 (c_common_init): Update call to finish_options.
6340
a9546771
NP
63412010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6342
6343 PR objc/34033
6344 * c-lex.c (lex_string): Check that each string in an Objective-C
6345 string concat sequence starts with either one or zero '@', and
6346 that there are no spurious '@' signs at the end.
6347
24a57808
JM
63482010-11-20 Joseph Myers <joseph@codesourcery.com>
6349
6350 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6351 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6352 HANDLE_PRAGMA_VISIBILITY.
6353 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6354 HANDLE_PRAGMA_VISIBILITY): Don't define.
6355 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6356
a9aa2c3a
NF
63572010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6358
6359 PR c++/16189
6360 PR c++/36888
6361 PR c++/45331
6362 * c-common.h (keyword_begins_type_specifier): Declare.
6363 (keyword_is_storage_class_specifier): Declare.
6364 (keyword_is_type_qualifier): Declare.
6365 * c-common.c (keyword_begins_type_specifier): New function.
6366 (keyword_is_storage_class_specifier): New function.
6367 (keyword_is_type_qualifier): Declare.
6368
5386338c
JM
63692010-11-19 Joseph Myers <joseph@codesourcery.com>
6370
6371 PR c/46547
6372 * c-common.c (in_late_binary_op): Define.
6373 (c_common_truthvalue_conversion): Check in_late_binary_op before
6374 calling c_save_expr.
6375 * c-common.h (in_late_binary_op): Declare.
6376
69ccdddb
JM
63772010-11-19 Joseph Myers <joseph@codesourcery.com>
6378
6379 * c-opts.c (c_common_handle_option): Update calls to
6380 set_struct_debug_option.
6381
6b192a09
NP
63822010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6383
6384 * c-common.h (objc_declare_protocols): Added additional argument.
6385 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6386
fb52b50a
NF
63872010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6388
6389 PR c/33193
6390 * c-common.h (build_real_imag_expr): Declare.
6391 * c-semantics.c (build_real_imag_expr): Define.
6392
b37421c6
JM
63932010-11-17 Joseph Myers <joseph@codesourcery.com>
6394
6395 * c-opts.c (c_common_parse_file): Take no arguments.
6396 * c-common.h (c_common_parse_file): Update prototype.
6397
07078664
JJ
63982010-11-16 Jakub Jelinek <jakub@redhat.com>
6399
6400 PR c++/46401
6401 * c-common.c (warning_candidate_p): Don't track non-const calls
6402 or STRING_CSTs.
6403
c6a13190
ILT
64042010-11-15 Ian Lance Taylor <iant@google.com>
6405
6406 * c-lex.c (init_c_lex): Set macro debug callbacks if
6407 flag_dump_go_spec is set.
6408
925e8657
NP
64092010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6410
6411 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6412 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6413
bb0a9581
NF
64142010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6415
6416 PR preprocessor/45038
6417 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6418 dialects.
6419
c5fa0890
JM
64202010-11-12 Joseph Myers <joseph@codesourcery.com>
6421
6422 * c-common.h (c_family_lang_mask): Declare.
6423 * c-opts.c (c_family_lang_mask): Make extern.
6424 * c-pragma.c (handle_pragma_diagnostic): Use
6425 control_warning_option.
6426
a4d8c676
JM
64272010-11-12 Joseph Myers <joseph@codesourcery.com>
6428
6429 * c-common.c (parse_optimize_options): Update call to
6430 decode_options.
6431 * c-common.h (c_common_handle_option): Update prototype.
6432 * c-opts.c (c_common_handle_option): Take location_t parameter and
6433 pass it to other functions.
6434
f954bd2c
JM
64352010-11-11 Joseph Myers <joseph@codesourcery.com>
6436
6437 * c-opts.c (warning_as_error_callback): Remove.
6438 (c_common_initialize_diagnostics): Don't call
6439 register_warning_as_error_callback.
6440 (c_common_handle_option): Handle -Werror=normalized= here.
6441
d8a07487
JM
64422010-11-10 Joseph Myers <joseph@codesourcery.com>
6443
6444 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6445 in diagnostic.
6446 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6447 letter.
6448 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6449 Remove trailing '.' from diagnostics.
6450 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6451
d5478783
JM
64522010-11-10 Joseph Myers <joseph@codesourcery.com>
6453
6454 * c-common.c (parse_optimize_options): Pass global_dc to
6455 decode_options.
6456 * c-opts.c (c_common_handle_option): Pass &global_options to
6457 set_Wstrict_aliasing.
6458 * c.opt (v): Don't mark Common or document here.
6459
91ebb981
IS
64602010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6461
6462 PR target/44981
6463 * c-format.c (format_type): New type gcc_objc_string_format_type.
6464 (valid_stringptr_type_p): New.
6465 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6466 (check_format_string): Pass expected type, use
91ebb981
IS
6467 valid_stringptr_type_p (), check that the format string types are
6468 consistent with the format specification.
6469 (decode_format_attr): Warn if NSString is used outside objective-c.
6470 (format_types_orig): Add NSString.
6471 (format_name): New.
6472 (format_flags): New.
6473 (check_format_arg): Handle format strings requiring an external parser.
6474 first_target_format_type: New variable.
6475 (handle_format_attribute): Set up first_target_format_type, pass the
6476 expected format arg string type to check_format_string().
6477 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6478 * stub-objc.c (objc_string_ref_type_p): New.
6479 (objc_check_format_arg): New.
6480
bede2adc
NP
64812010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6482
9faeb493 6483 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6484 * c-common.h (objc_build_class_component_ref): New.
6485 * stub-objc.c (objc_build_class_component_ref): New.
6486
9a179d01
NP
64872010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6488
6489 * c.opt (Wproperty-assign-default): New option.
6490
22d8d616
NP
64912010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6492
6493 Implemented -fobjc-std=objc1 flag.
6494 * c.opt (fobjc-std=objc1): New option.
6495
2debdb4f
NP
64962010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6497
6498 Implemented format and noreturn attributes for Objective-C methods.
6499 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6500 attribute for Objective-C methods.
6501
ec52b111
JM
65022010-10-31 Jason Merrill <jason@redhat.com>
6503
6504 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6505 EXPR_LOC_OR_HERE.
6506
46a88c12
NP
65072010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6508
6509 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6510 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6511 (objc_add_property_declaration): Removed arguments for copies and
6512 ivar.
6513 (objc_build_getter_call): Renamed to
6514 objc_maybe_build_component_ref.
6515 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6516 (objc_is_property_ref): New.
6517 * c-common.c (c_common_reswords): Removed copies and ivar.
6518 * stub-objc.c (objc_add_property_declaration): Removed arguments
6519 for copies and ivar.
6520 (objc_build_getter_call): Renamed to
6521 objc_maybe_build_component_ref.
6522 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6523 (objc_is_property_ref): New.
9faeb493 6524
1e4bf85b
AC
65252010-10-29 Arnaud Charlet <charlet@adacore.com>
6526 Matthew Gingell <gingell@adacore.com>
6527
6528 * c-ada-spec.c (separate_class_package): New function.
6529 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6530 name of their enclosing package.
6531 (print_ada_declaration): Use separate_class_package.
6532
81f0bab2
JM
65332010-10-27 Jason Merrill <jason@redhat.com>
6534
2b08f2c5
JM
6535 * c-common.c (c_common_reswords): Add __is_literal_type.
6536 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6537
81f0bab2
JM
6538 * c-common.c (check_case_value): Remove special C++ code.
6539
200290f2
NP
65402010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6541
6542 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6543 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6544 and RID_LAST_PATTR.
6545 (objc_add_property_declaration): Added additional arguments.
6546 (objc_property_attribute_kind): Removed.
6547 (objc_set_property_attr): Removed.
6548 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6549 copy and nonatomic.
6550 * stub-objc.c (objc_add_property_declaration): Added additional
6551 arguments.
6552 (objc_set_property_attr): Removed.
9faeb493 6553
f614132b
NP
65542010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6555
6556 * c-common.h (objc_add_property_variable): Renamed to
6557 objc_add_property_declaration. Added location argument.
6558 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6559
b8a18805
NP
65602010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6561
6562 * c-common.h (objc_maybe_printable_name): New.
6563 * stub-objc.c (objc_maybe_printable_name): New.
6564
3f8257db
JJ
65652010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6566 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6567
6568 * c-common.h (c_common_mark_addressable_vec): Declare.
6569 * c-common.c (c_common_mark_addressable_vec): New function.
6570
249a82c4
NP
65712010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6572
6573 * c-common.h (objc_set_method_type): Removed.
6574 (objc_add_method_declaration): Added boolean argument.
6575 (objc_start_method_definition): Same change.
6576 (objc_build_method_signature): Same change.
6577 * stub-objc.c (objc_set_method_type): Removed.
6578 (objc_add_method_declaration): Added boolean argument.
6579 (objc_start_method_definition): Same change.
6580 (objc_build_method_signature): Same change.
6581
977e30bc
NP
65822010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6583
6584 * c-common.h (finish_file): Removed.
6585 (objc_write_global_declarations): New.
6586 * c-opts.c (c_common_parse_file): Do not call finish_file.
6587 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6588
da57d1b9
NP
65892010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6590
6591 Implemented parsing @synthesize and @dynamic for
6592 Objective-C/Objective-C++.
6593 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6594 (objc_add_synthesize_declaration): New.
6595 (objc_add_dynamic_declaration): New.
6596 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6597 * stub-objc.c (objc_add_synthesize_declaration): New.
6598 (objc_add_dynamic_declaration): New.
9faeb493 6599
0069111f
MM
66002010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6601
6602 PR target/46041
6603 * c-cppbuiltin.c (mode_has_fma): Move function here from
6604 builtins.c. Don't use the fma optab, instead just use the
6605 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6606 using -save-temps.
6607
e426b47b
NP
66082010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6609
6610 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6611
3f8257db 6612 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6613
9faeb493 6614 Radar 4330422
e426b47b
NP
6615 * c-common.h (objc_non_volatilized_type): New declaration
6616 * stub-objc.c (objc_non_volatilized_type): New stub.
6617
90fbfdc3
NP
66182010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6619
e426b47b 6620 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6621
3f8257db 6622 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6623
9faeb493 6624 Radar 4133425
90fbfdc3 6625 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6626 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6627
c37d8c30
IS
66282010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6629
6630 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6631 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6632 (objc_ivar_visibility_kind): New enum.
6633 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6634 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6635 visibility enum.
6636
1b1562a5
MM
66372010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6638
6639 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6640 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6641 has the appropriate fma builtins.
6642 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6643
668ea4b1
IS
66442010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6645
1b1562a5 6646 merge from FSF apple 'trunk' branch.
3f8257db 6647 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6648
668ea4b1
IS
6649 Radars 4436866, 4505126, 4506903, 4517826
6650 * c-common.c (c_common_resword): Define @property and its attributes.
6651 * c-common.h: Define property attribute enum entries.
6652 (OBJC_IS_PATTR_KEYWORD): New.
6653 (objc_property_attribute_kind): New enum.
6654 Declare objc_set_property_attr (), objc_add_property_variable (),
6655 objc_build_getter_call () and objc_build_setter_call ().
6656 * stub-objc.c (objc_set_property_attr): New stub.
6657 (objc_add_property_variable): Likewise.
6658 (objc_build_getter_call): Likewise.
6659 (objc_build_setter_call) Likewise.
1b1562a5 6660
a1178b30
IS
66612010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6662
1b1562a5 6663 merge from FSF apple 'trunk' branch.
3f8257db 6664 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6665
6666 Radar 3803157 (method attributes)
6667 * c-common.c (handle_deprecated_attribute): Recognize
6668 objc methods as valid declarations.
6669 * c-common.h: Declare objc_method_decl ().
1b1562a5 6670 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6671
a75bfaa6
JM
66722010-10-08 Joseph Myers <joseph@codesourcery.com>
6673
6674 * c-common.c (parse_optimize_options): Call
6675 decode_cmdline_options_to_array_default_mask before
6676 decode_options. Update arguments to decode_options.
6677 * c-common.h (c_common_init_options_struct): Declare.
6678 * c-opts.c (c_common_init_options_struct): New. Split out from
6679 c_common_init_options.
6680
f05b9d93
NP
66812010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6682
6683 Implemented fast enumeration for Objective-C.
6684 * c-common.h (objc_finish_foreach_loop): New.
6685 * stub-objc.c (objc_finish_foreach_loop): New.
6686
1ebe4b4f
JM
66872010-10-05 Joseph Myers <joseph@codesourcery.com>
6688
6689 * c-common.h (struct diagnostic_context): Don't declare here.
6690 (c_common_initialize_diagnostics): Declare using
6691 diagnostic_context typedef.
6692 * c-opts.c (c_common_handle_option): Pass global_dc to
6693 handle_generated_option.
6694
d4d24ba4
JM
66952010-10-04 Joseph Myers <joseph@codesourcery.com>
6696
6697 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6698 handle_generated_option.
6699
478a1c5b
ILT
67002010-10-03 Ian Lance Taylor <iant@google.com>
6701
6702 * c.opt (-fplan9-extensions): New option.
6703
82a1c2fe
FXC
67042010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6705
6706 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6707 Remove.
6708 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6709 of duplicating code.
6710
92902b1b
IS
67112010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6712
6713 * c-common.c: Add two new entries for @optional
6714 and @required keywords.
6715
6716 merge from FSF 'apple/trunk' branch.
3f8257db 6717 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6718
6719 Radar 4386773
6720 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6721 objective-c keywords.
6722 (objc_set_method_opt): New declaration.
6723 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6724
46625112
JM
67252010-09-30 Joseph Myers <joseph@codesourcery.com>
6726
6727 * c-common.c (handle_optimize_attribute): Pass &global_options to
6728 cl_optimization_save and cl_optimization_restore.
6729 * c-opts.c (c_common_handle_option): Pass &global_options to
6730 handle_generated_option.
6731 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6732 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6733 &global_options to cl_optimization_restore.
6734
49b91f05
NP
67352010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6736
6737 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6738 Objective-C/Objective-C++ keywords.
6739
13ed556f 67402010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6741
9faeb493
UB
6742 Merge from 'apple/trunk' branch on FSF servers.
6743
3f8257db 6744 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6745
6746 Radar 4281748
6747 * c-common.h (objc_check_global_decl): New declaration.
6748 * stub-objc.c (objc_check_global_decl): New stub.
6749
f0036cca
JM
67502010-09-29 Joseph Myers <joseph@codesourcery.com>
6751
6752 * c.opt: Don't use VarExists.
6753
e3339d0f
JM
67542010-09-29 Joseph Myers <joseph@codesourcery.com>
6755
6756 * c-common.c (c_cpp_error): Update names of diagnostic_context
6757 members.
6758 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6759 cl_optimization members.
6760 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6761 sanitize_cpp_opts, finish_options): Update names of cpp_options
6762 members.
6763
1973201f
NP
67642010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6765
6766 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6767 (objc_is_reserved_word): Removed.
6768 * c-common.c: Updated comments.
6769 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6770 objc_is_reserved_word.
6771 * stub-objc.c (objc_is_reserved_word): Removed.
6772
f7e71da5
IS
67732010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6774
9faeb493 6775 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6776 include attributes.
6777 (objc_start_method_definition): Likewise.
6778 (objc_build_keyword_decl): Likewise.
6779 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6780 (objc_start_method_definition): Likewise.
6781 (objc_build_keyword_decl): Likewise.
6782
c165dca7
IS
67832010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6784
6785 * c-common.h (objc_start_class_interface): Adjust prototype.
6786 (objc_start_category_interface): Likewise.
6787 (objc_start_protocol): Likewise.
6788 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6789 (objc_start_class_interface): Likewise.
6790 (objc_start_category_interface): Likewise.
6791
7458026b
ILT
67922010-09-27 Ian Lance Taylor <iant@google.com>
6793
6794 * c-common.c (c_common_attribute_table): Add no_split_stack.
6795 (handle_no_split_stack_attribute): New static function.
6796
b581b85b
NP
67972010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6798
9faeb493 6799 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6800
3f8257db 6801 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6802
9faeb493 6803 Radar 4229905
b581b85b
NP
6804 * c-common.h (objc_have_common_type): New declaration.
6805 * stub-objc.c (objc_have_common_type): New stub.
6806
6807 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6808
6809 Radar 4154928
6810 * c-common.h (objc_common_type): New prototype.
9faeb493 6811 * stub-objc.c (objc_common_type): New stub.
b581b85b 6812
46a4da10
JH
68132010-09-24 Jan Hubicka <jh@suse.cz>
6814
6815 * c-common.c (handle_leaf_attribute): New function.
6816 (struct attribute_spec c_common_att): Add leaf.
6817
e200444e
JM
68182010-09-22 Joseph Myers <joseph@codesourcery.com>
6819
6820 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6821 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6822 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6823 -include-barrier, -include-directory, -include-directory=,
6824 -include-directory-after, -include-directory-after=,
6825 -include-prefix, -include-prefix=, -include-with-prefix,
6826 -include-with-prefix=, -include-with-prefix-after,
6827 -include-with-prefix-after=, -include-with-prefix-before,
6828 -include-with-prefix-before=, -no-integrated-cpp,
6829 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6830 -output=, -pedantic, -pedantic-errors, -preprocess,
6831 -print-missing-file-dependencies, -trace-includes, -traditional,
6832 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6833 -user-dependencies, -verbose, -write-dependencies,
6834 -write-user-dependencies, no-integrated-cpp, traditional): New.
6835
29a80ea6
NP
68362010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6837
6838 PR objc/23710
ac1fc2fc
NP
6839 * c-common.h (objc_start_method_definition): Return bool instead
6840 of void.
6841 * stub-objc.c (objc_start_method_definition): Return bool instead
6842 of void.
6843
68442010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6845
6846 PR objc/25965
6847 * c-common.h (objc_get_interface_ivars): New declaration.
6848 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6849
de621752
ILT
68502010-09-15 Ian Lance Taylor <iant@google.com>
6851
6852 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6853 messages. Remove period at end of warning message.
de621752 6854
ba885ec5
NS
68552010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6856
6857 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6858 (handle_alias_attribute): ... here.
6859 (handle_ifunc_attribute): New.
6860
c5ee1358
MM
68612010-09-06 Mark Mitchell <mark@codesourcery.com>
6862
6863 * c-common.h (do_warn_double_promotion): Declare.
6864 * c-common.c (do_warn_double_promotion): Define.
6865
0a0b3574
MM
68662010-09-05 Mark Mitchell <mark@codesourcery.com>
6867
6868 * c.opt (Wdouble-promotion): New.
6869
d1779886
JM
68702010-09-02 Joseph Myers <joseph@codesourcery.com>
6871
6872 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6873 fvtable-thunks, fxref): Mark no longer supported in help text.
6874
2d2bd949
JM
68752010-09-02 Joseph Myers <joseph@codesourcery.com>
6876
6877 * c.opt (Wimport, fall-virtual, falt-external-templates,
6878 fdefault-inline, fenum-int-equiv, fexternal-templates,
6879 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6880 fname-mangling-version-, fnew-abi, fnonnull-objects,
6881 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6882 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6883 applicable.
6884 (fhandle-exceptions): Mark with Alias and Warn.
6885 * c-opts.c (c_common_handle_option): Don't handle options marked
6886 as ignored.
6887
5de8299c
JM
68882010-09-02 Joseph Myers <joseph@codesourcery.com>
6889
6890 * c.opt (Wcomments, Werror-implicit-function-declaration,
6891 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6892 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6893 aliases.
6894 * c-common.c (option_codes): Use OPT_Wcomment instead of
6895 OPT_Wcomments.
6896 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6897 Don't handle options marked as aliases.
6898
0ceb0201
RG
68992010-08-25 Richard Guenther <rguenther@suse.de>
6900
6901 * c-common.c (c_common_get_alias_set): Remove special
6902 handling for pointers.
6903
ac47786e
NF
69042010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6905
6906 * c-common.c: Use FOR_EACH_VEC_ELT.
6907 * c-gimplify.c: Likewise.
6908 * c-pragma.c: Likewise.
6909
c878765b
JM
69102010-08-16 Joseph Myers <joseph@codesourcery.com>
6911
6912 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6913 RejectDriver.
6914 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6915 RejectDriver.
6916 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6917 instead of OPT_MDX and OPT_MMDX.
6918
603349bf
JM
69192010-08-16 Joseph Myers <joseph@codesourcery.com>
6920
6921 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6922
644fa7ac
JM
69232010-08-12 Joseph Myers <joseph@codesourcery.com>
6924
6925 * c.opt (MD, MMD): Change to MDX and MMDX.
6926 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6927
481e1176
JM
69282010-08-11 Joseph Myers <joseph@codesourcery.com>
6929
6930 * c-opts.c (c_common_handle_option): Call handle_generated_option
6931 instead of handle_option.
6932
ac8dc9f7
NF
69332010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6934
6935 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6936 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6937
4f8c876d
NF
69382010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6939
6940 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6941 (pending_redefine_extname): Change type to a VEC.
6942 (add_to_renaming_pragma_list): Update for new type of
6943 pending_redefine_extname.
ac8dc9f7 6944 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6945
3b0c690e
AC
69462010-08-04 Arnaud Charlet <charlet@adacore.com>
6947
6948 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6949 visited.
6950 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6951 decide whether a type has already been declared/seen.
6952 Do not go to the original type.
6953 (dump_nested_types): New parameter forward.
6954 Generate forward declaration if needed and mark type as visited.
6955 (print_ada_declaration): Call dump_nested_types if not already done.
6956 Mark types as visited.
6957
1890bccc
JM
69582010-08-03 Joseph Myers <joseph@codesourcery.com>
6959
6960 * c.opt (-print-pch-checksum): Remove option.
6961 * c-opts.c (c_common_handle_option): Don't handle
6962 OPT_print_pch_checksum.
6963
5f20c657
JM
69642010-07-27 Joseph Myers <joseph@codesourcery.com>
6965
6966 * c-common.h (c_common_handle_option): Update prototype and return
6967 value type.
6968 * c-opts.c (c_common_handle_option): Update prototype and return
6969 value type. Update calls to handle_option and
6970 enable_warning_as_error.
6971
f551f80c
JJ
69722010-07-27 Jakub Jelinek <jakub@redhat.com>
6973
6974 PR c/45079
6975 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6976
61ff2bdc
JM
69772010-07-27 Joseph Myers <joseph@codesourcery.com>
6978
6979 * c-common.h (c_common_missing_argument): Remove.
6980 * c-opts.c (c_common_missing_argument): Remove.
6981 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6982 idirafter, imacros, include, isysroot, isystem, iquote): Add
6983 MissingArgError.
6984 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6985
7a9bf9a4
JM
69862010-07-27 Joseph Myers <joseph@codesourcery.com>
6987
6988 * c-common.h (c_common_option_lang_mask,
6989 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6990 New.
6991 (c_common_init_options): Update prototype.
6992 * c-opts.c (c_common_option_lang_mask): New.
6993 (c_common_initialize_diagnostics): Split out of
6994 c_common_init_options.
6995 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6996 New.
6997 (c_common_init_options): Update prototype. Use decoded options in
6998 search for -lang-asm.
6999
910ad8de
NF
70002010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7001
7002 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7003 * c-format.c: Likewise.
7004
718f9c0f
MLI
70052010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7006
7007 * c-common.h: Include diagnostic-core.h. Error if already
7008 included.
7009 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7010
4d451982
MLI
70112010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7012
adfac8df 7013 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7014 Do not include expr.h
7015 (vector_mode_valid_p): Move here.
7016
119fe915
SB
70172010-06-21 DJ Delorie <dj@redhat.com>
7018
7019 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7020 allow these pragmas anywhere.
7021
70222010-06-14 Jakub Jelinek <jakub@redhat.com>
7023
7024 PR bootstrap/44509
7025 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7026 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7027 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7028 ggc_strdup instead of xstrdup.
7029
70302010-06-10 Jakub Jelinek <jakub@redhat.com>
7031
7032 * c-cppbuiltin.c: Include cpp-id-data.h.
7033 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7034 (lazy_hex_fp_value): New function.
7035 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7036
6662d794
MLI
70372010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7038
7039 * c-gimplify.c: Do not include tree-flow.h
7040
38f8b050
JR
70412010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7042
7043 PR other/44034
7044 * c-common.c: Rename targetm member:
7045 targetm.enum_va_list -> targetm.enum_va_list_p
7046
9589f23e
AS
70472010-06-28 Anatoly Sokolov <aesok@post.ru>
7048
7049 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7050
3b06d379
SB
70512010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7052
7053 * c-cppbuiltin.c: Do not include except.h.
7054
d166d4c3
AK
70552010-06-24 Andi Kleen <ak@linux.intel.com>
7056
9faeb493
UB
7057 * c-common.c (warn_for_omitted_condop): New.
7058 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7059
70cb8be6
JM
70602010-06-21 Joseph Myers <joseph@codesourcery.com>
7061
7062 * c.opt (lang-objc): Remove.
7063 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7064
a4c97feb
JR
70652010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7066
7067 * c-opts.c: Include "tm_p.h".
7068
6e2f1956
JM
70692010-06-20 Joseph Myers <joseph@codesourcery.com>
7070
7071 * c-common.c (parse_optimize_options): Update call to
7072 decode_options.
7073
bc87224e
NF
70742010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7075
7076 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7077 new type of types_used_by_cur_var_decl.
7078
b49cf425
JR
70792010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7080
7081 PR bootstrap/44512
7082 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7083 for C++ standard compliance.
7084
59f9c2ed
JM
70852010-06-16 Jason Merrill <jason@redhat.com>
7086
7087 * c.opt: Add -Wnoexcept.
7088
33766b66
RG
70892010-06-16 Richard Guenther <rguenther@suse.de>
7090
7091 PR c/44555
7092 * c-common.c (c_common_truthvalue_conversion): Remove
7093 premature and wrong optimization concering ADDR_EXPRs.
7094
eff7e30c
AC
70952010-06-15 Arnaud Charlet <charlet@adacore.com>
7096
7097 * c-ada-spec.c (dump_sloc): Remove column info.
7098 (is_simple_enum): New function.
7099 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7100 enum types when relevant.
7101
6312e84d
MLI
71022010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7103
9faeb493 7104 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7105 location.
7106
1cb42611
JM
71072010-06-10 Joseph Myers <joseph@codesourcery.com>
7108
7109 * c-opts.c (c_common_handle_option): Don't handle
7110 OPT_fshow_column.
7111
a9429e29
LB
71122010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7113
7114 * c-pragma.c (push_alignment): Use typed GC allocation.
7115 (handle_pragma_push_options): Likewise.
7116
7117 * c-common.c (parse_optimize_options): Likewise.
7118
7119 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7120 option.
7121
5498f011
JM
71222010-06-07 Joseph Myers <joseph@codesourcery.com>
7123
7124 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7125 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7126 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7127 flag_signed_bitfields, warn_strict_null_sentinel,
7128 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7129 flag_gen_declaration, flag_no_gnu_keywords,
7130 flag_implement_inlines, flag_implicit_templates,
7131 flag_implicit_inline_templates, flag_optional_diags,
7132 flag_elide_constructors, flag_default_inline, flag_rtti,
7133 flag_conserve_space, flag_access_control, flag_check_new,
7134 flag_new_for_scope, flag_weak, flag_working_directory,
7135 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7136 flag_enforce_eh_specs, flag_threadsafe_statics,
7137 flag_pretty_templates): Remove.
7138 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7139 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7140 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7141 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7142 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7143 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7144 flag_no_gnu_keywords, flag_implement_inlines,
7145 flag_implicit_templates, flag_implicit_inline_templates,
7146 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7147 flag_rtti, flag_conserve_space, flag_access_control,
7148 flag_check_new, flag_new_for_scope, flag_weak,
7149 flag_working_directory, flag_use_cxa_atexit,
7150 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7151 flag_threadsafe_statics, flag_pretty_templates,
7152 warn_strict_null_sentinel): Remove.
7153 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7154 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7155 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7156 fimplicit-inline-templates, fimplicit-templates,
7157 flax-vector-conversions, fms-extensions, fnil-receivers,
7158 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7159 frtti, fshort-double, fshort-enums, fshort-wchar,
7160 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7161 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7162 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7163 gen-decls, undef): Use Var.
7164 (fdefault-inline, foptional-diags): Document as doing nothing.
7165 * c-opts.c (c_common_handle_option): Remove cases for options now
7166 using Var. Mark ignored options as such.
7167
39dabefd
SB
71682010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7169
9faeb493 7170 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7171 * c-common.def: Likewise.
7172 * c-common.h: Likewise.
7173 * c-cppbuiltin.c: Likewise.
7174 * c-dump.c: Likewise.
7175 * c-format.c: Likewise.
7176 * c-format.h : Likewise.
7177 * c-gimplify.c: Likewise.
7178 * c-lex.c: Likewise.
7179 * c-omp.c: Likewise.
7180 * c.opt: Likewise.
7181 * c-opts.c: Likewise.
7182 * c-pch.c: Likewise.
7183 * c-ppoutput.c: Likewise.
7184 * c-pragma.c: Likewise.
7185 * c-pragma.h: Likewise.
7186 * c-pretty-print.c: Likewise.
7187 * c-pretty-print.h: Likewise.
7188 * c-semantics.c: Likewise.
7189 * stub-objc.c: Likewise.
7190
7191 * c-common.c: Include gt-c-family-c-common.h.
7192 * c-pragma.c: Include gt-c-family-c-pragma.h.
7193\f
818ab71a 7194Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
7195
7196Copying and distribution of this file, with or without modification,
7197are permitted in any medium without royalty provided the copyright
7198notice and this notice are preserved.
This page took 2.452685 seconds and 5 git commands to generate.