]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
627be19f
JM
12016-10-08 Jason Merrill <jason@redhat.com>
2
3 * c-common.c (c_common_truthvalue_conversion): Don't distribute
4 into COND_EXPR in C++.
5
7bad794a
JJ
62016-10-08 Jakub Jelinek <jakub@redhat.com>
7
8 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
9 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
10 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
11
be845b04
JJ
122016-10-07 Jakub Jelinek <jakub@redhat.com>
13
14 Implement LWG2296 helper intrinsic
15 * c-common.h (enum rid): Add RID_ADDRESSOF.
16 * c-common.c (c_common_reswords): Add __builtin_addressof.
17
c09c4992
BE
182016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
19
20 PR c++/77700
21 * c-common.c (c_common_truthvalue_conversion): Warn also for
22 suspicious enum values in boolean context.
23
342cfb3e
JJ
242016-10-06 Jakub Jelinek <jakub@redhat.com>
25
26 Implement P0258R2 - helper for C++17
27 std::has_unique_object_representations trait
28 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
29 * c-common.c (c_common_reswords): Add
30 __has_unique_object_representations.
31
2e69f143
JJ
322016-10-05 Jakub Jelinek <jakub@redhat.com>
33
34 PR sanitizer/66343
35 * c-ubsan.c (ubsan_instrument_return): Don't call
36 initialize_sanitizer_builtins here.
37
700fff34
BE
382016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
39
40 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
41 conditional expression in boolean context when only one arm is
42 non-boolean.
43
9563bfcd
JJ
442016-10-05 Jakub Jelinek <jakub@redhat.com>
45
04a32443
JJ
46 PR sanitizer/77823
47 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
48 is not integral.
49
9563bfcd
JJ
50 * c-common.c (c_common_reswords): Update comment for C++11.
51
f1644724
JM
522016-10-04 Jason Merrill <jason@redhat.com>
53
54 * c-common.c (make_tree_vector_from_ctor): New.
55 * c-common.h: Declare it.
56
5a79befb
JJ
572016-10-04 Jakub Jelinek <jakub@redhat.com>
58
59 * c-cppbuiltin.c (c_cpp_builtins): Don't define
60 __LIBGCC_JCR_SECTION_NAME__.
61
1633d3b9
BE
622016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
63
64 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
65 left shift in boolean context.
66
a2c6e7f2
JJ
672016-09-29 Jakub Jelinek <jakub@redhat.com>
68
69 Implement P0001R1 - C++17 removal of register storage class specifier
70 * c.opt (Wregister): New warning.
71 * c-opts.c (c_common_post_options): Enable -Wregister by
72 default for C++17.
73
75304c87
JG
742016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
75
76 * c-opts.c (c_common_post_options): Remove special case for
77 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
78 in C++.
79
bbfac6da
JJ
802016-09-27 Jakub Jelinek <jakub@redhat.com>
81
6e39060a
JJ
82 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
83 -std=c++1z.
84
bbfac6da
JJ
85 * c-ada-spec.c (print_ada_declaration): Remove break after return.
86
e73cf9a2
TP
872016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
88
89 * c-common.c: Include memmodel.h.
90
c6147dc4
MP
912016-09-26 Marek Polacek <polacek@redhat.com>
92
93 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
94
81fea426
MP
952016-09-26 Marek Polacek <polacek@redhat.com>
96
97 PR c/7652
98 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
99 (handle_fallthrough_attribute): New function.
100 (attribute_fallthrough_p): New function.
101 * c-common.h (attribute_fallthrough_p): Declare.
102
9a2300e9
MP
1032016-09-24 Marek Polacek <polacek@redhat.com>
104
105 PR c/77490
106 * c.opt (Wbool-operation): New.
107
a09e9e35
BE
1082016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
109
110 * c-common.c (c_common_truthvalue_conversion): Inhibit
111 Wint-in-bool-context warning with from_macro_definition_at.
112 Mention the expression will always evaluate to true.
113
d43b4ccc
MS
1142016-09-21 Martin Sebor <msebor@redhat.com>
115
116 PR bootstrap/77676
117 * c.opt (fprintf-return-value): Temporarily initialize to zero
118 to unblock bootstrap failures.
119
2e1c20b1
JJ
1202016-09-21 Jakub Jelinek <jakub@redhat.com>
121
122 PR c++/77651
123 * c.opt (Waligned-new=): Add RejectNegative.
124 (faligned-new=): Likewise. Spelling fix - change
125 aligned_new_threshhold to aligned_new_threshold.
126 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
127 to aligned_new_threshold.
128
88d0c3f0
MS
1292016-09-20 Martin Sebor <msebor@redhat.com>
130
131 PR middle-end/49905
132 * c.opt: Add -Wformat-length and -fprintf-return-value.
133
144a96e4
BE
1342016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
135
136 PR c++/77434
137 * c.opt (Wint-in-bool-context): New warning.
138 * c-common.c (c_common_truthvalue_conversion): Warn on integer
139 constants in boolean context.
140
63012d9a
JM
1412016-09-19 Joseph Myers <joseph@codesourcery.com>
142
143 * c-common.c (max_align_t_align): Also consider alignment of
144 float128_type_node.
145
931388ce
JM
1462016-09-15 Jason Merrill <jason@redhat.com>
147
148 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
149 DECL_EXTERNAL.
150
38711381
JM
1512016-09-14 Jason Merrill <jason@redhat.com>
152
153 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
154 limit FIELD_DECL, either.
155
e51fbec3
MP
1562016-09-14 Marek Polacek <polacek@redhat.com>
157
158 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
159 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
160 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
161
254830ba
DM
1622016-09-13 David Malcolm <dmalcolm@redhat.com>
163
164 * c-common.c (warn_logical_not_parentheses): Replace
165 rich_location::add_fixit_insert calls with add_fixit_insert_before
166 and add_fixit_insert_after, eliminating the "next_loc" calculation.
167
42763690
JM
1682016-09-13 Jason Merrill <jason@redhat.com>
169 Tom de Vries <tom@codesourcery.com>
170
171 PR c++/77427
172 * c-common.c (set_underlying_type): Don't treat array as builtin type.
173
9453eee9
JM
1742016-09-13 Jason Merrill <jason@redhat.com>
175
176 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
177 limit types at all.
178
e96809e3
JM
1792016-09-12 Jason Merrill <jason@redhat.com>
180
181 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
182 bit/byte confusion, allow large alignment for types.
183
54dcdb88
BE
1842016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
185
186 PR c++/77496
187 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
188
d1463eb9
DM
1892016-09-12 David Malcolm <dmalcolm@redhat.com>
190
191 PR c/72858
192 * c-format.c (argument_parser::check_argument_type): Add params
193 "type_start" and "conversion_char". Use the former to generate
194 offset_to_type_start and pass it and conversion_char to
195 check_format_types.
196 (check_format_info_main): Capture the start of the type
197 information as "type_start", and pass it an format_char
198 to arg_parser.check_argument_type.
199 (check_format_types): Provide an example in the leading comment.
200 Add params "offset_to_type_start" and "conversion_char"; pass
201 them to format_type_warning calls.
202 (test_get_modifier_for_format_len): Likewise.
203 (matching_type_p): New function.
204 (get_format_for_type): Add param "conversion_char" and move
205 implementation into...
206 (get_format_for_type_1): ...new function, called twice.
207 Use new function matching_type_p rather than checking for
208 TYPE_CANONICAL equality.
209 (get_corrected_substring): New function.
210 (format_type_warning): Provide an example in the leading comment.
211 Add params "offset_to_type_start" and "conversion_char". Replace
212 call to get_format_for_type with call to get_corrected_substring
213 and move rejection of hints for widths/precisions there.
214 (assert_format_for_type_streq): Add param "conversion_char".
215 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
216 (test_get_format_for_type_printf): Add conversion chars to the
217 tests, adding coverage for various combinations of integer
218 vs double conversions, and for preserving octal and hexadecimal
219 conversions.
220 (test_get_format_for_type_scanf): Add conversion chars to the
221 tests.
222
5b28efbb
TV
2232016-09-10 Tom de Vries <tom@codesourcery.com>
224
225 PR C/71602
226 * c-common.c (build_va_arg): Handle more strict
227 targetm.canonical_va_list_type. Replace first argument type error with
228 assert.
229
3f0177e7
MS
2302016-09-09 Martin Sebor <msebor@redhat.com>
231
232 PR c/77520
233 PR c/77521
234 * c-format.c (argument_parser::find_format_char_info): Use %qc
235 format directive unconditionally.
236
af63ba4b
JM
2372016-09-09 Jason Merrill <jason@redhat.com>
238
239 Implement C++17 new of over-aligned types.
240 * c.opt: Add -faligned-new and -Waligned-new.
241 * c-common.c (max_align_t_align): Split out from...
242 (cxx_fundamental_alignment_p): ...here.
243 * c-common.h: Declare it.
244 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
245
c65248cb
JM
2462016-09-09 Joseph Myers <joseph@codesourcery.com>
247
248 * c-cppbuiltin.c (builtin_define_type_width): New function.
249 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
250 macros.
251
e5106e27
DM
2522016-09-07 David Malcolm <dmalcolm@redhat.com>
253
254 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
255 a POINTER_TYPE.
256 (substring_loc::get_location): Move to substring-locations.c,
257 keeping implementation as...
258 (c_get_substring_location): New function, from the above, reworked
259 to use accessors rather than member lookup.
260 * c-common.h (class substring_loc): Move to substring-locations.h,
261 replacing with a forward decl.
262 (c_get_substring_location): New decl.
263 * c-format.c: Include "substring-locations.h".
264 (format_warning_va): Move to substring-locations.c.
265 (format_warning_at_substring): Likewise.
266
a42e7952
MS
2672016-09-06 Martin Sebor <msebor@redhat.com>
268
269 PR c/77336
270 * c-format.c (check_function_format): Avoid issuing warnings for
271 functions unless they call format functions with non-constant
272 format strings.
273
b772a565
RB
2742016-09-06 Richard Biener <rguenther@suse.de>
275
276 PR c/77450
277 * c-common.c (c_common_mark_addressable_vec): Handle
278 COMPOUND_LITERAL_EXPR.
279
25ff5dd3
MP
2802016-09-05 Marek Polacek <polacek@redhat.com>
281
282 PR c/77423
283 * c-common.c (bool_promoted_to_int_p): New function.
284 (expr_has_boolean_operands_p): New function.
285 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
286 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
287
21234eb5
TV
2882016-09-04 Tom de Vries <tom@codesourcery.com>
289
290 revert:
291 2016-08-29 Tom de Vries <tom@codesourcery.com>
292
293 * c-common.c (build_va_arg): Replace first argument type error
294 with assert.
295
9dc5773f
JJ
2962016-09-02 Jakub Jelinek <jakub@redhat.com>
297
298 PR c/65467
299 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
300 (c_finish_omp_for): Reject _Atomic qualified iterators.
301
3022016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
303
304 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
305 size to guarantee it fits the output of the formatted function
306 regardless of its arguments.
307
295844f6
MP
3082016-09-01 Marek Polacek <polacek@redhat.com>
309
310 PR c/7652
311 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
312 FALLTHRU comments.
313
3d06b6f2
MP
3142016-08-29 Marek Polacek <polacek@redhat.com>
315
316 PR c/77292
317 * c-common.c (warn_logical_not_parentheses): Don't warn for
318 a comparison or a logical operator.
319
34cedad5
TV
3202016-08-29 Tom de Vries <tom@codesourcery.com>
321
322 * c-common.c (build_va_arg): Fix type comparison assert.
323
f162d717
TV
3242016-08-29 Tom de Vries <tom@codesourcery.com>
325
326 * c-common.c (build_va_arg): Replace first argument type error
327 with assert.
328
ba9bbd6f
TV
3292016-08-29 Tom de Vries <tom@codesourcery.com>
330
331 PR c/77398
332 * c-common.c (build_va_arg): Add first argument error. Build va_arg
333 with error_mark_node as va_list instead of with illegal va_list.
334
ebef225f
MP
3352016-08-25 Marek Polacek <polacek@redhat.com>
336 David Malcolm <dmalcolm@redhat.com>
337
338 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
339 * c-common.h (warn_logical_not_parentheses): Update declaration.
340
b00e6e75
MP
3412016-08-22 Marek Polacek <polacek@redhat.com>
342
343 PR c++/77321
344 * c-common.c (warn_for_memset): Check type for null.
345
6dc198e3
JM
3462016-08-22 Joseph Myers <joseph@codesourcery.com>
347
348 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
349 _FloatNx types for suffixes for built-in functions.
350
c65699ef
JM
3512016-08-19 Joseph Myers <joseph@codesourcery.com>
352
353 PR c/32187
354 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
355 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
356 (RID_FLOAT128X): New enum rid values.
357 (CASE_RID_FLOATN_NX): New macro.
358 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
359 keywords.
360 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
361 corresponding complex types.
362 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
363 _FloatNx and corresponding complex types.
364 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
365 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
366 and _FloatNx types for the widest type for determining
367 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
368 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
369 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
370 and _FloatNx types.
371 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
372 constants.
373 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
374 _FloatNx types.
375
cc015f3a
DM
3762016-08-18 David Malcolm <dmalcolm@redhat.com>
377
378 * c-opts.c (c_diagnostic_finalizer): Update for change to
379 diagnostic_show_locus.
380
cb18fd07
DM
3812016-08-18 David Malcolm <dmalcolm@redhat.com>
382
383 * c-common.c: Include "spellcheck.h".
384 (cb_get_suggestion): New function.
385 * c-common.h (cb_get_suggestion): New decl.
386 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
387 cb_get_suggestion.
388
a76989dc
MP
3892016-08-18 Marek Polacek <polacek@redhat.com>
390
391 PR c/71514
392 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
393 and pointer-to-VLA.
394
65e736c0
DM
3952016-08-16 David Malcolm <dmalcolm@redhat.com>
396
397 PR c/72857
398 * c-common.c (substring_loc::get_range): Rename to...
399 (substring_loc::get_location): ...this, converting param from a
400 source_range * to a location_t *. Call
401 get_source_location_for_substring rather than
402 get_source_range_for_substring, and pass in m_caret_idx.
403 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
404 (substring_loc::get_range): Replace with...
405 (substring_loc::get_location): ...this.
406 (substring_loc::set_caret_index): New method.
407 (substring_loc): Add field m_caret_idx.
408 * c-format.c (format_warning_va): Update for above changes.
409 Rename local "substring_loc" to "fmt_substring_loc" to avoid
410 clashing with type name.
411 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
412 (check_argument_type): Likewise.
413 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
414 Use a copy when emitting warnings, setting the caret index from TYPE.
415
7e1dde14
EB
4162016-08-16 Eric Botcazou <ebotcazou@adacore.com>
417 Arnaud Charlet <charlet@adacore.com>
418
419 * c-ada-spec.c (dump_number): New function.
420 (handle_escape_character): Likewise.
421 (print_ada_macros): Add handling of constant integers and strings.
422
191816a3
MP
4232016-08-12 Marek Polacek <polacek@redhat.com>
424
425 PR c/7652
426 * c-common.c (scalar_to_vector): Adjust fall through comment.
427 * c-opts.c (c_common_handle_option): Likewise.
428 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
429 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
430 fall through comment.
431 * cilk.c (extract_free_variables): Add FALLTHRU.
432
452df4a4
JM
4332016-08-10 Jason Merrill <jason@redhat.com>
434
435 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
436
f3365c12
JM
4372016-08-09 Jason Merrill <jason@redhat.com>
438
439 * c-common.c (c_common_attribute_table): vector_size affects type
440 identity.
441
f0bc3323
MP
4422016-08-09 Marek Polacek <polacek@redhat.com>
443
444 PR c/7652
445 * c-ada-spec.c (dump_generic_ada_node): Add return.
446
98e5a19a
JM
4472016-08-09 Jason Merrill <jason@redhat.com>
448
449 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
450 C++17 constexpr lambdas.
451
895aa8e1
DM
4522016-08-08 David Malcolm <dmalcolm@redhat.com>
453
454 PR c/64955
455 * c-common.h (selftest::c_format_c_tests): New declaration.
456 (selftest::run_c_tests): New declaration.
457 * c-format.c: Include "selftest.h.
458 (format_warning_va): Add param "corrected_substring" and use
459 it to add a replacement fix-it hint.
460 (format_warning_at_substring): Likewise.
461 (format_warning_at_char): Update for new param of
462 format_warning_va.
463 (argument_parser::check_argument_type): Pass "fki" to
464 check_format_types.
465 (check_format_types): Add param "fki" and pass it to
466 format_type_warning.
467 (deref_n_times): New function.
468 (get_modifier_for_format_len): New function.
469 (selftest::test_get_modifier_for_format_len): New function.
470 (get_format_for_type): New function.
471 (format_type_warning): Add param "fki" and use it to attempt
472 to provide hints for argument types when calling
473 format_warning_at_substring.
474 (selftest::get_info): New function.
475 (selftest::assert_format_for_type_streq): New function.
476 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
477 (selftest::test_get_format_for_type_printf): New function.
478 (selftest::test_get_format_for_type_scanf): New function.
479 (selftest::c_format_c_tests): New function.
480
e52ed3fe
DM
4812016-08-08 David Malcolm <dmalcolm@redhat.com>
482
483 PR c/52952
484 * c-format.c: Include "diagnostic.h".
485 (location_column_from_byte_offset): Delete.
486 (location_from_offset): Delete.
487 (format_warning_va): New function.
488 (format_warning_at_substring): New function.
489 (format_warning_at_char): New function.
490 (check_format_arg): Capture location of format_tree and pass to
491 check_format_info_main.
492 (argument_parser): Add fields "start_of_this_format" and
493 "format_string_cst".
494 (flag_chars_t::validate): Add param "format_string_cst". Convert
495 warning_at call using location_from_offset to call to
496 format_warning_at_char.
497 (argument_parser::argument_parser): Add param "format_string_cst_"
498 and use use it to initialize field "format_string_cst".
499 Initialize new field "start_of_this_format".
500 (argument_parser::read_format_flags): Convert warning_at call
501 using location_from_offset to a call to format_warning_at_char.
502 (argument_parser::read_any_format_left_precision): Likewise.
503 (argument_parser::read_any_format_precision): Likewise.
504 (argument_parser::read_any_other_modifier): Likewise.
505 (argument_parser::find_format_char_info): Likewise, in three places.
506 (argument_parser::parse_any_scan_set): Likewise, in one place.
507 (argument_parser::handle_conversions): Likewise, in two places.
508 (argument_parser::check_argument_type): Add param "fmt_param_loc"
509 and use it to make a substring_loc. Pass the latter to
510 check_format_types.
511 (check_format_info_main): Add params "fmt_param_loc" and
512 "format_string_cst". Convert warning_at calls using
513 location_from_offset to calls to format_warning_at_char. Pass the
514 new params to the arg_parser ctor. Pass "format_string_cst" to
515 flag_chars.validate. Pass "fmt_param_loc" to
516 arg_parser.check_argument_type.
517 (check_format_types): Convert first param from a location_t
518 to a const substring_loc & and rename to "fmt_loc". Attempt
519 to extract the range of the relevant parameter and pass it
520 to format_type_warning.
521 (format_type_warning): Convert first param from a location_t
522 to a const substring_loc & and rename to "fmt_loc". Add
523 params "param_range" and "type". Replace calls to warning_at
524 with calls to format_warning_at_substring.
525
1c4d457e
DM
5262016-08-08 David Malcolm <dmalcolm@redhat.com>
527
528 * c-format.c (class flag_chars_t): New class.
529 (struct length_modifier): New struct.
530 (class argument_parser): New class.
531 (flag_chars_t::flag_chars_t): New ctor.
532 (flag_chars_t::has_char_p): New method.
533 (flag_chars_t::add_char): New method.
534 (flag_chars_t::validate): New method.
535 (flag_chars_t::get_alloc_flag): New method.
536 (flag_chars_t::assignment_suppression_p): New method.
537 (argument_parser::argument_parser): New ctor.
538 (argument_parser::read_any_dollar): New method.
539 (argument_parser::read_format_flags): New method.
540 (argument_parser::read_any_format_width): New method.
541 (argument_parser::read_any_format_left_precision): New method.
542 (argument_parser::read_any_format_precision): New method.
543 (argument_parser::handle_alloc_chars): New method.
544 (argument_parser::read_any_length_modifier): New method.
545 (argument_parser::read_any_other_modifier): New method.
546 (argument_parser::find_format_char_info): New method.
547 (argument_parser::validate_flag_pairs): New method.
548 (argument_parser::give_y2k_warnings): New method.
549 (argument_parser::parse_any_scan_set): New method.
550 (argument_parser::handle_conversions): New method.
551 (argument_parser::check_argument_type): New method.
552 (check_format_info_main): Introduce classes argument_parser
553 and flag_chars_t, moving the code within the loop into methods
554 of these classes. Make various locals "const".
555
88fa5555
DM
5562016-08-05 David Malcolm <dmalcolm@redhat.com>
557
558 * c-common.c: Include "substring-locations.h".
559 (get_cpp_ttype_from_string_type): New function.
560 (g_string_concat_db): New global.
561 (substring_loc::get_range): New method.
562 * c-common.h (g_string_concat_db): New declaration.
563 (class substring_loc): New class.
564 * c-lex.c (lex_string): When concatenating strings, capture the
565 locations of all tokens using a new obstack, and record the
566 concatenation locations within g_string_concat_db.
567 * c-opts.c (c_common_init_options): Construct g_string_concat_db
568 on the ggc-heap.
569
78169471
MP
5702016-07-29 Marek Polacek <polacek@redhat.com>
571
638fc14f
MP
572 PR c/71926
573 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
574 parentheses warning.
575
78169471
MP
576 PR c/71574
577 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
578
1225d6b1
ML
5792016-07-28 Martin Liska <mliska@suse.cz>
580
581 PR gcov-profile/68025
582 * c-common.c (handle_no_profile_instrument_function_attribute):
583
ec1e2a40
BE
5842016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
585
586 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
587 BITS_PER_UNIT_LOG.
588
5ec2cd9f
JM
5892016-07-25 Jason Merrill <jason@redhat.com>
590
591 PR c++/65970
592 * c.opt (fconstexpr-loop-limit): New.
593
9dc5773f 5942016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
595
596 PR c++/71675
597 * c-common.c (resolve_overloaded_builtin): Avoid converting
598 __atomic_compare_exchange_n return type to that of what its
599 first argument points to.
600
e3fe09c1
UB
6012016-07-22 Uros Bizjak <ubizjak@gmail.com>
602
603 * c-common.c: Use HOST_WIDE_INT_M1U instead of
604 ~(unsigned HOST_WIDE_INT) 0.
605
bc91c436
ML
6062016-07-22 Martin Liska <mliska@suse.cz>
607
608 PR gcov-profile/69028
609 PR gcov-profile/62047
610 * cilk.c (create_cilk_helper_decl): Set location of a new decl
611 to the current_function_decl.
612
451dcc66
JM
6132016-07-21 Jason Merrill <jason@redhat.com>
614
615 PR c++/65168
616 * c-common.c (c_common_truthvalue_conversion): Check
617 c_inhibit_evaluation_warnings for warning about address of
618 reference.
619
de6a69ee
DM
6202016-07-20 David Malcolm <dmalcolm@redhat.com>
621
622 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
623 const char *.
624
d022c55a
JM
6252016-07-15 Jason Merrill <jason@redhat.com>
626
627 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
628
ddbbcb19
JJ
6292016-07-15 Jakub Jelinek <jakub@redhat.com>
630
631 PR c/71858
632 * c-common.h (enum lookup_name_fuzzy_kind): Add
633 FUZZY_LOOKUP_FUNCTION_NAME.
634
d0cf395a
JM
6352016-07-08 Jason Merrill <jason@redhat.com>
636
637 P0145: Refining Expression Order for C++.
638 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
639 * c-opts.c: Adjust.
640
98d44e93
MT
6412016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
642
643 PR c++/71214
644 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
645
f9d8d994
TS
6462016-06-29 Thomas Schwinge <thomas@codesourcery.com>
647
648 * c-pragma.h (enum pragma_kind): Rename
649 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
650 users.
651
4aa83879
RB
6522016-06-29 Richard Biener <rguenther@suse.de>
653
654 PR middle-end/71002
655 * c-common.c (c_common_get_alias_set): Remove union type punning case.
656
a25bd9e6
JM
6572016-06-24 Jason Merrill <jason@redhat.com>
658
659 P0145R2: Refining Expression Order for C++.
660 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
661 MODIFY_EXPR.
662
a86451b9
JJ
6632016-06-24 Jakub Jelinek <jakub@redhat.com>
664
665 * c-common.c (check_builtin_function_arguments): Require last
666 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
667 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
668 if the last argument is pointer to enumerated or boolean type.
669
1a4f11c8
DM
6702016-06-22 David Malcolm <dmalcolm@redhat.com>
671
672 PR c/70339
673 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
674 (lookup_name_fuzzy): New prototype.
675
fe55692c
JDA
6762016-06-21 John David Anglin <danglin@gcc.gnu.org>
677
678 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
679
4eb24e01
JM
6802016-06-14 Jason Merrill <jason@redhat.com>
681
682 P0145R2: Refining Expression Order for C++.
683 * c.opt (fargs-in-order): New.
684 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
685
ef7cf206
JJ
6862016-06-13 Jakub Jelinek <jakub@redhat.com>
687
0dda258b
JJ
688 PR sanitizer/71498
689 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
690 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
691
ef7cf206
JJ
692 PR preprocessor/71183
693 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
694 to cb_get_source_date_epoch.
695
50b15873
JJ
6962016-06-10 Jakub Jelinek <jakub@redhat.com>
697
698 PR c/68657
699 * c.opt (Wpsabi): Add Warning flag.
700
4d926e34
MS
7012016-06-10 Martin Sebor <msebor@redhat.com>
702
703 PR c/71392
704 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
705 the nonnull attribute in type-generic builtins.
706
e01b4e16
MS
7072016-06-09 Martin Sebor <msebor@redhat.com>
708
709 PR c/70883
710 * c-common.c (builtin_function_validate_nargs): Make text of error
711 message consistent with others like it.
712
44a845ca
MS
7132016-06-08 Martin Sebor <msebor@redhat.com>
714 Jakub Jelinek <jakub@redhat.com>
715
716 PR c++/70507
717 PR c/68120
718 * c-common.c (check_builtin_function_arguments): Handle
719 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
720
a80a7051
RB
7212016-06-08 Richard Biener <rguenther@suse.de>
722
723 * c-common.c (parse_optimize_options): Improve diagnostic messages.
724
bfd67b47
RB
7252016-06-07 Richard Biener <rguenther@suse.de>
726
727 PR c/61564
728 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
729 options and warn about others.
730
15c98b2e
ES
7312016-06-01 Eduard Sanou <dhole@openmailbox.org>
732
733 * c-common.c (get_source_date_epoch): Rename to
734 cb_get_source_date_epoch.
735 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
736 message when the parsing fails. Use error_at instead of fatal_error.
737 * c-common.h (get_source_date_epoch): Rename to
738 cb_get_source_date_epoch.
739 * c-common.h (cb_get_source_date_epoch): Prototype.
740 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
741 * c-common.h (c_omp_region_type): Remove trailing comma.
742 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
743 * c-lex.c (c_lex_with_flags): Remove initialization of
744 pfile->source_date_epoch.
745
00631022
JJ
7462016-05-30 Jakub Jelinek <jakub@redhat.com>
747
748 PR c++/71349
749 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
750 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
751 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
752 instead of C_OMP_CLAUSE_SPLIT_FOR.
753
f17a223d
RB
7542016-05-24 Richard Biener <rguenther@suse.de>
755
756 PR middle-end/70434
757 PR c/69504
758 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
759 (convert_vector_to_array_for_subscript): ... this.
760 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
761 VIEW_CONVERT_EXPR to an array type. Rename to ...
762 (convert_vector_to_array_for_subscript): ... this.
763
4f2e1536
MP
7642016-05-12 Marek Polacek <polacek@redhat.com>
765
766 PR c/70756
767 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
768 size_in_bytes and pass LOC to it.
769
d6e83a8d
MM
7702016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
771
772 PR c/43651
773 * c.opt (Wduplicate-decl-specifier): New option.
774
5c3a10fb
MP
7752016-05-11 Marek Polacek <polacek@redhat.com>
776
777 PR c++/71024
778 * c-common.c (diagnose_mismatched_attributes): New function.
779 * c-common.h (diagnose_mismatched_attributes): Declare.
780
deef7113
MP
7812016-05-04 Marek Polacek <polacek@redhat.com>
782
783 * c.opt (Wdangling-else): New option.
784
79ce98bc
MP
7852016-05-03 Marek Polacek <polacek@redhat.com>
786
787 PR c/70859
788 * c-common.c (builtin_function_validate_nargs): Add location
789 parameter. Use it.
790 (check_builtin_function_arguments): Add location and arguments
791 parameters. Use them.
792 * c-common.h (check_builtin_function_arguments): Update declaration.
793
381cdae4
RB
7942016-05-03 Richard Biener <rguenther@suse.de>
795
796 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
797 allow call args to gimplify to SSA names.
798
1d793c34
MP
7992016-05-03 Marek Polacek <polacek@redhat.com>
800
801 * c-common.h (enum c_omp_region_type): Remove stray comma.
802
77886428
CP
8032016-05-02 Cesar Philippidis <cesar@codesourcery.com>
804
805 * c-common.h (enum c_omp_region_type): Define.
806
697e0b28
RS
8072016-05-02 Richard Sandiford <richard.sandiford@arm.com>
808
809 * c-common.c (shorten_compare): Use wi::to_wide.
810
e7ff0319
CP
8112016-04-29 Cesar Philippidis <cesar@codesourcery.com>
812
813 PR middle-end/70626
814 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
815 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
816 reduction clauses in acc parallel loops.
817
2fff3db8
MP
8182016-04-29 Marek Polacek <polacek@redhat.com>
819
820 PR c/70852
821 * c-common.c (warn_for_memset): Check domain before accessing it.
822
509063eb
DV
8232016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
824
825 PR/69089
826 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
827 "aligned" attribute.
828
b632761d
JM
8292016-04-28 Jason Merrill <jason@redhat.com>
830
831 * c-lex.c (c_common_has_attribute): Handle nodiscard.
832
174f6622
ES
8332016-04-28 Eduard Sanou <dhole@openmailbox.org>
834 Matthias Klose <doko@debian.org>
835
836 * c-common.c (get_source_date_epoch): New function, gets the environment
837 variable SOURCE_DATE_EPOCH and parses it as long long with error
838 handling.
839 * c-common.h (get_source_date_epoch): Prototype.
840 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
841
6bc2bb18
RB
8422015-04-27 Ryan Burn <contact@rnburn.com>
843
844 PR c++/69024
845 PR c++/68997
846 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
847 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
848 external linkage.
849 (cilk_detect_and_unwrap): Corresponding changes.
850 (extract_free_variables): Don't extract free variables from
851 AGGR_INIT_EXPR slot.
852 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
853 (cilk_recognize_spawn): Likewise.
854
c1e1f433
BS
8552016-04-27 Bernd Schmidt <bschmidt@redhat.com>
856
857 * c.opt (Wmemset-elt-size): New option.
858 * c-common.c (warn_for_memset): New function.
859 * c-common.h (warn_for_memset): Declare.
860
d067e05f
JM
8612016-04-25 Jason Merrill <jason@redhat.com>
862
863 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
864 No longer static.
865 * c-common.h: Declare it.
866 * c-lex.c (c_common_has_attribute): Add maybe_unused.
867
9aa36ae5
JM
8682016-04-22 Jason Merrill <jason@redhat.com>
869
870 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
871
477d4906
IV
8722016-04-20 Ilya Verbin <ilya.verbin@intel.com>
873
874 PR c++/69363
875 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
876 * c-common.h (c_finish_cilk_clauses): Remove declaration.
877
fe37c7af
MM
8782016-04-18 Michael Matz <matz@suse.de>
879
880 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
881 and SET_DECL_ALIGN.
882
23f2660f
EB
8832016-04-17 Eric Botcazou <ebotcazou@adacore.com>
884
885 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
886 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
887 to incomplete types.
888 (dump_nested_type): Remove redundant tests and tidy up.
889 (print_ada_declaration): Also set TREE_VISITED on the declaration of
890 a type which is the typedef of an original type.
891
1e77281b
MP
8922016-04-15 Marek Polacek <polacek@redhat.com>
893
894 PR c/70651
895 * c-common.c (build_va_arg): Change two asserts into errors and return
896 error_mark_node.
897
b3a77f21
MP
8982016-04-13 Marek Polacek <polacek@redhat.com>
899
900 PR c++/70639
901 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
902 for switch statements, too.
903
322b8466
JM
9042016-03-28 Jason Merrill <jason@redhat.com>
905
906 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
907
fbdb6baf
MP
9082016-03-23 Marek Polacek <polacek@redhat.com>
909
910 PR c++/69884
911 * c.opt (Wignored-attributes): New option.
912
5c240f4d
DM
9132016-03-22 David Malcolm <dmalcolm@redhat.com>
914
915 PR c/69993
916 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
917 diagnostic text, reversing the order of the warning and note so
918 that they appear in source order.
919
14ba7b28
MP
9202016-03-17 Marek Polacek <polacek@redhat.com>
921
922 PR c/69407
923 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
924 operations.
925
08a1cadc
JM
9262016-03-14 Jason Merrill <jason@redhat.com>
927
2aaeea19
JM
928 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
929
08a1cadc
JM
930 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
931
c06d25bb
RB
9322016-03-09 Richard Biener <rguenther@suse.de>
933
934 PR c/70143
935 * c-common.c (strict_aliasing_warning): Add back
936 alias_sets_conflict_p check.
937
80aac5c8
JM
9382016-03-08 Jason Merrill <jason@redhat.com>
939
940 * c-opts.c (set_std_cxx1z): Don't enable concepts.
941
64b23c13
DM
9422016-03-04 David Malcolm <dmalcolm@redhat.com>
943
944 PR c/68187
945 * c-indentation.c (get_visual_column): Move code to determine next
946 tab stop to...
947 (next_tab_stop): ...this new function.
948 (line_contains_hash_if): Delete function.
949 (detect_preprocessor_logic): Delete function.
950 (get_first_nws_vis_column): New function.
951 (detect_intervening_unindent): New function.
952 (should_warn_for_misleading_indentation): Replace call to
953 detect_preprocessor_logic with a call to
954 detect_intervening_unindent.
955
729526f5
DM
9562016-03-04 David Malcolm <dmalcolm@redhat.com>
957
958 PR c/68187
959 * c-indentation.c (should_warn_for_misleading_indentation): When
960 suppressing warnings about cases where the guard and body are on
961 the same column, only use the first non-whitespace column in place
962 of the guard token column when dealing with "else" clauses.
963 When rejecting aligned BODY and NEXT, loosen the requirement
964 from equality with the first non-whitespace of guard to simply
965 that they not be indented relative to it.
966
e9a35493
RB
9672016-03-04 Richard Biener <rguenther@suse.de>
968
969 PR c++/70054
970 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
971 instead of alias_sets_conflict_p.
972
1be56bc5
MP
9732016-03-01 Marek Polacek <polacek@redhat.com>
974
975 PR c++/69795
976 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
977 any DECL.
978
35886f0b
MS
9792016-02-22 Martin Sebor <msebor@redhat.com>
980
981 PR middle-end/69780
982 * c-common.c (check_builtin_function_arguments): Validate and
983 reject invalid arguments to __builtin_alloca_with_align.
984
4246c8da
MW
9852016-02-20 Mark Wielaard <mjw@redhat.com>
986
987 PR c/28901
988 * c.opt (Wunused-const-variable): Turn into Alias for...
989 (Wunused-const-variable=): New option.
990
268be88c
BE
9912016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
992
993 PR c++/69865
994 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
995 here...
996 (c_common_init_options): ...to here.
997 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
998
871b3f47
JJ
9992016-02-19 Jakub Jelinek <jakub@redhat.com>
1000
1001 PR c++/69826
1002 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1003 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1004 flag_preprocess_only.
1005
bf14eba2
JJ
10062016-02-16 Jakub Jelinek <jakub@redhat.com>
1007
1008 PR c/69835
1009 * c.opt (Wnonnull-compare): Enable for -Wall.
1010
ba6b3795
JJ
10112016-02-15 Jakub Jelinek <jakub@redhat.com>
1012
1013 PR c++/69797
1014 * c-common.c (sync_resolve_size): Diagnose too few arguments
1015 even when params is non-NULL empty vector.
1016
a011cd92
BS
10172016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1018
1019 PR target/60410
1020 * c.opt (fshort-double): Remove.
1021
46cb9332
MS
10222016-02-05 Martin Sebor <msebor@redhat.com>
1023
1024 PR c++/69662
1025 * c.opt (Warning options): Update -Wplacement-new to take
1026 an optional argument.
1027
e1b81f2b
JJ
10282016-02-01 Jakub Jelinek <jakub@redhat.com>
1029
1030 PR preprocessor/69543
1031 PR c/69558
1032 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1033 instead of loc to control_warning_option.
1034
b6adbb9f
NS
10352016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1036
1037 * c.opt (fopenacc-dim=): New option.
1038
5d70666e
RB
10392016-01-27 Ryan Burn <contact@rnburn.com>
1040
1041 PR cilkplus/69267
1042 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1043 gimplify_arg. Removed superfluous post_p argument.
1044 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1045 superfluous post_p argument.
1046 * c-gimplify.c (c_gimplify_expr): Likewise.
1047
01e1dea3
DM
10482016-01-26 David Malcolm <dmalcolm@redhat.com>
1049
1050 PR other/69006
1051 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1052 pp_newline_and_flush with pp_flush.
1053
9f04a53e
MS
10542016-01-20 Martin Sebor <msebor@redhat.com>
1055
1056 PR c/69405
1057 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1058 an incompatible argument when the argument isn't a valid tree node.
1059
7f26f7df
JM
10602016-01-18 Jason Merrill <jason@redhat.com>
1061
1062 PR c++/68767
1063 * c-common.c (check_function_arguments_recurse): Fold the whole
1064 COND_EXPR, not just the condition.
1065
f62bf092
TV
10662016-01-18 Tom de Vries <tom@codesourcery.com>
1067
1068 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1069 classify as loop clause.
1070
e0a575ff
JJ
10712016-01-15 Jakub Jelinek <jakub@redhat.com>
1072
1073 PR bootstrap/68271
1074 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1075 C++ FE no longer has limit on number of pragmas.
1076
10772015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1078
1079 PR c++/69048
1080 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1081 to add missing cleanup point.
b6e3db06 1082
c7df95d8
DM
10832016-01-14 David Malcolm <dmalcolm@redhat.com>
1084
1085 PR c++/68819
1086 * c-indentation.c (get_visual_column): Add location_t param.
1087 Handle the column number being zero by effectively disabling the
1088 warning, with an "inform".
1089 (should_warn_for_misleading_indentation): Add location_t argument
1090 for all uses of get_visual_column.
1091
21efdd80
PP
10922016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1093
1094 PR c++/69029
1095 * c-indentation.c (should_warn_for_misleading_indentation):
1096 Don't warn about do-while statements.
1097
7a127fa7
MS
10982016-01-07 Martin Sebor <msebor@redhat.com>
1099
1100 PR c/68966
1101 * c-common.c (sync_resolve_size): Reject first argument when it's
1102 a pointer to _Bool.
1103
c589e975
DM
11042016-01-05 David Malcolm <dmalcolm@redhat.com>
1105
1106 PR c/69122
1107 * c-indentation.c (get_visual_column): Remove default argument.
1108 (should_warn_for_misleading_indentation): For the multiline case,
1109 update call to get_visual_column for next_stmt_exploc so that it
1110 captures the location of the first non-whitespace character in the
1111 relevant line. Don't issue warnings if there is non-whitespace
1112 before the next statement.
1113
818ab71a
JJ
11142016-01-04 Jakub Jelinek <jakub@redhat.com>
1115
1116 Update copyright years.
1117
745e411d
DM
11182015-12-21 David Malcolm <dmalcolm@redhat.com>
1119
1120 * c-common.c (binary_op_error): Convert first param from
1121 location_t to rich_location * and use it when emitting an error.
1122 * c-common.h (binary_op_error): Convert first param from
1123 location_t to rich_location *.
1124
de67c4c3
DM
11252015-12-16 David Malcolm <dmalcolm@redhat.com>
1126
1127 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1128 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1129
4a38b02b
IV
11302015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1131
1132 * c-common.c (c_common_attribute_table): Handle "omp declare target
1133 link" attribute.
1134
54d62f51
JJ
11352015-12-14 Jakub Jelinek <jakub@redhat.com>
1136
1137 PR c/68833
1138 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1139
8d4227c8
TB
11402014-12-12 Tobias Burnus <burnus@net-b.de>
1141
1142 PR fortran/68815
1143 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1144 specifiers (%d, %i,%u and %c).
1145
f6069ccc
DM
11462015-12-10 David Malcolm <dmalcolm@redhat.com>
1147
1148 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1149
63bbf46d
JJ
11502015-12-08 Jakub Jelinek <jakub@redhat.com>
1151
1152 PR c/48088
1153 PR c/68657
1154 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1155 * c-pragma.c (handle_pragma_diagnostic): Adjust
1156 control_warning_option caller.
1157
f79520bb
DM
11582015-12-07 David Malcolm <dmalcolm@redhat.com>
1159
1160 * c-common.c (c_cpp_error): Update for change to
1161 rich_location::set_range.
1162
b3d5bc62
JJ
11632015-12-04 Paolo Bonzini <bonzini@gnu.org>
1164
1165 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1166 shifting 1 out of the sign bit.
1167
11682015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1169
1170 * c-common.c (c_common_attribute_table[]): Update max arguments
1171 count for "simd" attribute.
1172 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1173
6eb4a537
JJ
11742015-12-03 Jakub Jelinek <jakub@redhat.com>
1175
1176 PR preprocessor/57580
1177 * c-ppoutput.c (print): Change printed field to bool.
1178 Move src_file last for smaller padding.
1179 (init_pp_output): Set print.printed to false instead of 0.
1180 (scan_translation_unit): Fix up formatting. Set print.printed
1181 to true after printing something other than newline.
1182 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1183 (maybe_print_line_1): Set print.printed to false instead of 0.
1184 (print_line_1): Likewise.
1185 (do_line_change): Set print.printed to true instead of 1.
1186 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1187 dump_macro): Set print.printed to false after printing newline.
1188
4250754e
JM
11892015-12-02 Jason Merrill <jason@redhat.com>
1190
f479b43d
JM
1191 * c-common.c (fold_for_warn): New.
1192 (warn_logical_operator, warn_tautological_cmp)
1193 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1194
4250754e
JM
1195 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1196 (c_fully_fold_internal, decl_constant_value_for_optimization):
1197 Move to c/c-fold.c.
1198 * c-common.h: Don't declare decl_constant_value_for_optimization.
1199
e9e32ee6
JM
12002015-12-02 Joseph Myers <joseph@codesourcery.com>
1201
1202 PR c/68162
1203 * c-common.h (c_build_qualified_type): Add extra default
1204 arguments.
1205
37d5ad46
JB
12062015-12-01 Julian Brown <julian@codesourcery.com>
1207 Cesar Philippidis <cesar@codesourcery.com>
1208 James Norris <James_Norris@mentor.com>
1209
1210 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1211 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1212 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1213
f07862c7
EB
12142015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1215
1216 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1217 (decl_sloc_common): Delete and move bulk of processing to...
1218 (decl_sloc): ...here.
1219 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1220 (dump_ada_double_name): Remove S parameter and compute the suffix.
1221 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1222 element type and deal with an anonymous one.
1223 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1224 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1225 and remove reference to QUAL_UNION_TYPE.
1226 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1227 (dump_nested_type): ...here. New function extracted from above.
1228 Generate a full declaration for anonymous element type of arrays.
1229 (print_ada_declaration): Really skip anonymous declarations. Remove
1230 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1231 Clean up processing of declarations of array types and objects.
1232 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1233 Remove obsolete code and tidy up.
1234
75c8aac3
JH
12352015-11-29 Jan Hubicka <hubicka@ucw.cz>
1236
1237 PR c/67581
1238 * c-common.c (handle_transparent_union_attribute): Update
1239 also type variants.
1240
b58d3df2
ML
12412015-11-27 Martin Liska <mliska@suse.cz>
1242
1243 PR c++/68312
1244 * array-notation-common.c (cilkplus_extract_an_triplets):
1245 Release vector of vectors.
1246 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1247
89a01fcf
EB
12482015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1249
1250 PR c++/68527
1251 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1252 (print_ada_struct_decl): Likewise.
1253
cc5c5226
IZ
12542015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1255
1256 PR c++/68001
1257 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1258 * cilk.c (recognize_spawn): Determine location in a more precise
1259 way.
1260
269adb9d
JM
12612015-11-19 Jason Merrill <jason@redhat.com>
1262
1263 * c-common.c (shorten_compare): But look through macros from
1264 system headers.
1265
d0eccfcd
JM
12662015-11-18 Jason Merrill <jason@redhat.com>
1267
1268 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1269 non-constant operand comes from a macro.
1270
3e44547c
JM
12712015-11-17 Jason Merrill <jason@redhat.com>
1272
1273 PR bootstrap/68346
1274 * c-common.c (warn_tautological_cmp): Fold before checking for
1275 constants.
1276
0f62c7a0
MP
12772015-11-16 Marek Polacek <polacek@redhat.com>
1278
1279 PR c++/68362
1280 * c-common.c (check_case_bounds): Fold low and high cases.
1281
a868811e
MP
12822015-11-16 Marek Polacek <polacek@redhat.com>
1283
1284 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1285 * c-common.c (c_common_get_alias_set): Likewise.
1286 (handle_visibility_attribute): Likewise.
1287
fff77217
KY
12882015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1289
1290 * c-common.c (handle_simd_attribute): New.
1291 (struct attribute_spec): Add entry for "simd".
1292 (handle_simd_attribute): New.
1293
269e63b7
KT
12942015-11-13 Kai Tietz <ktietz70@googlemail.com>
1295
1296 * c-lex.c (interpret_float): Use fold_convert.
1297
ebedc9a3
DM
12982015-11-13 David Malcolm <dmalcolm@redhat.com>
1299
1300 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1301 and store it on the result.
1302 * c-opts.c (c_common_init_options): Set
1303 global_dc->colorize_source_p.
1304
6e232ba4
JN
13052015-11-12 James Norris <jnorris@codesourcery.com>
1306 Joseph Myers <joseph@codesourcery.com>
1307
1308 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1309 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1310 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1311 PRAGMA_OACC_CLAUSE_LINK.
1312
e78bede6
MP
13132015-11-11 Marek Polacek <polacek@redhat.com>
1314
1315 PR c/68107
1316 PR c++/68266
1317 * c-common.c (valid_array_size_p): New function.
1318 * c-common.h (valid_array_size_p): Declare.
1319
3f8257db 13202015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1321
1322 PR bootstrap/68271
1323 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1324
69f293c9
AM
13252015-11-11 Andrew MacLeod <amacleod@redhat.com>
1326
1327 * array-notation-common.c: Remove unused header files.
1328 * c-ada-spec.c: Likewise.
1329 * c-cilkplus.c: Likewise.
1330 * c-common.c: Likewise.
1331 * c-cppbuiltin.c: Likewise.
1332 * c-dump.c: Likewise.
1333 * c-format.c: Likewise.
1334 * c-gimplify.c: Likewise.
1335 * c-indentation.c: Likewise.
1336 * c-lex.c: Likewise.
1337 * c-omp.c: Likewise.
1338 * c-opts.c: Likewise.
1339 * c-pch.c: Likewise.
1340 * c-ppoutput.c: Likewise.
1341 * c-pragma.c: Likewise.
1342 * c-pretty-print.c: Likewise.
1343 * c-semantics.c: Likewise.
1344 * c-ubsan.c: Likewise.
1345 * cilk.c: Likewise.
1346 * stub-objc.c: Likewise.
1347
3a40d81d
NS
13482015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1349 Cesar Philippidis <cesar@codesourcery.com>
1350 James Norris <jnorris@codesourcery.com>
1351 Julian Brown <julian@codesourcery.com>
1352 Nathan Sidwell <nathan@codesourcery.com>
1353
1354 * c-pragma.c (oacc_pragmas): Add "routine".
1355 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1356
ee45a32d
EB
13572015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1358
1359 * c-common.c (c_common_attributes): Add scalar_storage_order.
1360 (handle_scalar_storage_order_attribute): New function.
1361 * c-pragma.c (global_sso): New variable.
1362 (maybe_apply_pragma_scalar_storage_order): New function.
1363 (handle_pragma_scalar_storage_order): Likewise.
1364 (init_pragma): Register scalar_storage_order.
1365 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1366 * c.opt (Wscalar-storage-order): New warning.
1367 (fsso-struct=): New option.
1368
eb11eb15
MS
13692015-11-08 Martin Sebor <msebor@redhat.com>
1370
1371 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1372
0aad0198
RS
13732015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1374
1375 * c-common.c: Don't undef DEF_BUILTIN.
1376
8a645150
DM
13772015-11-06 David Malcolm <dmalcolm@redhat.com>
1378
1379 * c-common.c (c_cpp_error): Convert parameter from location_t to
1380 rich_location *. Eliminate the "column_override" parameter and
1381 the call to diagnostic_override_column.
1382 Update the "done_lexing" clause to set range 0
1383 on the rich_location, rather than overwriting a location_t.
1384 * c-common.h (c_cpp_error): Convert parameter from location_t to
1385 rich_location *. Eliminate the "column_override" parameter.
1386
7a5e4956
CP
13872015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1388 Thomas Schwinge <thomas@codesourcery.com>
1389 James Norris <jnorris@codesourcery.com>
1390
1391 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1392 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1393 clauses with parallel and kernels and loops.
1394 * c-pragma.h (enum pragma_omp_clause): Add entries for
1395 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1396 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1397 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1398 INDEPENDENT,SEQ}.
1399 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1400
e2f5cc96
MS
14012015-11-05 Martin Sebor <msebor@redhat.com>
1402
1403 PR c++/67942
1404 * c.opt (-Wplacement-new): New option.
1405
e01d41e5
JJ
14062015-11-05 Jakub Jelinek <jakub@redhat.com>
1407
1408 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1409 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1410 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1411 save_expr or create_tmp_var* if TEST is true.
1412 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1413 Don't call add_stmt here.
1414 (struct c_omp_check_loop_iv_data): New type.
1415 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1416 c_omp_check_loop_iv_exprs): New functions.
1417 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1418 distribute.
1419 (c_omp_declare_simd_clauses_to_numbers): Change
1420 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1421 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1422 from numbers to PARM_DECLs.
1423
595278be
MM
14242015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1425
1426 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1427 flag_checking.
1428
3f8257db 14292015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1430
1431 PR c++-common/67882
b3d5bc62
JJ
1432 * c-common.h (fold_offsetof_1): Add argument.
1433 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1434 offsetof expressions that reference elements past the end of
1435 an array.
1436
4bf9e5a8
TS
14372015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1438 Chung-Lin Tang <cltang@codesourcery.com>
1439
1440 * c-pragma.c (oacc_pragmas): Add "atomic".
1441 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1442
3b1661a9
ES
14432015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1444
1445 * c-common.c (handle_target_clones_attribute): New.
1446 (c_common_attribute_table): Add handle_target_clones_attribute.
1447 (handle_always_inline_attribute): Add check on target_clones attribute.
1448 (handle_target_attribute): Ditto.
1449
2adfab87
AM
14502015-10-29 Andrew MacLeod <amacleod@redhat.com>
1451
1452 * array-notation-common.c: Reorder #include's and remove duplicates.
1453 * c-ada-spec.c: Likewise.
1454 * c-cilkplus.c: Likewise.
1455 * c-common.c: Likewise.
1456 * c-cppbuiltin.c: Likewise.
1457 * c-dump.c: Likewise.
1458 * c-format.c: Likewise.
1459 * c-gimplify.c: Likewise.
1460 * c-indentation.c: Likewise.
1461 * c-lex.c: Likewise.
1462 * c-omp.c: Likewise.
1463 * c-opts.c: Likewise.
1464 * c-pch.c: Likewise.
1465 * c-ppoutput.c: Likewise.
1466 * c-pragma.c: Likewise.
1467 * c-pretty-print.c: Likewise.
1468 * c-semantics.c: Likewise.
1469 * c-ubsan.c: Likewise.
1470 * cilk.c: Likewise.
1471 * stub-objc.c: Likewise.
1472
d90ec4f2
JM
14732015-10-28 Jason Merrill <jason@redhat.com>
1474
1475 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1476
88bae6f4
TS
14772015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1478 James Norris <jnorris@codesourcery.com>
1479 Cesar Philippidis <cesar@codesourcery.com>
1480
1481 PR c/64765
1482 PR c/64880
1483 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1484 * c-omp.c (c_oacc_split_loop_clauses): New function.
1485
b1726d6c
MS
14862015-10-21 Martin Sebor <msebor@redhat.com>
1487
1488 PR driver/68043
1489 * c.opt: End each sentence that describes an option with a period.
1490
fa60eeb9
MP
14912015-10-20 Marek Polacek <polacek@redhat.com>
1492
1493 * array-notation-common.c (is_cilkplus_vector_p): Define.
1494 * c-common.h (is_cilkplus_vector_p): Declare.
1495
95979049
MP
14962015-10-20 Marek Polacek <polacek@redhat.com>
1497
1498 * c.opt (std=gnu++11): Do not describe as experimental.
1499 (std=gnu++14): Likewise.
1500
2a9fb712
JM
15012015-10-19 Jason Merrill <jason@redhat.com>
1502
1503 * c-cppbuiltin.c (c_cpp_builtins): Define
1504 __cpp_nontype_template_args.
1505
13b380a3
JM
15062015-10-19 Jason Merrill <jason@redhat.com>
1507
1508 * c-cppbuiltin.c (c_cpp_builtins): Define
1509 __cpp_enumerator_attributes, __cpp_fold_expressions,
1510 __cpp_unicode_characters.
1511
d9a6bd32
JJ
15122015-10-13 Jakub Jelinek <jakub@redhat.com>
1513 Aldy Hernandez <aldyh@redhat.com>
1514
1515 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1516 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1517 (c_define_builtins): Likewise.
1518 * c-common.h (enum c_omp_clause_split): Add
1519 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1520 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1521 (c_finish_omp_for): Add ORIG_DECLV argument.
1522 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1523 201511 instead of 201307.
1524 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1525 OMP_CRITICAL_CLAUSES to it.
1526 (c_finish_omp_ordered): Add CLAUSES argument, set
1527 OMP_ORDERED_CLAUSES to it.
1528 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1529 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1530 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1531 constructs and new OpenMP 4.5 clauses. Clear
1532 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1533 verification code.
1534 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1535 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1536 (enum pragma_omp_clause): Add
1537 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1538 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1539
624d31fe
RS
15402015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1541
1542 * c-lex.c (interpret_float): Use real_equal instead of
1543 REAL_VALUES_EQUAL.
1544
b8fd7909
JM
15452015-10-04 Jason Merrill <jason@redhat.com>
1546
1547 Implement N4514, C++ Extensions for Transactional Memory.
1548 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1549 (c_common_attribute_table): Add transaction_safe_dynamic.
1550 transaction_safe now affects type identity.
1551 (handle_tm_attribute): Handle transaction_safe_dynamic.
1552 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1553 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1554 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1555 (D_TRANSMEM): New.
1556 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1557 * c-pretty-print.c (pp_c_attributes_display): Don't print
1558 transaction_safe in C++.
1559
12651878
MP
15602015-10-02 Marek Polacek <polacek@redhat.com>
1561
1562 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1563
3e3b8d63
MP
15642015-10-02 Marek Polacek <polacek@redhat.com>
1565
1566 PR c/64249
1567 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1568 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1569 * c.opt (Wduplicated-cond): New option.
1570
0d1a8f75
JM
15712015-10-01 Joseph Myers <joseph@codesourcery.com>
1572
1573 * c.opt (std=c11): Do not describe as experimental.
1574 (std=gnu11): Likewise.
1575 (std=iso9899:2011): Likewise.
1576
3e32ee19
NS
15772015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1578
1579 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1580 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1581
974348ee
MP
15822015-09-25 Marek Polacek <polacek@redhat.com>
1583
1584 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1585 (ubsan_instrument_shift): Likewise.
1586
15dbc1a6
MP
15872015-09-25 Marek Polacek <polacek@redhat.com>
1588
1589 PR sanitizer/64906
1590 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1591
6b95d7cc
PP
15922015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1593
1594 * c-indentation.c (should_warn_for_misleading_indentation):
1595 Compare next_stmt_vis_column with guard_line_first_nws instead
1596 of with guard_line_vis_column.
1597
c1822f9c
MLI
15982015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1599
1600 PR c/49654
1601 PR c/49655
1602 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1603 options and options not valid for the current language.
1604
d5398058
PP
16052015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1606
1607 * c-indentation.c (should_warn_for_misleading_indentation):
1608 Float out and consolidate the calls to get_visual_column that
1609 are passed guard_exploc as an argument. Compare
1610 next_stmt_vis_column with guard_line_first_nws instead of with
1611 body_line_first_nws.
1612
6b333269
NS
16132015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1614
1615 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1616 Wnamespaces): New C++ warnings.
1617
a75f1574
JM
16182015-09-22 Jason Merrill <jason@redhat.com>
1619
1620 * c-common.h (abi_compat_version_crosses): New.
1621 (warn_abi_version): Declare.
1622 * c-common.c: Define it.
1623 * c-opts.c (c_common_post_options): Handle it.
1624 flag_abi_compat_version defaults to 8.
1625
bdaaa8b7
VV
16262015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1627
1628 Complete the implementation of N4230, Nested namespace definition.
1629 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1630 __cpp_nested_namespace_definitions.
1631
eaa797e8
MLI
16322015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1633
1634 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1635
c4914de6
MLI
16362015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1637
1638 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1639 when warning.
1640 * c-pragma.h (pragma_lex): Add optional loc argument.
1641
fcb87c50
MM
16422015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1643
1644 * c-format.c (check_format_arg): Adjust to use common block size in all
1645 object pools.
1646
31bdd08a
DM
16472015-09-15 David Malcolm <dmalcolm@redhat.com>
1648
1649 * c-format.c (location_from_offset): Update for change in
1650 signature of location_get_source_line.
1651 * c-indentation.c (get_visual_column): Likewise.
1652 (line_contains_hash_if): Likewise.
1653
aa9f4b4c
MP
16542015-09-14 Marek Polacek <polacek@redhat.com>
1655
1656 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1657 setting various warnings.
1658
aa256c4a
MP
16592015-09-14 Marek Polacek <polacek@redhat.com>
1660
1661 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1662 a negative value.
1663
0f876f22
MW
16642015-09-11 Mark Wielaard <mjw@redhat.com>
1665
1666 PR c/28901
1667 * c.opt (Wunused-variable): Option from common.opt.
1668 (Wunused-const-variable): New option.
1669
273aa49e
PC
16702015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1671
1672 PR c++/53184
1673 * c.opt ([Wsubobject-linkage]): Add.
1674
1807ffc1
MS
16752015-09-03 Martin Sebor <msebor@redhat.com>
1676
1677 PR c/66516
1678 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1679 functions.
1680 * c-common.c (reject_gcc_builtin): Define.
1681
38942840
BI
16822015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1683
1684 PR middle-end/60586
1685 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1686 prototype.
1687 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1688 cilk_gimplify_call_params_in_spawned_fn.
1689 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1690 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1691 unwrapping.
1692
c316b5e4
MP
16932015-08-25 Marek Polacek <polacek@redhat.com>
1694
1695 PR middle-end/67330
1696 * c-common.c (handle_weak_attribute): Don't check whether the
1697 visibility can be changed here.
1698
584a7c46
MLI
16992015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1700
1701 * c-lex.c (c_lex_with_flags): Use explicit locations.
1702
a79683d5
TS
17032015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1704
1705 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1706 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1707
61717a45
FXC
17082015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1709
1710 PR middle-end/36757
1711 * c-common.c (check_builtin_function_arguments): Add check
1712 for BUILT_IN_SIGNBIT argument.
1713
329524f5
PC
17142015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1715
1716 PR c++/67160
1717 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1718 in c++1z mode.
1719
4ee55665
MP
17202015-08-17 Marek Polacek <polacek@redhat.com>
1721
1722 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1723 with whitespaces before qualifier names.
1724
b893e375
MP
17252015-08-12 Marek Polacek <polacek@redhat.com>
1726
1727 PR c++/55095
1728 * c-common.c (maybe_warn_shift_overflow): Properly handle
1729 left-shifting 1 into the sign bit.
1730
c2d89095
MLI
17312015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1732
1733 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1734
971e17ff
AS
17352015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1736 Braden Obrzut <admin@maniacsvault.net>
1737 Jason Merrill <jason@redhat.com>
1738
1739 Add C++ Concepts TS support.
1740 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1741 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1742 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1743 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1744 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1745 * c.opt (fconcepts): New.
1746
b3d5bc62
JJ
17472015-08-02 Martin Sebor <msebor@redhat.com>
1748
1749 * c.opt (-Wframe-address): New warning option.
1750
8ebca419
PP
17512015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1752
1753 * c-indentation.c (should_warn_for_misleading_indentation):
1754 Improve heuristics.
1755
1a1e101f
PP
17562015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1757
1758 * c-indentation.c (get_visual_column): Add parameter first_nws,
1759 use it. Update comment documenting the function.
1760 (is_first_nonwhitespace_on_line): Remove.
1761 (should_warn_for_misleading_indentation): Replace usage of
1762 of is_first_nonwhitespace_on_line with get_visual_column.
1763
992118a1
PP
17642015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1765
1766 * c-indentation.h (struct token_indent_info): Define.
1767 (get_token_indent_info): Define.
1768 (warn_for_misleading_information): Declare.
1769 * c-common.h (warn_for_misleading_information): Remove.
1770 * c-identation.c (warn_for_misleading_indentation):
1771 Change declaration to take three token_indent_infos. Adjust
1772 accordingly.
1773 * c-identation.c (should_warn_for_misleading_indentation):
1774 Likewise. Bail out early if the body is a compound statement.
1775 (guard_tinfo_to_string): Define.
1776
e8fa3817
JM
17772015-07-30 Jason Merrill <jason@redhat.com>
1778
1779 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1780 '*' for reference decay.
1781
173864e8
MP
17822015-07-30 Marek Polacek <polacek@redhat.com>
1783
1784 * c-common.c (warn_tautological_cmp): Bail for float types.
1785
f2afe6dd
MP
17862015-07-27 Marek Polacek <polacek@redhat.com>
1787
1788 PR bootstrap/67030
1789 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1790
05b28fd6
MP
17912015-07-27 Marek Polacek <polacek@redhat.com>
1792
1793 PR c++/66555
1794 PR c/54979
1795 * c-common.c (find_array_ref_with_const_idx_r): New function.
1796 (warn_tautological_cmp): New function.
1797 * c-common.h (warn_tautological_cmp): Declare.
1798 * c.opt (Wtautological-compare): New option.
1799
5a5062b8
MP
18002015-07-23 Marek Polacek <polacek@redhat.com>
1801
1802 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1803 (ubsan_instrument_shift): Likewise.
1804
dc891fe7
MP
18052015-07-23 Marek Polacek <polacek@redhat.com>
1806
1807 PR sanitizer/66908
1808 * c-ubsan.c: Include gimplify.h.
1809 (ubsan_instrument_division): Unshare OP0 and OP1.
1810 (ubsan_instrument_shift): Likewise.
1811
451b5e48
MP
18122015-07-20 Marek Polacek <polacek@redhat.com>
1813 Richard Sandiford <richard.sandiford@arm.com>
1814
1815 PR c++/55095
1816 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1817 Use EXPR_LOC_OR_LOC.
1818 (maybe_warn_shift_overflow): New function.
1819 * c-common.h (maybe_warn_shift_overflow): Declare.
1820 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1821 * c.opt (Wshift-overflow): New option.
1822
fb0b2914
ML
18232015-07-16 Martin Liska <mliska@suse.cz>
1824
1825 * c-format.c (static void check_format_info_main): Use
1826 object_allocator instead of pool_allocator.
1827 (check_format_arg): Likewise.
1828 (check_format_info_main): Likewise.
1829
903f5c23
AM
18302015-07-15 Andrew MacLeod <amacleod@redhat.com>
1831
1832 * c-opts.c: Remove multiline #include comment.
1833
026c3cfd
AH
18342015-07-12 Aldy Hernandez <aldyh@redhat.com>
1835
1836 * c-common.c: Fix double word typos.
1837
bb49ee66
EB
18382015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1839
1840 * c-ada-spec.h (cpp_operation): Revert latest change.
1841 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1842 constructors and destructors.
1843
1916bcb5
AM
18442015-07-09 Andrew MacLeod <amacleod@redhat.com>
1845
1846 * c-common.h: Adjust includes for flags.h changes.
1847 * stub-objc.c: Likewise.
026c3cfd 1848
a9dcd529
EB
18492015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1850
1851 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1852 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1853
b03b462f
JJ
18542015-07-08 Jakub Jelinek <jakub@redhat.com>
1855
1856 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1857 are to be removed, return NULL rather than original clauses list.
1858
c7131fb2
AM
18592015-07-07 Andrew MacLeod <amacleod@redhat.com>
1860
1861 * array-notation-common.c: Adjust includes.
1862 * c-ada-spec.c: Likewise.
1863 * c-cilkplus.c: Likewise.
1864 * c-common.h: Likewise.
1865 * c-cppbuiltin.c: Likewise.
1866 * c-dump.c: Likewise.
1867 * c-format.c: Likewise.
1868 * c-gimplify.c: Likewise.
1869 * c-indentation.c: Likewise.
1870 * c-lex.c: Likewise.
1871 * c-omp.c: Likewise.
1872 * c-opts.c: Likewise.
1873 * c-pch.c: Likewise.
1874 * c-ppoutput.c: Likewise.
1875 * c-pragma.c: Likewise.
1876 * c-pretty-print.c: Likewise.
1877 * c-semantics.c: Likewise.
1878 * c-ubsan.c: Likewise.
1879 * cilk.c: Likewise.
1880 * stub-objc.c: Likewise.
1881
2a7fb83f
EB
18822015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1883
1884 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1885 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1886
a03c9bf1
JM
18872015-07-01 Jason Merrill <jason@redhat.com>
1888
36a85135
JM
1889 * c-common.h (D_CXX11): Rename from D_CXX0X.
1890 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1891 * c-common.c: Adjust.
1892
e7fa68d5
JM
1893 * c-opts.c (c_common_post_options): Default to C++14.
1894
a03c9bf1
JM
1895 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1896
fe95b036
ESR
18972015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1898
1899 Implement N4197 - Adding u8 character literals
b3d5bc62 1900 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1901 CPP_CHAR.
b3d5bc62 1902 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1903 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1904 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1905 and CPP_UTF8CHAR tokens.
1906 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1907
da2e71c9
MLI
19082015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1909
1910 PR fortran/66605
1911 * c-common.c (do_warn_unused_parameter): Move here.
1912 * c-common.h (do_warn_unused_parameter): Declare.
1913
b155cfd9
MP
19142015-06-29 Marek Polacek <polacek@redhat.com>
1915
1916 PR c/66322
1917 * c-common.c (check_case_bounds): Add bool * parameter. Set
1918 OUTSIDE_RANGE_P.
1919 (c_add_case_label): Add bool * parameter. Pass it down to
1920 check_case_bounds.
1921 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1922 warning here.
1923 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1924 declarations.
1925
31521951
MP
19262015-06-27 Marek Polacek <polacek@redhat.com>
1927
1928 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1929 or VECTOR_INTEGER_TYPE_P throughout.
1930 * c-gimplify.c: Likewise.
1931
22d03525
MP
19322015-06-26 Marek Polacek <polacek@redhat.com>
1933
1934 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1935 * c-common.c (c_fully_fold_internal): Likewise.
1936 (c_alignof_expr): Likewise.
1937 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1938 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1939 * cilk.c (create_parm_list): Likewise.
22d03525 1940
af05e6e5
MP
19412015-06-26 Marek Polacek <polacek@redhat.com>
1942
1943 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1944
f0889939
AM
19452015-06-25 Andrew MacLeod <amacleod@redhat.com>
1946
1947 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1948 * c-gimplify.c: Likewise.
1949 * c-pragma.c: Likewise.
1950 * c-ubsan.c: Likewise.
1951 * cilk.c: Likewise.
1952
ca752f39
RS
19532015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1954
1955 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1956 ggc_hasher.
1957
16a16ec7
AM
19582015-06-25 Andrew MacLeod <amacleod@redhat.com>
1959
1960 * cilk.c: Move calls.h after tm.h in the include chain.
1961
0ae9bd27
MP
19622015-06-25 Marek Polacek <polacek@redhat.com>
1963
1964 * array-notation-common.c: Use VAR_P throughout.
1965 * c-ada-spec.c: Likewise.
1966 * c-common.c: Likewise.
1967 * c-format.c: Likewise.
1968 * c-gimplify.c: Likewise.
1969 * c-omp.c: Likewise.
1970 * c-pragma.c: Likewise.
1971 * c-pretty-print.c: Likewise.
1972 * cilk.c: Likewise.
1973
62f9079a
MP
19742015-06-25 Marek Polacek <polacek@redhat.com>
1975
1976 * cilk.c (extract_free_variables): Use is_global_var.
1977
0fa16060
RS
19782015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1979
1980 * c-common.c: Don't include target-def.h.
1981
a68ae2e1
MP
19822015-06-23 Marek Polacek <polacek@redhat.com>
1983
1984 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1985 when comparing INTEGER_CSTs.
1986
c6a2f2d9
PMR
19872015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1988
1989 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1990 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1991 (dump_ada_template): Skip partially specialized types.
1992
6b4db501
MM
19932015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1994
1995 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1996 swapping.
1997
abb226c9
AM
19982015-06-17 Andrew MacLeod <amacleod@redhat.com>
1999
2000 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2001 * c-ada-spec.c: Likewise.
2002 * c-cilkplus.c: Likewise.
2003 * c-common.c: Likewise.
2004 * c-common.h: Likewise.
2005 * c-cppbuiltin.c: Likewise.
2006 * c-dump.c: Likewise.
2007 * c-format.c: Likewise.
2008 * c-gimplify.c: Likewise.
2009 * c-indentation.c: Likewise.
2010 * c-lex.c: Likewise.
2011 * c-omp.c: Likewise.
2012 * c-opts.c: Likewise.
2013 * c-pch.c: Likewise.
2014 * c-ppoutput.c: Likewise.
2015 * c-pragma.c: Likewise.
2016 * c-pretty-print.c: Likewise.
2017 * c-semantics.c: Likewise.
2018 * c-ubsan.c: Likewise.
2019 * cilk.c: Likewise.
2020 * stub-objc.c: Likewise.
2021
076fecad
PP
20222015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2023
2024 PR c++/65168
2025 * c-common.c (c_common_truthvalue_conversion): Warn when
2026 converting an address of a reference to a truth value.
2027
13fdf2e2
AM
20282015-06-08 Andrew MacLeod <amacleod@redhat.com>
2029
2030 * array-notation-common.c : Adjust include files.
2031 * c-ada-spec.c : Likewise.
2032 * c-cilkplus.c : Likewise.
2033 * c-common.c : Likewise.
2034 * c-common.h : Likewise.
2035 * c-cppbuiltin.c : Likewise.
2036 * c-dump.c : Likewise.
2037 * c-format.c : Likewise.
2038 * c-gimplify.c : Likewise.
2039 * c-indentation.c : Likewise.
2040 * c-lex.c : Likewise.
2041 * c-omp.c : Likewise.
2042 * c-opts.c : Likewise.
2043 * c-pch.c : Likewise.
2044 * c-ppoutput.c : Likewise.
2045 * c-pragma.c : Likewise.
2046 * c-pretty-print.c : Likewise.
2047 * c-semantics.c : Likewise.
2048 * c-ubsan.c : Likewise.
2049 * cilk.c : Likewise.
2050 * stub-objc.c : Likewise.
2051
a1661b90
MP
20522015-06-08 Marek Polacek <polacek@redhat.com>
2053
2054 PR c/66415
2055 * c-format.c (location_from_offset): Return LOC if LINE is null.
2056
d7438551
AH
20572015-06-05 Aldy Hernandez <aldyh@redhat.com>
2058
2059 * c-common.h (c_parse_final_cleanups): New prototype.
2060 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2061
b3d5bc62
JJ
20622015-06-04 Sriraman Tallam <tmsriram@google.com>
2063
2064 * c-common.c (noplt): New attribute.
2065 (handle_noplt_attribute): New handler.
2066
ecb9f223
AM
20672015-06-04 Andrew MacLeod <amacleod@redhat.com>
2068
2069 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2070 * c-ada-spec.c: Likewise.
2071 * c-cilkplus.c: Likewise.
2072 * c-common.c: Likewise.
2073 * c-common.h: Likewise.
2074 * c-cppbuiltin.c: Likewise.
2075 * c-dump.c: Likewise.
2076 * c-format.c: Likewise.
2077 * c-gimplify.c: Likewise.
2078 * c-indentation.c: Likewise.
2079 * c-lex.c: Likewise.
2080 * c-omp.c: Likewise.
2081 * c-opts.c: Likewise.
2082 * c-pch.c: Likewise.
2083 * c-ppoutput.c: Likewise.
2084 * c-pragma.c: Likewise.
2085 * c-pretty-print.c: Likewise.
2086 * c-semantics.c: Likewise.
2087 * c-ubsan.c: Likewise.
2088 * cilk.c: Likewise.
2089 * stub-objc.c: Likewise.
2090
6ac48155
DM
20912015-06-02 David Malcolm <dmalcolm@redhat.com>
2092
2093 PR c/66220:
2094 * c-indentation.c (should_warn_for_misleading_indentation): Use
2095 expand_location rather than expand_location_to_spelling_point.
2096 Don't warn if the guarding statement is more indented than the
2097 next/body stmts.
2098
773ce42e
DM
20992015-06-02 David Malcolm <dmalcolm@redhat.com>
2100
2101 * c-indentation.c (warn_for_misleading_indentation): Bail out
2102 immediately if -Wmisleading-indentation isn't enabled.
2103
4fef8379
ML
21042015-06-01 Martin Liska <mliska@suse.cz>
2105
2106 * c-format.c (check_format_arg):Use new type-based pool allocator.
2107 (check_format_info_main) Likewise.
2108
1edfb384
EB
21092015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2110
2111 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2112 (has_nontrivial_methods): Likewise.
2113
9677ef52
MP
21142015-05-25 Marek Polacek <polacek@redhat.com>
2115
2116 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2117
fd5c817a
MP
21182015-05-22 Marek Polacek <polacek@redhat.com>
2119
2120 PR c/47043
2121 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2122
a2f45fe6 21232015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2124
2125 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2126 STACK_GROWS_DOWNWARD.
2127
a2f45fe6 21282015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2129
2130 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2131 STACK_GROWS_DOWNWARD rather than if it is defined.
2132
0fee2ac2 21332015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2134
0fee2ac2
MLI
2135 PR c/52952
2136 * c-format.c (location_column_from_byte_offset): New.
2137 (location_from_offset): New.
2138 (struct format_wanted_type): Add offset_loc field.
2139 (check_format_info): Move handling of location for extra arguments
2140 closer to the point of warning.
2141 (check_format_info_main): Pass the result of location_from_offset
2142 to warning_at.
2143 (format_type_warning): Pass the result of location_from_offset
2144 to warning_at.
2145
cf4ef6f7
MP
21462015-05-20 Marek Polacek <polacek@redhat.com>
2147
2148 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2149
3a65ee74
MP
21502015-05-20 Marek Polacek <polacek@redhat.com>
2151
2152 * c-ada-spec.c (dump_sloc): Use DECL_P.
2153
21b634ae
MP
21542015-05-20 Marek Polacek <polacek@redhat.com>
2155
2156 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2157 * c-common.c: Likewise.
2158
0e50b624
DM
21592015-05-19 David Malcolm <dmalcolm@redhat.com>
2160
2161 * c-common.h (fe_file_change): Strengthen param from
2162 const line_map * to const line_map_ordinary *.
2163 (pp_file_change): Likewise.
2164 * c-lex.c (fe_file_change): Likewise.
2165 (cb_define): Use linemap_check_ordinary when invoking
2166 SOURCE_LINE.
2167 (cb_undef): Likewise.
2168 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2169 invoking cb_file_change.
2170 (c_finish_options): Likewise.
2171 (push_command_line_include): Likewise.
2172 (cb_file_change): Strengthen param "new_map" from
2173 const line_map * to const line_map_ordinary *.
2174 * c-ppoutput.c (cb_define): Likewise for local "map".
2175 (pp_file_change): Likewise for param "map" and local "from".
2176
fab27f52
MM
21772015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2178
2179 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2180
2fe1d762
TV
21812015-05-18 Tom de Vries <tom@codesourcery.com>
2182
2183 * c-common.c (build_va_arg_1): New function.
2184 (build_va_arg): Add address operator to va_list operand if necessary.
2185
7a37fa90
MM
21862015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2187
2188 PR c/48956
2189 * c-common.c (int_safely_convertible_to_real_p): Define.
2190 (unsafe_conversion_p): Check conversions involving complex types.
2191 (conversion_warning): Add new warning message for conversions which
2192 discard imaginary component.
2193 * c-common.h: (enum conversion_safety): Add new enumerator for such
2194 conversions.
2195
3aa3c9fc
MP
21962015-05-14 Marek Polacek <polacek@redhat.com>
2197
2198 PR c/66066
2199 PR c/66127
2200 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2201 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2202 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2203 use it. If FOR_INT_CONST, require that all evaluated operands be
2204 INTEGER_CSTs.
2205
c3388e62
DM
22062015-05-12 David Malcolm <dmalcolm@redhat.com>
2207
2208 * c-common.h (warn_for_misleading_indentation): New prototype.
2209 * c-indentation.c: New file.
2210 * c.opt (Wmisleading-indentation): New option.
2211
c7b38fd5
TV
22122015-05-12 Tom de Vries <tom@codesourcery.com>
2213
2214 PR tree-optimization/66010
2215 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2216
381bf11e
JM
22172015-05-09 Jason Merrill <jason@redhat.com>
2218
edff0c06
JM
2219 * c-opts.c (c_common_post_options): Also clear
2220 cpp_opts->cpp_warn_cxx11_compat.
2221
129211bc
JM
2222 * c-common.h (enum cxx_dialect): Add cxx_unset.
2223 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2224 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2225
381bf11e
JM
2226 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2227 (std=gnu++0x): Mark as Undocumented.
2228 (std=gnu++1y): Add deprecated message.
2229
fe191308
JM
22302015-05-08 Jason Merrill <jason@redhat.com>
2231
765189ff
JM
2232 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2233 * c-opts.c: Adjust.
2234
fe191308
JM
2235 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2236
755e528f
MP
22372015-05-08 Marek Polacek <polacek@redhat.com>
2238
2239 PR c/64918
2240 * c.opt (Woverride-init-side-effects): New option.
2241
0173bd2a
MP
22422015-05-07 Marek Polacek <polacek@redhat.com>
2243
2244 PR c/65179
2245 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2246 negative value.
2247 * c.opt (Wshift-negative-value): New option.
2248 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2249 when -Wextra and C99/C++11 mode.
2250
e0f0d3b9
MP
22512015-05-07 Marek Polacek <polacek@redhat.com>
2252 Martin Uecker <uecker@eecs.berkeley.edu>
2253
2254 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2255 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2256
8243e2a9
JM
22572015-05-05 Jason Merrill <jason@redhat.com>
2258
2259 * c.opt (Wterminate): New.
2260
577cd070
MP
22612015-04-30 Marek Polacek <polacek@redhat.com>
2262
2263 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2264 require that the non-constant be of a boolean type.
2265
0373796b
JT
22662015-04-29 Josh Triplett <josh@joshtriplett.org>
2267
e0f0d3b9
MP
2268 * c-common.c (handle_section_attribute): Refactor to reduce
2269 nesting and distinguish between error cases.
0373796b 2270
716c0ba6
MP
22712015-04-29 Marek Polacek <polacek@redhat.com>
2272
2273 PR c/64610
2274 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2275 with 0/1.
2276
8848828b
JJ
22772015-04-29 Jakub Jelinek <jakub@redhat.com>
2278
2279 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2280 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2281 HOST_BITS_PER_WIDE_INT.
2282
ecd0e562
TV
22832015-04-28 Tom de Vries <tom@codesourcery.com>
2284
2285 PR tree-optimization/65887
2286 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2287
2a877204 22882015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2289 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2290
2291 * c-ada-spec.c (in_function): Delete.
2292 (dump_generic_ada_node): Do not change in_function and remove the
2293 redundant code dealing with it.
2294 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2295 (print_ada_methods): Output the static member functions in a nested
2296 package after the regular methods as well as associated renamings.
2297
4853031e
MP
22982015-04-24 Marek Polacek <polacek@redhat.com>
2299
2300 PR c/65830
2301 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2302 and OPT_Wshift_count_overflow.
2303
8c2b7f79
MP
2304 PR c/63357
2305 * c-common.c (warn_logical_operator): Warn if the operands have the
2306 same expressions.
2307
b8787813
MP
23082015-04-24 Marek Polacek <polacek@redhat.com>
2309
2310 PR c/61534
2311 * c-common.c (warn_logical_operator): Bail if either operand comes
2312 from a macro expansion.
2313
8fba1830
BRF
23142015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2315
2316 PR target/55143
2317 * c-common.c (c_default_pointer_mode): Add definition.
2318 * c-common.h (c_default_pointer_mode): Add declaration.
2319
17958621
JJ
23202015-03-11 Jakub Jelinek <jakub@redhat.com>
2321
2322 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2323 on record_builtin_type argument.
2324
7ccb1a11
JJ
23252015-03-10 Jakub Jelinek <jakub@redhat.com>
2326
2327 PR c/65120
2328 * c-common.c (warn_logical_not_parentheses): Don't warn for
2329 !x == 0 or !x != 0.
2330
04fd785e
MP
23312015-03-07 Marek Polacek <polacek@redhat.com>
2332
2333 PR sanitizer/65280
2334 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2335 before trying to figure out whether we have a flexible array member.
2336
a4e26206
EB
23372015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2338 Jonathan Wakely <jwakely.gcc@gmail.com>
2339
2340 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2341
0d2489f4
EB
23422015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2343
2344 PR ada/65319
2345 * c-ada-spec.c (print_destructor): Remove obsolete code.
2346
83ed54d7
EB
23472015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2348
2349 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2350 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2351 DECL_TEMPLATE_RESULT emulations.
2352 (dump_ada_template)): Add guard for TYPE_METHODS.
2353
7631f0e2
MP
23542015-02-27 Marek Polacek <polacek@redhat.com>
2355
2356 PR c/65040
2357 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2358
d1783ae5
KT
23592015-02-27 Kai Tietz <ktietz@redhat.com>
2360
2361 PR c/35330
2362 * c-pragma.c (handle_pragma_weak): Do not try to create
2363 weak/alias of declarations not being function, or variable
2364 declarations.
2365
56a9f6bc
TS
23662015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2367
2368 PR libgomp/64625
2369 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2370 Remove macros.
2371 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2372
3d5cb23d
MP
23732015-02-16 Marek Polacek <polacek@redhat.com>
2374
2375 PR c/65066
2376 * c-format.c (check_format_types): Handle null param.
2377
fa008882
MP
23782015-02-13 Marek Polacek <polacek@redhat.com>
2379
2380 PR c/65040
2381 * c-format.c (check_format_types): Don't warn about different
2382 signedness if the original value is in the range of WANTED_TYPE.
2383
785f21af
JM
23842015-02-12 Jason Merrill <jason@redhat.com>
2385
2386 PR c++/64956
2387 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2388 to the current highest version.
2389 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2390
4886ec8e
JJ
23912015-02-04 Jakub Jelinek <jakub@redhat.com>
2392
2393 PR c/64824
2394 PR c/64868
2395 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2396 instead of RDIV_EXPR. Use build_binary_op instead of
2397 build2_loc.
2398
40fecdd6
JM
23992015-01-30 Joseph Myers <joseph@codesourcery.com>
2400
2401 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2402 to pass input_location as first argument.
2403
a0c88d06
TV
24042015-01-23 Tom de Vries <tom@codesourcery.com>
2405
2406 PR libgomp/64672
2407 * c.opt (fopenacc): Mark as LTO option.
2408
1506ae0e
TV
24092015-01-23 Tom de Vries <tom@codesourcery.com>
2410
2411 PR libgomp/64707
2412 * c.opt (fopenmp): Mark as LTO option.
2413
31be63ab
JJ
24142015-01-21 Jakub Jelinek <jakub@redhat.com>
2415
2416 PR c/63307
b1726d6c 2417 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2418 (compare_decls): Fix up formatting.
2419
24202015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2421
2422 PR c/63307
2423 * cilk.c: Include vec.h.
2424 (struct cilk_decls): New structure.
2425 (wrapper_parm_cb): Split this function to...
2426 (fill_decls_vec): ...this...
2427 (create_parm_list): ...and this.
2428 (compare_decls): New function.
2429 (for_local_cb): Remove.
2430 (wrapper_local_cb): Ditto.
2431 (build_wrapper_type): For now first traverse and fill vector of
2432 declarations then sort it and then deal with sorted vector.
2433 (cilk_outline): Ditto.
2434 (declare_one_free_variable): Ditto.
2435
6875457f
JM
24362015-01-21 Jason Merrill <jason@redhat.com>
2437
2438 PR c++/64629
2439 * c-format.c (check_format_arg): Call decl_constant_value.
2440
185c9e56
ML
24412015-01-19 Martin Liska <mliska@suse.cz>
2442
2443 * c-common.c (handle_noicf_attribute): New function.
2444
41dbbb37
TS
24452015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2446 Bernd Schmidt <bernds@codesourcery.com>
2447 James Norris <jnorris@codesourcery.com>
2448 Cesar Philippidis <cesar@codesourcery.com>
2449 Ilmir Usmanov <i.usmanov@samsung.com>
2450 Jakub Jelinek <jakub@redhat.com>
2451
2452 * c.opt (fopenacc): New option.
2453 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2454 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2455 New macros.
2456 * c-common.h (c_finish_oacc_wait): New prototype.
2457 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2458 (c_finish_oacc_wait): New function.
2459 * c-pragma.c (oacc_pragmas): New variable.
2460 (c_pp_lookup_pragma, init_pragma): Handle it.
2461 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2462 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2463 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2464 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2465 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2466 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2467 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2468 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2469 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2470 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2471 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2472 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2473 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2474 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2475 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2476 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2477 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2478 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2479 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2480 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2481 PRAGMA_OACC_CLAUSE_WORKER.
2482
3f8257db 24832015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2484
2485 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2486 for the new option fstack-protector_explicit.
2487 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2488 (handle_stack_protect_attribute): New function.
2489
3f8257db 24902015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2491
2492 * c.opt: New option -Warray-bounds=.
2493
adfac8df
JJ
24942015-01-09 Michael Collison <michael.collison@linaro.org>
2495
2496 * array-notation-common.c: Include hash-set.h, machmode.h,
2497 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2498 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2499 * c-ada-spec.c: Ditto.
2500 * c-cilkplus.c: Ditto.
2501 * c-common.c: Include input.h due to flattening of tree.h.
2502 Define macro GCC_C_COMMON_C.
2503 * c-common.h: Flatten tree.h header files into c-common.h.
2504 Remove include of tree-core.h.
2505 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2506 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2507 fold-const.h, wide-int.h, and inchash.h due to
2508 flattening of tree.h.
2509 * c-dump.c: Ditto.
2510 * c-format.c: Flatten tree.h header files into c-common.h.
2511 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2512 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2513 fold-const.h, wide-int.h, and inchash.h due to
2514 flattening of tree.h.
2515 * c-dump.c: Include hash-set.h, machmode.h,
2516 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2517 fold-const.h, wide-int.h, and inchash.h due to
2518 flattening of tree.h.
2519 * c-format.c: Include hash-set.h, machmode.h,
2520 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2521 fold-const.h, wide-int.h, inchash.h and real.h due to
2522 flattening of tree.h.
2523 * c-gimplify.c: Include hash-set.h, machmode.h,
2524 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2525 fold-const.h, wide-int.h, and inchash.h due to
2526 flattening of tree.h.
2527 * cilk.c: Ditto.
2528 * c-lex.c: Ditto.
2529 * c-omp.c: Ditto.
2530 * c-opts.c: Ditto.
2531 * c-pch.c: Ditto.
2532 * c-ppoutput.c: Ditto.
2533 * c-pragma.c: Ditto.
2534 * c-pretty-print.c: Ditto.
2535 * c-semantics.c: Ditto.
2536 * c-ubsan.c: Ditto.
2537 * stub-objc.c: Ditto.
2538
f5481fc4
JM
25392015-01-08 Jason Merrill <jason@redhat.com>
2540
2541 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2542 do_ubsan_in_current_function.
2543 (ubsan_maybe_instrument_reference_or_call): Likewise.
2544 * c-ubsan.h: Declare it.
2545
de35aa66
MS
25462015-01-08 Mike Stump <mikestump@comcast.net>
2547
2548 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2549
4a9a42ab
MP
25502015-01-07 Marek Polacek <polacek@redhat.com>
2551
2552 PR c/64440
2553 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2554 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2555
2f42e5de
TS
25562015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2557
2558 PR c++/31397
2559 * c.opt (Wsuggest-override): New option.
2560
5624e564
JJ
25612015-01-05 Jakub Jelinek <jakub@redhat.com>
2562
2563 Update copyright years.
2564
5bd012f8
MP
25652015-01-05 Marek Polacek <polacek@redhat.com>
2566
2567 PR c/64423
2568 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2569 parameter. Use it.
2570 * c-common.h (warn_array_subscript_with_type_char): Update
2571 declaration.
2572
a7fa8d18
ESR
25732014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2574
2575 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2576 Control macro with flag_sized_deallocation.
2577
3f8257db 25782014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2579
2580 * c.opt (Wdiscarded-array-qualifiers): New option.
2581
1f8d3e84
JJ
25822014-12-19 Jakub Jelinek <jakub@redhat.com>
2583
2584 PR preprocessor/63831
2585 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2586 and __has_cpp_attribute here.
2587 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2588 c_common_has_attribute.
2589 * c-common.h (c_common_has_attribute): New prototype.
2590 * c-lex.c (init_c_lex): Set cb->has_attribute to
2591 c_common_has_attribute instead of cb_has_attribute.
2592 (get_token_no_padding): New function.
2593 (cb_has_attribute): Renamed to ...
2594 (c_common_has_attribute): ... this. No longer static. Use
2595 get_token_no_padding, require ()s, don't build TREE_LIST
2596 unnecessarily, fix up formatting, adjust diagnostics, call
2597 init_attributes.
2598
20b06add
JM
25992014-12-15 Jason Merrill <jason@redhat.com>
2600
2601 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2602 (-Wsized-deallocation): New.
2603 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2604 to on in C++14 and up.
2605
94a073b2
JM
26062014-12-11 Jason Merrill <jason@redhat.com>
2607
acaa5911
JM
2608 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2609
94a073b2
JM
2610 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2611 we aren't complaining about VLAs.
2612
7fb66c15
MP
26132014-12-06 Marek Polacek <polacek@redhat.com>
2614
2615 PR tree-optimization/64183
2616 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2617 shift-expression if it is integer_type_node. Use types_compatible_p.
2618
b731b390
JJ
26192014-11-29 Jakub Jelinek <jakub@redhat.com>
2620
2621 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2622 last argument from create_tmp_var_raw and create_tmp_var calls.
2623 * cilk.c (gimplify_cilk_spawn): Likewise.
2624 * c-omp.c (c_finish_omp_atomic): Likewise.
2625
6a4da643
MP
26262014-11-28 Marek Polacek <polacek@redhat.com>
2627
2628 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2629 instead of unsigned_type_node.
2630
541e35a6
MP
26312014-11-28 Marek Polacek <polacek@redhat.com>
2632
2633 PR c/63862
2634 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2635 to op1_utype.
2636 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2637 expression to unsigned_type_node.
2638
dcc97066
MW
26392014-11-20 Mark Wielaard <mjw@redhat.com>
2640
2641 PR debug/38757
2642 * c-opts.c (set_std_c89): Set lang_hooks.name.
2643 (set_std_c99): Likewise.
2644 (set_std_c11): Likewise.
2645 (set_std_cxx98): Likewise.
2646 (set_std_cxx11): Likewise.
2647 (set_std_cxx14): Likewise.
2648 (set_std_cxx1z): Likewise.
2649
aa7da51a
JJ
26502014-11-21 Jakub Jelinek <jakub@redhat.com>
2651
2652 PR target/63764
2653 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2654 return type to bool.
009a3480 2655 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2656 (convert_vector_to_pointer_for_subscript): Change return type to
2657 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2658 and copy it into a TARGET_EXPR and use that instead of *vecp
2659 directly.
2660
538dd0b7
DM
26612014-11-19 David Malcolm <dmalcolm@redhat.com>
2662
2663 Merger of git branch "gimple-classes-v2-option-3".
2664 * ChangeLog.gimple-classes: New.
2665 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2666 from being just a vec<gimple> to a vec<gbind *>.
2667
c39a5e99
JJ
26682014-11-18 Jakub Jelinek <jakub@redhat.com>
2669
2670 PR sanitizer/63813
2671 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2672 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2673 get_pointer_alignment for non-pointers. Use ptype, or if it is
2674 reference type, corresponding pointer type, as type of kind
2675 argument.
2676 (ubsan_maybe_instrument_reference,
2677 ubsan_maybe_instrument_member_call): Adjust callers.
2678
8537a4a9
MP
26792014-11-15 Marek Polacek <polacek@redhat.com>
2680
2681 PR middle-end/63884
2682 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2683 for NULL fndecl.
2684 (extract_array_notation_exprs): Return for NULL node.
2685
2079956a
JM
26862014-11-12 Joseph Myers <joseph@codesourcery.com>
2687
2688 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2689 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2690
1304953e
JJ
26912014-11-12 Jakub Jelinek <jakub@redhat.com>
2692
2693 PR c/59708
2694 * c-common.c (check_builtin_function_arguments): Handle
2695 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2696
e5e44252
AK
26972014-11-10 Andi Kleen <ak@linux.intel.com>
2698
2699 PR c/60804
2700 * c-common.h (check_no_cilk): Declare.
2701 * cilk.c (get_error_location): New function.
2702 (check_no_cilk): Dito.
2703
e64b984d
AK
27042014-11-10 Andi Kleen <ak@linux.intel.com>
2705
2706 * cilk.c (recognize_spawn): Use expression location
2707 for error message.
2708
13c21655
PC
27092014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2710
2711 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2712
42fd12b1
ESR
27132014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2714
2715 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2716 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2717 (__cpp_range_based_for, __cpp_initializer_lists,
2718 __cpp_delegating_constructors, __cpp_nsdmi,
2719 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2720 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2721 __has_cpp_attribute.
2722 * c-lex.c (cb_has_attribute): New callback CPP function;
2723 (init_c_lex): Set has_attribute callback.
2724
6f450181
RB
27252014-11-04 Richard Biener <rguenther@suse.de>
2726
2727 * c-common.c (shorten_compare): Do not shorten mixed
2728 DFP and non-DFP compares.
2729
26f0e1d6
ESR
27302014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2731
2732 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2733 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2734 Commentary and rearrangement of tests.
2735 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2736 Commentary and rearrangement of tests.
2737 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2738 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2739
ef4bddc2
RS
27402014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2741
2742 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2743 enum from machine_mode.
2744
c582198b
AM
27452014-10-28 Andrew MacLeod <amacleod@redhat.com>
2746
adfac8df
JJ
2747 * c-common.c: Adjust include files.
2748 * c-gimplify.c: Ditto.
2749 * cilk.c: Ditto.
2750 * c-pragma.c: Ditto.
2751 * c-ubsan.c: Ditto.
c582198b 2752
60393bbc
AM
27532014-10-27 Andrew MacLeod <amacleod@redhat.com>
2754
2755 * c-gimplify.c: Adjust include files.
2756
d723bb7c
MLI
27572014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2758
2759 PR c++/53061
2760 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2761 c_common_initialize_diagnostics.
2762 * c-common.h: Likewise.
2763
90f3520e
MP
27642014-10-24 Marek Polacek <polacek@redhat.com>
2765
2766 PR c/56980
2767 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2768 print "struct"/"union"/"enum" for typedefed names.
2769
59d7607a
MP
27702014-10-23 Marek Polacek <polacek@redhat.com>
2771
2772 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2773 in unsigned type.
2774
d95a2703
JJ
27752014-10-22 Jakub Jelinek <jakub@redhat.com>
2776 Yury Gribov <y.gribov@samsung.com>
2777
2778 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2779 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2780 instead of flag_sanitize_recover as bool flag.
2781
8e6ef852
KY
27822014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2783
2784 * cilk.c: Revert previous change.
2785
948cf550
IZ
27862014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2787
2788 PR c/63307
2789 * cilk.c: Include vec.h.
2790 (struct cilk_decls): New structure.
2791 (wrapper_parm_cb): Split this function to...
2792 (fill_decls_vec): ...this...
2793 (create_parm_list): ...and this.
2794 (compare_decls): New function.
2795 (for_local_cb): Remove.
2796 (wrapper_local_cb): Ditto.
2797 (build_wrapper_type): For now first traverse and fill vector of
2798 declarations then sort it and then deal with sorted vector.
2799 (cilk_outline): Ditto.
2800 (declare_one_free_variable): Ditto.
2801
92574c7c
MP
28022014-10-17 Marek Polacek <polacek@redhat.com>
2803
2804 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2805 * c.opt (Wimplicit-int): Initialize to -1.
2806
83685514
AM
28072014-10-16 Andrew MacLeod <amacleod@redhat.com>
2808
2809 * c-pragma.c: Adjust include files.
2810 * c-semantics.c: Likewise.
2811
5b8300ea
DD
28122014-10-16 DJ Delorie <dj@redhat.com>
2813
2814 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2815 multiples of bytes.
2816
5f83e90b
JM
28172014-10-14 Jason Merrill <jason@redhat.com>
2818
2819 PR c++/63455
2820 * c-common.h (CPP_PREPARSED_EXPR): New.
2821 (N_CP_TTYPES): Adjust.
2822
d73326ca
MP
28232014-10-15 Marek Polacek <polacek@redhat.com>
2824
2825 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2826
78a7c317
DD
28272014-10-14 DJ Delorie <dj@redhat.com>
2828
2829 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2830 types, not just __int128.
2831 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2832 types, not just __int128.
2833 (cpp_atomic_builtins): Round pointer sizes up.
2834 (type_suffix): Use type precision, not specific types.
2835 * c-common.c (c_common_reswords): Remove __int128 special case.
2836 (c_common_type_for_size): Check for all __intN types, not just
2837 __int128.
2838 (c_common_type_for_mode): Likewise.
2839 (c_common_signed_or_unsigned_type): Likewise.
2840 (c_build_bitfield_integer_type): Likewise.
2841 (c_common_nodes_and_builtins): Likewise.
2842 (keyword_begins_type_specifier): Likewise.
2843 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2844 __intN variants.
2845
2a22f99c
TS
28462014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2847
2848 * c-common.c: Use hash_table instead of hashtab.
2849
2a8ef767
ESR
28502014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2851
adfac8df 2852 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2853 C++11 section.
2854
3c9aabbd
MG
28552014-10-03 Marc Glisse <marc.glisse@inria.fr>
2856
2857 PR c++/54427
2858 PR c++/57198
2859 PR c++/58845
2860 * c-common.c (warn_logical_operator): Punt for vectors.
2861
a15f7cb8
ESR
28622014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2863
2864 Implement SD-6: SG10 Feature Test Recommendations
2865 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2866 macros and the __has_header macro.
2867
8d0cf15e
JM
28682014-09-30 Jason Merrill <jason@redhat.com>
2869
dd5d5481
JM
2870 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2871 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2872 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2873
b752325e
JM
2874 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2875 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2876
8d0cf15e
JM
2877 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2878 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2879
083e891e
MP
28802014-09-24 Marek Polacek <polacek@redhat.com>
2881
2882 PR c/61405
2883 PR c/53874
2884 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2885
7861b648
AK
28862014-09-23 Andi Kleen <ak@linux.intel.com>
2887
2888 * c-common.c (handle_no_reorder_attribute): New function.
2889 (c_common_attribute_table): Add no_reorder attribute.
2890
9a79452d
JM
28912014-09-22 Joseph Myers <joseph@codesourcery.com>
2892
2893 * c-cppbuiltin.c (c_cpp_builtins): Define
2894 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2895 modes.
2896
dd69f047
JM
28972014-09-18 Joseph Myers <joseph@codesourcery.com>
2898
2899 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2900 for supported floating-point modes.
2901
737a4826
MLI
29022014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2903
2904 * c.opt (Wpsabi): Use LangEnabledBy.
2905 * c-opts.c (c_common_handle_option): Do not handle here.
2906
8cc4b7a2
JM
29072014-09-12 Joseph Myers <joseph@codesourcery.com>
2908
2909 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2910 macros for floating-point modes.
2911
179b5a55
MG
29122014-09-11 Marc Glisse <marc.glisse@inria.fr>
2913
2914 PR target/58757
2915 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2916 __*_DENORM_MIN__ without denormals.
2917
570a11fe
JJ
29182014-09-10 Jakub Jelinek <jakub@redhat.com>
2919
2920 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2921 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2922 ubsan_create_data callers.
2923 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2924 index is constant or BIT_AND_EXPR with constant mask and is
2925 small enough for the bound.
2926 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2927 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2928
b559c810
MLI
29292014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2930
2931 * c.opt: Add CppReason to various flags.
2932 (Wdate-time): Re-sort.
2933 * c-common.c: Include c-common.h earlier.
2934 (struct reason_option_codes_t): Delete.
2935 (c_option_controlling_cpp_error): Prefix global type and struct
2936 with cpp_.
2937
1ef33fd4
MLI
29382014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2939
2940 * c.opt (Wnormalized): New.
2941 (Wnormalized=): Use Enum and Reject Negative.
2942 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2943
66bb34c0
JM
29442014-09-08 Joseph Myers <joseph@codesourcery.com>
2945
2946 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2947 digits of floating-point modes if -fbuilding-libgcc.
2948
53d68b9f
JM
29492014-09-05 Joseph Myers <joseph@codesourcery.com>
2950
2951 * c-cppbuiltin.c (c_cpp_builtins): Also define
2952 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2953 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2954 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2955 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2956 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2957 __LIBGCC_STACK_GROWS_DOWNWARD__,
2958 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2959 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2960 __LIBGCC_DWARF_FRAME_REGISTERS__,
2961 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2962 __LIBGCC_STACK_POINTER_REGNUM__ and
2963 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2964 (builtin_define_with_value): Handle backslash-escaping in string
2965 macro values.
2966
f65586dc
RB
29672014-09-05 Richard Biener <rguenther@suse.de>
2968
2969 PR middle-end/63148
2970 * c-format.c (check_format_arg): Properly handle
2971 effectively signed POINTER_PLUS_EXPR offset.
2972
2b71f4a4
MLI
29732014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2974
2975 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2976 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2977 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2978 and Init.
2979 * c-opts.c (c_common_handle_option): Do not handle here.
2980 (sanitize_cpp_opts): Likewise.
2981 * c-common.c (struct reason_option_codes_t): Handle
2982 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2983
d2e4feca
MP
29842014-09-03 Marek Polacek <polacek@redhat.com>
2985
2986 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2987
9a771876
JJ
29882014-09-02 Jakub Jelinek <jakub@redhat.com>
2989 Balaji V. Iyer <balaji.v.iyer@intel.com>
2990 Igor Zamyatin <igor.zamyatin@intel.com>
2991
2992 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2993 * c-common.c (c_common_reswords): Added _Cilk_for.
2994 * c-common.h (enum rid): Added RID_CILK_FOR.
2995 (cilk_for_number_of_iterations): Add declaration.
2996 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2997 CILK_FOR.
2998 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2999 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3000
81b5d104
MLI
30012014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3002
3003 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3004 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3005 Wundef): Use CPP, Var and Init.
3006 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3007
b753b37b
MLI
30082014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3009
3010 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3011 * c-opts.c (c_common_handle_option): Do not handle here.
3012
028aee17
JM
30132014-08-25 Jason Merrill <jason@redhat.com>
3014
3015 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3016 -std=c++14 and -std=gnu++14, rather than the reverse.
3017 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3018 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3019 * c-common.h (cxx_dialect): Remove cxx1y.
3020
e4276ba5
ESR
30212014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3022
3023 * c-common.h (enum cxx_dialect): Add cxx14.
3024 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3025 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3026 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3027
a545cacd
JM
30282014-08-22 Jason Merrill <jason@redhat.com>
3029
3030 * c.opt (std=gnu++17): Fix alias.
3031
59ea0364
MP
30322014-08-22 Marek Polacek <polacek@redhat.com>
3033
3034 PR c++/62199
3035 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3036 check for vector types. Drop LHS argument.
3037 * c-common.h (warn_logical_not_parentheses): Adjust.
3038
596e808c
MLI
30392014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3040
3041 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3042 (Wmultichar): Likewise.
3043 (Wdate-time): Use C-family languages instead of Common. Use CPP
3044 and Var.
3045 * c-opts.c (c_common_handle_option): Do not handle the above
3046 options here.
3047 (sanitize_cpp_opts): Likewise.
3048
18767f65
MLI
30492014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3050
3051 PR fortran/44054
3052 * c-opts.c: Include tree-diagnostics.h.
3053 (c_diagnostic_finalizer): New.
3054 (c_common_initialize_diagnostics): Use it.
3055
b4413594
MLI
30562014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3057
3058 PR preprocessor/51303
3059 * c-common.c (struct reason_option_codes_t option_codes):
3060 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3061
43f9a13c
MLI
30622014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3063
3064 PR c/60975
3065 PR c/53063
3066 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3067 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3068 (c_common_post_options): Call init_global_opts_from_cpp.
3069 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3070
04159acf
MP
30712014-08-19 Marek Polacek <polacek@redhat.com>
3072
3073 PR c++/62153
3074 * c-common.c (maybe_warn_bool_compare): New function.
3075 * c-common.h (maybe_warn_bool_compare): Declare.
3076 * c.opt (Wbool-compare): New option.
3077
35aff4fb
MP
30782014-08-19 Marek Polacek <polacek@redhat.com>
3079
3080 * c.opt (Wc99-c11-compat): New option.
3081
177cce46
MP
30822014-08-19 Marek Polacek <polacek@redhat.com>
3083
3084 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3085 to warn_c90_c99_compat.
3086 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3087 to -1.
3088
6ae9194f
MLI
30892014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3090 Steven Bosscher <steven@gcc.gnu.org>
3091
3092 PR c/52952
3093 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3094 format_check_results.
3095 (check_function_format): Use true and add comment for boolean
3096 argument.
3097 (finish_dollar_format_checking): Use explicit location when warning.
3098 (check_format_info): Likewise.
3099 (check_format_arg): Set extra_arg_loc and format_string_loc.
3100 (check_format_info_main): Use explicit location when warning.
3101 (check_format_types): Pass explicit location.
3102 (format_type_warning): Likewise.
3103
8e54f6d3
MLI
31042014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3105
3106 PR fortran/44054
3107 * c-format.c: Handle Fortran flags.
3108
cd4e76fc
IZ
31092014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3110
3111 PR other/61962
3112 * array-notation-common.c (find_rank): Added handling for other
3113 types of references.
3114
f3bede71
MP
31152014-08-10 Marek Polacek <polacek@redhat.com>
3116
3117 PR c/51849
3118 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3119 * c.opt (Wc90-c99-compat): Add option.
3120
9f25a338
TS
31212014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3122
3123 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3124
62e4eb35
MP
31252014-08-03 Marek Polacek <polacek@redhat.com>
3126
3127 * c-common.c (check_case_value): Add location_t parameter. Use it.
3128 (c_add_case_label): Pass loc to check_case_value.
3129
b787e7a2
TS
31302014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3131
3132 * cilk.c: Use hash_map instead of pointer_map.
3133
6e2830c3
TS
31342014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3135
3136 * c-gimplify.c: Use hash_set instead of pointer_set.
3137
a7ee52fb
IZ
31382014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3139
3140 PR middle-end/61455
3141 * array-notation-common.c (extract_array_notation_exprs): Handling
3142 of DECL_EXPR added.
3143
944fa280
JJ
31442014-08-01 Jakub Jelinek <jakub@redhat.com>
3145
3146 * c-common.h (min_align_of_type): Removed prototype.
3147 * c-common.c (min_align_of_type): Removed.
3148 * c-ubsan.h (ubsan_maybe_instrument_reference,
3149 ubsan_maybe_instrument_member_call): New prototypes.
3150 * c-ubsan.c: Include stor-layout.h and builtins.h.
3151 (ubsan_maybe_instrument_reference_or_call,
3152 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3153 functions.
3154
b4dfdc11
MG
31552014-07-31 Marc Glisse <marc.glisse@inria.fr>
3156
3157 PR c++/60517
3158 * c.opt (-Wreturn-local-addr): Move to common.opt.
3159
a41844e5
JM
31602014-07-30 Jason Merrill <jason@redhat.com>
3161
3162 PR c++/61659
3163 PR c++/61687
3164 Revert:
3165 * c.opt (-fuse-all-virtuals): New.
3166
976d5a22
TT
31672014-07-30 Tom Tromey <tromey@redhat.com>
3168
3169 PR c/59855
3170 * c.opt (Wdesignated-init): New option.
3171 * c-common.c (c_common_attribute_table): Add "designated_init".
3172 (handle_designated_init): New function.
3173
cdc94aca
MP
31742014-07-24 Marek Polacek <polacek@redhat.com>
3175
3176 PR c/57653
3177 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3178
f41373b6
DS
31792014-07-16 Dodji Seketeli <dodji@redhat.com>
3180
3181 PR preprocessor/60723 - missing system-ness marks for macro tokens
3182 * c-ppoutput.c (struct print::prev_was_system_token): New data
3183 member.
3184 (init_pp_output): Initialize it.
3185 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3186 (do_line_change): Return a flag saying if a line marker was
3187 emitted or not.
3188 (scan_translation_unit): Detect if the system-ness of the token we
3189 are about to emit is different from the one of the previously
3190 emitted token. If so, emit a line marker. Avoid emitting useless
3191 adjacent line markers. Avoid emitting line markers for tokens
3192 originating from the expansion of built-in macros.
3193 (scan_translation_unit_directives_only): Adjust.
3194
4d661eaa
MP
31952014-07-15 Marek Polacek <polacek@redhat.com>
3196
3197 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3198 TYPE_MAX_VALUE is NULL.
3199
b108f48f
JJ
32002014-07-14 Jakub Jelinek <jakub@redhat.com>
3201
3202 PR middle-end/61294
3203 * c.opt (Wmemset-transposed-args): New warning.
3204
c0221884
JM
32052014-07-10 Jason Merrill <jason@redhat.com>
3206
3207 PR c++/61659
3208 PR c++/61687
3209 * c.opt (-fuse-all-virtuals): New.
3210
63dfbb95
RB
32112014-07-09 Richard Biener <rguenther@suse.de>
3212
3213 PR c-family/61741
3214 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3215 using unsigned arithmetic if overflow does not wrap instead of
3216 if overflow is undefined.
3217
773ec47f
MP
32182014-07-06 Marek Polacek <polacek@redhat.com>
3219
3220 PR c/6940
3221 * c.opt (Wsizeof-array-argument): New option.
3222
00a7ba58
JJ
32232014-07-03 Jakub Jelinek <jakub@redhat.com>
3224
b1726d6c 3225 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3226 comments->count <= 1, as comments->entries might be NULL.
3227
52ec0ea3
MP
32282014-07-01 Marek Polacek <polacek@redhat.com>
3229
3230 * c.opt (Wint-conversion): New option.
3231
d5c3d343
MP
32322014-07-01 Marek Polacek <polacek@redhat.com>
3233
3234 PR c/58286
3235 * c.opt (Wincompatible-pointer-types): New option.
3236
6e7ceb17
PC
32372014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3238
3239 PR c++/51400
3240 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3241 Do not discard TYPE_QUALS of type.
3242
da73100b
JM
32432014-06-26 Jason Merrill <jason@redhat.com>
3244
3245 * c-common.h (enum cxx_dialect): Add cxx1z.
3246 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3247 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3248
08eedf75
TJ
32492014-06-26 Teresa Johnson <tejohnson@google.com>
3250
3251 * c-common.h (get_dump_info): Declare.
3252 * c-gimplify.c (c_genericize): Use saved dump files.
3253 * c-opts.c (c_common_parse_file): Begin and end dumps
3254 once around parsing invocation.
3255 (get_dump_info): New function.
3256
7b56b2f8
MP
32572014-06-23 Marek Polacek <polacek@redhat.com>
3258 Andrew MacLeod <amacleod@redhat.com>
3259
3260 PR c/61553
3261 * c-common.c (get_atomic_generic_size): Don't segfault if the
3262 type doesn't have a size.
3263
0e37a2f3
MP
32642014-06-20 Marek Polacek <polacek@redhat.com>
3265
3266 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3267 (ubsan_walk_array_refs_r): New function.
3268 (c_genericize): Instrument array bounds.
3269 * c-ubsan.c: Include "internal-fn.h".
3270 (ubsan_instrument_division): Mark instrumented arrays as having
3271 side effects. Adjust ubsan_type_descriptor call.
3272 (ubsan_instrument_shift): Likewise.
3273 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3274 (ubsan_instrument_bounds): New function.
3275 (ubsan_array_ref_instrumented_p): New function.
3276 (ubsan_maybe_instrument_array_ref): New function.
3277 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3278 (ubsan_array_ref_instrumented_p): Declare.
3279 (ubsan_maybe_instrument_array_ref): Declare.
3280
32812014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3282
3283 PR lto/61123
3284 * c.opt (fshort-enums): Add to LTO.
3285 * c.opt (fshort-wchar): Likewise.
3286
5c3d09f7
MP
32872014-06-16 Marek Polacek <polacek@redhat.com>
3288
3289 PR c/60439
3290 * c.opt (Wswitch-bool): Add Var.
3291
9cf32741
JJ
32922014-06-12 Jakub Jelinek <jakub@redhat.com>
3293
3294 PR middle-end/61486
3295 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3296 #pragma omp target teams or
3297 #pragma omp {,target }teams distribute simd.
3298
62984918
JM
32992014-06-12 Jason Merrill <jason@redhat.com>
3300
3301 * c.opt (Wabi=, fabi-compat-version): New.
3302 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3303 (c_common_post_options): Handle flag_abi_compat_version default.
3304 Disallow -fabi-compat-version=1.
3305 * c-common.h (abi_version_crosses): New.
3306
f961457f
JH
33072014-06-11 Jan Hubicka <hubicka@ucw.cz>
3308
adfac8df 3309 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3310 section names that are no longer trees.
3311
92d28cbb
JJ
33122014-06-10 Jakub Jelinek <jakub@redhat.com>
3313
3314 PR fortran/60928
3315 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3316 (omp_pragmas): ... back here.
3317
742938c9
MP
33182014-06-05 Marek Polacek <polacek@redhat.com>
3319
3320 PR c/49706
3321 * c-common.c (warn_logical_not_parentheses): New function.
3322 * c-common.h (warn_logical_not_parentheses): Declare.
3323 * c.opt (Wlogical-not-parentheses): New option.
3324
9d548dfb
MP
33252014-06-04 Marek Polacek <polacek@redhat.com>
3326
3327 PR c/30020
3328 * c-common.c (check_case_bounds): Add location parameter.
3329 Use it.
3330 (c_add_case_label): Pass loc to check_case_bounds.
3331
fedfecef
MP
33322014-06-03 Marek Polacek <polacek@redhat.com>
3333
3334 PR c/60439
3335 * c.opt (Wswitch-bool): New option.
3336
f6a7cffc
TS
33372014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3338
040d18b6
TS
3339 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3340 Remove prototypes.
3341 (record_types_used_by_current_var_decl): Move prototype to where
3342 it belongs.
3343
f6a7cffc
TS
3344 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3345 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3346 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3347
632f2871
RS
33482014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3349
3350 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3351 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3352 void_zero_node.
3353 * c-pretty-print.c (pp_c_void_constant): New function.
3354 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3355 (c_pretty_printer::expression): Handle VOID_CST.
3356 * cilk.c (extract_free_variables): Likewise.
3357 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3358 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3359
766090c2
TS
33602014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3361
3362 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3363 * c-pragma.c (push_alignment): Adjust.
3364 (handle_pragma_push_options): Likewise.
3365
661a0813
MP
33662014-05-09 Marek Polacek <polacek@redhat.com>
3367
3368 PR c/50459
3369 * c-common.c (check_user_alignment): Return -1 if alignment is error
3370 node.
3371 (handle_aligned_attribute): Don't call default_conversion on
3372 FUNCTION_DECLs.
3373 (handle_vector_size_attribute): Likewise.
3374 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3375 (handle_sentinel_attribute): Call default_conversion and allow even
3376 integral types as an argument.
3377
2793eeab
MP
33782014-05-08 Marek Polacek <polacek@redhat.com>
3379
3380 PR c/61053
3381 * c-common.c (min_align_of_type): New function factored out from...
3382 (c_sizeof_or_alignof_type): ...here.
3383 * c-common.h (min_align_of_type): Declare.
3384
f827930a
MP
33852014-05-08 Marek Polacek <polacek@redhat.com>
3386
3387 PR c/61077
3388 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3389 parameter type of main.
3390
ca49b74e
DD
33912014-05-07 DJ Delorie <dj@redhat.com>
3392
3393 * c-cppbuiltin.c (print_bits_of_hex): New.
3394 (builtin_define_type_minmax): Print values using hex so as not to
3395 require a pre-computed list of string values.
3396
1d60af08
KZ
33972014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3398 Mike Stump <mikestump@comcast.net>
3399 Richard Sandiford <rdsandiford@googlemail.com>
3400
3401 * c-ada-spec.c: Include wide-int.h.
3402 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3403 (dump_generic_ada_node): Use wide-int interfaces.
3404 * c-common.c: Include wide-int-print.h.
3405 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3406 (pointer_int_sum): Use wide-int interfaces.
3407 (c_common_nodes_and_builtins): Use make_int_cst.
3408 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3409 (handle_alloc_size_attribute): Use wide-int interfaces.
3410 (get_nonnull_operand): Likewise.
3411 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3412 * c-lex.c: Include wide-int.h.
3413 (narrowest_unsigned_type): Take a widest_int rather than two
3414 HOST_WIDE_INTs.
3415 (narrowest_signed_type): Likewise.
3416 (interpret_integer): Update accordingly. Use wide-int interfaces.
3417 (lex_charconst): Use wide-int interfaces.
3418 * c-pretty-print.c: Include wide-int.h.
3419 (pp_c_integer_constant): Use wide-int interfaces.
3420 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3421 INT_CST_LT_UNSIGNED.
3422
b15458be
RB
34232014-05-06 Richard Biener <rguenther@suse.de>
3424
3425 * c-opts.c (c_common_post_options): For -freestanding,
3426 -fno-hosted and -fno-builtin disable pattern recognition
3427 if not enabled explicitely.
3428
6577374e
MP
34292014-05-02 Marek Polacek <polacek@redhat.com>
3430
3431 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3432
d00887e8
MP
34332014-05-01 Marek Polacek <polacek@redhat.com>
3434
3435 PR c/43245
3436 * c.opt (Wdiscarded-qualifiers): Add.
3437
f8ed5150
MP
34382014-04-30 Marek Polacek <polacek@redhat.com>
3439
3440 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3441 INT_MIN / -1 sanitization only for integer types.
3442
45484dcf
MP
34432014-04-25 Marek Polacek <polacek@redhat.com>
3444
3445 PR c/18079
3446 * c-common.c (handle_noinline_attribute): Warn if the attribute
3447 conflicts with always_inline attribute.
3448 (handle_always_inline_attribute): Warn if the attribute conflicts
3449 with noinline attribute.
3450
38e514c0
MP
34512014-04-25 Marek Polacek <polacek@redhat.com>
3452
3453 PR c/60156
3454 * c-common.c (check_main_parameter_types): Warn about variadic main.
3455
44875f92
MS
34562014-04-24 Mike Stump <mikestump@comcast.net>
3457
3458 * c.opt (Wshadow-ivar): Default to on.
3459
dcaaa5a0
DP
34602014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3461
3462 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3463
c07d7c02
MP
34642014-04-23 Marek Polacek <polacek@redhat.com>
3465
3466 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3467
1c33c9b7
JJ
34682014-04-22 Jakub Jelinek <jakub@redhat.com>
3469
3470 PR sanitizer/60275
3471 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3472 if flag_sanitize_undefined_trap_on_error.
3473 (ubsan_instrument_division, ubsan_instrument_shift,
3474 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3475 if !flag_sanitize_recover.
3476
793c625f
MG
34772014-04-22 Marc Glisse <marc.glisse@inria.fr>
3478
3479 PR libstdc++/43622
3480 * c-common.c (registered_builtin_types): Make non-static.
3481 * c-common.h (registered_builtin_types): Declare.
3482
b0f1bf36
RB
34832014-04-14 Richard Biener <rguenther@suse.de>
3484 Marc Glisse <marc.glisse@inria.fr>
3485
3486 PR c/60819
3487 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3488 apply may-alias the scalar pointer type when applicable.
3489
3b07fa4a
IZ
34902014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3491
3492 PR middle-end/60467
3493 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3494 as possible argument for Cilk_spawn.
3495
cbbd2b1c
TB
34962014-04-11 Tobias Burnus <burnus@net-b.de>
3497
3498 PR c/60194
3499 * c.opt (Wformat-signedness): Add
3500 * c-format.c(check_format_types): Use it.
3501
6415bd5d
JM
35022014-04-11 Jason Merrill <jason@redhat.com>
3503
3504 PR c++/57926
3505 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3506 default_conversion for an array argument.
3507
6525783a
MP
35082014-04-08 Marek Polacek <polacek@redhat.com>
3509
3510 PR sanitizer/60745
3511 * c-ubsan.c: Include asan.h.
3512 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3513
880a467b
NS
35142014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3515
3516 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3517
7b59ff2d
MP
35182014-04-02 Marek Polacek <polacek@redhat.com>
3519
3520 * c-common.h (c_expand_expr): Remove declaration.
3521
8edbfaa6
JJ
35222014-03-28 Jakub Jelinek <jakub@redhat.com>
3523
3524 PR c++/60689
3525 * c-common.c (add_atomic_size_parameter): When creating new
3526 params vector, push the size argument first.
3527
07d72e1d
JJ
35282014-03-26 Jakub Jelinek <jakub@redhat.com>
3529
3530 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3531 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3532 ubsan_create_data callers.
3533
b35e0fa0
JJ
35342014-03-22 Jakub Jelinek <jakub@redhat.com>
3535
3536 PR debug/60603
3537 * c-opts.c (c_finish_options): Restore cb_file_change call to
3538 <built-in>.
3539
39a1ebb3
JJ
35402014-03-13 Jakub Jelinek <jakub@redhat.com>
3541
3542 PR middle-end/36282
3543 * c-pragma.c (apply_pragma_weak): Only look at
3544 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3545 DECL_ASSEMBLER_NAME_SET_P (decl).
3546 (maybe_apply_pending_pragma_weaks): Exit early if
3547 vec_safe_is_empty (pending_weaks) rather than only when
3548 !pending_weaks.
3549 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3550 set assembler name back to NULL afterwards.
3551
a07f6ed2
JM
35522014-03-11 Jason Merrill <jason@redhat.com>
3553
3554 * c.opt: Add -std=gnu++14.
3555
75b107f5
IB
35562014-03-11 Ian Bolton <ian.bolton@arm.com>
3557
3558 * c-opts.c (c_common_post_options): Don't override
3559 -ffp-contract=fast if unsafe-math-optimizations is on.
3560
f42c637e
PM
35612014-03-08 Paulo Matos <paulo@matos-sorge.com>
3562
3563 * c.opt: Enable LTO FE for fshort-double.
3564
70e24808
JM
35652014-03-07 Jason Merrill <jason@redhat.com>
3566
3567 * c.opt: Add -std=c++14.
3568
3af9c5e9
MP
35692014-03-06 Marek Polacek <polacek@redhat.com>
3570
3571 PR c/60197
3572 * cilk.c (contains_cilk_spawn_stmt): New function.
3573 (contains_cilk_spawn_stmt_walker): Likewise.
3574 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3575 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3576
b3bdf019
JJ
35772014-03-03 Jakub Jelinek <jakub@redhat.com>
3578
3579 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3580 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3581 even when flag_preprocess_only.
3582
ca7e759d
JM
35832014-02-26 Jason Merrill <jason@redhat.com>
3584
3585 PR c++/59231
3586 PR c++/11586
3587 * c-common.c (shorten_compare): Don't check
3588 c_inhibit_evaluation_warnings.
3589
28e41874
JJ
35902014-02-19 Jakub Jelinek <jakub@redhat.com>
3591
cca615af
JJ
3592 PR c/37743
3593 * c-common.c (c_common_nodes_and_builtins): When initializing
3594 c_uint{16,32,64}_type_node, also set corresponding
3595 uint{16,32,64}_type_node to the same value.
3596
28e41874
JJ
3597 PR c++/60267
3598 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3599 for PRAGMA_IVDEP if flag_preprocess_only.
3600
c2bf53a1
JJ
36012014-02-12 Jakub Jelinek <jakub@redhat.com>
3602
3603 PR c/60101
3604 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3605 if false, add ADD itself, rather than vice versa.
3606 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3607 copy. For SAVE_EXPR, only call merge_tlist once.
3608
8fcbce72
JJ
36092014-02-08 Jakub Jelinek <jakub@redhat.com>
3610
3611 PR middle-end/60092
3612 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3613 and tree_to_uhwi.
3614 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3615 functions.
3616 (c_common_attribute_table): Add alloc_align and assume_aligned
3617 attributes.
3618
0a756a3f
MP
36192014-02-06 Marek Polacek <polacek@redhat.com>
3620
3621 PR c/60087
3622 * c-common.c (warn_for_sign_compare): Call warning_at with location
3623 instead of warning.
3624
7ec4847a
MP
36252014-02-05 Marek Polacek <polacek@redhat.com>
3626
3627 PR c/53123
3628 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3629 statement.
3630
66f20604
MP
36312014-02-04 Marek Polacek <polacek@redhat.com>
3632
3633 PR c/60036
3634 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3635 SAVE_EXPR.
3636
5d77fb19
MG
36372014-02-03 Marc Glisse <marc.glisse@inria.fr>
3638
3639 PR c++/53017
3640 PR c++/59211
3641 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3642 handle_vector_size_attribute, handle_nonnull_attribute): Call
3643 default_conversion on the attribute argument.
3644 (handle_nonnull_attribute): Increment the argument number.
3645
81e5eca8
MP
36462014-01-31 Marek Polacek <polacek@redhat.com>
3647
3648 PR c/59963
3649 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3650 build_function_call_vec.
3651 (resolve_overloaded_builtin): Likewise.
3652 * c-common.h (build_function_call_vec): Adjust declaration.
3653
68fca595
MP
36542014-01-30 Marek Polacek <polacek@redhat.com>
3655
3656 PR c/59940
3657 * c-common.h (unsafe_conversion_p): Adjust declaration.
3658 (warnings_for_convert_and_check): Likewise.
3659 (convert_and_check): Likewise.
3660 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3661 expansion_point_location_if_in_system_header on it.
3662 (warnings_for_convert_and_check): Add location parameter. Call
3663 expansion_point_location_if_in_system_header on it. Use it.
3664 (convert_and_check): Add location parameter. Use it.
3665 (conversion_warning): Likewise.
3666 (c_add_case_label): Adjust convert_and_check calls.
3667 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3668
b72271b9
BI
36692014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3670
3671 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3672 flag_cilkplus.
3673 * c-pragma.c (init_pragma): Likewise.
3674 * c.opt: Likewise.
3675
393e8e8b
MP
36762014-01-23 Marek Polacek <polacek@redhat.com>
3677
3678 PR c/59846
3679 * c-common.c (shorten_compare): Add location_t parameter.
3680 * c-common.h (shorten_binary_op): Adjust declaration.
3681
f04dda30
MP
36822014-01-23 Marek Polacek <polacek@redhat.com>
3683
3684 PR c/58346
3685 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3686 * c-common.h: Declare it.
3687
621955cb
EB
36882014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3689
3690 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3691 * c-ada-spec.c (dump_ads): Likewise.
3692 (cpp_check): Likewise.
3693 (dump_ada_specs): Likewise.
3694
36952014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3696
3697 PR c++/49718
3698 * c-common.c (handle_no_instrument_function_attribute): Allow
3699 no_instrument_function attribute in class member
3700 definition/declaration.
3701
241f845a
JJ
37022014-01-15 Jakub Jelinek <jakub@redhat.com>
3703
3704 PR c/58943
3705 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3706 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3707 being COMPOUND_EXPR.
3708 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3709 operand a SAVE_EXPR and second MODIFY_EXPR.
3710
e83b8e2e
JJ
37112014-01-09 Jakub Jelinek <jakub@redhat.com>
3712
3713 PR target/58115
3714 * c-pch.c (c_common_write_pch): Call
3715 prepare_target_option_nodes_for_pch.
3716
23a5b65a
RS
37172014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3718
3719 Update copyright years
3720
f9030485
RS
37212014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3722
3723 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3724 the copyright notice.
3725
f2aa696b
EB
37262013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3727
3728 * c-ada-spec.c (print_constructor): New function.
3729 (print_destructor): Retrieve the origin of the destructor.
3730 (print_ada_declaration): Revamp handling of constructors/destructors.
3731
3f8257db 37322013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3733 Bill Maddox <maddox@google.com>
3734 Jason Merrill <jason@redhat.com>
3735
3736 * c.opt: Add -fdeclone-ctor-dtor.
3737 * c-opts.c (c_common_post_options): Default to on iff -Os.
3738
41958c28
BI
37392013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3740
3741 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3742 attribute.
3743 * c-pragma.h (enum pragma_cilk_clause): Remove.
3744 (enum pragma_omp_clause): Added the following fields:
3745 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3746 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3747 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3748 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3749 PRAGMA_CILK_CLAUSE_UNIFORM.
3750
b1726d6c 3751
12893402
BI
37522013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3753
3754 * cilk.c (cilk_outline): Made this function non-static.
3755 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3756 (create_cilk_wrapper): Added a new parameter: a function pointer.
3757 (c_install_body_w_frame_cleanup): Remove
3758 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3759 * c-common.h (cilk_outline): New prototype.
3760 (gimplify_cilk_spawn): Removed two parameters.
3761 (cilk_install_body_with_frame_cleanup): New prototype.
3762 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3763 CILK_SPAWN_STMT case.
3764
085b42ed
BS
37652013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3766
2ce064c3
BS
3767 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3768
085b42ed
BS
3769 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3770 (int_array_type_node): Remove.
3771 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3772
9e36c9ed
MP
37732013-12-05 Marek Polacek <polacek@redhat.com>
3774
3775 PR c/52023
3776 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3777 [ADJUST_FIELD_ALIGN].
3778
296674db
JM
37792013-12-04 Joseph Myers <joseph@codesourcery.com>
3780
3781 PR c/52023
3782 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3783 and check field alignment if set.
3784 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3785 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3786
b1726d6c 37872013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3788 Marek Polacek <polacek@redhat.com>
3789
3790 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3791 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3792
d7947e19
L
37932013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3794
3795 PR c/59309
3796 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3797 arguments.
3798
fad7652e
JJ
37992013-11-29 Jakub Jelinek <jakub@redhat.com>
3800
3801 PR c/59280
3802 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3803 goto invalid. If it is error_mark_node, don't issue further
3804 diagnostics.
3805
8b5e1202
SO
38062013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3807
3808 * c.opt (Wopenmp-simd): New.
3809
0a508bb6
JJ
38102013-11-22 Jakub Jelinek <jakub@redhat.com>
3811
3812 * c-ubsan.h (ubsan_instrument_return): New prototype.
3813 * c-ubsan.c (ubsan_instrument_return): New function.
3814
2fb9a547
AM
38152013-11-22 Andrew MacLeod <amacleod@redhat.com>
3816
3817 * c-common.c: Add required include files from gimple.h.
3818 * c-gimplify.c: Likewise
3819 * cilk.c: Likewise
3820
8400e75e
DM
38212013-11-22 David Malcolm <dmalcolm@redhat.com>
3822
3823 * c-common.c (unsafe_conversion_p): Remove use of
3824 EXPR_LOC_OR_HERE macro.
3825 (conversion_warning): Likewise.
3826 (warnings_for_convert_and_check): Likewise.
3827 (warn_for_collisions_1): Likewise.
3828 (shorten_compare): Likewise, and remove use of in_system_header
3829 macro, using the location from the former.
3830 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3831 (cb_def_pragma): Remove use of in_system_header macro.
3832 (lex_string): Likewise.
3833 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3834
eb1ce453
KZ
38352013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3836 Mike Stump <mikestump@comcast.net>
3837 Richard Sandiford <rdsandiford@googlemail.com>
3838
3839 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3840 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3841 tree_fits_shwi_p or tree_fits_uhwi_p.
3842 (dump_generic_ada_node): Likewise.
3843 * c-format.c (check_format_arg): Likewise.
3844 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3845
6b3b8c27
KZ
38462013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3847
3848 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3849
49b0aa18
JC
38502013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3851
3852 PR c/53001
3853 * c-common.c (unsafe_conversion_p): Make this function
3854 return an enumeration with more detail.
3855 (conversion_warning): Use the new return type of
3856 unsafe_conversion_p to separately warn either about conversions
3857 that lower floating point number precision or about the other
3858 kinds of conversions.
3859 * c-common.h (enum conversion_safety): New enumeration.
3860 (unsafe_conversion_p): switching return type to
3861 conversion_safety enumeration.
3862 * c.opt: Adding new warning -Wfloat-conversion and
3863 enabling it with -Wconversion.
3864
b826515a
BS
38652013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3866
3867 * c-opts.c: Include plugin.h.
3868 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3869
b9a55b13
MP
38702013-11-19 Marek Polacek <polacek@redhat.com>
3871
3872 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3873 call.
3874 (ubsan_instrument_shift): Likewise.
3875 (ubsan_instrument_vla): Likewise.
3876
7d362f6c
RS
38772013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3878
3879 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3880 cast to unsigned type.
3881
386b1f1f
RS
38822013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3883
3884 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3885 tree_low_cst.
3886 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3887 rather than tree_low_cst.
3888
ae7e9ddd
RS
38892013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3890
3891 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3892 tree_to_uhwi throughout.
3893
9439e9a1
RS
38942013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3895
3896 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3897 tree_low_cst (..., 0) with tree_to_shwi throughout.
3898
cc269bb6
RS
38992013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3900
3901 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3902 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3903
9541ffee
RS
39042013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3905
3906 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3907 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3908
c02065fc
AH
39092013-11-15 Aldy Hernandez <aldyh@redhat.com>
3910
3911 * c-cilkplus.c: New file.
3912 * c-common.c (readonly_error): Add location argument.
3913 * c-common.h (readonly_error): Same.
3914 (c_finish_cilk_clauses): Protoize.
3915 (c_check_cilk_loop): Same.
3916 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3917 Do not fail on error_mark_node.
3918 Abstract increment canonicalization to here...
3919 (c_omp_for_incr_canonicalize_ptr): New.
3920 c-pragma.c (init_pragma): Register "simd" pragma.
3921 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3922 (enum pragma_cilk_clause): New.
3923
9cc65f15
RS
39242013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3925
3926 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3927 wchar_type and host_integerp checks.
3928
18f429e2
AM
39292013-11-14 Andrew MacLeod <amacleod@redhat.com>
3930
3931 * c-common.c: Likewise.
3932 * c-gimplify.c: Likewise.
3933 * cilk.c: Likewise.
3934
d8a2d370
DN
39352013-11-14 Diego Novillo <dnovillo@google.com>
3936
3937 * c-common.c: Include fold-const.h.
3938 Include stor-layout.h.
3939 Include calls.h.
3940 Include stringpool.h.
3941 Include attribs.h.
3942 Include varasm.h.
3943 Include trans-mem.h.
3944 * c-cppbuiltin.c: Include stor-layout.h.
3945 Include stringpool.h.
3946 * c-format.c: Include stringpool.h.
3947 * c-lex.c: Include stringpool.h.
3948 Include stor-layout.h.
3949 * c-pragma.c: Include stringpool.h.
3950 Include attribs.h.
3951 Include varasm.h.
3952 Include gcc-symtab.h.
3953 * c-pretty-print.c: Include stor-layout.h.
3954 Include attribs.h.
3955 * cilk.c: Include stringpool.h.
3956 Include calls.h.
3957
38b7bc7f
JM
39582013-11-13 Joseph Myers <joseph@codesourcery.com>
3959
3960 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3961 * c-common.c (c_common_reswords): Add __auto_type.
3962 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3963
45b0be94
AM
39642013-11-12 Andrew MacLeod <amacleod@redhat.com>
3965
18f429e2
AM
3966 * c-common.c: Include gimplify.h.
3967 * c-gimplify.c: Likewise.
3968 * cilk.c: Likewise.
3969 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3970 * c-ubsan.c: Don't include gimple.h.
45b0be94 3971
582d9b50
JM
39722013-11-12 Joseph Myers <joseph@codesourcery.com>
3973
3974 * c-common.c (c_common_reswords): Add _Thread_local.
3975
6b28e197
JM
39762013-11-09 Joseph Myers <joseph@codesourcery.com>
3977
3978 * c-common.c (atomic_size_supported_p): New function.
3979 (resolve_overloaded_atomic_exchange)
3980 (resolve_overloaded_atomic_compare_exchange)
3981 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3982 Use it instead of comparing size with a local list of sizes.
3983
267bac10
JM
39842013-11-07 Andrew MacLeod <amacleod@redhat.com>
3985 Joseph Myers <joseph@codesourcery.com>
3986
3987 * c-common.h (enum rid): Add RID_ATOMIC.
3988 * c-common.c (c_common_reswords): Add _Atomic.
3989 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3990 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3991 * c-format.c (check_format_types): Check for extra _Atomic
3992 qualifiers in format argument.
3993 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3994 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3995
5157b91e
TB
39962013-11-06 Tobias Burnus <burnus@net-b.de>
3997
3998 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3999
6dbe0958
JM
40002013-11-06 Joseph Myers <joseph@codesourcery.com>
4001
4002 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4003 standards modes.
4004 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4005 to mean lack of IEEE 754 support.
4006
e8ff5196
TB
40072013-11-05 Tobias Burnus <burnus@net-b.de>
4008
4009 * c.opt (-Wdate-time): New option
4010 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4011
254a0760
JM
40122013-11-05 Joseph Myers <joseph@codesourcery.com>
4013
4014 * c-cppbuiltin.c (cpp_iec_559_value): Test
4015 flag_excess_precision_cmdline not flag_excess_precision.
4016
6d7f7e0a
TB
40172013-11-05 Tobias Burnus <burnus@net-b.de>
4018
4019 * c.opt (fopenmp-simd): New option.
4020 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4021 (omp_pragmas): ... this new struct.
4022 (c_pp_lookup_pragma): Also walk omp_pragmas.
4023 (init_pragma): Init pragmas for -fopenmp-simd.
4024
55a7f02f
MP
40252013-11-04 Marek Polacek <polacek@redhat.com>
4026
4027 PR c++/58979
4028 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4029
9193fb05
JM
40302013-11-04 Joseph Myers <joseph@codesourcery.com>
4031
4032 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4033 New functions.
4034 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4035
94159ecf
EB
40362013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4037
4038 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4039 (dump_ada_specs): Adjust prototype of second callback.
4040 * c-ada-spec.c (cpp_check): New global variable.
4041 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4042 (print_generic_ada_decl): Likewise.
4043 (has_static_fields): Change return type to bool and add guard.
4044 (has_nontrivial_methods): New predicate.
4045 (is_tagged_type): Change return type to bool.
4046 (separate_class_package): Call has_nontrivial_methods.
4047 (pp_ada_tree_identifier): Minor tweaks.
4048 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4049 (dump_ada_array_domains): Likewise.
4050 (dump_ada_array_type): Likewise.
4051 (dump_template_types): Remove cpp_check parameter and do not pass it to
4052 dump_generic_ada_node.
4053 (dump_ada_template): Likewise.
4054 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4055 recursively.
4056 (print_ada_methods): Change return type to integer. Remove cpp_check
4057 parameter and do not pass it down.
4058 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4059 dump_generic_ada_node.
4060 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4061 accessing methods.
4062 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4063 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4064 value of print_ada_methods.
4065 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4066 Set cpp_check to it before invoking dump_ada_nodes.
4067 (dump_ada_specs): Likewise.
4068
b906f4ca
MP
40692013-11-03 Marek Polacek <polacek@redhat.com>
4070
4071 * c-ubsan.c: Don't include hash-table.h.
4072 (ubsan_instrument_vla): New function.
4073 * c-ubsan.h: Declare it.
4074
5e20cdc9
DM
40752013-10-31 David Malcolm <dmalcolm@redhat.com>
4076
4077 Automated part of renaming of symtab_node_base to symtab_node.
4078
4079 Patch autogenerated by rename_symtab.py from
4080 https://github.com/davidmalcolm/gcc-refactoring-scripts
4081 revision 58bb219cc090b2f4516a9297d868c245495ee622
4082
4083 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4084 symtab_node_base to symtab_node.
4085
7057e645
ESR
40862013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4087
4088 Implement C++14 digit separators.
4089 * c-lex.c (interpret_float): Remove digit separators from scratch string
4090 before building real literal.
4091
193ea7bc
JJ
40922013-10-30 Jakub Jelinek <jakub@redhat.com>
4093
4094 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4095
939b37da
BI
40962013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4097
4098 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4099 fields.
4100 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4101 enabled.
4102 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4103 (insert_cilk_frame): New prototype.
4104 (cilk_init_builtins): Likewise.
4105 (gimplify_cilk_spawn): Likewise.
4106 (c_cilk_install_body_w_frame_cleanup): Likewise.
4107 (cilk_detect_spawn_and_unwrap): Likewise.
4108 (cilk_set_spawn_marker): Likewise.
4109 (build_cilk_sync): Likewise.
4110 (build_cilk_spawn): Likewise.
4111 * cilk.c: New file.
4112
67348ccc
DM
41132013-10-29 David Malcolm <dmalcolm@redhat.com>
4114
4115 Patch autogenerated by refactor_symtab.py from
4116 https://github.com/davidmalcolm/gcc-refactoring-scripts
4117 revision 58bb219cc090b2f4516a9297d868c245495ee622
4118
4119 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4120 to a true class hierarchy.
4121 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4122
d570872d
RS
41232013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4124
4125 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4126
98906124
JL
41272013-10-26 Jeff Law <law@redhat.com>
4128
adfac8df
JJ
4129 * c-common.c (c_define_builtins): Remove mudflap support.
4130 * c.opt: Ignore and warn for mudflap options.
98906124 4131
d73749df 41322013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4133
4134 PR other/33426
4135 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4136 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4137
3f04b1bb
JM
41382013-10-23 Jason Merrill <jason@redhat.com>
4139
4140 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4141
acf0174b
JJ
41422013-10-11 Jakub Jelinek <jakub@redhat.com>
4143
acd15a28
JJ
4144 * c-common.h (omp_clause_mask::operator !=): New method.
4145 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4146 instead of if (mask & something) tests everywhere.
4147
acf0174b
JJ
4148 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4149 201307 instead of 201107.
4150 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4151 (c_common_attribute_table): Add "omp declare target" and
4152 "omp declare simd" attributes.
4153 (handle_omp_declare_target_attribute,
4154 handle_omp_declare_simd_attribute): New functions.
4155 * c-omp.c: Include c-pragma.h.
4156 (c_finish_omp_taskgroup): New function.
4157 (c_finish_omp_atomic): Add swapped argument, if true,
4158 build the operation first with rhs, lhs arguments and use NOP_EXPR
4159 build_modify_expr.
4160 (c_finish_omp_for): Add code argument, pass it down to make_code.
4161 (c_omp_split_clauses): New function.
4162 (c_split_parallel_clauses): Removed.
4163 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4164 c_omp_declare_simd_clauses_to_decls): New functions.
4165 * c-common.h (omp_clause_mask): New type.
4166 (OMP_CLAUSE_MASK_1): Define.
4167 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4168 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4169 omp_clause_mask::operator |, omp_clause_mask::operator &,
4170 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4171 omp_clause_mask::operator ==): New methods.
4172 (enum c_omp_clause_split): New.
4173 (c_finish_omp_taskgroup): New prototype.
4174 (c_finish_omp_atomic): Add swapped argument.
4175 (c_finish_omp_for): Add code argument.
4176 (c_omp_split_clauses): New prototype.
4177 (c_split_parallel_clauses): Removed.
4178 (c_omp_declare_simd_clauses_to_numbers,
4179 c_omp_declare_simd_clauses_to_decls): New prototypes.
4180 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4181 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4182 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4183 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4184 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4185 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4186 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4187 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4188 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4189 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4190 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4191 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4192 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4193 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4194 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4195 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4196 PRAGMA_OMP_CLAUSE_UNIFORM.
4197
826cacfe
MG
41982013-10-09 Marc Glisse <marc.glisse@inria.fr>
4199
4200 PR tree-optimization/20318
4201 * c-common.c (handle_returns_nonnull_attribute): New function.
4202 (c_common_attribute_table): Add returns_nonnull.
4203
2284b034
MG
42042013-10-03 Marc Glisse <marc.glisse@inria.fr>
4205
4206 PR c++/19476
4207 * c.opt (fcheck-new): Move to common.opt.
4208
b56e9788
MP
42092013-09-25 Marek Polacek <polacek@redhat.com>
4210 Jakub Jelinek <jakub@redhat.com>
4211
4212 PR sanitizer/58413
4213 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4214 an expression if we can prove it is correct.
4215 (ubsan_instrument_division): Likewise. Remove unnecessary
4216 check.
4217
ce6923c5
MP
42182013-09-18 Marek Polacek <polacek@redhat.com>
4219
4220 PR sanitizer/58411
4221 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4222 Declare it.
4223 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4224
fb5610fb
IS
42252013-09-14 Iain Sandoe <iain@codesourcery.com>
4226
4227 PR target/48094
4228 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4229 fobjc-gc, freplace-objc-classes): Accept for LTO.
4230
88b0e79e
JC
42312013-09-13 Jacek Caban <jacek@codeweavers.com>
4232
4233 * c-target.def: New hook
4234
c9b0866a
PC
42352013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4236
4237 PR c++/43452
4238 * c.opt (Wdelete-incomplete): Add.
4239
0af94e6f
JR
42402013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4241
4242 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4243 (vector_types_compatible_elements_p): New function.
4244 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4245 declaration.
4246 (vector_types_compatible_elements_p): Declare.
4247
7c26172c
GDR
42482013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4249
4250 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4251 a virtual member function.
4252 (pp_simple_type_specifier): Remove.
4253 (pp_c_type_specifier): Likewise.
4254 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4255 Rename from pp_c_type_specifier. Adjust.
4256 (c_pretty_printer::c_pretty_printer): Do not assign to
4257 simple_type_specifier.
4258
20059c8b
GDR
42592013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4260
4261 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4262 member function.
4263 (c_pretty_printer::storage_class_specifier): Likewise.
4264 (c_pretty_printer::initializer): Likewise.
4265 (pp_declaration): Remove.
4266 (pp_declaration_specifiers): Likewise.
4267 (pp_abstract_declarator): Likewise.
4268 (pp_declarator): Likewise.
4269 (pp_type_id): Likewise.
4270 (pp_statement): Likewise.
4271 (pp_constant): Likewise.
4272 (pp_id_expression): Likewise.
4273 (pp_primary_expression): Likewise.
4274 (pp_unary_expression): Likewise.
4275 (pp_multiplicative_expression): Likewise.
4276 (pp_conditional_expression): Likewise.
4277 (pp_assignment_expression): Likewise.
4278 (pp_expression): Likewise.
4279 (pp_c_type_id): Likewise.
4280 (pp_c_storage_class_specifier): Likewise.
4281 * c-pretty-print.c (pp_c_type_cast): Tidy.
4282 (pp_c_pointer): Likewise.
4283 (pp_c_type_specifier): Likewise.
4284 (pp_c_parameter_type_list): Likewise.
4285 (pp_c_function_definition): Likewise.
4286 (pp_c_init_declarator): Likewise.
4287 (pp_c_initializer_list): Likewise.
4288 (pp_c_constructor_elts): Likewise.
4289 (c_pretty_printer::direct_abstract_declarator): Likewise.
4290 (c_pretty_printer::declaration_specifiers): Likewise.
4291 (c_pretty_printer::primary_expression): Likewise.
4292 (c_pretty_printer::postfix_expression): Likewise.
4293 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4294 (c_pretty_printer::storage_class_specifier): Rename from
4295 pp_c_storage_class_specifier.
4296 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4297 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4298 storage_class_specifier, initializer, offset_list, flags.
4299
de5a5fa1
MP
43002013-08-30 Marek Polacek <polacek@redhat.com>
4301
4302 * c-ubsan.c: New file.
4303 * c-ubsan.h: New file.
4304
8f0e4d72
GDR
43052013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4306
4307 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4308 member function.
4309 (c_pretty_printer::declaration_specifiers): Likewise.
4310 (c_pretty_printer::declarator): Likewise.
4311 (c_pretty_printer::abstract_declarator): Likewise.
4312 (c_pretty_printer::direct_abstract_declarator): Likewise.
4313 (c_pretty_printer::direct_declarator): Likewise.
4314 (c_pretty_printer::function_specifier): Likewise.
4315 (pp_declaration): Adjust.
4316 (pp_declaration_specifiers): Likewise.
4317 (pp_abstract_declarator): Likewise.
4318 (pp_direct_declarator): Likewise.
4319 (pp_function_specifier): Likewise.
4320 (pp_direct_abstract_declarator): Remove as unused.
4321 (pp_c_declaration): Remove.
4322 (pp_c_declaration_specifiers): Likewise.
4323 (pp_c_declarator): Likewise.
4324 (pp_c_direct_declarator): Likewise.
4325 (pp_c_function_specifier): Likewise.
4326 (pp_c_direct_abstract_declarator): Likewise.
4327 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4328 from pp_c_abstract_declarator. Adjust.
4329 (c_pretty_printer::direct_abstract_declarator): Rename from
4330 pp_c_direct_abstract_declarator. Adjust.
4331 (c_pretty_printer::function_specifier): Rename from
4332 pp_c_function_specifier. Adjust.
4333 (c_pretty_printer::declaration_specifiers): Rename from
4334 pp_c_declaration_specifiers. Adjust.
4335 (c_pretty_printer::direct_declarator): Rename from
4336 pp_c_direct_declarator. Adjust.
4337 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4338 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4339 (c_pretty_printer::c_pretty_printer): Do not assign to
4340 declaration, declaration_specifiers, declarator,
4341 direct_declarator, direct_abstract_declarator, function_specifier.
4342
00d34d3a
GDR
43432013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4344
4345 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4346 virtual member function.
4347 (c_pretty_printer::multiplicative_expression): Likewise.
4348 (c_pretty_printer::conditional_expression): Likewise.
4349 (c_pretty_printer::assignment_expression): Likewise.
4350 (c_pretty_printer::expression): Likewise.
4351 (pp_unary_expression): Adjust.
4352 (pp_multiplicative_expression): Likewise.
4353 (pp_assignment_expression): Likewise.
4354 (pp_conditional_expression): Likewise.
4355 (pp_expression): Likewise.
4356 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4357 from pp_c_unary_expression. Adjust.
4358 (c_pretty_printer::multiplicative_expression): Rename from
4359 pp_c_multiplicative_expression. Adjust.
4360 (c_pretty_printer::conditional_expression): Rename from
4361 pp_c_conditional_expression. Adjust.
4362 (c_pretty_printer::assignment_expression): Rename from
4363 pp_c_assignment_expression. Adjust.
4364 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4365 (c_pretty_printer::c_pretty_printer): Do not assign to
4366 unary_expression, multiplicative_expression,
4367 conditional_expression, expression.
4368
fb22178f
GDR
43692013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4370
4371 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4372 virtual member function.
4373 (pp_postfix_expression): Adjust.
4374 (pp_c_postfix_expression): Remove.
4375 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4376 from pp_c_postfix_expression. Adjust.
4377 (c_pretty_printer::c_pretty_printer): Do not assign to
4378 postfix_expression.
4379
7ecc2600
GDR
43802013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4381
4382 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4383 virtua member function.
4384 (pp_primary_expression): Adjust.
4385 (pp_c_primary_expression): Remove.
4386 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4387 from pp_c_primary_expression. Adjust.
4388 (pp_c_initializer_list): Use pp_primary_expression.
4389 (c_pretty_printer::c_pretty_printer): Do not assign to
4390 primary_expression.
4391
0691175f
GDR
43922013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4393
4394 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4395 * c-pretty-print.c (M_): Remove.
4396 (c_pretty_printer::translate_string): Define.
4397 (pp_c_type_specifier): Use it.
4398 (pp_c_primary_expression): Likewise.
4399 (pp_c_expression): Likewise.
4400
66dfe4c4
GDR
44012013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4402
4403 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4404 virtual function.
4405 (pp_c_id_expression): Remove.
4406 (pp_id_expression): Adjust.
4407 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4408 pp_c_id_expression. Adjust.
4409 (pp_c_postfix_expression): Use pp_id_expression.
4410 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4411
ca43e9d5
GDR
44122013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4413
4414 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4415 member function.
4416 (pp_constant): Adjust.
4417 (pp_c_constant): Remove.
4418 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4419 pp_c_constant. Adjust.
4420 (pp_c_constant)
4421 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4422 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4423
da6ca2b5
GDR
44242013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4425
4426 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4427 (c_pretty_printer::c_pretty_printer): Declare.
4428 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4429 c_pretty_printer_init. Adjust.
4430 (print_c_tree): Do not call c_pretty_printer_init.
4431 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4432
65a372f4
AC
44332013-08-09 Arnaud Charlet <charlet@adacore.com>
4434
4435 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4436
fd9b0f32
PC
44372013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4438
4439 PR c++/58080
4440 * c-common.c (pointer_int_sum): Add bool parameter.
4441 * c-common.h (pointer_int_sum): Adjust declaration.
4442
e0aec1e9
GDR
44432013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4444
4445 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4446 c_pretty_printer variable.
4447
b066401f
GDR
44482013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4449
4450 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4451 (pp_base): Remove.
4452 (pp_c_base): Likewise. Adjust users.
4453 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4454 (pp_c_whitespace): Do not call pp_base.
4455 (pp_c_left_paren): Likewise.
4456 (pp_c_right_paren): Likewise.
4457 (pp_c_left_brace): Likewise.
4458 (pp_c_right_brace): Likewise.
4459 (pp_c_left_bracket): Likewise.
4460 (pp_c_right_bracket): Likewise.
4461 (pp_c_dot): Likewise.
4462 (pp_c_ampersand): Likewise.
4463 (pp_c_star): Likewise.
4464 (pp_c_arrow): Likewise.
4465 (pp_c_semicolon): Likewise.
4466 (pp_c_complement): Likewise.
4467 (pp_c_exclamation): Likewise.
4468 (pp_c_direct_declarator): Likewise.
4469 (pp_c_ws_string): Likewise.
4470 (pp_c_identifier): Likewise.
4471 (pp_c_statement): Likewise.
4472 (print_c_tree): Likewise.
4473
65e5a578
ESR
44742013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4475
4476 PR c++/58072
4477 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4478 provide useful error strings.
4479
137a1a27
GDR
44802013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4481
4482 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4483 printer functions instead of pp_string or operators and punctuators.
4484 (dump_generic_ada_node): Likewise.
4485 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4486 (pp_c_relational_expression): Likewise.
4487 (pp_c_logical_or_expression): Likewise.
4488
07838b13
GDR
44892013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4490
4491 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4492 functions instead of pp_character.
4493 (pp_ada_tree_identifier): Likewise.
4494 (dump_ada_double_name): Likewise.
4495 (dump_ada_function_declaration): Likewise.
4496 (dump_ada_array_domains): Likewise.
4497 (dump_template_types): Likewise.
4498 (dump_generic_ada_node): Likewise.
4499 (print_ada_declaration): Likewise.
4500 (print_ada_struct_decl): Likewise.
4501 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4502
433cc7b0
TT
45032013-07-23 Tom Tromey <tromey@redhat.com>
4504
4505 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4506 * c-common.c (c_common_reswords): Add _Generic.
4507
688010ba
OB
45082013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4509
4510 * c-common.c: Fix typos.
4511 * c-common.h: Likewise.
4512
2a99e5e6
LL
45132013-07-13 Lubos Lunak <l.lunak@suse.cz>
4514
4515 PR c++/55203
4516 * c-common.c (c_common_attribute_table): Add warn_unused.
4517 (handle_warn_unused_attribute): New.
4518
c26302d5
JJ
45192013-07-10 Jakub Jelinek <jakub@redhat.com>
4520
4521 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4522 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4523
dfeadaa0
PC
45242013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4525
4526 PR c++/57869
4527 * c.opt: Add Wconditionally-supported.
4528
6a2fa4b2
GS
45292013-07-08 Graham Stott <graham.stott@btinternet.com>
4530
adfac8df 4531 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4532 unused variables l_length and l_node.
4533
ecdbd01a 45342013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4535
4536 PR c/57821
4537 * c-common.c (complete_array_type): Delay folding first index
4538 like other indices. When folding, check for index overflow.
4539
bedc293e
MG
45402013-06-27 Marc Glisse <marc.glisse@inria.fr>
4541
4542 PR c++/57509
4543 * c-common.h (c_build_vec_perm_expr): New complain argument.
4544 * c-common.c (c_build_vec_perm_expr): Likewise.
4545 Use save_expr also in C++.
4546
604b2bfc
GDR
45472013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4548
4549 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4550 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4551 * c-opts.c (c_common_post_options): Likewise.
4552
dfeadaa0 45532013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4554
4555 * array-notation-common.c (length_mismatch_in_expr): Changed the
4556 parameter type's from a dynamic array to a vec_tree. Also removed
4557 the size parameters.
4558 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4559 the change above.
4560
2ce86d2e
BI
45612013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4562
4563 * c-common.h (struct cilkplus_an_parts): New structure.
4564 (struct cilkplus_an_loop_parts): Likewise.
4565 (cilkplus_extract_an_triplets): New prototype.
4566 (fix_sec_implicit_args): Likewise.
4567 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4568 (fix_sec_implicit_args): Likewise.
604b2bfc 4569
07a6825b
BI
45702013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4571
4572 * array-notation-common.c (find_inv_trees): Removed an unwanted
4573 typecasting.
4574 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4575 enum rid to enum tree_code.
4576
08346abd
JH
45772013-06-11 Jan Hubicka <jh@suse.cz>
4578
4579 * c-common.c (handle_alias_ifunc_attribute): Do not set
4580 DECL_EXTERNAL for weakref variables.
4581 * c-pragma.c (handle_pragma_weak): Make sure aliases
4582 are not declared as external.
4583
d60f1706
BI
45842013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4585
4586 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4587 function from c/c-array-notation.c.
4588 (is_cilkplus_reduce_builtin): Likewise.
4589 (find_rank): Likewise.
4590 (extract_array_notation_exprs): Likewise.
4591 (replace_array_notations): Likewise.
4592 (find_inv_trees): Likewise.
4593 (replace_inv_trees): Likewise.
4594 (contains_array_notation_expr): Likewise.
4595 (find_correct_array_notation_type): Likewise.
4596 * c-common.h (struct inv_list): Moved this struct from the file
4597 c/c-array-notation.c and added a new field called additional tcodes.
4598 (length_mismatch_in_expr_p): New prototype.
4599 (is_cilkplus_reduce_builtin): Likewise.
4600 (find_rank): Likewise.
4601 (extract_array_notation_exprs): Likewise.
4602 (replace_array_notation): Likewise.
4603 (find_inv_trees): Likewise.
4604 (replace_inv_trees): Likewise.
4605 (find_correct_array_notation_type): Likewise.
dfeadaa0 4606
36536d79
BI
46072013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4608
4609 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4610 function array_notation_init_builtins is called.
4611 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4612 * c-common.def (ARRAY_NOTATION_REF): New tree.
4613 * c-common.h (build_array_notation_expr): New function declaration.
4614 (build_array_notation_ref): Likewise.
4615 (extract_sec_implicit_index_arg): New extern declaration.
4616 (is_sec_implicit_index_fn): Likewise.
4617 (ARRAY_NOTATION_CHECK): New define.
4618 (ARRAY_NOTATION_ARRAY): Likewise.
4619 (ARRAY_NOTATION_START): Likewise.
4620 (ARRAY_NOTATION_LENGTH): Likewise.
4621 (ARRAY_NOTATION_STRIDE): Likewise.
4622 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4623 ARRAY_NOTATION_REF.
4624 (pp_c_expression): Likewise.
4625 * c.opt (flag_enable_cilkplus): New flag.
4626 * array-notation-common.c: New file.
4627
f7716d57
JJ
46282013-05-14 Jakub Jelinek <jakub@redhat.com>
4629
4630 PR c++/57274
4631 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4632
a5e0cd1d
MG
46332013-05-10 Marc Glisse <marc.glisse@inria.fr>
4634
4635 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4636 vectors.
4637
f6bc1c4a
HS
46382013-05-07 Han Shen <shenhan@google.com>
4639
4640 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4641
3f12f6e9
SKS
46422013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4643
4644 * c-common.c (check_user_alignment): Emit error for negative values.
4645
61949153
PC
46462013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4647
4648 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4649
e93e18e9
PC
46502013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4651
4652 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4653 __GXX_EXPERIMENTAL_CXX1Y__.
4654
44d90fe1
PC
46552013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4656 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4657
4658 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4659 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4660 to simply use OPT_Wpointer_arith.
4661 (c_sizeof_or_alignof_type): Likewise.
4662
13f39b2e
PC
46632013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4664
4665 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4666
4b84d650
JJ
46672013-04-12 Jakub Jelinek <jakub@redhat.com>
4668
4669 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4670 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4671 specifiers.
4672
fb037b5d
SB
46732013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4674
4675 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4676
4e856798
PC
46772013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4678
4679 * c-common.c (pointer_int_sum): Remove dead code.
4680
4b1baac8
RS
46812013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4682
4683 PR middle-end/56524
4684 * c-common.c (handle_optimize_attribute): Don't call
4685 save_optabs_if_changed.
4686
0b50e654
JJ
46872013-03-05 Jakub Jelinek <jakub@redhat.com>
4688
4689 PR middle-end/56461
4690 * c-pch.c (pch_init): Free target_validity at the end.
4691
48c41403
JJ
46922013-03-04 Jakub Jelinek <jakub@redhat.com>
4693
4694 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4695
e664c61c
KS
46962013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4697 Jakub Jelinek <jakub@redhat.com>
4698
4699 PR sanitizer/56454
4700 * c-common.c (handle_no_sanitize_address_attribute): New function.
4701 (c_common_attribute_table): Add no_sanitize_address attribute.
4702 (handle_no_address_safety_analysis_attribute): Add
4703 no_sanitize_address attribute, not no_address_safety_analysis
4704 attribute.
4705
a475fd3d 47062013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4707
4708 PR target/52555
4709 * c-common.c (handle_optimize_attribute): Call
4710 save_optabs_if_changed.
4711
f6007d99
JJ
47122013-02-18 Jakub Jelinek <jakub@redhat.com>
4713 Steven Bosscher <steven@gcc.gnu.org>
4714
4715 PR pch/54117
4716 * c-opts.c (c_common_post_options): If debug info is enabled
4717 and non-dwarf*, refuse to load PCH files and when writing PCH
4718 file warn.
4719
cf35e2b1
JJ
47202013-02-05 Jakub Jelinek <jakub@redhat.com>
4721
4722 PR middle-end/56167
4723 * c-common.c (handle_error_attribute): Fix condition.
4724
32887460
JJ
47252013-01-30 Jakub Jelinek <jakub@redhat.com>
4726
4727 PR c++/55742
4728 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4729
5af057d8
JM
47302013-01-18 Jason Merrill <jason@redhat.com>
4731
4732 PR target/54908
4733 * c.opt (-fextern-tls-init): New.
4734 * c-opts.c (c_common_post_options): Handle it.
4735
cc83c823
JJ
47362013-01-09 Jakub Jelinek <jakub@redhat.com>
4737
4738 PR c/48418
4739 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4740 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4741 and is either negative or bigger or equal to type precision
4742 of the first operand.
4743
a859517f
MP
47442012-12-03 Marek Polacek <polacek@redhat.com>
4745
4746 PR c/55570
4747 * c-common.c (check_user_alignment): Swap order of tests,
4748 check TREE_CODE first.
4749
2d7aa578
ESR
47502012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4751
4752 PR c++/52654
4753 * c-common.h (overflow_type): New enum.
4754 (build_userdef_literal): Add overflow_type argument.
4755 (tree_userdef_literal): Add overflow_type.
4756 (USERDEF_LITERAL_OVERFLOW): New access macro.
4757 * c-common.c (build_userdef_literal): Add overflow_type
4758 argument.
4759 * c-lex.c (c_lex_with_flags): Add overflow_type to
4760 build_userdef_literal calls.
4761 (interpret_integer, interpret_float): Add overflow_type argument.
4762
cc3c4f62
RB
47632012-11-28 Richard Biener <rguenther@suse.de>
4764
4765 PR c/35634
4766 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4767 here and use a type with proper overflow behavior for types that would
4768 need to be promoted for the arithmetic.
4769
77bc5132
JJ
47702012-11-23 Jakub Jelinek <jakub@redhat.com>
4771
4772 PR sanitizer/55435
4773 * c-common.c (handle_no_address_safety_analysis_attribute): New
4774 function.
4775 (c_common_attribute_table): Add no_address_safety_analysis.
4776
5dc99c46
SB
47772012-11-16 Simon Baldwin <simonb@google.com>
4778
4779 * c.opt: Add f[no-]canonical-system-headers.
4780 * c-opts.c (c_common_handle_option): Handle
4781 OPT_fcanonical_system_headers.
4782
a4a0016d
ESR
47832012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4784
4785 PR c++/54413
4786 * c-opts.c (c_common_handle_option): Set new flags.
4787 * c.opt: Describe new flags.
4788
7dbb85a7
JM
47892012-11-09 Jason Merrill <jason@redhat.com>
4790
4791 * c.opt (Wabi-tag): New.
4792
ad7bac31
AK
47932012-11-09 Andi Kleen <ak@linux.intel.com>
4794
4795 PR 55139
4796 * c-common.c (get_atomic_generic_size): Mask with
4797 MEMMODEL_MASK
4798
7332899a
MLI
47992012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4800
4801 PR c/53063
4802 * c.opt (Wformat): Make it Alias Wformat=1.
4803 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4804 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4805 LangEnabledBy.
4806 (Wformat=): RejectNegative. Use LangEnabledBy.
4807 (Wnonnull): Use LangEnabledBy.
4808 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4809 * c-format.c (set_Wformat): Delete.
4810 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4811 (maybe_read_dollar_number): Likewise.
4812 (avoid_dollar_number): Likewise.
4813 (finish_dollar_format_checking): Likewise.
4814 (check_format_info): Likewise.
4815 (check_format_info_main): Likewise.
4816 (check_format_types): Likewise.
4817 (format_type_warning): Likewise.
4818 * c-common.c (int): Likewise.
4819 (check_function_sentinel): Likewise.
4820 * c-common.h (warn_format,set_Wformat): Do not declare here.
4821
34a180a6
MLI
48222012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4823
4824 PR c/53063
4825 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4826 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4827 Use LangEnabledBy.
4828 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4829 common.opt.
4830 (Wvariadic-macros): Init(1).
4831 * c-opts.c (c_common_handle_option): Do not handle them
4832 explicitly.
4833 (c_common_post_options): Likewise.
4834 (sanitize_cpp_opts): warn_unused_macros is now
4835 cpp_warn_unused_macros.
4836 (push_command_line_include): Likewise.
4837 * c-common.c (warn_unknown_pragmas): Do not define.
4838 * c-common.h (warn_unknown_pragmas): Do not declare.
4839
3f46d6a5
MLI
48402012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4841
4842 PR c/51294
4843 * c-common.c (conversion_warning): Handle conditional expressions.
4844
880661a4
JW
48452012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4846
4847 PR c++/54930
4848 * c.opt (Wreturn_local_addr): Define new option.
4849
4514a96b
JM
48502012-10-25 Jason Merrill <jason@redhat.com>
4851
f14edc1a
JM
4852 * c.opt (Wvirtual-move-assign): New.
4853
4514a96b
JM
4854 * c.opt (Winherited-variadic-ctor): New.
4855
93100c6b
MG
48562012-10-25 Marc Glisse <marc.glisse@inria.fr>
4857
4858 PR c++/54427
4859 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4860
1efcb8c6
JM
48612012-10-23 Joseph Myers <joseph@codesourcery.com>
4862
4863 * c-common.h (pch_cpp_save_state): Declare.
4864 * c-target.def (c_preinclude): New hook.
4865 * c-opts.c (done_preinclude): New.
4866 (push_command_line_include): Handle default preincluded header.
4867 (cb_file_change): Call pch_cpp_save_state when calling
4868 push_command_line_include.
4869 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4870 (pch_cpp_save_state): New.
4871 (pch_init): Call pch_cpp_save_state conditionally, instead of
4872 calling cpp_save_state.
4873
4a0ae68e
MLI
48742012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4875
4876 PR c/53063
4877 PR c/40989
4878 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4879 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4880 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4881 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4882 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4883 * c-opts.c (c_common_handle_option): Remove explicit handling from
4884 here.
4885 (c_common_post_options): Likewise.
4886
67e4210b
EB
48872012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4888
4889 * c-ada-spec.c (LOCATION_COL): Delete.
4890 (compare_location): New function.
4891 (compare_node): Use it.
4892 (compare_comment): Likewise.
4893
65d4f2cd
MLI
48942012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4895
4896 PR c/53063
4897 PR c/40989
4898 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4899 * c-opts.c (c_common_handle_option): Do not set them here. Add
4900 comment.
4901 (c_common_post_options): Likewise.
4902
909881cb
EB
49032012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4904
4905 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4906 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4907 Remove POINTER_TYPE handling, add large unsigned handling and use
4908 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4909
3a785c97
JJ
49102012-10-12 Jakub Jelinek <jakub@redhat.com>
4911
4912 PR c/54381
4913 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4914 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4915 locs and array of 3 trees instead of just single loc and single
4916 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4917 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4918 For *cmp* builtins that take two sources strings report warnings
4919 about first and second source, not about destination and source.
4920
5e54f81d
MG
49212012-10-12 Marc Glisse <marc.glisse@inria.fr>
4922
4923 PR c++/53055
4924 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4925
f5b02f1e
EB
49262012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4927
4928 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4929 declaring something coming from another file.
4930
b46dbc6c
AC
49312012-10-10 Arnaud Charlet <charlet@adacore.com>
4932
f5b02f1e 4933 PR ada/54845
b46dbc6c
AC
4934 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4935
5d9de0d0
PC
49362012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4937
4938 PR c++/54194
4939 * c-common.c (warn_about_parentheses): Add location_t parameter;
4940 use EXPR_LOC_OR_LOC.
4941 * c-common.h: Update declaration.
4942
a212e43f
MG
49432012-10-09 Marc Glisse <marc.glisse@inria.fr>
4944
4945 PR c++/54427
4946 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4947 more operations. Make error messages optional.
4948 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4949 (scalar_to_vector): Declare.
4950
b1db7f91
JM
49512012-10-08 Jason Merrill <jason@redhat.com>
4952
4953 * c-common.c (c_common_reswords): Add thread_local.
4954
e28d52cf
DS
49552012-10-08 Dodji Seketeli <dodji@redhat.com>
4956
4957 PR c++/53528 C++11 attribute support
4958 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4959 new functions.
4960 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4961 static function.
4962 (handle_aligned_attribute): In choose strictest alignment
4963 among many. Use new check_cxx_fundamental_alignment_constraints.
4964 (handle_transparent_union_attribute): In c++11 attribute syntax,
4965 don't look through typedefs.
4966
3b78de56
AC
49672012-10-04 Arnaud Charlet <charlet@adacore.com>
4968
4969 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4970 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4971 out of dumpfile.h.
4972
6040bb5f
DC
49732012-09-25 Dehao Chen <dehao@google.com>
4974
4975 PR middle-end/54645
3b78de56 4976 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4977 map when read in the pch.
4978
3f8257db 49792012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
4980
4981 * c-ada-spec.c: Style fixes.
4982
3f8257db 49832012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
4984
4985 * c.opt (-fada-spec-parent): Define new command line switch.
4986 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4987 is specified, generate binding spec as a child of the specified unit.
4988
0ccb505d
PC
49892012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4990 Manuel López-Ibáñez <manu@gcc.gnu.org>
4991
4992 PR c++/53210
4993 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4994
c583af79
AC
49952012-08-23 Arnaud Charlet <charlet@adacore.com>
4996
4997 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4998 for pointers, and add missing Convention C pragma.
4999 (print_ada_struct_decl): Add missing aliased keyword.
5000 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5001
1a4049e7
JJ
50022012-08-17 Jakub Jelinek <jakub@redhat.com>
5003
5004 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5005 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5006 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5007 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5008 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5009
70b5e7dc
RG
50102012-08-10 Richard Guenther <rguenther@suse.de>
5011
5012 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5013
f8923f7e
SB
50142012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5015
5016 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5017 instead of separate pp_newline and pp_flush.
5018 (print_c_tree): Likewise.
5019
e45abe1f
RH
50202012-07-26 Richard Henderson <rth@redhat.com>
5021
5022 * c-common.c (handle_hot_attribute): Allow labels.
5023 (handle_cold_attribute): Likewise.
5024
332f1d24
JJ
50252012-07-20 Jakub Jelinek <jakub@redhat.com>
5026
5027 PR c++/28656
5028 * c-common.c (check_function_nonnull): Handle multiple nonnull
5029 attributes properly.
5030
7ee2468b
SB
50312012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5032
5033 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5034 * c-ada-spec.c: Likewise.
5035 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5036
ee7b28eb
SB
50372012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5038
5039 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5040 Remove code conditional on it.
5041
6bdf3519
SB
50422012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5043
5044 * c-gimplify.c: Do not include basic-block.h.
5045 * c-common.c: Do not include linfuncs.h.
5046
532aafad
SB
50472012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5048
5049 * c-common.h: Include tree.h.
5050
8d0d1915
JM
50512012-07-02 Jason Merrill <jason@redhat.com>
5052
5053 PR c++/53524
5054 * c-common.c (get_priority): Call default_conversion.
5055
fbc873ad
UB
50562012-07-01 Uros Bizjak <ubizjak@gmail.com>
5057
5058 * c-pch.c (c_common_write_pch): Remove unused variables.
5059
d4a10d0a
SB
50602012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5061
5062 * cppspec.c: Moved from gcc/ to here.
5063
6f3a2e23
KT
50642012-06-27 Kai Tietz <ktietz@redhat.com>
5065
5066 PR preprocessor/37215
5067 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5068
8ca92d04
SB
50692012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5070
5071 * c-common.h (c_common_print_pch_checksum): Remove.
5072 * c-pch.c: Do not include output.h.
5073 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5074 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5075 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5076 (struct c_pch_header): Remove.
5077 (get_ident): Update gpch version.
5078 (pch_init): Do not print executable_checksum to asm_out_file.
5079 Do not fail if there is no asm_out_file to read back from. Set
5080 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5081 (c_common_write_pch): Verify that nothing was written to asm_out_file
5082 since pch_init was called. Do not write a c_pch_header, and do not
5083 copy from asm_out_file to the PCH.
5084 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5085 the content of asm_out_file from the PCH.
5086 (c_common_print_pch_checksum): Remove.
5087 * c-opts.c (c_common_init): Print out executable_checksum directly.
5088
70f42967
SB
50892012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5090
5091 * c-target.def (objc_declare_unresolved_class_reference,
5092 objc_declare_class_definition): Add new hooks.
5093
a8781821
SB
50942012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5095
5096 * c-lex.c: Do not include output.h.
5097 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5098 Remove uses of ASM_OUTPUT_IDENT.
5099
9e1a8dd1
RR
51002012-06-15 Marc Glisse <marc.glisse@inria.fr>
5101
5102 PR c++/51033
5103 * c-common.h (c_build_vec_perm_expr): Move decl here.
5104 * c-common.c (c_build_vec_perm_expr): Move definition
5105 here.
5106
6f07a821
SB
51072012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5108
5109 * c.opt (fconserve-space): Turn into a no-op.
5110
9faeb493 51112012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5112
5113 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5114 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5115 both the start and end of the function.
5116
a4b7d13c
SB
51172012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5118
5119 * c-common.c: Do not include output.h.
5120 * c-pragma.c: Likewise.
5121
c265f413
SA
51222012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5123
5124 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5125 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5126 (lang_decl_name): Handle namespace decls.
5127
be7a421e
SB
51282012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5129
5130 * c-ada-spec.c: Do not include output.h.
5131 * c-semantics.c: Likewise.
5132
65de6659
JM
51332012-05-29 Joseph Myers <joseph@codesourcery.com>
5134
5135 * c-common.c: Fix typo.
5136
ca5f4331
MM
51372012-05-29 Michael Matz <matz@suse.de>
5138
5139 * c-common.h (c_expand_decl): Remove prototype.
5140
4f7f7aca
MLI
51412012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5142
5143 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5144 * c-opts.c (c_common_handle_option): Remove code handling
5145 warn_missing_braces.
5146
4a792f9b
PC
51472012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5148
5149 PR c++/25137
5150 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5151 -Wmissing_braces.
5152
650dc14a
DS
51532012-05-22 Dodji Seketeli <dodji@redhat.com>
5154
5155 PR c++/53322
5156 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5157
9b095bf1
MLI
51582012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5159
5160 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5161 * c-opts.c (c_common_handle_option): Do not handle explicitly
5162 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5163
0b2c4be5
DS
51642012-05-16 Dodji Seketeli <dodji@redhat.com>
5165
5166 PR preprocessor/7263
5167 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5168 to cpp_classify_number. For diagnostics, use the precise location
5169 instead of the global input_location.
5170
a1bde5af
PC
51712012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5172
d02924ef 5173 PR c++/11856
a1bde5af
PC
5174 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5175
d1ede5f4
BS
51762012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5177
a1bde5af 5178 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5179
f2bc201f
MLI
51802012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5181
5182 PR 53063
5183 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5184 Wreorder): Use LangEnabledBy.
5185 * c-opts.c (c_common_handle_option): Do not enable them
5186 explicitly. Call lang-specific generated functions.
5187 (c_common_post_options): Do not set them here.
5188
95744782
MLI
51892012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5190
5191 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5192 Wmissing-field-initializers,Wmissing-parameter-type,
5193 Wold-style-declaration,Woverride-init): Use EnabledBy.
5194 * c-opts.c (c_common_post_options): Do not set here explicitly.
5195
7d5a5747
MLI
51962012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5197
5198 PR 53063
5199 * c-opts.c (c_common_handle_option): Use handle_generated_option
5200 to enable sub-options.
5201
5a3c9cf2
PC
52022012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5203
5204 PR c++/53158
5205 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5206
3ac8781c
RG
52072012-05-10 Richard Guenther <rguenther@suse.de>
5208
5209 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5210 adjust commentary about TYPE_IS_SIZETYPE types.
5211
1e537948
MLI
52122012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5213
5214 PR c++/53261
5215 * c-common.c (warn_logical_operator): Check that argument of
5216 integer_zerop is not NULL.
5217
f2c4a785
MLI
52182012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5219
5220 PR c/43772
5221 * c-common.c (warn_logical_operator): Do not warn if either side
5222 is already true or false.
5223
50f305ca
MLI
52242012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5225
5226 PR c/51712
5227 * c-common.c (expr_original_type): New.
5228 (shorten_compare): Do not warn for enumeration types.
5229
0c3641b0
MLI
52302012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5231
5232 * c.opt (fpermissive): Add Var(flag_permissive).
5233
7edaa4d2
MG
52342012-04-30 Marc Glisse <marc.glisse@inria.fr>
5235
5236 PR c++/51033
5237 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5238 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5239
b9c8da34
DS
52402012-04-30 Dodji Seketeli <dodji@redhat.com>
5241
5242 Add -Wvarargs option
5243 * c.opt (Wvarargs): Define new option.
5244
e6c69da0
MLI
52452012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5246
5247 * c-common.c (check_function_arguments): Replace
5248 Wmissing-format-attribute with Wsuggest-attribute=format.
5249
90137d8f
MLI
52502012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5251
5252 * c.opt (Wsuggest-attribute=format): New. Alias of
5253 Wmissing-format-attribute.
5254 * c-format.c (decode_format_type): Replace
5255 Wmissing-format-attribute with Wsuggest-attribute=format.
5256 (check_function_format): Likewise.
5257
9faeb493 52582012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5259
5260 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5261 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5262 * c.opt: Add Wliteral-suffix.
5263
c1771a20
MLI
52642012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5265
5266 PR c/44774
5267 * c.opt (Wpedantic): New.
5268 (pedantic): Alias Wpedantic.
5269 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5270 (c_common_post_options): Likewise.
5271 (sanitize_cpp_opts): Likewise.
5272 * c-lex.c (interpret_float): Likewise.
5273 * c-format.c (check_format_types): Likewise.
5274 * c-common.c (pointer_int_sum): Likewise.
5275 (c_sizeof_or_alignof_type): Likewise.
5276 (c_add_case_label): Likewise.
5277 (c_do_switch_warnings): Likewise.
5278 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5279
04b391c1
JM
52802012-04-15 Jason Merrill <jason@redhat.com>
5281
5282 PR c++/52818
5283 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5284 (C_STD_NAME): Distinguish between C++98 and C++11.
5285
ac868f29
EB
52862012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5287
5288 PR target/52624
5289 * c-common.h (uint16_type_node): Rename into...
5290 (c_uint16_type_node): ...this.
5291 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5292 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5293
fd4116f4
MLI
52942012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5295
5296 * c-common.c (warn_if_unused_value): Move definition to here.
5297 * c-common.h (warn_if_unused_value): Move declaration to here.
5298
573ac65e
WB
52992012-03-23 William Bader <williambader@hotmail.com>
5300
5301 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5302
552b8185
JM
53032012-03-20 Jason Merrill <jason@redhat.com>
5304
5305 * c-common.h (enum cxx_dialect): Add cxx1y.
5306 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5307 test.
5308 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5309 * c-opts.c (c_common_post_options): Likewise.
5310 (set_std_cxx1y): New.
5311 (c_common_handle_option): Call it.
5312 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5313
04398fa8
PC
53142012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5315
5316 PR c++/14710
5317 * c.opt ([Wuseless-cast]): Add.
5318
d2a12ae7
RG
53192012-03-16 Richard Guenther <rguenther@suse.de>
5320
5321 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5322
a12bf402
MLI
53232012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5324
5325 PR c++/44783
5326 * c.opt (ftemplate-backtrace-limit) Add.
5327
5c30094f
RO
53282012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5329
5330 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5331 handling.
5332 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5333 (init_pragma): Don't register extern_prefix.
5334
21fa2faf
RG
53352012-03-12 Richard Guenther <rguenther@suse.de>
5336
5337 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5338 (builtin_type_for_size): Likewise.
5339
e3793c6f
JJ
53402012-02-13 Jakub Jelinek <jakub@redhat.com>
5341
5342 PR c++/52215
5343 * c-common.c (sync_resolve_params): Don't decide whether to convert
5344 or not based on TYPE_SIZE comparison, convert whenever arg_type
5345 is unsigned INTEGER_TYPE.
5346
93286335
PC
53472012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5348
5349 PR c/52118
5350 * c.opt ([Wunused-local-typedefs]): Fix description.
5351
7a421706
MS
53522012-01-24 Mike Stump <mikestump@comcast.net>
5353
5354 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5355 exactly.
5356
ba9b1f11
RG
53572012-01-18 Richard Guenther <rguenther@suse.de>
5358
5359 * c-opts.c (c_common_post_options): Reset LTO flags if
5360 we are about to generate a PCH.
5361
465406be
PC
53622012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5363
5364 PR c++/51777
5365 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5366 use pp_unsigned_wide_integer.
5367
aee15221
RG
53682012-01-10 Richard Guenther <rguenther@suse.de>
5369
5370 PR middle-end/51806
5371 * c-opts.c (c_common_handle_option): Move -Werror handling
5372 to language independent code.
5373
5720c0dc
RG
53742012-01-05 Richard Guenther <rguenther@suse.de>
5375
5376 PR middle-end/51764
5377 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5378 from common.opt.
5379
73ac190a
PC
53802011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5381
5382 PR c++/51316
5383 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5384 of array types with an unknown bound.
5385
48b0b196
JM
53862011-12-20 Joseph Myers <joseph@codesourcery.com>
5387
5388 * c-common.c (flag_isoc99): Update comment to refer to C11.
5389 (flag_isoc1x): Change to flag_isoc11.
5390 * c-common.h (flag_isoc99): Update comment to refer to C11.
5391 (flag_isoc1x): Change to flag_isoc11.
5392 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5393 C11.
5394 * c-opts.c (set_std_c1x): Change to set_std_c11.
5395 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5396 Call set_std_c11.
5397 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5398 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5399 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5400 standard.
5401 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5402 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5403 (std=gnu1x): Make alias of std=gnu11.
5404
d58d6eb5
JM
54052011-12-19 Jason Merrill <jason@redhat.com>
5406
5407 PR c++/51228
5408 * c-common.c (handle_transparent_union_attribute): Check the first
5409 field if the type is complete.
5410
b3908fcc
JW
54112011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5412
5413 PR libstdc++/51365
5414 * c-common.c (RID_IS_FINAL): Add.
5415 * c-common.h (RID_IS_FINAL): Add.
5416
fea3ca91
IS
54172011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5418
5419 * c.opt (fgnu-runtime): Provide full description.
5420 (fnext-runtime): Likewise.
5421 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5422
62bad7cd
AM
54232011-11-28 Andrew MacLeod <amacleod@redhat.com>
5424
5425 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5426 predefines in one place. Add LOCK_FREE predefines.
5427 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5428 new func.
5429
c466c4ff
AM
54302011-11-24 Andrew MacLeod <amacleod@redhat.com>
5431
5432 PR c/51256
9faeb493 5433 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5434 conditions
9faeb493
UB
5435 (resolve_overloaded_atomic_exchange,
5436 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5437 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5438 error_mark_node for error conditions.
9faeb493 5439
a5952633
RG
54402011-11-08 Richard Guenther <rguenther@suse.de>
5441
5442 PR middle-end/51010
5443 c-family/
5444
0a35513e
AH
54452011-11-07 Richard Henderson <rth@redhat.com>
5446 Aldy Hernandez <aldyh@redhat.com>
5447 Torvald Riegel <triegel@redhat.com>
5448
5449 Merged from transactional-memory.
5450
5451 * c-common.c (handle_tm_wrap_attribute,
5452 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5453 (struct c_common_reswords): Added __transaction* keywords.
5454 (struct c_common_attribute_table): Added transaction* and tm_regparm
5455 attributes.
5456 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5457 masks.
5458 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5459 find_tm_attribute): Declare.
5460
6d87092d
JM
54612011-11-07 Jason Merrill <jason@redhat.com>
5462
5463 PR c++/35688
5464 * c-common.c, c-common.h: Revert yesterday's changes.
5465
8e7860a1
JM
54662011-11-06 Jason Merrill <jason@redhat.com>
5467
5468 PR c++/35688
5469 * c-common.c (decl_has_visibility_attr): Split out from...
5470 (c_determine_visibility): ...here.
5471 * c-common.h: Declare it.
5472
d19fa6b5
JM
54732011-11-06 Joseph Myers <joseph@codesourcery.com>
5474
5475 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5476 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5477 type.
5478 (check_user_alignment): New. Split out of
5479 handle_aligned_attribute. Disallow integer constants with
5480 noninteger types. Conditionally allow zero.
5481 (handle_aligned_attribute): Use check_user_alignment.
5482 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5483
86951993
AM
54842011-11-06 Andrew MacLeod <amacleod@redhat.com>
5485 Richard Henderson <rth@redhat.com>
5486
5487 Merged from cxx-mem-model.
5488
5489 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5490 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5491 parameters that are the same type size.
5492 (get_atomic_generic_size): New. Find size of generic
5493 atomic function parameters and do typechecking.
5494 (add_atomic_size_parameter): New. Insert size into parameter list.
5495 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5496 either __atomic_exchange_n or external library call.
9faeb493 5497 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5498 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5499 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5500 __atomic_load_n or an external library call.
5501 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5502 __atomic_store_n or an external library call.
5503 (resolve_overloaded_builtin): Handle new __atomic builtins.
5504
cf9e9959
EB
55052011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5506
5507 PR c++/50608
5508 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5509 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5510 <INDIRECT_REF>: Return the argument.
5511 <ARRAY_REF>: Remove special code for negative offset.
5512 Call fold_build_pointer_plus instead of size_binop.
5513 (fold_offsetof): Remove STOP_REF argument and adjust.
5514 * c-common.h (fold_offsetof_1): Declare.
5515 (fold_offsetof): Remove STOP_REF argument.
5516
25339f10
JM
55172011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5518
5519 PR c++/50810
5520 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5521 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5522 Wnarrowing for C++0x and C++98.
5523 * c.opt ([Wnarrowing]): Update.
5524
89401152
PC
55252011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5526
5527 PR c++/44277
5528 * c.opt: Add Wzero-as-null-pointer-constant.
5529
97e3ad20
JM
55302011-10-31 Jason Merrill <jason@redhat.com>
5531
15694fdd
JM
5532 * c.opt (-fdeduce-init-list): Off by default.
5533
97e3ad20
JM
5534 PR c++/50920
5535 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5536 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5537 and -Wc++11-compat.
5538 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5539
fb9120e3
RAV
55402011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5541
5542 PR c++/30066
5543 * c.opt (fvisibility-inlines-hidden): Description change.
5544
3ce4f9e4
ESR
55452011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5546
5547 Implement C++11 user-defined literals.
5548 * c-common.c (build_userdef_literal): New.
5549 * c-common.def: New tree code.
5550 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5551 * c-lex.c (interpret_float): Add suffix parm.
5552 (c_lex_with_flags): Build literal tokens.
5553
5f53c243
PC
55542011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5555
5556 PR c++/50841
5557 Revert:
5558 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5559
5560 PR c++/50810
5561 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5562 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5563 Wnarrowing for C++0x and C++98.
5564 * c.opt ([Wnarrowing]): Update.
5565
263734e1
PC
55662011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5567
5568 PR c++/50810
5569 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5570 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5571 Wnarrowing for C++0x and C++98.
5572 * c.opt ([Wnarrowing]): Update.
5573
d2e312d7
PC
55742011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5575
5576 PR c++/45385
5577 * c-common.c (conversion_warning): Remove code looking for
5578 artificial operands.
5579
d17687f6
DS
55802011-10-18 Dodji Seketeli <dodji@redhat.com>
5581
5582 PR bootstrap/50760
5583 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5584 !NO_IMPLICIT_EXTERN_C.
d17687f6 5585
fc8396e9
PC
55862011-10-17 Michael Spertus <mike_spertus@symantec.com>
5587
5588 * c-common.c (c_common_reswords): Add __bases,
5589 __direct_bases.
5590 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5591
55922011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5593
5594 PR c++/50757
5595 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5596
847e697a
TT
55972011-10-15 Tom Tromey <tromey@redhat.com>
5598 Dodji Seketeli <dodji@redhat.com>
5599
5600 * c.opt (fdebug-cpp): New option.
5601 * c-opts.c (c_common_handle_option): Handle the option.
5602 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5603 output stream in parameter. Factorized from ...
5604 (maybe_print_line): ... this. Dump location debug information when
5605 -fdebug-cpp is in effect.
5606 (print_line_1): New static function. Takes an output stream in
5607 parameter. Factorized from ...
5608 (print_line): ... here. Dump location information when -fdebug-cpp
5609 is in effect.
5610 (scan_translation_unit): Dump location information when
5611 -fdebug-cpp is in effect.
5612
92582b75
TT
56132011-10-15 Tom Tromey <tromey@redhat.com>
5614 Dodji Seketeli <dodji@redhat.com>
5615
5616 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5617 without argument.
5618 * c-opts.c (c_common_handle_option)<case
5619 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5620 cases. Handle -ftrack-macro-expansion with and without argument.
5621
46427374
TT
56222011-10-15 Tom Tromey <tromey@redhat.com>
5623 Dodji Seketeli <dodji@redhat.com>
5624
5625 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5626 (print_line, cb_define, do_line_change): Adjust to avoid touching
5627 the internals of struct line_map. Use the public API instead.
5628 * c-pch.c (c_common_read_pch): Likewise.
5629 * c-lex.c (fe_file_change): Likewise.
5630
fc8396e9
PC
56312011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5632
5633 PR c++/17212
5634 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5635
56362011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5637
5638 PR c++/33067
5639 * c-pretty-print.c (pp_c_floating_constant): Output
5640 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5641
e79983f4
MM
56422011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5643
5644 * c-common.c (def_builtin_1): Delete old interface with two
5645 parallel arrays to hold standard builtin declarations, and replace
5646 it with a function based interface that can support creating
5647 builtins on the fly in the future. Change all uses, and poison
5648 the old names. Make sure 0 is not a legitimate builtin index.
5649 * c-omp.c (c_finish_omp_barrier): Ditto.
5650 (c_finish_omp_taskwait): Ditto.
5651 (c_finish_omp_flush): Ditto.
5652
6637388f
TG
56532011-10-11 Tristan Gingold <gingold@adacore.com>
5654
5655 * c.opt: (fallow-parameterless-variadic-functions): New.
5656
3797cb21
DS
56572011-09-08 Dodji Seketeli <dodji@redhat.com>
5658
5659 PR c++/33255 - Support -Wunused-local-typedefs warning
5660 * c-common.h (struct c_language_function::local_typedefs): New
5661 field.
9faeb493
UB
5662 (record_locally_defined_typedef, maybe_record_typedef_use)
5663 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5664 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5665 (maybe_record_typedef_use)
5666 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5667 * c.opt: Declare new -Wunused-local-typedefs flag.
5668
693ddb1b
EB
56692011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5670
5671 PR middle-end/50266
5672 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5673 computations.
5674
830c740f
RG
56752011-09-05 Richard Guenther <rguenther@suse.de>
5676
5677 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5678 of integer_minus_one_node for empty array upper bounds.
5679
892a371f
DS
56802011-08-28 Dodji Seketeli <dodji@redhat.com>
5681
5682 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5683 it's the first time it's being called on this main TU.
5684
0e3fdb48
RB
56852011-08-24 Richard Guenther <rguenther@suse.de>
5686
5687 PR c/49396
5688 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5689
56902011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5691
5692 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5693 defined in cpp_init_builtins and c_cpp_builtins.
5694
d4a83c10
JM
56952011-08-19 Joseph Myers <joseph@codesourcery.com>
5696
5697 * c-common.c (c_common_reswords): Add __builtin_complex.
5698 * c-common.h (RID_BUILTIN_COMPLEX): New.
5699
bbceee64
JM
57002011-08-18 Joseph Myers <joseph@codesourcery.com>
5701
5702 * c-common.c (c_common_reswords): Add _Noreturn.
5703 (keyword_is_function_specifier): Handle RID_NORETURN.
5704 * c-common.h (RID_NORETURN): New.
5705
3f8257db 57062011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5707
5708 * c-common.c (unsafe_conversion_p): New function. Check if it is
5709 unsafe to convert an expression to the type.
5710 (conversion_warning): Adjust, use unsafe_conversion_p.
5711 * c-common.h (unsafe_conversion_p): New function declaration.
5712
20906c66
JJ
57132011-08-02 Jakub Jelinek <jakub@redhat.com>
5714
5715 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5716 (c_finish_omp_taskyield): New prototype.
5717 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5718 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5719 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5720 or RHS1 have side-effects, evaluate those too in the right spot,
5721 if it is a decl and LHS is also a decl, error out if they
5722 aren't the same.
5723 (c_finish_omp_taskyield): New function.
5724 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5725 * c-pragma.c (omp_pragmas): Add taskyield.
5726 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5727 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5728 PRAGMA_OMP_CLAUSE_MERGEABLE.
5729
770e5a2e
DS
57302011-07-25 Dodji Seketeli <dodji@redhat.com>
5731
5732 * c-common.h (set_underlying_type): Remove parm name from
5733 declaration.
5734
1baae426
RG
57352011-07-25 Romain Geissler <romain.geissler@gmail.com>
5736
5737 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5738
fcb21722
JM
57392011-07-22 Jason Merrill <jason@redhat.com>
5740
76f86d00
JM
5741 PR c++/49793
5742 * c.opt (Wnarrowing): New.
5743
3a636414
JM
5744 PR c++/30112
5745 * c-common.h: Declare c_linkage_bindings.
5746 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5747
fcb21722
JM
5748 PR c++/49813
5749 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5750 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5751 as flag_isoc99 for 'restrict'.
5752 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5753
02614448
ILT
57542011-07-21 Ian Lance Taylor <iant@google.com>
5755
5756 PR middle-end/49705
5757 * c-common.c (c_disable_warnings): New static function.
5758 (c_enable_warnings): New static function.
5759 (c_fully_fold_internal): Change local unused_p to bool. Call
5760 c_disable_warnings and c_enable_warnings rather than change
5761 c_inhibit_evaluation_warnings.
5762
34429675
JM
57632011-07-20 Jason Merrill <jason@redhat.com>
5764
5765 PR c++/6709 (DR 743)
5766 PR c++/42603 (DR 950)
5767 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5768 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5769 (CPP_DECLTYPE): New.
5770 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5771
5d49b6a7
RG
57722011-07-19 Richard Guenther <rguenther@suse.de>
5773
5774 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5775 * c-omp.c (c_finish_omp_for): Likewise.
5776
e84a58ff
EB
57772011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5778
5779 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5780 body on the next line.
5781
329af3c7
JM
57822011-07-08 Jason Merrill <jason@redhat.com>
5783
4063e61b
JM
5784 PR c++/45437
5785 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5786
329af3c7
JM
5787 PR c++/49673
5788 * c-common.c (c_apply_type_quals_to_decl): Don't check
5789 TYPE_NEEDS_CONSTRUCTING.
5790
1a072294
RG
57912011-07-06 Richard Guenther <rguenther@suse.de>
5792
5793 * c-common.c (c_common_nodes_and_builtins):
5794 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5795
fce5dddd
RG
57962011-07-05 Richard Guenther <rguenther@suse.de>
5797
5798 * c-common.c (c_common_nodes_and_builtins): Build all common
5799 tree nodes first.
5800
45d439ac
JJ
58012011-06-27 Jakub Jelinek <jakub@redhat.com>
5802
56300785
JJ
5803 * c-common.h (c_tree_chain_next): New static inline function.
5804
45d439ac
JJ
5805 * c-common.c (check_builtin_function_arguments): Handle
5806 BUILT_IN_ASSUME_ALIGNED.
5807
e0a8ecf2
AM
58082011-06-21 Andrew MacLeod <amacleod@redhat.com>
5809
5810 * c-common.c: Add sync_ or SYNC__ to builtin names.
5811 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5812
58132011-06-20 Pierre Vittet <piervit@pvittet.com>
5814
5815 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5816 handler.
5817 (gen_pragma_handler): New union.
5818 (internal_pragma_handler): New type.
5819 (c_register_pragma_with_data)
5820 (c_register_pragma_with_expansion_and_data): New functions.
5821
5822 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5823 (c_register_pragma, c_register_pragma_with_expansion)
5824 (c_invoke_pragma_handler): Changed to work with
5825 internal_pragma_handler.
5826 (c_register_pragma_with_data)
5827 (c_register_pragma_with_expansion_and_data): New functions.
5828
677f3fa8
JM
58292011-06-14 Joseph Myers <joseph@codesourcery.com>
5830
5831 * c-common.c: Include common/common-target.h.
5832 (handle_section_attribute): Use
5833 targetm_common.have_named_sections.
5834 * c-cppbuiltin.c: Include common/common-target.h.
5835 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5836
d7fc8c14
RG
58372011-06-10 Richard Guenther <rguenther@suse.de>
5838
5839 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5840 to print a IDENTIFIER_NODE.
5841
10e48e39
RO
58422011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5843 Joseph Myers <joseph@codesourcery.com>
5844
5845 * c.opt (fbuilding-libgcc): New option.
5846 * c-cppbuiltin.c (c_cpp_builtins): Define
5847 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5848
6976ae51
JM
58492011-06-07 Jason Merrill <jason@redhat.com>
5850
3ff60975
JM
5851 * c-common.c (max_tinst_depth): Lower default to 900.
5852
6976ae51
JM
5853 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5854
009db074
RG
58552011-06-07 Richard Guenther <rguenther@suse.de>
5856
5857 * c-common.c (c_common_nodes_and_builtins): Do not set
5858 size_type_node or call set_sizetype.
5859
b4592b92
DS
58602011-06-07 Dodji Seketeli <dodji@redhat.com>
5861
5862 PR debug/49130
5863 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5864 type when using pointer comparison to compare types.
b4592b92 5865
014ab419
JW
58662011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5867
5868 * c.opt: Add -Wdelete-non-virtual-dtor.
5869 * c-opts.c (c_common_handle_option): Include it in -Wall.
5870
4f60111f
NF
58712011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5872
5873 PR bootstrap/49190
5874
5875 Revert:
5876 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5877
5878 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5879 not tree_common.
5880
4cc4f2f4
JJ
58812011-05-27 Jakub Jelinek <jakub@redhat.com>
5882
5883 PR c++/49165
5884 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5885 C++ don't call c_common_truthvalue_conversion on void type arms.
5886
38e01f9e
NF
58872011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5888
5889 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5890 (stmt_list_stack): Define.
5891 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5892 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5893
92e948a8
NF
58942011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5895
5896 * c-common.c (warning_candidate_p): Check for BLOCKs.
5897
a2fc3e63
NF
58982011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5899
5900 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5901 not tree_common.
5902
0957c029
JJ
59032011-05-25 Jakub Jelinek <jakub@redhat.com>
5904
5905 * c-common.c (def_fn_type): Remove extra va_end.
5906
828fb3ba
JM
59072011-05-23 Jason Merrill <jason@redhat.com>
5908
5909 PR c++/48106
5910 * c-common.c (c_common_get_narrower): New.
5911 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5912
dde05067
NF
59132011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5914
5915 * c-common.h (check_function_arguments): Tweak prototype of
5916 check_function_arguments.
5917 * c-common.c (check_function_arguments): Likewise. Adjust
5918 calls to check_function_nonnull, check_function_format, and
5919 check_function_sentinel.
5920 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5921 separate attributes and typelist arguments. Use
5922 FOREACH_FUNCTION_ARGS to iterate over argument types.
5923
3c0d13bf
PC
59242011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5925
5926 * c-common.c (c_common_reswords): Reorder.
5927 * c-common.h (rid): Likewise.
5928
8242dd04
NF
59292011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5930
5931 * c-common.c (def_fn_type): Don't call build_function_type, call
5932 build_function_type_array or build_varargs_function_type_array
5933 instead.
5934 (c_common_nodes_and_builtins): Likewise.
5935
3d528853
NF
59362011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5937
5938 * c-common.c (c_add_case_label): Omit the loc argument to
5939 build_case_label.
5940 * c-common.h (build_case_label): Remove.
5941 * c-semantics.c (build_case_label): Remove.
5942
a04a722b
JM
59432011-05-05 Joseph Myers <joseph@codesourcery.com>
5944
5945 * c-objc.h (objc_start_method_definition): Update prototype.
5946 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5947
e19a18d4
NF
59482011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5949
5950 * c-common.c (check_main_parameter_types): Reindent. Don't use
5951 TYPE_ARG_TYPES directly.
5952 (handle_nonnull_attribute): Likewise.
5953 (sync_resolve_params): Likewise.
5954 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5955 to check_format_string.
5956 (handle_format_attribute): Likewise.
5957 (check_format_string): Take a function type to examine instead of
5958 a type list. Use a function_arg_iterator to step through argument
5959 types.
5960
c62c040f
RG
59612011-05-04 Richard Guenther <rguenther@suse.de>
5962
5963 * c-common.c (fix_string_type): Use size_int for index type bounds.
5964 (start_fname_decls): Do not pass NULL to build_int_cst.
5965 (c_init_attributes): Likewise.
5966 * c-lex.c (c_lex_with_flags): Likewise.
5967
c12ff9d8
JM
59682011-04-27 Jason Merrill <jason@redhat.com>
5969
5970 * c-common.c (make_tree_vector_from_list): New.
5971 * c-common.h: Declare it.
5972
304dfbe3
RG
59732011-04-26 Richard Guenther <rguenther@suse.de>
5974
5975 PR preprocessor/48248
5976 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5977 for output size with -P.
5978
3c0d13bf
PC
59792011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5980
5981 * c-common.c (struct c_common_resword): Add __underlying_type.
5982 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5983
04695783
JM
59842011-04-20 Jim Meyering <meyering@redhat.com>
5985
5986 * c-format.c (init_dollar_format_checking): Remove useless
5987 if-before-free.
5988
0dc33c3c
NP
59892011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5990
5991 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5992 (objc_detect_field_duplicates): New.
0dc33c3c 5993 * stub-objc.c: Likewise.
3c0d13bf 5994
c59633d9
NP
59952011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5996
5997 * stub-objc.c (objc_declare_protocols): Renamed to
5998 objc_declare_protocol.
5999 * c-objc.h: Likewise.
3c0d13bf 6000
32dabdaf
NP
60012011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6002
6003 * stub-objc.c (objc_declare_class): Updated argument name.
6004
81f653d6
NF
60052011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6006
6007 * c-common.h (c_common_init_ts): Declare.
6008 * c-common.c (c_common_init_ts): Define.
6009
eb345401
NP
60102011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6011
6012 * c-objc.h (objc_build_message_expr): Updated prototype.
6013 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6014
a358e188
MJ
60152011-04-12 Martin Jambor <mjambor@suse.cz>
6016
6017 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6018 of cgraph_node.
6019
e6313a78
RG
60202011-04-11 Richard Guenther <rguenther@suse.de>
6021
6022 * c-common.c (complete_array_type): Build a range type of
6023 proper type.
6024
dcf0c47e
NF
60252011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6026
6027 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6028 (handle_type_generic_attribute): Likewise.
6029
1ee44b26
JM
60302011-04-07 Jason Merrill <jason@redhat.com>
6031
6032 PR c++/48450
6033 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6034 conversion from C++0x scoped enum.
6035
acce4e77
JM
60362011-04-06 Joseph Myers <joseph@codesourcery.com>
6037
6038 * c-target-def.h: New file.
6039 * c-target.def: New file.
6040 * c-target.h: New file.
6041 * c-common.c (targetcm): Don't define here.
6042 * c-common.h (default_handle_c_option): Declare.
6043 * c-format.c: Include c-target.h instead of target.h.
6044 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6045 include tm.h.
6046 (default_handle_c_option): Move from targhooks.c.
6047
e2eefb55
JJ
60482011-03-29 Jakub Jelinek <jakub@redhat.com>
6049
6050 PR preprocessor/48248
6051 * c-ppoutput.c (print): Add src_file field.
6052 (init_pp_output): Initialize it.
6053 (maybe_print_line): Don't optimize by adding up to 8 newlines
6054 if map->to_file and print.src_file are different file.
6055 (print_line): Update print.src_file.
6056
ba78087b
KT
60572011-03-25 Kai Tietz <ktietz@redhat.com>
6058
6059 * c-ada-spec.c (compare_comment): Use filename_cmp
6060 instead of strcmp for filename.
6061
0edf1bb2
JL
60622011-03-25 Jeff Law <law@redhat.com>
6063
adfac8df 6064 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6065
c7dc8804
JM
60662011-03-25 Jason Merrill <jason@redhat.com>
6067
6068 * c.opt: Add -std=c++03.
6069
d1d879b1
EB
60702011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6071
6072 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6073
3f8257db 60742011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6075
6076 PR target/12171
5050afdf
KT
6077 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6078 Display allowed attributes for function pointer types.
6079 (pp_c_attributes_display): New function to display
6080 attributes having affects_type_identity flag set to true.
6081 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6082
62d784f7
KT
6083 * c-common.c (c_common_attribute_table):
6084 Add new element.
6085 (c_common_format_attribute_table): Likewise.
6086
82d37118
JM
60872011-03-18 Jason Merrill <jason@redhat.com>
6088
49a000c3
JM
6089 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6090 * c-common.h: Don't declare it here.
6091 * c-common.c: Or define it here.
6092 * c-opts.c (c_common_handle_option): Or set it here.
6093
82d37118
JM
6094 PR c++/35315
6095 * c-common.c (handle_transparent_union_attribute): Don't
6096 make a duplicate type in C++.
6097
17bc631c
JM
60982011-03-15 Jason Merrill <jason@redhat.com>
6099
6100 * c-common.c (max_constexpr_depth): New.
6101 * c-common.h: Declare it.
6102 * c-opts.c (c_common_handle_option): Set it.
6103 * c.opt (fconstexpr-depth): New option.
6104
1b9b91a6
JM
61052011-03-11 Jason Merrill <jason@redhat.com>
6106
f231b5ff
JM
6107 * c-common.c (attribute_takes_identifier_p): Add missing const.
6108
1b9b91a6
JM
6109 PR c++/46803
6110 * c-common.c (attribute_takes_identifier_p): Assume that an
6111 unknown attribute takes an identifier.
6112
a19e4d44
NF
61132011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6114
6115 PR c/47786
6116 * c-common.c (c_type_hash): Call list_length instead of iterating
6117 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6118
982d62f6
JJ
61192011-02-19 Jakub Jelinek <jakub@redhat.com>
6120
6121 PR c/47809
6122 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6123
0a256240
NP
61242011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6125
6126 * c.opt (fobjc-abi-version=) New.
6127 (fobjc-nilcheck): New.
6128
ba9e6dd5
NF
61292011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6130
6131 PR c++/46890
6132 * c-common.h (keyword_is_decl_specifier): Declare.
6133 * c-common.c (keyword_is_decl_specifier): Define.
6134 (keyword_is_function_specifier): New function.
6135
7273813a
JJ
61362011-01-26 Jakub Jelinek <jakub@redhat.com>
6137
6138 PR c/47473
6139 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6140 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6141 REAL_TYPE.
6142
908ef79b
AC
61432011-01-26 Arnaud Charlet <charlet@adacore.com>
6144
6145 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6146
237e9384
JJ
61472011-01-26 Jakub Jelinek <jakub@redhat.com>
6148
6149 PR pch/47430
6150 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6151 after init_c_lex if pch_file is set.
6152
47ea1edf
DK
61532011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6154
d4dba752 6155 PR c++/43601
47ea1edf
DK
6156 * c.opt (-fkeep-inline-dllexport): New switch.
6157
2aa9c6ae
RG
61582011-01-12 Richard Guenther <rguenther@suse.de>
6159
6160 PR middle-end/32511
6161 * c-common.c (handle_weak_attribute): Warn instead of error
6162 on declaring an inline function weak.
6163
7bd11157
TT
61642011-01-05 Tom Tromey <tromey@redhat.com>
6165
6166 * c-common.h (lvalue_error): Update.
6167 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6168 not error.
6169
0e66e494 61702010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6171
b4f588c4
NP
6172 PR objc/47075
6173 * c-objc.h (objc_finish_message_expr): Added argument to
6174 prototype.
6175
f4da8dce
NF
61762010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6177
6178 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6179 Use prototype_p.
6180
46270f14
NP
61812010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6182
6183 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6184 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6185
4816c593
NF
61862010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6187
6188 * c-common.h (readonly_error): Declare.
6189 * c-common.c (readonly_error): Define.
6190
7a6daeb0
NF
61912010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6192
6193 * c-common.h (invalid_indirection_error): Declare.
6194 * c-common.c (invalid_indirection_error): Define.
6195
892f6119
RG
61962010-12-03 Richard Guenther <rguenther@suse.de>
6197
6198 PR c/46745
6199 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6200 (pp_c_unary_expression): Likewise.
6201 (pp_c_expression): Likewise.
6202
6c39e757
NP
62032010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6204
6205 * c-common.h (objc_finish_function): New.
6206 (objc_non_volatilized_type): Removed.
6207 (objc_type_quals_match): Removed.
6208 * stub-objc.c (objc_finish_function): New.
6209 (objc_non_volatilized_type): Removed.
6210 (objc_type_quals_match): Removed.
9faeb493 6211
7c475d11
JM
62122010-11-30 Joseph Myers <joseph@codesourcery.com>
6213
6214 * c-common.h (parse_optimize_options): Declare.
6215 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6216 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6217
71f3e391
JM
62182010-11-29 Joseph Myers <joseph@codesourcery.com>
6219
6220 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6221 GET_ENVIRONMENT.
6222 * c-pch.c (O_BINARY): Don't define here.
6223 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6224
d5fabb58
JM
62252010-11-25 Joseph Myers <joseph@codesourcery.com>
6226
6227 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6228 targetm.except_unwind_info.
6229
299404a1
JM
62302010-11-23 Joseph Myers <joseph@codesourcery.com>
6231
6232 * c-opts.c (c_common_handle_option): Pass location to
6233 set_struct_debug_option.
6234
c98cd5bf
JM
62352010-11-23 Joseph Myers <joseph@codesourcery.com>
6236
6237 * c-common.c (visibility_options): Move from ../opts.c.
6238 * c-common.h (struct visibility_flags, visibility_options):
6239 Declare here.
6240 * c-opts.c (finish_options): Rename to c_finish_options.
6241 (c_common_init): Update call to finish_options.
6242
a9546771
NP
62432010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6244
6245 PR objc/34033
6246 * c-lex.c (lex_string): Check that each string in an Objective-C
6247 string concat sequence starts with either one or zero '@', and
6248 that there are no spurious '@' signs at the end.
6249
24a57808
JM
62502010-11-20 Joseph Myers <joseph@codesourcery.com>
6251
6252 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6253 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6254 HANDLE_PRAGMA_VISIBILITY.
6255 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6256 HANDLE_PRAGMA_VISIBILITY): Don't define.
6257 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6258
a9aa2c3a
NF
62592010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6260
6261 PR c++/16189
6262 PR c++/36888
6263 PR c++/45331
6264 * c-common.h (keyword_begins_type_specifier): Declare.
6265 (keyword_is_storage_class_specifier): Declare.
6266 (keyword_is_type_qualifier): Declare.
6267 * c-common.c (keyword_begins_type_specifier): New function.
6268 (keyword_is_storage_class_specifier): New function.
6269 (keyword_is_type_qualifier): Declare.
6270
5386338c
JM
62712010-11-19 Joseph Myers <joseph@codesourcery.com>
6272
6273 PR c/46547
6274 * c-common.c (in_late_binary_op): Define.
6275 (c_common_truthvalue_conversion): Check in_late_binary_op before
6276 calling c_save_expr.
6277 * c-common.h (in_late_binary_op): Declare.
6278
69ccdddb
JM
62792010-11-19 Joseph Myers <joseph@codesourcery.com>
6280
6281 * c-opts.c (c_common_handle_option): Update calls to
6282 set_struct_debug_option.
6283
6b192a09
NP
62842010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6285
6286 * c-common.h (objc_declare_protocols): Added additional argument.
6287 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6288
fb52b50a
NF
62892010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6290
6291 PR c/33193
6292 * c-common.h (build_real_imag_expr): Declare.
6293 * c-semantics.c (build_real_imag_expr): Define.
6294
b37421c6
JM
62952010-11-17 Joseph Myers <joseph@codesourcery.com>
6296
6297 * c-opts.c (c_common_parse_file): Take no arguments.
6298 * c-common.h (c_common_parse_file): Update prototype.
6299
07078664
JJ
63002010-11-16 Jakub Jelinek <jakub@redhat.com>
6301
6302 PR c++/46401
6303 * c-common.c (warning_candidate_p): Don't track non-const calls
6304 or STRING_CSTs.
6305
c6a13190
ILT
63062010-11-15 Ian Lance Taylor <iant@google.com>
6307
6308 * c-lex.c (init_c_lex): Set macro debug callbacks if
6309 flag_dump_go_spec is set.
6310
925e8657
NP
63112010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6312
6313 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6314 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6315
bb0a9581
NF
63162010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6317
6318 PR preprocessor/45038
6319 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6320 dialects.
6321
c5fa0890
JM
63222010-11-12 Joseph Myers <joseph@codesourcery.com>
6323
6324 * c-common.h (c_family_lang_mask): Declare.
6325 * c-opts.c (c_family_lang_mask): Make extern.
6326 * c-pragma.c (handle_pragma_diagnostic): Use
6327 control_warning_option.
6328
a4d8c676
JM
63292010-11-12 Joseph Myers <joseph@codesourcery.com>
6330
6331 * c-common.c (parse_optimize_options): Update call to
6332 decode_options.
6333 * c-common.h (c_common_handle_option): Update prototype.
6334 * c-opts.c (c_common_handle_option): Take location_t parameter and
6335 pass it to other functions.
6336
f954bd2c
JM
63372010-11-11 Joseph Myers <joseph@codesourcery.com>
6338
6339 * c-opts.c (warning_as_error_callback): Remove.
6340 (c_common_initialize_diagnostics): Don't call
6341 register_warning_as_error_callback.
6342 (c_common_handle_option): Handle -Werror=normalized= here.
6343
d8a07487
JM
63442010-11-10 Joseph Myers <joseph@codesourcery.com>
6345
6346 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6347 in diagnostic.
6348 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6349 letter.
6350 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6351 Remove trailing '.' from diagnostics.
6352 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6353
d5478783
JM
63542010-11-10 Joseph Myers <joseph@codesourcery.com>
6355
6356 * c-common.c (parse_optimize_options): Pass global_dc to
6357 decode_options.
6358 * c-opts.c (c_common_handle_option): Pass &global_options to
6359 set_Wstrict_aliasing.
6360 * c.opt (v): Don't mark Common or document here.
6361
91ebb981
IS
63622010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6363
6364 PR target/44981
6365 * c-format.c (format_type): New type gcc_objc_string_format_type.
6366 (valid_stringptr_type_p): New.
6367 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6368 (check_format_string): Pass expected type, use
91ebb981
IS
6369 valid_stringptr_type_p (), check that the format string types are
6370 consistent with the format specification.
6371 (decode_format_attr): Warn if NSString is used outside objective-c.
6372 (format_types_orig): Add NSString.
6373 (format_name): New.
6374 (format_flags): New.
6375 (check_format_arg): Handle format strings requiring an external parser.
6376 first_target_format_type: New variable.
6377 (handle_format_attribute): Set up first_target_format_type, pass the
6378 expected format arg string type to check_format_string().
6379 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6380 * stub-objc.c (objc_string_ref_type_p): New.
6381 (objc_check_format_arg): New.
6382
bede2adc
NP
63832010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6384
9faeb493 6385 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6386 * c-common.h (objc_build_class_component_ref): New.
6387 * stub-objc.c (objc_build_class_component_ref): New.
6388
9a179d01
NP
63892010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6390
6391 * c.opt (Wproperty-assign-default): New option.
6392
22d8d616
NP
63932010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6394
6395 Implemented -fobjc-std=objc1 flag.
6396 * c.opt (fobjc-std=objc1): New option.
6397
2debdb4f
NP
63982010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6399
6400 Implemented format and noreturn attributes for Objective-C methods.
6401 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6402 attribute for Objective-C methods.
6403
ec52b111
JM
64042010-10-31 Jason Merrill <jason@redhat.com>
6405
6406 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6407 EXPR_LOC_OR_HERE.
6408
46a88c12
NP
64092010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6410
6411 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6412 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6413 (objc_add_property_declaration): Removed arguments for copies and
6414 ivar.
6415 (objc_build_getter_call): Renamed to
6416 objc_maybe_build_component_ref.
6417 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6418 (objc_is_property_ref): New.
6419 * c-common.c (c_common_reswords): Removed copies and ivar.
6420 * stub-objc.c (objc_add_property_declaration): Removed arguments
6421 for copies and ivar.
6422 (objc_build_getter_call): Renamed to
6423 objc_maybe_build_component_ref.
6424 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6425 (objc_is_property_ref): New.
9faeb493 6426
1e4bf85b
AC
64272010-10-29 Arnaud Charlet <charlet@adacore.com>
6428 Matthew Gingell <gingell@adacore.com>
6429
6430 * c-ada-spec.c (separate_class_package): New function.
6431 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6432 name of their enclosing package.
6433 (print_ada_declaration): Use separate_class_package.
6434
81f0bab2
JM
64352010-10-27 Jason Merrill <jason@redhat.com>
6436
2b08f2c5
JM
6437 * c-common.c (c_common_reswords): Add __is_literal_type.
6438 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6439
81f0bab2
JM
6440 * c-common.c (check_case_value): Remove special C++ code.
6441
200290f2
NP
64422010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6443
6444 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6445 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6446 and RID_LAST_PATTR.
6447 (objc_add_property_declaration): Added additional arguments.
6448 (objc_property_attribute_kind): Removed.
6449 (objc_set_property_attr): Removed.
6450 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6451 copy and nonatomic.
6452 * stub-objc.c (objc_add_property_declaration): Added additional
6453 arguments.
6454 (objc_set_property_attr): Removed.
9faeb493 6455
f614132b
NP
64562010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6457
6458 * c-common.h (objc_add_property_variable): Renamed to
6459 objc_add_property_declaration. Added location argument.
6460 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6461
b8a18805
NP
64622010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6463
6464 * c-common.h (objc_maybe_printable_name): New.
6465 * stub-objc.c (objc_maybe_printable_name): New.
6466
3f8257db
JJ
64672010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6468 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6469
6470 * c-common.h (c_common_mark_addressable_vec): Declare.
6471 * c-common.c (c_common_mark_addressable_vec): New function.
6472
249a82c4
NP
64732010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6474
6475 * c-common.h (objc_set_method_type): Removed.
6476 (objc_add_method_declaration): Added boolean argument.
6477 (objc_start_method_definition): Same change.
6478 (objc_build_method_signature): Same change.
6479 * stub-objc.c (objc_set_method_type): Removed.
6480 (objc_add_method_declaration): Added boolean argument.
6481 (objc_start_method_definition): Same change.
6482 (objc_build_method_signature): Same change.
6483
977e30bc
NP
64842010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6485
6486 * c-common.h (finish_file): Removed.
6487 (objc_write_global_declarations): New.
6488 * c-opts.c (c_common_parse_file): Do not call finish_file.
6489 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6490
da57d1b9
NP
64912010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6492
6493 Implemented parsing @synthesize and @dynamic for
6494 Objective-C/Objective-C++.
6495 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6496 (objc_add_synthesize_declaration): New.
6497 (objc_add_dynamic_declaration): New.
6498 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6499 * stub-objc.c (objc_add_synthesize_declaration): New.
6500 (objc_add_dynamic_declaration): New.
9faeb493 6501
0069111f
MM
65022010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6503
6504 PR target/46041
6505 * c-cppbuiltin.c (mode_has_fma): Move function here from
6506 builtins.c. Don't use the fma optab, instead just use the
6507 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6508 using -save-temps.
6509
e426b47b
NP
65102010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6511
6512 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6513
3f8257db 6514 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6515
9faeb493 6516 Radar 4330422
e426b47b
NP
6517 * c-common.h (objc_non_volatilized_type): New declaration
6518 * stub-objc.c (objc_non_volatilized_type): New stub.
6519
90fbfdc3
NP
65202010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6521
e426b47b 6522 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6523
3f8257db 6524 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6525
9faeb493 6526 Radar 4133425
90fbfdc3 6527 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6528 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6529
c37d8c30
IS
65302010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6531
6532 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6533 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6534 (objc_ivar_visibility_kind): New enum.
6535 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6536 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6537 visibility enum.
6538
1b1562a5
MM
65392010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6540
6541 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6542 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6543 has the appropriate fma builtins.
6544 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6545
668ea4b1
IS
65462010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6547
1b1562a5 6548 merge from FSF apple 'trunk' branch.
3f8257db 6549 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6550
668ea4b1
IS
6551 Radars 4436866, 4505126, 4506903, 4517826
6552 * c-common.c (c_common_resword): Define @property and its attributes.
6553 * c-common.h: Define property attribute enum entries.
6554 (OBJC_IS_PATTR_KEYWORD): New.
6555 (objc_property_attribute_kind): New enum.
6556 Declare objc_set_property_attr (), objc_add_property_variable (),
6557 objc_build_getter_call () and objc_build_setter_call ().
6558 * stub-objc.c (objc_set_property_attr): New stub.
6559 (objc_add_property_variable): Likewise.
6560 (objc_build_getter_call): Likewise.
6561 (objc_build_setter_call) Likewise.
1b1562a5 6562
a1178b30
IS
65632010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6564
1b1562a5 6565 merge from FSF apple 'trunk' branch.
3f8257db 6566 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6567
6568 Radar 3803157 (method attributes)
6569 * c-common.c (handle_deprecated_attribute): Recognize
6570 objc methods as valid declarations.
6571 * c-common.h: Declare objc_method_decl ().
1b1562a5 6572 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6573
a75bfaa6
JM
65742010-10-08 Joseph Myers <joseph@codesourcery.com>
6575
6576 * c-common.c (parse_optimize_options): Call
6577 decode_cmdline_options_to_array_default_mask before
6578 decode_options. Update arguments to decode_options.
6579 * c-common.h (c_common_init_options_struct): Declare.
6580 * c-opts.c (c_common_init_options_struct): New. Split out from
6581 c_common_init_options.
6582
f05b9d93
NP
65832010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6584
6585 Implemented fast enumeration for Objective-C.
6586 * c-common.h (objc_finish_foreach_loop): New.
6587 * stub-objc.c (objc_finish_foreach_loop): New.
6588
1ebe4b4f
JM
65892010-10-05 Joseph Myers <joseph@codesourcery.com>
6590
6591 * c-common.h (struct diagnostic_context): Don't declare here.
6592 (c_common_initialize_diagnostics): Declare using
6593 diagnostic_context typedef.
6594 * c-opts.c (c_common_handle_option): Pass global_dc to
6595 handle_generated_option.
6596
d4d24ba4
JM
65972010-10-04 Joseph Myers <joseph@codesourcery.com>
6598
6599 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6600 handle_generated_option.
6601
478a1c5b
ILT
66022010-10-03 Ian Lance Taylor <iant@google.com>
6603
6604 * c.opt (-fplan9-extensions): New option.
6605
82a1c2fe
FXC
66062010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6607
6608 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6609 Remove.
6610 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6611 of duplicating code.
6612
92902b1b
IS
66132010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6614
6615 * c-common.c: Add two new entries for @optional
6616 and @required keywords.
6617
6618 merge from FSF 'apple/trunk' branch.
3f8257db 6619 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6620
6621 Radar 4386773
6622 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6623 objective-c keywords.
6624 (objc_set_method_opt): New declaration.
6625 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6626
46625112
JM
66272010-09-30 Joseph Myers <joseph@codesourcery.com>
6628
6629 * c-common.c (handle_optimize_attribute): Pass &global_options to
6630 cl_optimization_save and cl_optimization_restore.
6631 * c-opts.c (c_common_handle_option): Pass &global_options to
6632 handle_generated_option.
6633 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6634 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6635 &global_options to cl_optimization_restore.
6636
49b91f05
NP
66372010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6638
6639 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6640 Objective-C/Objective-C++ keywords.
6641
13ed556f 66422010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6643
9faeb493
UB
6644 Merge from 'apple/trunk' branch on FSF servers.
6645
3f8257db 6646 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6647
6648 Radar 4281748
6649 * c-common.h (objc_check_global_decl): New declaration.
6650 * stub-objc.c (objc_check_global_decl): New stub.
6651
f0036cca
JM
66522010-09-29 Joseph Myers <joseph@codesourcery.com>
6653
6654 * c.opt: Don't use VarExists.
6655
e3339d0f
JM
66562010-09-29 Joseph Myers <joseph@codesourcery.com>
6657
6658 * c-common.c (c_cpp_error): Update names of diagnostic_context
6659 members.
6660 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6661 cl_optimization members.
6662 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6663 sanitize_cpp_opts, finish_options): Update names of cpp_options
6664 members.
6665
1973201f
NP
66662010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6667
6668 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6669 (objc_is_reserved_word): Removed.
6670 * c-common.c: Updated comments.
6671 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6672 objc_is_reserved_word.
6673 * stub-objc.c (objc_is_reserved_word): Removed.
6674
f7e71da5
IS
66752010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6676
9faeb493 6677 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6678 include attributes.
6679 (objc_start_method_definition): Likewise.
6680 (objc_build_keyword_decl): Likewise.
6681 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6682 (objc_start_method_definition): Likewise.
6683 (objc_build_keyword_decl): Likewise.
6684
c165dca7
IS
66852010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6686
6687 * c-common.h (objc_start_class_interface): Adjust prototype.
6688 (objc_start_category_interface): Likewise.
6689 (objc_start_protocol): Likewise.
6690 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6691 (objc_start_class_interface): Likewise.
6692 (objc_start_category_interface): Likewise.
6693
7458026b
ILT
66942010-09-27 Ian Lance Taylor <iant@google.com>
6695
6696 * c-common.c (c_common_attribute_table): Add no_split_stack.
6697 (handle_no_split_stack_attribute): New static function.
6698
b581b85b
NP
66992010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6700
9faeb493 6701 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6702
3f8257db 6703 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6704
9faeb493 6705 Radar 4229905
b581b85b
NP
6706 * c-common.h (objc_have_common_type): New declaration.
6707 * stub-objc.c (objc_have_common_type): New stub.
6708
6709 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6710
6711 Radar 4154928
6712 * c-common.h (objc_common_type): New prototype.
9faeb493 6713 * stub-objc.c (objc_common_type): New stub.
b581b85b 6714
46a4da10
JH
67152010-09-24 Jan Hubicka <jh@suse.cz>
6716
6717 * c-common.c (handle_leaf_attribute): New function.
6718 (struct attribute_spec c_common_att): Add leaf.
6719
e200444e
JM
67202010-09-22 Joseph Myers <joseph@codesourcery.com>
6721
6722 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6723 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6724 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6725 -include-barrier, -include-directory, -include-directory=,
6726 -include-directory-after, -include-directory-after=,
6727 -include-prefix, -include-prefix=, -include-with-prefix,
6728 -include-with-prefix=, -include-with-prefix-after,
6729 -include-with-prefix-after=, -include-with-prefix-before,
6730 -include-with-prefix-before=, -no-integrated-cpp,
6731 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6732 -output=, -pedantic, -pedantic-errors, -preprocess,
6733 -print-missing-file-dependencies, -trace-includes, -traditional,
6734 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6735 -user-dependencies, -verbose, -write-dependencies,
6736 -write-user-dependencies, no-integrated-cpp, traditional): New.
6737
29a80ea6
NP
67382010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6739
6740 PR objc/23710
ac1fc2fc
NP
6741 * c-common.h (objc_start_method_definition): Return bool instead
6742 of void.
6743 * stub-objc.c (objc_start_method_definition): Return bool instead
6744 of void.
6745
67462010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6747
6748 PR objc/25965
6749 * c-common.h (objc_get_interface_ivars): New declaration.
6750 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6751
de621752
ILT
67522010-09-15 Ian Lance Taylor <iant@google.com>
6753
6754 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6755 messages. Remove period at end of warning message.
de621752 6756
ba885ec5
NS
67572010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6758
6759 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6760 (handle_alias_attribute): ... here.
6761 (handle_ifunc_attribute): New.
6762
c5ee1358
MM
67632010-09-06 Mark Mitchell <mark@codesourcery.com>
6764
6765 * c-common.h (do_warn_double_promotion): Declare.
6766 * c-common.c (do_warn_double_promotion): Define.
6767
0a0b3574
MM
67682010-09-05 Mark Mitchell <mark@codesourcery.com>
6769
6770 * c.opt (Wdouble-promotion): New.
6771
d1779886
JM
67722010-09-02 Joseph Myers <joseph@codesourcery.com>
6773
6774 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6775 fvtable-thunks, fxref): Mark no longer supported in help text.
6776
2d2bd949
JM
67772010-09-02 Joseph Myers <joseph@codesourcery.com>
6778
6779 * c.opt (Wimport, fall-virtual, falt-external-templates,
6780 fdefault-inline, fenum-int-equiv, fexternal-templates,
6781 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6782 fname-mangling-version-, fnew-abi, fnonnull-objects,
6783 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6784 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6785 applicable.
6786 (fhandle-exceptions): Mark with Alias and Warn.
6787 * c-opts.c (c_common_handle_option): Don't handle options marked
6788 as ignored.
6789
5de8299c
JM
67902010-09-02 Joseph Myers <joseph@codesourcery.com>
6791
6792 * c.opt (Wcomments, Werror-implicit-function-declaration,
6793 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6794 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6795 aliases.
6796 * c-common.c (option_codes): Use OPT_Wcomment instead of
6797 OPT_Wcomments.
6798 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6799 Don't handle options marked as aliases.
6800
0ceb0201
RG
68012010-08-25 Richard Guenther <rguenther@suse.de>
6802
6803 * c-common.c (c_common_get_alias_set): Remove special
6804 handling for pointers.
6805
ac47786e
NF
68062010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6807
6808 * c-common.c: Use FOR_EACH_VEC_ELT.
6809 * c-gimplify.c: Likewise.
6810 * c-pragma.c: Likewise.
6811
c878765b
JM
68122010-08-16 Joseph Myers <joseph@codesourcery.com>
6813
6814 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6815 RejectDriver.
6816 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6817 RejectDriver.
6818 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6819 instead of OPT_MDX and OPT_MMDX.
6820
603349bf
JM
68212010-08-16 Joseph Myers <joseph@codesourcery.com>
6822
6823 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6824
644fa7ac
JM
68252010-08-12 Joseph Myers <joseph@codesourcery.com>
6826
6827 * c.opt (MD, MMD): Change to MDX and MMDX.
6828 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6829
481e1176
JM
68302010-08-11 Joseph Myers <joseph@codesourcery.com>
6831
6832 * c-opts.c (c_common_handle_option): Call handle_generated_option
6833 instead of handle_option.
6834
ac8dc9f7
NF
68352010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6836
6837 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6838 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6839
4f8c876d
NF
68402010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6841
6842 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6843 (pending_redefine_extname): Change type to a VEC.
6844 (add_to_renaming_pragma_list): Update for new type of
6845 pending_redefine_extname.
ac8dc9f7 6846 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6847
3b0c690e
AC
68482010-08-04 Arnaud Charlet <charlet@adacore.com>
6849
6850 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6851 visited.
6852 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6853 decide whether a type has already been declared/seen.
6854 Do not go to the original type.
6855 (dump_nested_types): New parameter forward.
6856 Generate forward declaration if needed and mark type as visited.
6857 (print_ada_declaration): Call dump_nested_types if not already done.
6858 Mark types as visited.
6859
1890bccc
JM
68602010-08-03 Joseph Myers <joseph@codesourcery.com>
6861
6862 * c.opt (-print-pch-checksum): Remove option.
6863 * c-opts.c (c_common_handle_option): Don't handle
6864 OPT_print_pch_checksum.
6865
5f20c657
JM
68662010-07-27 Joseph Myers <joseph@codesourcery.com>
6867
6868 * c-common.h (c_common_handle_option): Update prototype and return
6869 value type.
6870 * c-opts.c (c_common_handle_option): Update prototype and return
6871 value type. Update calls to handle_option and
6872 enable_warning_as_error.
6873
f551f80c
JJ
68742010-07-27 Jakub Jelinek <jakub@redhat.com>
6875
6876 PR c/45079
6877 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6878
61ff2bdc
JM
68792010-07-27 Joseph Myers <joseph@codesourcery.com>
6880
6881 * c-common.h (c_common_missing_argument): Remove.
6882 * c-opts.c (c_common_missing_argument): Remove.
6883 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6884 idirafter, imacros, include, isysroot, isystem, iquote): Add
6885 MissingArgError.
6886 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6887
7a9bf9a4
JM
68882010-07-27 Joseph Myers <joseph@codesourcery.com>
6889
6890 * c-common.h (c_common_option_lang_mask,
6891 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6892 New.
6893 (c_common_init_options): Update prototype.
6894 * c-opts.c (c_common_option_lang_mask): New.
6895 (c_common_initialize_diagnostics): Split out of
6896 c_common_init_options.
6897 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6898 New.
6899 (c_common_init_options): Update prototype. Use decoded options in
6900 search for -lang-asm.
6901
910ad8de
NF
69022010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6903
6904 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6905 * c-format.c: Likewise.
6906
718f9c0f
MLI
69072010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6908
6909 * c-common.h: Include diagnostic-core.h. Error if already
6910 included.
6911 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6912
4d451982
MLI
69132010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6914
adfac8df 6915 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6916 Do not include expr.h
6917 (vector_mode_valid_p): Move here.
6918
119fe915
SB
69192010-06-21 DJ Delorie <dj@redhat.com>
6920
6921 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6922 allow these pragmas anywhere.
6923
69242010-06-14 Jakub Jelinek <jakub@redhat.com>
6925
6926 PR bootstrap/44509
6927 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6928 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6929 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6930 ggc_strdup instead of xstrdup.
6931
69322010-06-10 Jakub Jelinek <jakub@redhat.com>
6933
6934 * c-cppbuiltin.c: Include cpp-id-data.h.
6935 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6936 (lazy_hex_fp_value): New function.
6937 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6938
6662d794
MLI
69392010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6940
6941 * c-gimplify.c: Do not include tree-flow.h
6942
38f8b050
JR
69432010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6944
6945 PR other/44034
6946 * c-common.c: Rename targetm member:
6947 targetm.enum_va_list -> targetm.enum_va_list_p
6948
9589f23e
AS
69492010-06-28 Anatoly Sokolov <aesok@post.ru>
6950
6951 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6952
3b06d379
SB
69532010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6954
6955 * c-cppbuiltin.c: Do not include except.h.
6956
d166d4c3
AK
69572010-06-24 Andi Kleen <ak@linux.intel.com>
6958
9faeb493
UB
6959 * c-common.c (warn_for_omitted_condop): New.
6960 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6961
70cb8be6
JM
69622010-06-21 Joseph Myers <joseph@codesourcery.com>
6963
6964 * c.opt (lang-objc): Remove.
6965 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6966
a4c97feb
JR
69672010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6968
6969 * c-opts.c: Include "tm_p.h".
6970
6e2f1956
JM
69712010-06-20 Joseph Myers <joseph@codesourcery.com>
6972
6973 * c-common.c (parse_optimize_options): Update call to
6974 decode_options.
6975
bc87224e
NF
69762010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6977
6978 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6979 new type of types_used_by_cur_var_decl.
6980
b49cf425
JR
69812010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6982
6983 PR bootstrap/44512
6984 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6985 for C++ standard compliance.
6986
59f9c2ed
JM
69872010-06-16 Jason Merrill <jason@redhat.com>
6988
6989 * c.opt: Add -Wnoexcept.
6990
33766b66
RG
69912010-06-16 Richard Guenther <rguenther@suse.de>
6992
6993 PR c/44555
6994 * c-common.c (c_common_truthvalue_conversion): Remove
6995 premature and wrong optimization concering ADDR_EXPRs.
6996
eff7e30c
AC
69972010-06-15 Arnaud Charlet <charlet@adacore.com>
6998
6999 * c-ada-spec.c (dump_sloc): Remove column info.
7000 (is_simple_enum): New function.
7001 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7002 enum types when relevant.
7003
6312e84d
MLI
70042010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7005
9faeb493 7006 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7007 location.
7008
1cb42611
JM
70092010-06-10 Joseph Myers <joseph@codesourcery.com>
7010
7011 * c-opts.c (c_common_handle_option): Don't handle
7012 OPT_fshow_column.
7013
a9429e29
LB
70142010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7015
7016 * c-pragma.c (push_alignment): Use typed GC allocation.
7017 (handle_pragma_push_options): Likewise.
7018
7019 * c-common.c (parse_optimize_options): Likewise.
7020
7021 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7022 option.
7023
5498f011
JM
70242010-06-07 Joseph Myers <joseph@codesourcery.com>
7025
7026 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7027 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7028 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7029 flag_signed_bitfields, warn_strict_null_sentinel,
7030 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7031 flag_gen_declaration, flag_no_gnu_keywords,
7032 flag_implement_inlines, flag_implicit_templates,
7033 flag_implicit_inline_templates, flag_optional_diags,
7034 flag_elide_constructors, flag_default_inline, flag_rtti,
7035 flag_conserve_space, flag_access_control, flag_check_new,
7036 flag_new_for_scope, flag_weak, flag_working_directory,
7037 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7038 flag_enforce_eh_specs, flag_threadsafe_statics,
7039 flag_pretty_templates): Remove.
7040 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7041 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7042 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7043 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7044 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7045 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7046 flag_no_gnu_keywords, flag_implement_inlines,
7047 flag_implicit_templates, flag_implicit_inline_templates,
7048 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7049 flag_rtti, flag_conserve_space, flag_access_control,
7050 flag_check_new, flag_new_for_scope, flag_weak,
7051 flag_working_directory, flag_use_cxa_atexit,
7052 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7053 flag_threadsafe_statics, flag_pretty_templates,
7054 warn_strict_null_sentinel): Remove.
7055 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7056 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7057 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7058 fimplicit-inline-templates, fimplicit-templates,
7059 flax-vector-conversions, fms-extensions, fnil-receivers,
7060 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7061 frtti, fshort-double, fshort-enums, fshort-wchar,
7062 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7063 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7064 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7065 gen-decls, undef): Use Var.
7066 (fdefault-inline, foptional-diags): Document as doing nothing.
7067 * c-opts.c (c_common_handle_option): Remove cases for options now
7068 using Var. Mark ignored options as such.
7069
39dabefd
SB
70702010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7071
9faeb493 7072 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7073 * c-common.def: Likewise.
7074 * c-common.h: Likewise.
7075 * c-cppbuiltin.c: Likewise.
7076 * c-dump.c: Likewise.
7077 * c-format.c: Likewise.
7078 * c-format.h : Likewise.
7079 * c-gimplify.c: Likewise.
7080 * c-lex.c: Likewise.
7081 * c-omp.c: Likewise.
7082 * c.opt: Likewise.
7083 * c-opts.c: Likewise.
7084 * c-pch.c: Likewise.
7085 * c-ppoutput.c: Likewise.
7086 * c-pragma.c: Likewise.
7087 * c-pragma.h: Likewise.
7088 * c-pretty-print.c: Likewise.
7089 * c-pretty-print.h: Likewise.
7090 * c-semantics.c: Likewise.
7091 * stub-objc.c: Likewise.
7092
7093 * c-common.c: Include gt-c-family-c-common.h.
7094 * c-pragma.c: Include gt-c-family-c-pragma.h.
7095\f
818ab71a 7096Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
7097
7098Copying and distribution of this file, with or without modification,
7099are permitted in any medium without royalty provided the copyright
7100notice and this notice are preserved.