]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
[fold-const] Fix native_encode_real for HFmode constants
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
f1644724
JM
12016-10-04 Jason Merrill <jason@redhat.com>
2
3 * c-common.c (make_tree_vector_from_ctor): New.
4 * c-common.h: Declare it.
5
5a79befb
JJ
62016-10-04 Jakub Jelinek <jakub@redhat.com>
7
8 * c-cppbuiltin.c (c_cpp_builtins): Don't define
9 __LIBGCC_JCR_SECTION_NAME__.
10
1633d3b9
BE
112016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12
13 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
14 left shift in boolean context.
15
a2c6e7f2
JJ
162016-09-29 Jakub Jelinek <jakub@redhat.com>
17
18 Implement P0001R1 - C++17 removal of register storage class specifier
19 * c.opt (Wregister): New warning.
20 * c-opts.c (c_common_post_options): Enable -Wregister by
21 default for C++17.
22
75304c87
JG
232016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
24
25 * c-opts.c (c_common_post_options): Remove special case for
26 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
27 in C++.
28
bbfac6da
JJ
292016-09-27 Jakub Jelinek <jakub@redhat.com>
30
6e39060a
JJ
31 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
32 -std=c++1z.
33
bbfac6da
JJ
34 * c-ada-spec.c (print_ada_declaration): Remove break after return.
35
e73cf9a2
TP
362016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
37
38 * c-common.c: Include memmodel.h.
39
c6147dc4
MP
402016-09-26 Marek Polacek <polacek@redhat.com>
41
42 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
43
81fea426
MP
442016-09-26 Marek Polacek <polacek@redhat.com>
45
46 PR c/7652
47 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
48 (handle_fallthrough_attribute): New function.
49 (attribute_fallthrough_p): New function.
50 * c-common.h (attribute_fallthrough_p): Declare.
51
9a2300e9
MP
522016-09-24 Marek Polacek <polacek@redhat.com>
53
54 PR c/77490
55 * c.opt (Wbool-operation): New.
56
a09e9e35
BE
572016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
58
59 * c-common.c (c_common_truthvalue_conversion): Inhibit
60 Wint-in-bool-context warning with from_macro_definition_at.
61 Mention the expression will always evaluate to true.
62
d43b4ccc
MS
632016-09-21 Martin Sebor <msebor@redhat.com>
64
65 PR bootstrap/77676
66 * c.opt (fprintf-return-value): Temporarily initialize to zero
67 to unblock bootstrap failures.
68
2e1c20b1
JJ
692016-09-21 Jakub Jelinek <jakub@redhat.com>
70
71 PR c++/77651
72 * c.opt (Waligned-new=): Add RejectNegative.
73 (faligned-new=): Likewise. Spelling fix - change
74 aligned_new_threshhold to aligned_new_threshold.
75 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
76 to aligned_new_threshold.
77
88d0c3f0
MS
782016-09-20 Martin Sebor <msebor@redhat.com>
79
80 PR middle-end/49905
81 * c.opt: Add -Wformat-length and -fprintf-return-value.
82
144a96e4
BE
832016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
84
85 PR c++/77434
86 * c.opt (Wint-in-bool-context): New warning.
87 * c-common.c (c_common_truthvalue_conversion): Warn on integer
88 constants in boolean context.
89
63012d9a
JM
902016-09-19 Joseph Myers <joseph@codesourcery.com>
91
92 * c-common.c (max_align_t_align): Also consider alignment of
93 float128_type_node.
94
931388ce
JM
952016-09-15 Jason Merrill <jason@redhat.com>
96
97 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
98 DECL_EXTERNAL.
99
38711381
JM
1002016-09-14 Jason Merrill <jason@redhat.com>
101
102 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
103 limit FIELD_DECL, either.
104
e51fbec3
MP
1052016-09-14 Marek Polacek <polacek@redhat.com>
106
107 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
108 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
109 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
110
254830ba
DM
1112016-09-13 David Malcolm <dmalcolm@redhat.com>
112
113 * c-common.c (warn_logical_not_parentheses): Replace
114 rich_location::add_fixit_insert calls with add_fixit_insert_before
115 and add_fixit_insert_after, eliminating the "next_loc" calculation.
116
42763690
JM
1172016-09-13 Jason Merrill <jason@redhat.com>
118 Tom de Vries <tom@codesourcery.com>
119
120 PR c++/77427
121 * c-common.c (set_underlying_type): Don't treat array as builtin type.
122
9453eee9
JM
1232016-09-13 Jason Merrill <jason@redhat.com>
124
125 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
126 limit types at all.
127
e96809e3
JM
1282016-09-12 Jason Merrill <jason@redhat.com>
129
130 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
131 bit/byte confusion, allow large alignment for types.
132
54dcdb88
BE
1332016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
134
135 PR c++/77496
136 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
137
d1463eb9
DM
1382016-09-12 David Malcolm <dmalcolm@redhat.com>
139
140 PR c/72858
141 * c-format.c (argument_parser::check_argument_type): Add params
142 "type_start" and "conversion_char". Use the former to generate
143 offset_to_type_start and pass it and conversion_char to
144 check_format_types.
145 (check_format_info_main): Capture the start of the type
146 information as "type_start", and pass it an format_char
147 to arg_parser.check_argument_type.
148 (check_format_types): Provide an example in the leading comment.
149 Add params "offset_to_type_start" and "conversion_char"; pass
150 them to format_type_warning calls.
151 (test_get_modifier_for_format_len): Likewise.
152 (matching_type_p): New function.
153 (get_format_for_type): Add param "conversion_char" and move
154 implementation into...
155 (get_format_for_type_1): ...new function, called twice.
156 Use new function matching_type_p rather than checking for
157 TYPE_CANONICAL equality.
158 (get_corrected_substring): New function.
159 (format_type_warning): Provide an example in the leading comment.
160 Add params "offset_to_type_start" and "conversion_char". Replace
161 call to get_format_for_type with call to get_corrected_substring
162 and move rejection of hints for widths/precisions there.
163 (assert_format_for_type_streq): Add param "conversion_char".
164 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
165 (test_get_format_for_type_printf): Add conversion chars to the
166 tests, adding coverage for various combinations of integer
167 vs double conversions, and for preserving octal and hexadecimal
168 conversions.
169 (test_get_format_for_type_scanf): Add conversion chars to the
170 tests.
171
5b28efbb
TV
1722016-09-10 Tom de Vries <tom@codesourcery.com>
173
174 PR C/71602
175 * c-common.c (build_va_arg): Handle more strict
176 targetm.canonical_va_list_type. Replace first argument type error with
177 assert.
178
3f0177e7
MS
1792016-09-09 Martin Sebor <msebor@redhat.com>
180
181 PR c/77520
182 PR c/77521
183 * c-format.c (argument_parser::find_format_char_info): Use %qc
184 format directive unconditionally.
185
af63ba4b
JM
1862016-09-09 Jason Merrill <jason@redhat.com>
187
188 Implement C++17 new of over-aligned types.
189 * c.opt: Add -faligned-new and -Waligned-new.
190 * c-common.c (max_align_t_align): Split out from...
191 (cxx_fundamental_alignment_p): ...here.
192 * c-common.h: Declare it.
193 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
194
c65248cb
JM
1952016-09-09 Joseph Myers <joseph@codesourcery.com>
196
197 * c-cppbuiltin.c (builtin_define_type_width): New function.
198 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
199 macros.
200
e5106e27
DM
2012016-09-07 David Malcolm <dmalcolm@redhat.com>
202
203 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
204 a POINTER_TYPE.
205 (substring_loc::get_location): Move to substring-locations.c,
206 keeping implementation as...
207 (c_get_substring_location): New function, from the above, reworked
208 to use accessors rather than member lookup.
209 * c-common.h (class substring_loc): Move to substring-locations.h,
210 replacing with a forward decl.
211 (c_get_substring_location): New decl.
212 * c-format.c: Include "substring-locations.h".
213 (format_warning_va): Move to substring-locations.c.
214 (format_warning_at_substring): Likewise.
215
a42e7952
MS
2162016-09-06 Martin Sebor <msebor@redhat.com>
217
218 PR c/77336
219 * c-format.c (check_function_format): Avoid issuing warnings for
220 functions unless they call format functions with non-constant
221 format strings.
222
b772a565
RB
2232016-09-06 Richard Biener <rguenther@suse.de>
224
225 PR c/77450
226 * c-common.c (c_common_mark_addressable_vec): Handle
227 COMPOUND_LITERAL_EXPR.
228
25ff5dd3
MP
2292016-09-05 Marek Polacek <polacek@redhat.com>
230
231 PR c/77423
232 * c-common.c (bool_promoted_to_int_p): New function.
233 (expr_has_boolean_operands_p): New function.
234 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
235 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
236
21234eb5
TV
2372016-09-04 Tom de Vries <tom@codesourcery.com>
238
239 revert:
240 2016-08-29 Tom de Vries <tom@codesourcery.com>
241
242 * c-common.c (build_va_arg): Replace first argument type error
243 with assert.
244
9dc5773f
JJ
2452016-09-02 Jakub Jelinek <jakub@redhat.com>
246
247 PR c/65467
248 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
249 (c_finish_omp_for): Reject _Atomic qualified iterators.
250
2512016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
252
253 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
254 size to guarantee it fits the output of the formatted function
255 regardless of its arguments.
256
295844f6
MP
2572016-09-01 Marek Polacek <polacek@redhat.com>
258
259 PR c/7652
260 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
261 FALLTHRU comments.
262
3d06b6f2
MP
2632016-08-29 Marek Polacek <polacek@redhat.com>
264
265 PR c/77292
266 * c-common.c (warn_logical_not_parentheses): Don't warn for
267 a comparison or a logical operator.
268
34cedad5
TV
2692016-08-29 Tom de Vries <tom@codesourcery.com>
270
271 * c-common.c (build_va_arg): Fix type comparison assert.
272
f162d717
TV
2732016-08-29 Tom de Vries <tom@codesourcery.com>
274
275 * c-common.c (build_va_arg): Replace first argument type error
276 with assert.
277
ba9bbd6f
TV
2782016-08-29 Tom de Vries <tom@codesourcery.com>
279
280 PR c/77398
281 * c-common.c (build_va_arg): Add first argument error. Build va_arg
282 with error_mark_node as va_list instead of with illegal va_list.
283
ebef225f
MP
2842016-08-25 Marek Polacek <polacek@redhat.com>
285 David Malcolm <dmalcolm@redhat.com>
286
287 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
288 * c-common.h (warn_logical_not_parentheses): Update declaration.
289
b00e6e75
MP
2902016-08-22 Marek Polacek <polacek@redhat.com>
291
292 PR c++/77321
293 * c-common.c (warn_for_memset): Check type for null.
294
6dc198e3
JM
2952016-08-22 Joseph Myers <joseph@codesourcery.com>
296
297 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
298 _FloatNx types for suffixes for built-in functions.
299
c65699ef
JM
3002016-08-19 Joseph Myers <joseph@codesourcery.com>
301
302 PR c/32187
303 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
304 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
305 (RID_FLOAT128X): New enum rid values.
306 (CASE_RID_FLOATN_NX): New macro.
307 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
308 keywords.
309 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
310 corresponding complex types.
311 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
312 _FloatNx and corresponding complex types.
313 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
314 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
315 and _FloatNx types for the widest type for determining
316 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
317 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
318 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
319 and _FloatNx types.
320 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
321 constants.
322 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
323 _FloatNx types.
324
cc015f3a
DM
3252016-08-18 David Malcolm <dmalcolm@redhat.com>
326
327 * c-opts.c (c_diagnostic_finalizer): Update for change to
328 diagnostic_show_locus.
329
cb18fd07
DM
3302016-08-18 David Malcolm <dmalcolm@redhat.com>
331
332 * c-common.c: Include "spellcheck.h".
333 (cb_get_suggestion): New function.
334 * c-common.h (cb_get_suggestion): New decl.
335 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
336 cb_get_suggestion.
337
a76989dc
MP
3382016-08-18 Marek Polacek <polacek@redhat.com>
339
340 PR c/71514
341 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
342 and pointer-to-VLA.
343
65e736c0
DM
3442016-08-16 David Malcolm <dmalcolm@redhat.com>
345
346 PR c/72857
347 * c-common.c (substring_loc::get_range): Rename to...
348 (substring_loc::get_location): ...this, converting param from a
349 source_range * to a location_t *. Call
350 get_source_location_for_substring rather than
351 get_source_range_for_substring, and pass in m_caret_idx.
352 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
353 (substring_loc::get_range): Replace with...
354 (substring_loc::get_location): ...this.
355 (substring_loc::set_caret_index): New method.
356 (substring_loc): Add field m_caret_idx.
357 * c-format.c (format_warning_va): Update for above changes.
358 Rename local "substring_loc" to "fmt_substring_loc" to avoid
359 clashing with type name.
360 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
361 (check_argument_type): Likewise.
362 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
363 Use a copy when emitting warnings, setting the caret index from TYPE.
364
7e1dde14
EB
3652016-08-16 Eric Botcazou <ebotcazou@adacore.com>
366 Arnaud Charlet <charlet@adacore.com>
367
368 * c-ada-spec.c (dump_number): New function.
369 (handle_escape_character): Likewise.
370 (print_ada_macros): Add handling of constant integers and strings.
371
191816a3
MP
3722016-08-12 Marek Polacek <polacek@redhat.com>
373
374 PR c/7652
375 * c-common.c (scalar_to_vector): Adjust fall through comment.
376 * c-opts.c (c_common_handle_option): Likewise.
377 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
378 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
379 fall through comment.
380 * cilk.c (extract_free_variables): Add FALLTHRU.
381
452df4a4
JM
3822016-08-10 Jason Merrill <jason@redhat.com>
383
384 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
385
f3365c12
JM
3862016-08-09 Jason Merrill <jason@redhat.com>
387
388 * c-common.c (c_common_attribute_table): vector_size affects type
389 identity.
390
f0bc3323
MP
3912016-08-09 Marek Polacek <polacek@redhat.com>
392
393 PR c/7652
394 * c-ada-spec.c (dump_generic_ada_node): Add return.
395
98e5a19a
JM
3962016-08-09 Jason Merrill <jason@redhat.com>
397
398 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
399 C++17 constexpr lambdas.
400
895aa8e1
DM
4012016-08-08 David Malcolm <dmalcolm@redhat.com>
402
403 PR c/64955
404 * c-common.h (selftest::c_format_c_tests): New declaration.
405 (selftest::run_c_tests): New declaration.
406 * c-format.c: Include "selftest.h.
407 (format_warning_va): Add param "corrected_substring" and use
408 it to add a replacement fix-it hint.
409 (format_warning_at_substring): Likewise.
410 (format_warning_at_char): Update for new param of
411 format_warning_va.
412 (argument_parser::check_argument_type): Pass "fki" to
413 check_format_types.
414 (check_format_types): Add param "fki" and pass it to
415 format_type_warning.
416 (deref_n_times): New function.
417 (get_modifier_for_format_len): New function.
418 (selftest::test_get_modifier_for_format_len): New function.
419 (get_format_for_type): New function.
420 (format_type_warning): Add param "fki" and use it to attempt
421 to provide hints for argument types when calling
422 format_warning_at_substring.
423 (selftest::get_info): New function.
424 (selftest::assert_format_for_type_streq): New function.
425 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
426 (selftest::test_get_format_for_type_printf): New function.
427 (selftest::test_get_format_for_type_scanf): New function.
428 (selftest::c_format_c_tests): New function.
429
e52ed3fe
DM
4302016-08-08 David Malcolm <dmalcolm@redhat.com>
431
432 PR c/52952
433 * c-format.c: Include "diagnostic.h".
434 (location_column_from_byte_offset): Delete.
435 (location_from_offset): Delete.
436 (format_warning_va): New function.
437 (format_warning_at_substring): New function.
438 (format_warning_at_char): New function.
439 (check_format_arg): Capture location of format_tree and pass to
440 check_format_info_main.
441 (argument_parser): Add fields "start_of_this_format" and
442 "format_string_cst".
443 (flag_chars_t::validate): Add param "format_string_cst". Convert
444 warning_at call using location_from_offset to call to
445 format_warning_at_char.
446 (argument_parser::argument_parser): Add param "format_string_cst_"
447 and use use it to initialize field "format_string_cst".
448 Initialize new field "start_of_this_format".
449 (argument_parser::read_format_flags): Convert warning_at call
450 using location_from_offset to a call to format_warning_at_char.
451 (argument_parser::read_any_format_left_precision): Likewise.
452 (argument_parser::read_any_format_precision): Likewise.
453 (argument_parser::read_any_other_modifier): Likewise.
454 (argument_parser::find_format_char_info): Likewise, in three places.
455 (argument_parser::parse_any_scan_set): Likewise, in one place.
456 (argument_parser::handle_conversions): Likewise, in two places.
457 (argument_parser::check_argument_type): Add param "fmt_param_loc"
458 and use it to make a substring_loc. Pass the latter to
459 check_format_types.
460 (check_format_info_main): Add params "fmt_param_loc" and
461 "format_string_cst". Convert warning_at calls using
462 location_from_offset to calls to format_warning_at_char. Pass the
463 new params to the arg_parser ctor. Pass "format_string_cst" to
464 flag_chars.validate. Pass "fmt_param_loc" to
465 arg_parser.check_argument_type.
466 (check_format_types): Convert first param from a location_t
467 to a const substring_loc & and rename to "fmt_loc". Attempt
468 to extract the range of the relevant parameter and pass it
469 to format_type_warning.
470 (format_type_warning): Convert first param from a location_t
471 to a const substring_loc & and rename to "fmt_loc". Add
472 params "param_range" and "type". Replace calls to warning_at
473 with calls to format_warning_at_substring.
474
1c4d457e
DM
4752016-08-08 David Malcolm <dmalcolm@redhat.com>
476
477 * c-format.c (class flag_chars_t): New class.
478 (struct length_modifier): New struct.
479 (class argument_parser): New class.
480 (flag_chars_t::flag_chars_t): New ctor.
481 (flag_chars_t::has_char_p): New method.
482 (flag_chars_t::add_char): New method.
483 (flag_chars_t::validate): New method.
484 (flag_chars_t::get_alloc_flag): New method.
485 (flag_chars_t::assignment_suppression_p): New method.
486 (argument_parser::argument_parser): New ctor.
487 (argument_parser::read_any_dollar): New method.
488 (argument_parser::read_format_flags): New method.
489 (argument_parser::read_any_format_width): New method.
490 (argument_parser::read_any_format_left_precision): New method.
491 (argument_parser::read_any_format_precision): New method.
492 (argument_parser::handle_alloc_chars): New method.
493 (argument_parser::read_any_length_modifier): New method.
494 (argument_parser::read_any_other_modifier): New method.
495 (argument_parser::find_format_char_info): New method.
496 (argument_parser::validate_flag_pairs): New method.
497 (argument_parser::give_y2k_warnings): New method.
498 (argument_parser::parse_any_scan_set): New method.
499 (argument_parser::handle_conversions): New method.
500 (argument_parser::check_argument_type): New method.
501 (check_format_info_main): Introduce classes argument_parser
502 and flag_chars_t, moving the code within the loop into methods
503 of these classes. Make various locals "const".
504
88fa5555
DM
5052016-08-05 David Malcolm <dmalcolm@redhat.com>
506
507 * c-common.c: Include "substring-locations.h".
508 (get_cpp_ttype_from_string_type): New function.
509 (g_string_concat_db): New global.
510 (substring_loc::get_range): New method.
511 * c-common.h (g_string_concat_db): New declaration.
512 (class substring_loc): New class.
513 * c-lex.c (lex_string): When concatenating strings, capture the
514 locations of all tokens using a new obstack, and record the
515 concatenation locations within g_string_concat_db.
516 * c-opts.c (c_common_init_options): Construct g_string_concat_db
517 on the ggc-heap.
518
78169471
MP
5192016-07-29 Marek Polacek <polacek@redhat.com>
520
638fc14f
MP
521 PR c/71926
522 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
523 parentheses warning.
524
78169471
MP
525 PR c/71574
526 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
527
1225d6b1
ML
5282016-07-28 Martin Liska <mliska@suse.cz>
529
530 PR gcov-profile/68025
531 * c-common.c (handle_no_profile_instrument_function_attribute):
532
ec1e2a40
BE
5332016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
534
535 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
536 BITS_PER_UNIT_LOG.
537
5ec2cd9f
JM
5382016-07-25 Jason Merrill <jason@redhat.com>
539
540 PR c++/65970
541 * c.opt (fconstexpr-loop-limit): New.
542
9dc5773f 5432016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
544
545 PR c++/71675
546 * c-common.c (resolve_overloaded_builtin): Avoid converting
547 __atomic_compare_exchange_n return type to that of what its
548 first argument points to.
549
e3fe09c1
UB
5502016-07-22 Uros Bizjak <ubizjak@gmail.com>
551
552 * c-common.c: Use HOST_WIDE_INT_M1U instead of
553 ~(unsigned HOST_WIDE_INT) 0.
554
bc91c436
ML
5552016-07-22 Martin Liska <mliska@suse.cz>
556
557 PR gcov-profile/69028
558 PR gcov-profile/62047
559 * cilk.c (create_cilk_helper_decl): Set location of a new decl
560 to the current_function_decl.
561
451dcc66
JM
5622016-07-21 Jason Merrill <jason@redhat.com>
563
564 PR c++/65168
565 * c-common.c (c_common_truthvalue_conversion): Check
566 c_inhibit_evaluation_warnings for warning about address of
567 reference.
568
de6a69ee
DM
5692016-07-20 David Malcolm <dmalcolm@redhat.com>
570
571 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
572 const char *.
573
d022c55a
JM
5742016-07-15 Jason Merrill <jason@redhat.com>
575
576 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
577
ddbbcb19
JJ
5782016-07-15 Jakub Jelinek <jakub@redhat.com>
579
580 PR c/71858
581 * c-common.h (enum lookup_name_fuzzy_kind): Add
582 FUZZY_LOOKUP_FUNCTION_NAME.
583
d0cf395a
JM
5842016-07-08 Jason Merrill <jason@redhat.com>
585
586 P0145: Refining Expression Order for C++.
587 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
588 * c-opts.c: Adjust.
589
98d44e93
MT
5902016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
591
592 PR c++/71214
593 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
594
f9d8d994
TS
5952016-06-29 Thomas Schwinge <thomas@codesourcery.com>
596
597 * c-pragma.h (enum pragma_kind): Rename
598 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
599 users.
600
4aa83879
RB
6012016-06-29 Richard Biener <rguenther@suse.de>
602
603 PR middle-end/71002
604 * c-common.c (c_common_get_alias_set): Remove union type punning case.
605
a25bd9e6
JM
6062016-06-24 Jason Merrill <jason@redhat.com>
607
608 P0145R2: Refining Expression Order for C++.
609 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
610 MODIFY_EXPR.
611
a86451b9
JJ
6122016-06-24 Jakub Jelinek <jakub@redhat.com>
613
614 * c-common.c (check_builtin_function_arguments): Require last
615 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
616 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
617 if the last argument is pointer to enumerated or boolean type.
618
1a4f11c8
DM
6192016-06-22 David Malcolm <dmalcolm@redhat.com>
620
621 PR c/70339
622 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
623 (lookup_name_fuzzy): New prototype.
624
fe55692c
JDA
6252016-06-21 John David Anglin <danglin@gcc.gnu.org>
626
627 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
628
4eb24e01
JM
6292016-06-14 Jason Merrill <jason@redhat.com>
630
631 P0145R2: Refining Expression Order for C++.
632 * c.opt (fargs-in-order): New.
633 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
634
ef7cf206
JJ
6352016-06-13 Jakub Jelinek <jakub@redhat.com>
636
0dda258b
JJ
637 PR sanitizer/71498
638 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
639 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
640
ef7cf206
JJ
641 PR preprocessor/71183
642 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
643 to cb_get_source_date_epoch.
644
50b15873
JJ
6452016-06-10 Jakub Jelinek <jakub@redhat.com>
646
647 PR c/68657
648 * c.opt (Wpsabi): Add Warning flag.
649
4d926e34
MS
6502016-06-10 Martin Sebor <msebor@redhat.com>
651
652 PR c/71392
653 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
654 the nonnull attribute in type-generic builtins.
655
e01b4e16
MS
6562016-06-09 Martin Sebor <msebor@redhat.com>
657
658 PR c/70883
659 * c-common.c (builtin_function_validate_nargs): Make text of error
660 message consistent with others like it.
661
44a845ca
MS
6622016-06-08 Martin Sebor <msebor@redhat.com>
663 Jakub Jelinek <jakub@redhat.com>
664
665 PR c++/70507
666 PR c/68120
667 * c-common.c (check_builtin_function_arguments): Handle
668 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
669
a80a7051
RB
6702016-06-08 Richard Biener <rguenther@suse.de>
671
672 * c-common.c (parse_optimize_options): Improve diagnostic messages.
673
bfd67b47
RB
6742016-06-07 Richard Biener <rguenther@suse.de>
675
676 PR c/61564
677 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
678 options and warn about others.
679
15c98b2e
ES
6802016-06-01 Eduard Sanou <dhole@openmailbox.org>
681
682 * c-common.c (get_source_date_epoch): Rename to
683 cb_get_source_date_epoch.
684 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
685 message when the parsing fails. Use error_at instead of fatal_error.
686 * c-common.h (get_source_date_epoch): Rename to
687 cb_get_source_date_epoch.
688 * c-common.h (cb_get_source_date_epoch): Prototype.
689 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
690 * c-common.h (c_omp_region_type): Remove trailing comma.
691 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
692 * c-lex.c (c_lex_with_flags): Remove initialization of
693 pfile->source_date_epoch.
694
00631022
JJ
6952016-05-30 Jakub Jelinek <jakub@redhat.com>
696
697 PR c++/71349
698 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
699 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
700 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
701 instead of C_OMP_CLAUSE_SPLIT_FOR.
702
f17a223d
RB
7032016-05-24 Richard Biener <rguenther@suse.de>
704
705 PR middle-end/70434
706 PR c/69504
707 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
708 (convert_vector_to_array_for_subscript): ... this.
709 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
710 VIEW_CONVERT_EXPR to an array type. Rename to ...
711 (convert_vector_to_array_for_subscript): ... this.
712
4f2e1536
MP
7132016-05-12 Marek Polacek <polacek@redhat.com>
714
715 PR c/70756
716 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
717 size_in_bytes and pass LOC to it.
718
d6e83a8d
MM
7192016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
720
721 PR c/43651
722 * c.opt (Wduplicate-decl-specifier): New option.
723
5c3a10fb
MP
7242016-05-11 Marek Polacek <polacek@redhat.com>
725
726 PR c++/71024
727 * c-common.c (diagnose_mismatched_attributes): New function.
728 * c-common.h (diagnose_mismatched_attributes): Declare.
729
deef7113
MP
7302016-05-04 Marek Polacek <polacek@redhat.com>
731
732 * c.opt (Wdangling-else): New option.
733
79ce98bc
MP
7342016-05-03 Marek Polacek <polacek@redhat.com>
735
736 PR c/70859
737 * c-common.c (builtin_function_validate_nargs): Add location
738 parameter. Use it.
739 (check_builtin_function_arguments): Add location and arguments
740 parameters. Use them.
741 * c-common.h (check_builtin_function_arguments): Update declaration.
742
381cdae4
RB
7432016-05-03 Richard Biener <rguenther@suse.de>
744
745 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
746 allow call args to gimplify to SSA names.
747
1d793c34
MP
7482016-05-03 Marek Polacek <polacek@redhat.com>
749
750 * c-common.h (enum c_omp_region_type): Remove stray comma.
751
77886428
CP
7522016-05-02 Cesar Philippidis <cesar@codesourcery.com>
753
754 * c-common.h (enum c_omp_region_type): Define.
755
697e0b28
RS
7562016-05-02 Richard Sandiford <richard.sandiford@arm.com>
757
758 * c-common.c (shorten_compare): Use wi::to_wide.
759
e7ff0319
CP
7602016-04-29 Cesar Philippidis <cesar@codesourcery.com>
761
762 PR middle-end/70626
763 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
764 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
765 reduction clauses in acc parallel loops.
766
2fff3db8
MP
7672016-04-29 Marek Polacek <polacek@redhat.com>
768
769 PR c/70852
770 * c-common.c (warn_for_memset): Check domain before accessing it.
771
509063eb
DV
7722016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
773
774 PR/69089
775 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
776 "aligned" attribute.
777
b632761d
JM
7782016-04-28 Jason Merrill <jason@redhat.com>
779
780 * c-lex.c (c_common_has_attribute): Handle nodiscard.
781
174f6622
ES
7822016-04-28 Eduard Sanou <dhole@openmailbox.org>
783 Matthias Klose <doko@debian.org>
784
785 * c-common.c (get_source_date_epoch): New function, gets the environment
786 variable SOURCE_DATE_EPOCH and parses it as long long with error
787 handling.
788 * c-common.h (get_source_date_epoch): Prototype.
789 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
790
6bc2bb18
RB
7912015-04-27 Ryan Burn <contact@rnburn.com>
792
793 PR c++/69024
794 PR c++/68997
795 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
796 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
797 external linkage.
798 (cilk_detect_and_unwrap): Corresponding changes.
799 (extract_free_variables): Don't extract free variables from
800 AGGR_INIT_EXPR slot.
801 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
802 (cilk_recognize_spawn): Likewise.
803
c1e1f433
BS
8042016-04-27 Bernd Schmidt <bschmidt@redhat.com>
805
806 * c.opt (Wmemset-elt-size): New option.
807 * c-common.c (warn_for_memset): New function.
808 * c-common.h (warn_for_memset): Declare.
809
d067e05f
JM
8102016-04-25 Jason Merrill <jason@redhat.com>
811
812 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
813 No longer static.
814 * c-common.h: Declare it.
815 * c-lex.c (c_common_has_attribute): Add maybe_unused.
816
9aa36ae5
JM
8172016-04-22 Jason Merrill <jason@redhat.com>
818
819 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
820
477d4906
IV
8212016-04-20 Ilya Verbin <ilya.verbin@intel.com>
822
823 PR c++/69363
824 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
825 * c-common.h (c_finish_cilk_clauses): Remove declaration.
826
fe37c7af
MM
8272016-04-18 Michael Matz <matz@suse.de>
828
829 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
830 and SET_DECL_ALIGN.
831
23f2660f
EB
8322016-04-17 Eric Botcazou <ebotcazou@adacore.com>
833
834 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
835 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
836 to incomplete types.
837 (dump_nested_type): Remove redundant tests and tidy up.
838 (print_ada_declaration): Also set TREE_VISITED on the declaration of
839 a type which is the typedef of an original type.
840
1e77281b
MP
8412016-04-15 Marek Polacek <polacek@redhat.com>
842
843 PR c/70651
844 * c-common.c (build_va_arg): Change two asserts into errors and return
845 error_mark_node.
846
b3a77f21
MP
8472016-04-13 Marek Polacek <polacek@redhat.com>
848
849 PR c++/70639
850 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
851 for switch statements, too.
852
322b8466
JM
8532016-03-28 Jason Merrill <jason@redhat.com>
854
855 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
856
fbdb6baf
MP
8572016-03-23 Marek Polacek <polacek@redhat.com>
858
859 PR c++/69884
860 * c.opt (Wignored-attributes): New option.
861
5c240f4d
DM
8622016-03-22 David Malcolm <dmalcolm@redhat.com>
863
864 PR c/69993
865 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
866 diagnostic text, reversing the order of the warning and note so
867 that they appear in source order.
868
14ba7b28
MP
8692016-03-17 Marek Polacek <polacek@redhat.com>
870
871 PR c/69407
872 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
873 operations.
874
08a1cadc
JM
8752016-03-14 Jason Merrill <jason@redhat.com>
876
2aaeea19
JM
877 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
878
08a1cadc
JM
879 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
880
c06d25bb
RB
8812016-03-09 Richard Biener <rguenther@suse.de>
882
883 PR c/70143
884 * c-common.c (strict_aliasing_warning): Add back
885 alias_sets_conflict_p check.
886
80aac5c8
JM
8872016-03-08 Jason Merrill <jason@redhat.com>
888
889 * c-opts.c (set_std_cxx1z): Don't enable concepts.
890
64b23c13
DM
8912016-03-04 David Malcolm <dmalcolm@redhat.com>
892
893 PR c/68187
894 * c-indentation.c (get_visual_column): Move code to determine next
895 tab stop to...
896 (next_tab_stop): ...this new function.
897 (line_contains_hash_if): Delete function.
898 (detect_preprocessor_logic): Delete function.
899 (get_first_nws_vis_column): New function.
900 (detect_intervening_unindent): New function.
901 (should_warn_for_misleading_indentation): Replace call to
902 detect_preprocessor_logic with a call to
903 detect_intervening_unindent.
904
729526f5
DM
9052016-03-04 David Malcolm <dmalcolm@redhat.com>
906
907 PR c/68187
908 * c-indentation.c (should_warn_for_misleading_indentation): When
909 suppressing warnings about cases where the guard and body are on
910 the same column, only use the first non-whitespace column in place
911 of the guard token column when dealing with "else" clauses.
912 When rejecting aligned BODY and NEXT, loosen the requirement
913 from equality with the first non-whitespace of guard to simply
914 that they not be indented relative to it.
915
e9a35493
RB
9162016-03-04 Richard Biener <rguenther@suse.de>
917
918 PR c++/70054
919 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
920 instead of alias_sets_conflict_p.
921
1be56bc5
MP
9222016-03-01 Marek Polacek <polacek@redhat.com>
923
924 PR c++/69795
925 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
926 any DECL.
927
35886f0b
MS
9282016-02-22 Martin Sebor <msebor@redhat.com>
929
930 PR middle-end/69780
931 * c-common.c (check_builtin_function_arguments): Validate and
932 reject invalid arguments to __builtin_alloca_with_align.
933
4246c8da
MW
9342016-02-20 Mark Wielaard <mjw@redhat.com>
935
936 PR c/28901
937 * c.opt (Wunused-const-variable): Turn into Alias for...
938 (Wunused-const-variable=): New option.
939
268be88c
BE
9402016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
941
942 PR c++/69865
943 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
944 here...
945 (c_common_init_options): ...to here.
946 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
947
871b3f47
JJ
9482016-02-19 Jakub Jelinek <jakub@redhat.com>
949
950 PR c++/69826
951 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
952 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
953 flag_preprocess_only.
954
bf14eba2
JJ
9552016-02-16 Jakub Jelinek <jakub@redhat.com>
956
957 PR c/69835
958 * c.opt (Wnonnull-compare): Enable for -Wall.
959
ba6b3795
JJ
9602016-02-15 Jakub Jelinek <jakub@redhat.com>
961
962 PR c++/69797
963 * c-common.c (sync_resolve_size): Diagnose too few arguments
964 even when params is non-NULL empty vector.
965
a011cd92
BS
9662016-02-08 Bernd Schmidt <bschmidt@redhat.com>
967
968 PR target/60410
969 * c.opt (fshort-double): Remove.
970
46cb9332
MS
9712016-02-05 Martin Sebor <msebor@redhat.com>
972
973 PR c++/69662
974 * c.opt (Warning options): Update -Wplacement-new to take
975 an optional argument.
976
e1b81f2b
JJ
9772016-02-01 Jakub Jelinek <jakub@redhat.com>
978
979 PR preprocessor/69543
980 PR c/69558
981 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
982 instead of loc to control_warning_option.
983
b6adbb9f
NS
9842016-02-01 Nathan Sidwell <nathan@codesourcery.com>
985
986 * c.opt (fopenacc-dim=): New option.
987
5d70666e
RB
9882016-01-27 Ryan Burn <contact@rnburn.com>
989
990 PR cilkplus/69267
991 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
992 gimplify_arg. Removed superfluous post_p argument.
993 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
994 superfluous post_p argument.
995 * c-gimplify.c (c_gimplify_expr): Likewise.
996
01e1dea3
DM
9972016-01-26 David Malcolm <dmalcolm@redhat.com>
998
999 PR other/69006
1000 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1001 pp_newline_and_flush with pp_flush.
1002
9f04a53e
MS
10032016-01-20 Martin Sebor <msebor@redhat.com>
1004
1005 PR c/69405
1006 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1007 an incompatible argument when the argument isn't a valid tree node.
1008
7f26f7df
JM
10092016-01-18 Jason Merrill <jason@redhat.com>
1010
1011 PR c++/68767
1012 * c-common.c (check_function_arguments_recurse): Fold the whole
1013 COND_EXPR, not just the condition.
1014
f62bf092
TV
10152016-01-18 Tom de Vries <tom@codesourcery.com>
1016
1017 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1018 classify as loop clause.
1019
e0a575ff
JJ
10202016-01-15 Jakub Jelinek <jakub@redhat.com>
1021
1022 PR bootstrap/68271
1023 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1024 C++ FE no longer has limit on number of pragmas.
1025
10262015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1027
1028 PR c++/69048
1029 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1030 to add missing cleanup point.
b6e3db06 1031
c7df95d8
DM
10322016-01-14 David Malcolm <dmalcolm@redhat.com>
1033
1034 PR c++/68819
1035 * c-indentation.c (get_visual_column): Add location_t param.
1036 Handle the column number being zero by effectively disabling the
1037 warning, with an "inform".
1038 (should_warn_for_misleading_indentation): Add location_t argument
1039 for all uses of get_visual_column.
1040
21efdd80
PP
10412016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1042
1043 PR c++/69029
1044 * c-indentation.c (should_warn_for_misleading_indentation):
1045 Don't warn about do-while statements.
1046
7a127fa7
MS
10472016-01-07 Martin Sebor <msebor@redhat.com>
1048
1049 PR c/68966
1050 * c-common.c (sync_resolve_size): Reject first argument when it's
1051 a pointer to _Bool.
1052
c589e975
DM
10532016-01-05 David Malcolm <dmalcolm@redhat.com>
1054
1055 PR c/69122
1056 * c-indentation.c (get_visual_column): Remove default argument.
1057 (should_warn_for_misleading_indentation): For the multiline case,
1058 update call to get_visual_column for next_stmt_exploc so that it
1059 captures the location of the first non-whitespace character in the
1060 relevant line. Don't issue warnings if there is non-whitespace
1061 before the next statement.
1062
818ab71a
JJ
10632016-01-04 Jakub Jelinek <jakub@redhat.com>
1064
1065 Update copyright years.
1066
745e411d
DM
10672015-12-21 David Malcolm <dmalcolm@redhat.com>
1068
1069 * c-common.c (binary_op_error): Convert first param from
1070 location_t to rich_location * and use it when emitting an error.
1071 * c-common.h (binary_op_error): Convert first param from
1072 location_t to rich_location *.
1073
de67c4c3
DM
10742015-12-16 David Malcolm <dmalcolm@redhat.com>
1075
1076 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1077 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1078
4a38b02b
IV
10792015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1080
1081 * c-common.c (c_common_attribute_table): Handle "omp declare target
1082 link" attribute.
1083
54d62f51
JJ
10842015-12-14 Jakub Jelinek <jakub@redhat.com>
1085
1086 PR c/68833
1087 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1088
8d4227c8
TB
10892014-12-12 Tobias Burnus <burnus@net-b.de>
1090
1091 PR fortran/68815
1092 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1093 specifiers (%d, %i,%u and %c).
1094
f6069ccc
DM
10952015-12-10 David Malcolm <dmalcolm@redhat.com>
1096
1097 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1098
63bbf46d
JJ
10992015-12-08 Jakub Jelinek <jakub@redhat.com>
1100
1101 PR c/48088
1102 PR c/68657
1103 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1104 * c-pragma.c (handle_pragma_diagnostic): Adjust
1105 control_warning_option caller.
1106
f79520bb
DM
11072015-12-07 David Malcolm <dmalcolm@redhat.com>
1108
1109 * c-common.c (c_cpp_error): Update for change to
1110 rich_location::set_range.
1111
b3d5bc62
JJ
11122015-12-04 Paolo Bonzini <bonzini@gnu.org>
1113
1114 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1115 shifting 1 out of the sign bit.
1116
11172015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1118
1119 * c-common.c (c_common_attribute_table[]): Update max arguments
1120 count for "simd" attribute.
1121 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1122
6eb4a537
JJ
11232015-12-03 Jakub Jelinek <jakub@redhat.com>
1124
1125 PR preprocessor/57580
1126 * c-ppoutput.c (print): Change printed field to bool.
1127 Move src_file last for smaller padding.
1128 (init_pp_output): Set print.printed to false instead of 0.
1129 (scan_translation_unit): Fix up formatting. Set print.printed
1130 to true after printing something other than newline.
1131 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1132 (maybe_print_line_1): Set print.printed to false instead of 0.
1133 (print_line_1): Likewise.
1134 (do_line_change): Set print.printed to true instead of 1.
1135 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1136 dump_macro): Set print.printed to false after printing newline.
1137
4250754e
JM
11382015-12-02 Jason Merrill <jason@redhat.com>
1139
f479b43d
JM
1140 * c-common.c (fold_for_warn): New.
1141 (warn_logical_operator, warn_tautological_cmp)
1142 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1143
4250754e
JM
1144 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1145 (c_fully_fold_internal, decl_constant_value_for_optimization):
1146 Move to c/c-fold.c.
1147 * c-common.h: Don't declare decl_constant_value_for_optimization.
1148
e9e32ee6
JM
11492015-12-02 Joseph Myers <joseph@codesourcery.com>
1150
1151 PR c/68162
1152 * c-common.h (c_build_qualified_type): Add extra default
1153 arguments.
1154
37d5ad46
JB
11552015-12-01 Julian Brown <julian@codesourcery.com>
1156 Cesar Philippidis <cesar@codesourcery.com>
1157 James Norris <James_Norris@mentor.com>
1158
1159 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1160 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1161 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1162
f07862c7
EB
11632015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1164
1165 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1166 (decl_sloc_common): Delete and move bulk of processing to...
1167 (decl_sloc): ...here.
1168 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1169 (dump_ada_double_name): Remove S parameter and compute the suffix.
1170 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1171 element type and deal with an anonymous one.
1172 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1173 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1174 and remove reference to QUAL_UNION_TYPE.
1175 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1176 (dump_nested_type): ...here. New function extracted from above.
1177 Generate a full declaration for anonymous element type of arrays.
1178 (print_ada_declaration): Really skip anonymous declarations. Remove
1179 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1180 Clean up processing of declarations of array types and objects.
1181 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1182 Remove obsolete code and tidy up.
1183
75c8aac3
JH
11842015-11-29 Jan Hubicka <hubicka@ucw.cz>
1185
1186 PR c/67581
1187 * c-common.c (handle_transparent_union_attribute): Update
1188 also type variants.
1189
b58d3df2
ML
11902015-11-27 Martin Liska <mliska@suse.cz>
1191
1192 PR c++/68312
1193 * array-notation-common.c (cilkplus_extract_an_triplets):
1194 Release vector of vectors.
1195 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1196
89a01fcf
EB
11972015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1198
1199 PR c++/68527
1200 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1201 (print_ada_struct_decl): Likewise.
1202
cc5c5226
IZ
12032015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1204
1205 PR c++/68001
1206 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1207 * cilk.c (recognize_spawn): Determine location in a more precise
1208 way.
1209
269adb9d
JM
12102015-11-19 Jason Merrill <jason@redhat.com>
1211
1212 * c-common.c (shorten_compare): But look through macros from
1213 system headers.
1214
d0eccfcd
JM
12152015-11-18 Jason Merrill <jason@redhat.com>
1216
1217 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1218 non-constant operand comes from a macro.
1219
3e44547c
JM
12202015-11-17 Jason Merrill <jason@redhat.com>
1221
1222 PR bootstrap/68346
1223 * c-common.c (warn_tautological_cmp): Fold before checking for
1224 constants.
1225
0f62c7a0
MP
12262015-11-16 Marek Polacek <polacek@redhat.com>
1227
1228 PR c++/68362
1229 * c-common.c (check_case_bounds): Fold low and high cases.
1230
a868811e
MP
12312015-11-16 Marek Polacek <polacek@redhat.com>
1232
1233 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1234 * c-common.c (c_common_get_alias_set): Likewise.
1235 (handle_visibility_attribute): Likewise.
1236
fff77217
KY
12372015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1238
1239 * c-common.c (handle_simd_attribute): New.
1240 (struct attribute_spec): Add entry for "simd".
1241 (handle_simd_attribute): New.
1242
269e63b7
KT
12432015-11-13 Kai Tietz <ktietz70@googlemail.com>
1244
1245 * c-lex.c (interpret_float): Use fold_convert.
1246
ebedc9a3
DM
12472015-11-13 David Malcolm <dmalcolm@redhat.com>
1248
1249 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1250 and store it on the result.
1251 * c-opts.c (c_common_init_options): Set
1252 global_dc->colorize_source_p.
1253
6e232ba4
JN
12542015-11-12 James Norris <jnorris@codesourcery.com>
1255 Joseph Myers <joseph@codesourcery.com>
1256
1257 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1258 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1259 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1260 PRAGMA_OACC_CLAUSE_LINK.
1261
e78bede6
MP
12622015-11-11 Marek Polacek <polacek@redhat.com>
1263
1264 PR c/68107
1265 PR c++/68266
1266 * c-common.c (valid_array_size_p): New function.
1267 * c-common.h (valid_array_size_p): Declare.
1268
3f8257db 12692015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1270
1271 PR bootstrap/68271
1272 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1273
69f293c9
AM
12742015-11-11 Andrew MacLeod <amacleod@redhat.com>
1275
1276 * array-notation-common.c: Remove unused header files.
1277 * c-ada-spec.c: Likewise.
1278 * c-cilkplus.c: Likewise.
1279 * c-common.c: Likewise.
1280 * c-cppbuiltin.c: Likewise.
1281 * c-dump.c: Likewise.
1282 * c-format.c: Likewise.
1283 * c-gimplify.c: Likewise.
1284 * c-indentation.c: Likewise.
1285 * c-lex.c: Likewise.
1286 * c-omp.c: Likewise.
1287 * c-opts.c: Likewise.
1288 * c-pch.c: Likewise.
1289 * c-ppoutput.c: Likewise.
1290 * c-pragma.c: Likewise.
1291 * c-pretty-print.c: Likewise.
1292 * c-semantics.c: Likewise.
1293 * c-ubsan.c: Likewise.
1294 * cilk.c: Likewise.
1295 * stub-objc.c: Likewise.
1296
3a40d81d
NS
12972015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1298 Cesar Philippidis <cesar@codesourcery.com>
1299 James Norris <jnorris@codesourcery.com>
1300 Julian Brown <julian@codesourcery.com>
1301 Nathan Sidwell <nathan@codesourcery.com>
1302
1303 * c-pragma.c (oacc_pragmas): Add "routine".
1304 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1305
ee45a32d
EB
13062015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1307
1308 * c-common.c (c_common_attributes): Add scalar_storage_order.
1309 (handle_scalar_storage_order_attribute): New function.
1310 * c-pragma.c (global_sso): New variable.
1311 (maybe_apply_pragma_scalar_storage_order): New function.
1312 (handle_pragma_scalar_storage_order): Likewise.
1313 (init_pragma): Register scalar_storage_order.
1314 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1315 * c.opt (Wscalar-storage-order): New warning.
1316 (fsso-struct=): New option.
1317
eb11eb15
MS
13182015-11-08 Martin Sebor <msebor@redhat.com>
1319
1320 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1321
0aad0198
RS
13222015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1323
1324 * c-common.c: Don't undef DEF_BUILTIN.
1325
8a645150
DM
13262015-11-06 David Malcolm <dmalcolm@redhat.com>
1327
1328 * c-common.c (c_cpp_error): Convert parameter from location_t to
1329 rich_location *. Eliminate the "column_override" parameter and
1330 the call to diagnostic_override_column.
1331 Update the "done_lexing" clause to set range 0
1332 on the rich_location, rather than overwriting a location_t.
1333 * c-common.h (c_cpp_error): Convert parameter from location_t to
1334 rich_location *. Eliminate the "column_override" parameter.
1335
7a5e4956
CP
13362015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1337 Thomas Schwinge <thomas@codesourcery.com>
1338 James Norris <jnorris@codesourcery.com>
1339
1340 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1341 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1342 clauses with parallel and kernels and loops.
1343 * c-pragma.h (enum pragma_omp_clause): Add entries for
1344 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1345 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1346 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1347 INDEPENDENT,SEQ}.
1348 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1349
e2f5cc96
MS
13502015-11-05 Martin Sebor <msebor@redhat.com>
1351
1352 PR c++/67942
1353 * c.opt (-Wplacement-new): New option.
1354
e01d41e5
JJ
13552015-11-05 Jakub Jelinek <jakub@redhat.com>
1356
1357 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1358 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1359 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1360 save_expr or create_tmp_var* if TEST is true.
1361 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1362 Don't call add_stmt here.
1363 (struct c_omp_check_loop_iv_data): New type.
1364 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1365 c_omp_check_loop_iv_exprs): New functions.
1366 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1367 distribute.
1368 (c_omp_declare_simd_clauses_to_numbers): Change
1369 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1370 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1371 from numbers to PARM_DECLs.
1372
595278be
MM
13732015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1374
1375 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1376 flag_checking.
1377
3f8257db 13782015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1379
1380 PR c++-common/67882
b3d5bc62
JJ
1381 * c-common.h (fold_offsetof_1): Add argument.
1382 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1383 offsetof expressions that reference elements past the end of
1384 an array.
1385
4bf9e5a8
TS
13862015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1387 Chung-Lin Tang <cltang@codesourcery.com>
1388
1389 * c-pragma.c (oacc_pragmas): Add "atomic".
1390 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1391
3b1661a9
ES
13922015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1393
1394 * c-common.c (handle_target_clones_attribute): New.
1395 (c_common_attribute_table): Add handle_target_clones_attribute.
1396 (handle_always_inline_attribute): Add check on target_clones attribute.
1397 (handle_target_attribute): Ditto.
1398
2adfab87
AM
13992015-10-29 Andrew MacLeod <amacleod@redhat.com>
1400
1401 * array-notation-common.c: Reorder #include's and remove duplicates.
1402 * c-ada-spec.c: Likewise.
1403 * c-cilkplus.c: Likewise.
1404 * c-common.c: Likewise.
1405 * c-cppbuiltin.c: Likewise.
1406 * c-dump.c: Likewise.
1407 * c-format.c: Likewise.
1408 * c-gimplify.c: Likewise.
1409 * c-indentation.c: Likewise.
1410 * c-lex.c: Likewise.
1411 * c-omp.c: Likewise.
1412 * c-opts.c: Likewise.
1413 * c-pch.c: Likewise.
1414 * c-ppoutput.c: Likewise.
1415 * c-pragma.c: Likewise.
1416 * c-pretty-print.c: Likewise.
1417 * c-semantics.c: Likewise.
1418 * c-ubsan.c: Likewise.
1419 * cilk.c: Likewise.
1420 * stub-objc.c: Likewise.
1421
d90ec4f2
JM
14222015-10-28 Jason Merrill <jason@redhat.com>
1423
1424 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1425
88bae6f4
TS
14262015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1427 James Norris <jnorris@codesourcery.com>
1428 Cesar Philippidis <cesar@codesourcery.com>
1429
1430 PR c/64765
1431 PR c/64880
1432 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1433 * c-omp.c (c_oacc_split_loop_clauses): New function.
1434
b1726d6c
MS
14352015-10-21 Martin Sebor <msebor@redhat.com>
1436
1437 PR driver/68043
1438 * c.opt: End each sentence that describes an option with a period.
1439
fa60eeb9
MP
14402015-10-20 Marek Polacek <polacek@redhat.com>
1441
1442 * array-notation-common.c (is_cilkplus_vector_p): Define.
1443 * c-common.h (is_cilkplus_vector_p): Declare.
1444
95979049
MP
14452015-10-20 Marek Polacek <polacek@redhat.com>
1446
1447 * c.opt (std=gnu++11): Do not describe as experimental.
1448 (std=gnu++14): Likewise.
1449
2a9fb712
JM
14502015-10-19 Jason Merrill <jason@redhat.com>
1451
1452 * c-cppbuiltin.c (c_cpp_builtins): Define
1453 __cpp_nontype_template_args.
1454
13b380a3
JM
14552015-10-19 Jason Merrill <jason@redhat.com>
1456
1457 * c-cppbuiltin.c (c_cpp_builtins): Define
1458 __cpp_enumerator_attributes, __cpp_fold_expressions,
1459 __cpp_unicode_characters.
1460
d9a6bd32
JJ
14612015-10-13 Jakub Jelinek <jakub@redhat.com>
1462 Aldy Hernandez <aldyh@redhat.com>
1463
1464 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1465 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1466 (c_define_builtins): Likewise.
1467 * c-common.h (enum c_omp_clause_split): Add
1468 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1469 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1470 (c_finish_omp_for): Add ORIG_DECLV argument.
1471 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1472 201511 instead of 201307.
1473 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1474 OMP_CRITICAL_CLAUSES to it.
1475 (c_finish_omp_ordered): Add CLAUSES argument, set
1476 OMP_ORDERED_CLAUSES to it.
1477 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1478 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1479 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1480 constructs and new OpenMP 4.5 clauses. Clear
1481 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1482 verification code.
1483 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1484 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1485 (enum pragma_omp_clause): Add
1486 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1487 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1488
624d31fe
RS
14892015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1490
1491 * c-lex.c (interpret_float): Use real_equal instead of
1492 REAL_VALUES_EQUAL.
1493
b8fd7909
JM
14942015-10-04 Jason Merrill <jason@redhat.com>
1495
1496 Implement N4514, C++ Extensions for Transactional Memory.
1497 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1498 (c_common_attribute_table): Add transaction_safe_dynamic.
1499 transaction_safe now affects type identity.
1500 (handle_tm_attribute): Handle transaction_safe_dynamic.
1501 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1502 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1503 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1504 (D_TRANSMEM): New.
1505 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1506 * c-pretty-print.c (pp_c_attributes_display): Don't print
1507 transaction_safe in C++.
1508
12651878
MP
15092015-10-02 Marek Polacek <polacek@redhat.com>
1510
1511 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1512
3e3b8d63
MP
15132015-10-02 Marek Polacek <polacek@redhat.com>
1514
1515 PR c/64249
1516 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1517 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1518 * c.opt (Wduplicated-cond): New option.
1519
0d1a8f75
JM
15202015-10-01 Joseph Myers <joseph@codesourcery.com>
1521
1522 * c.opt (std=c11): Do not describe as experimental.
1523 (std=gnu11): Likewise.
1524 (std=iso9899:2011): Likewise.
1525
3e32ee19
NS
15262015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1527
1528 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1529 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1530
974348ee
MP
15312015-09-25 Marek Polacek <polacek@redhat.com>
1532
1533 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1534 (ubsan_instrument_shift): Likewise.
1535
15dbc1a6
MP
15362015-09-25 Marek Polacek <polacek@redhat.com>
1537
1538 PR sanitizer/64906
1539 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1540
6b95d7cc
PP
15412015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1542
1543 * c-indentation.c (should_warn_for_misleading_indentation):
1544 Compare next_stmt_vis_column with guard_line_first_nws instead
1545 of with guard_line_vis_column.
1546
c1822f9c
MLI
15472015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1548
1549 PR c/49654
1550 PR c/49655
1551 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1552 options and options not valid for the current language.
1553
d5398058
PP
15542015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1555
1556 * c-indentation.c (should_warn_for_misleading_indentation):
1557 Float out and consolidate the calls to get_visual_column that
1558 are passed guard_exploc as an argument. Compare
1559 next_stmt_vis_column with guard_line_first_nws instead of with
1560 body_line_first_nws.
1561
6b333269
NS
15622015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1563
1564 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1565 Wnamespaces): New C++ warnings.
1566
a75f1574
JM
15672015-09-22 Jason Merrill <jason@redhat.com>
1568
1569 * c-common.h (abi_compat_version_crosses): New.
1570 (warn_abi_version): Declare.
1571 * c-common.c: Define it.
1572 * c-opts.c (c_common_post_options): Handle it.
1573 flag_abi_compat_version defaults to 8.
1574
bdaaa8b7
VV
15752015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1576
1577 Complete the implementation of N4230, Nested namespace definition.
1578 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1579 __cpp_nested_namespace_definitions.
1580
eaa797e8
MLI
15812015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1582
1583 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1584
c4914de6
MLI
15852015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1586
1587 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1588 when warning.
1589 * c-pragma.h (pragma_lex): Add optional loc argument.
1590
fcb87c50
MM
15912015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1592
1593 * c-format.c (check_format_arg): Adjust to use common block size in all
1594 object pools.
1595
31bdd08a
DM
15962015-09-15 David Malcolm <dmalcolm@redhat.com>
1597
1598 * c-format.c (location_from_offset): Update for change in
1599 signature of location_get_source_line.
1600 * c-indentation.c (get_visual_column): Likewise.
1601 (line_contains_hash_if): Likewise.
1602
aa9f4b4c
MP
16032015-09-14 Marek Polacek <polacek@redhat.com>
1604
1605 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1606 setting various warnings.
1607
aa256c4a
MP
16082015-09-14 Marek Polacek <polacek@redhat.com>
1609
1610 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1611 a negative value.
1612
0f876f22
MW
16132015-09-11 Mark Wielaard <mjw@redhat.com>
1614
1615 PR c/28901
1616 * c.opt (Wunused-variable): Option from common.opt.
1617 (Wunused-const-variable): New option.
1618
273aa49e
PC
16192015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1620
1621 PR c++/53184
1622 * c.opt ([Wsubobject-linkage]): Add.
1623
1807ffc1
MS
16242015-09-03 Martin Sebor <msebor@redhat.com>
1625
1626 PR c/66516
1627 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1628 functions.
1629 * c-common.c (reject_gcc_builtin): Define.
1630
38942840
BI
16312015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1632
1633 PR middle-end/60586
1634 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1635 prototype.
1636 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1637 cilk_gimplify_call_params_in_spawned_fn.
1638 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1639 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1640 unwrapping.
1641
c316b5e4
MP
16422015-08-25 Marek Polacek <polacek@redhat.com>
1643
1644 PR middle-end/67330
1645 * c-common.c (handle_weak_attribute): Don't check whether the
1646 visibility can be changed here.
1647
584a7c46
MLI
16482015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1649
1650 * c-lex.c (c_lex_with_flags): Use explicit locations.
1651
a79683d5
TS
16522015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1653
1654 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1655 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1656
61717a45
FXC
16572015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1658
1659 PR middle-end/36757
1660 * c-common.c (check_builtin_function_arguments): Add check
1661 for BUILT_IN_SIGNBIT argument.
1662
329524f5
PC
16632015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1664
1665 PR c++/67160
1666 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1667 in c++1z mode.
1668
4ee55665
MP
16692015-08-17 Marek Polacek <polacek@redhat.com>
1670
1671 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1672 with whitespaces before qualifier names.
1673
b893e375
MP
16742015-08-12 Marek Polacek <polacek@redhat.com>
1675
1676 PR c++/55095
1677 * c-common.c (maybe_warn_shift_overflow): Properly handle
1678 left-shifting 1 into the sign bit.
1679
c2d89095
MLI
16802015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1681
1682 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1683
971e17ff
AS
16842015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1685 Braden Obrzut <admin@maniacsvault.net>
1686 Jason Merrill <jason@redhat.com>
1687
1688 Add C++ Concepts TS support.
1689 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1690 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1691 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1692 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1693 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1694 * c.opt (fconcepts): New.
1695
b3d5bc62
JJ
16962015-08-02 Martin Sebor <msebor@redhat.com>
1697
1698 * c.opt (-Wframe-address): New warning option.
1699
8ebca419
PP
17002015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1701
1702 * c-indentation.c (should_warn_for_misleading_indentation):
1703 Improve heuristics.
1704
1a1e101f
PP
17052015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1706
1707 * c-indentation.c (get_visual_column): Add parameter first_nws,
1708 use it. Update comment documenting the function.
1709 (is_first_nonwhitespace_on_line): Remove.
1710 (should_warn_for_misleading_indentation): Replace usage of
1711 of is_first_nonwhitespace_on_line with get_visual_column.
1712
992118a1
PP
17132015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1714
1715 * c-indentation.h (struct token_indent_info): Define.
1716 (get_token_indent_info): Define.
1717 (warn_for_misleading_information): Declare.
1718 * c-common.h (warn_for_misleading_information): Remove.
1719 * c-identation.c (warn_for_misleading_indentation):
1720 Change declaration to take three token_indent_infos. Adjust
1721 accordingly.
1722 * c-identation.c (should_warn_for_misleading_indentation):
1723 Likewise. Bail out early if the body is a compound statement.
1724 (guard_tinfo_to_string): Define.
1725
e8fa3817
JM
17262015-07-30 Jason Merrill <jason@redhat.com>
1727
1728 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1729 '*' for reference decay.
1730
173864e8
MP
17312015-07-30 Marek Polacek <polacek@redhat.com>
1732
1733 * c-common.c (warn_tautological_cmp): Bail for float types.
1734
f2afe6dd
MP
17352015-07-27 Marek Polacek <polacek@redhat.com>
1736
1737 PR bootstrap/67030
1738 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1739
05b28fd6
MP
17402015-07-27 Marek Polacek <polacek@redhat.com>
1741
1742 PR c++/66555
1743 PR c/54979
1744 * c-common.c (find_array_ref_with_const_idx_r): New function.
1745 (warn_tautological_cmp): New function.
1746 * c-common.h (warn_tautological_cmp): Declare.
1747 * c.opt (Wtautological-compare): New option.
1748
5a5062b8
MP
17492015-07-23 Marek Polacek <polacek@redhat.com>
1750
1751 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1752 (ubsan_instrument_shift): Likewise.
1753
dc891fe7
MP
17542015-07-23 Marek Polacek <polacek@redhat.com>
1755
1756 PR sanitizer/66908
1757 * c-ubsan.c: Include gimplify.h.
1758 (ubsan_instrument_division): Unshare OP0 and OP1.
1759 (ubsan_instrument_shift): Likewise.
1760
451b5e48
MP
17612015-07-20 Marek Polacek <polacek@redhat.com>
1762 Richard Sandiford <richard.sandiford@arm.com>
1763
1764 PR c++/55095
1765 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1766 Use EXPR_LOC_OR_LOC.
1767 (maybe_warn_shift_overflow): New function.
1768 * c-common.h (maybe_warn_shift_overflow): Declare.
1769 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1770 * c.opt (Wshift-overflow): New option.
1771
fb0b2914
ML
17722015-07-16 Martin Liska <mliska@suse.cz>
1773
1774 * c-format.c (static void check_format_info_main): Use
1775 object_allocator instead of pool_allocator.
1776 (check_format_arg): Likewise.
1777 (check_format_info_main): Likewise.
1778
903f5c23
AM
17792015-07-15 Andrew MacLeod <amacleod@redhat.com>
1780
1781 * c-opts.c: Remove multiline #include comment.
1782
026c3cfd
AH
17832015-07-12 Aldy Hernandez <aldyh@redhat.com>
1784
1785 * c-common.c: Fix double word typos.
1786
bb49ee66
EB
17872015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1788
1789 * c-ada-spec.h (cpp_operation): Revert latest change.
1790 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1791 constructors and destructors.
1792
1916bcb5
AM
17932015-07-09 Andrew MacLeod <amacleod@redhat.com>
1794
1795 * c-common.h: Adjust includes for flags.h changes.
1796 * stub-objc.c: Likewise.
026c3cfd 1797
a9dcd529
EB
17982015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1799
1800 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1801 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1802
b03b462f
JJ
18032015-07-08 Jakub Jelinek <jakub@redhat.com>
1804
1805 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1806 are to be removed, return NULL rather than original clauses list.
1807
c7131fb2
AM
18082015-07-07 Andrew MacLeod <amacleod@redhat.com>
1809
1810 * array-notation-common.c: Adjust includes.
1811 * c-ada-spec.c: Likewise.
1812 * c-cilkplus.c: Likewise.
1813 * c-common.h: Likewise.
1814 * c-cppbuiltin.c: Likewise.
1815 * c-dump.c: Likewise.
1816 * c-format.c: Likewise.
1817 * c-gimplify.c: Likewise.
1818 * c-indentation.c: Likewise.
1819 * c-lex.c: Likewise.
1820 * c-omp.c: Likewise.
1821 * c-opts.c: Likewise.
1822 * c-pch.c: Likewise.
1823 * c-ppoutput.c: Likewise.
1824 * c-pragma.c: Likewise.
1825 * c-pretty-print.c: Likewise.
1826 * c-semantics.c: Likewise.
1827 * c-ubsan.c: Likewise.
1828 * cilk.c: Likewise.
1829 * stub-objc.c: Likewise.
1830
2a7fb83f
EB
18312015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1832
1833 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1834 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1835
a03c9bf1
JM
18362015-07-01 Jason Merrill <jason@redhat.com>
1837
36a85135
JM
1838 * c-common.h (D_CXX11): Rename from D_CXX0X.
1839 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1840 * c-common.c: Adjust.
1841
e7fa68d5
JM
1842 * c-opts.c (c_common_post_options): Default to C++14.
1843
a03c9bf1
JM
1844 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1845
fe95b036
ESR
18462015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1847
1848 Implement N4197 - Adding u8 character literals
b3d5bc62 1849 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1850 CPP_CHAR.
b3d5bc62 1851 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1852 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1853 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1854 and CPP_UTF8CHAR tokens.
1855 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1856
da2e71c9
MLI
18572015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1858
1859 PR fortran/66605
1860 * c-common.c (do_warn_unused_parameter): Move here.
1861 * c-common.h (do_warn_unused_parameter): Declare.
1862
b155cfd9
MP
18632015-06-29 Marek Polacek <polacek@redhat.com>
1864
1865 PR c/66322
1866 * c-common.c (check_case_bounds): Add bool * parameter. Set
1867 OUTSIDE_RANGE_P.
1868 (c_add_case_label): Add bool * parameter. Pass it down to
1869 check_case_bounds.
1870 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1871 warning here.
1872 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1873 declarations.
1874
31521951
MP
18752015-06-27 Marek Polacek <polacek@redhat.com>
1876
1877 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1878 or VECTOR_INTEGER_TYPE_P throughout.
1879 * c-gimplify.c: Likewise.
1880
22d03525
MP
18812015-06-26 Marek Polacek <polacek@redhat.com>
1882
1883 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1884 * c-common.c (c_fully_fold_internal): Likewise.
1885 (c_alignof_expr): Likewise.
1886 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1887 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1888 * cilk.c (create_parm_list): Likewise.
22d03525 1889
af05e6e5
MP
18902015-06-26 Marek Polacek <polacek@redhat.com>
1891
1892 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1893
f0889939
AM
18942015-06-25 Andrew MacLeod <amacleod@redhat.com>
1895
1896 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1897 * c-gimplify.c: Likewise.
1898 * c-pragma.c: Likewise.
1899 * c-ubsan.c: Likewise.
1900 * cilk.c: Likewise.
1901
ca752f39
RS
19022015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1903
1904 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1905 ggc_hasher.
1906
16a16ec7
AM
19072015-06-25 Andrew MacLeod <amacleod@redhat.com>
1908
1909 * cilk.c: Move calls.h after tm.h in the include chain.
1910
0ae9bd27
MP
19112015-06-25 Marek Polacek <polacek@redhat.com>
1912
1913 * array-notation-common.c: Use VAR_P throughout.
1914 * c-ada-spec.c: Likewise.
1915 * c-common.c: Likewise.
1916 * c-format.c: Likewise.
1917 * c-gimplify.c: Likewise.
1918 * c-omp.c: Likewise.
1919 * c-pragma.c: Likewise.
1920 * c-pretty-print.c: Likewise.
1921 * cilk.c: Likewise.
1922
62f9079a
MP
19232015-06-25 Marek Polacek <polacek@redhat.com>
1924
1925 * cilk.c (extract_free_variables): Use is_global_var.
1926
0fa16060
RS
19272015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1928
1929 * c-common.c: Don't include target-def.h.
1930
a68ae2e1
MP
19312015-06-23 Marek Polacek <polacek@redhat.com>
1932
1933 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1934 when comparing INTEGER_CSTs.
1935
c6a2f2d9
PMR
19362015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1937
1938 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1939 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1940 (dump_ada_template): Skip partially specialized types.
1941
6b4db501
MM
19422015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1943
1944 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1945 swapping.
1946
abb226c9
AM
19472015-06-17 Andrew MacLeod <amacleod@redhat.com>
1948
1949 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1950 * c-ada-spec.c: Likewise.
1951 * c-cilkplus.c: Likewise.
1952 * c-common.c: Likewise.
1953 * c-common.h: Likewise.
1954 * c-cppbuiltin.c: Likewise.
1955 * c-dump.c: Likewise.
1956 * c-format.c: Likewise.
1957 * c-gimplify.c: Likewise.
1958 * c-indentation.c: Likewise.
1959 * c-lex.c: Likewise.
1960 * c-omp.c: Likewise.
1961 * c-opts.c: Likewise.
1962 * c-pch.c: Likewise.
1963 * c-ppoutput.c: Likewise.
1964 * c-pragma.c: Likewise.
1965 * c-pretty-print.c: Likewise.
1966 * c-semantics.c: Likewise.
1967 * c-ubsan.c: Likewise.
1968 * cilk.c: Likewise.
1969 * stub-objc.c: Likewise.
1970
076fecad
PP
19712015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1972
1973 PR c++/65168
1974 * c-common.c (c_common_truthvalue_conversion): Warn when
1975 converting an address of a reference to a truth value.
1976
13fdf2e2
AM
19772015-06-08 Andrew MacLeod <amacleod@redhat.com>
1978
1979 * array-notation-common.c : Adjust include files.
1980 * c-ada-spec.c : Likewise.
1981 * c-cilkplus.c : Likewise.
1982 * c-common.c : Likewise.
1983 * c-common.h : Likewise.
1984 * c-cppbuiltin.c : Likewise.
1985 * c-dump.c : Likewise.
1986 * c-format.c : Likewise.
1987 * c-gimplify.c : Likewise.
1988 * c-indentation.c : Likewise.
1989 * c-lex.c : Likewise.
1990 * c-omp.c : Likewise.
1991 * c-opts.c : Likewise.
1992 * c-pch.c : Likewise.
1993 * c-ppoutput.c : Likewise.
1994 * c-pragma.c : Likewise.
1995 * c-pretty-print.c : Likewise.
1996 * c-semantics.c : Likewise.
1997 * c-ubsan.c : Likewise.
1998 * cilk.c : Likewise.
1999 * stub-objc.c : Likewise.
2000
a1661b90
MP
20012015-06-08 Marek Polacek <polacek@redhat.com>
2002
2003 PR c/66415
2004 * c-format.c (location_from_offset): Return LOC if LINE is null.
2005
d7438551
AH
20062015-06-05 Aldy Hernandez <aldyh@redhat.com>
2007
2008 * c-common.h (c_parse_final_cleanups): New prototype.
2009 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2010
b3d5bc62
JJ
20112015-06-04 Sriraman Tallam <tmsriram@google.com>
2012
2013 * c-common.c (noplt): New attribute.
2014 (handle_noplt_attribute): New handler.
2015
ecb9f223
AM
20162015-06-04 Andrew MacLeod <amacleod@redhat.com>
2017
2018 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2019 * c-ada-spec.c: Likewise.
2020 * c-cilkplus.c: Likewise.
2021 * c-common.c: Likewise.
2022 * c-common.h: Likewise.
2023 * c-cppbuiltin.c: Likewise.
2024 * c-dump.c: Likewise.
2025 * c-format.c: Likewise.
2026 * c-gimplify.c: Likewise.
2027 * c-indentation.c: Likewise.
2028 * c-lex.c: Likewise.
2029 * c-omp.c: Likewise.
2030 * c-opts.c: Likewise.
2031 * c-pch.c: Likewise.
2032 * c-ppoutput.c: Likewise.
2033 * c-pragma.c: Likewise.
2034 * c-pretty-print.c: Likewise.
2035 * c-semantics.c: Likewise.
2036 * c-ubsan.c: Likewise.
2037 * cilk.c: Likewise.
2038 * stub-objc.c: Likewise.
2039
6ac48155
DM
20402015-06-02 David Malcolm <dmalcolm@redhat.com>
2041
2042 PR c/66220:
2043 * c-indentation.c (should_warn_for_misleading_indentation): Use
2044 expand_location rather than expand_location_to_spelling_point.
2045 Don't warn if the guarding statement is more indented than the
2046 next/body stmts.
2047
773ce42e
DM
20482015-06-02 David Malcolm <dmalcolm@redhat.com>
2049
2050 * c-indentation.c (warn_for_misleading_indentation): Bail out
2051 immediately if -Wmisleading-indentation isn't enabled.
2052
4fef8379
ML
20532015-06-01 Martin Liska <mliska@suse.cz>
2054
2055 * c-format.c (check_format_arg):Use new type-based pool allocator.
2056 (check_format_info_main) Likewise.
2057
1edfb384
EB
20582015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2059
2060 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2061 (has_nontrivial_methods): Likewise.
2062
9677ef52
MP
20632015-05-25 Marek Polacek <polacek@redhat.com>
2064
2065 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2066
fd5c817a
MP
20672015-05-22 Marek Polacek <polacek@redhat.com>
2068
2069 PR c/47043
2070 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2071
a2f45fe6 20722015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2073
2074 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2075 STACK_GROWS_DOWNWARD.
2076
a2f45fe6 20772015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2078
2079 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2080 STACK_GROWS_DOWNWARD rather than if it is defined.
2081
0fee2ac2 20822015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2083
0fee2ac2
MLI
2084 PR c/52952
2085 * c-format.c (location_column_from_byte_offset): New.
2086 (location_from_offset): New.
2087 (struct format_wanted_type): Add offset_loc field.
2088 (check_format_info): Move handling of location for extra arguments
2089 closer to the point of warning.
2090 (check_format_info_main): Pass the result of location_from_offset
2091 to warning_at.
2092 (format_type_warning): Pass the result of location_from_offset
2093 to warning_at.
2094
cf4ef6f7
MP
20952015-05-20 Marek Polacek <polacek@redhat.com>
2096
2097 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2098
3a65ee74
MP
20992015-05-20 Marek Polacek <polacek@redhat.com>
2100
2101 * c-ada-spec.c (dump_sloc): Use DECL_P.
2102
21b634ae
MP
21032015-05-20 Marek Polacek <polacek@redhat.com>
2104
2105 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2106 * c-common.c: Likewise.
2107
0e50b624
DM
21082015-05-19 David Malcolm <dmalcolm@redhat.com>
2109
2110 * c-common.h (fe_file_change): Strengthen param from
2111 const line_map * to const line_map_ordinary *.
2112 (pp_file_change): Likewise.
2113 * c-lex.c (fe_file_change): Likewise.
2114 (cb_define): Use linemap_check_ordinary when invoking
2115 SOURCE_LINE.
2116 (cb_undef): Likewise.
2117 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2118 invoking cb_file_change.
2119 (c_finish_options): Likewise.
2120 (push_command_line_include): Likewise.
2121 (cb_file_change): Strengthen param "new_map" from
2122 const line_map * to const line_map_ordinary *.
2123 * c-ppoutput.c (cb_define): Likewise for local "map".
2124 (pp_file_change): Likewise for param "map" and local "from".
2125
fab27f52
MM
21262015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2127
2128 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2129
2fe1d762
TV
21302015-05-18 Tom de Vries <tom@codesourcery.com>
2131
2132 * c-common.c (build_va_arg_1): New function.
2133 (build_va_arg): Add address operator to va_list operand if necessary.
2134
7a37fa90
MM
21352015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2136
2137 PR c/48956
2138 * c-common.c (int_safely_convertible_to_real_p): Define.
2139 (unsafe_conversion_p): Check conversions involving complex types.
2140 (conversion_warning): Add new warning message for conversions which
2141 discard imaginary component.
2142 * c-common.h: (enum conversion_safety): Add new enumerator for such
2143 conversions.
2144
3aa3c9fc
MP
21452015-05-14 Marek Polacek <polacek@redhat.com>
2146
2147 PR c/66066
2148 PR c/66127
2149 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2150 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2151 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2152 use it. If FOR_INT_CONST, require that all evaluated operands be
2153 INTEGER_CSTs.
2154
c3388e62
DM
21552015-05-12 David Malcolm <dmalcolm@redhat.com>
2156
2157 * c-common.h (warn_for_misleading_indentation): New prototype.
2158 * c-indentation.c: New file.
2159 * c.opt (Wmisleading-indentation): New option.
2160
c7b38fd5
TV
21612015-05-12 Tom de Vries <tom@codesourcery.com>
2162
2163 PR tree-optimization/66010
2164 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2165
381bf11e
JM
21662015-05-09 Jason Merrill <jason@redhat.com>
2167
edff0c06
JM
2168 * c-opts.c (c_common_post_options): Also clear
2169 cpp_opts->cpp_warn_cxx11_compat.
2170
129211bc
JM
2171 * c-common.h (enum cxx_dialect): Add cxx_unset.
2172 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2173 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2174
381bf11e
JM
2175 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2176 (std=gnu++0x): Mark as Undocumented.
2177 (std=gnu++1y): Add deprecated message.
2178
fe191308
JM
21792015-05-08 Jason Merrill <jason@redhat.com>
2180
765189ff
JM
2181 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2182 * c-opts.c: Adjust.
2183
fe191308
JM
2184 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2185
755e528f
MP
21862015-05-08 Marek Polacek <polacek@redhat.com>
2187
2188 PR c/64918
2189 * c.opt (Woverride-init-side-effects): New option.
2190
0173bd2a
MP
21912015-05-07 Marek Polacek <polacek@redhat.com>
2192
2193 PR c/65179
2194 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2195 negative value.
2196 * c.opt (Wshift-negative-value): New option.
2197 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2198 when -Wextra and C99/C++11 mode.
2199
e0f0d3b9
MP
22002015-05-07 Marek Polacek <polacek@redhat.com>
2201 Martin Uecker <uecker@eecs.berkeley.edu>
2202
2203 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2204 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2205
8243e2a9
JM
22062015-05-05 Jason Merrill <jason@redhat.com>
2207
2208 * c.opt (Wterminate): New.
2209
577cd070
MP
22102015-04-30 Marek Polacek <polacek@redhat.com>
2211
2212 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2213 require that the non-constant be of a boolean type.
2214
0373796b
JT
22152015-04-29 Josh Triplett <josh@joshtriplett.org>
2216
e0f0d3b9
MP
2217 * c-common.c (handle_section_attribute): Refactor to reduce
2218 nesting and distinguish between error cases.
0373796b 2219
716c0ba6
MP
22202015-04-29 Marek Polacek <polacek@redhat.com>
2221
2222 PR c/64610
2223 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2224 with 0/1.
2225
8848828b
JJ
22262015-04-29 Jakub Jelinek <jakub@redhat.com>
2227
2228 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2229 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2230 HOST_BITS_PER_WIDE_INT.
2231
ecd0e562
TV
22322015-04-28 Tom de Vries <tom@codesourcery.com>
2233
2234 PR tree-optimization/65887
2235 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2236
2a877204 22372015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2238 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2239
2240 * c-ada-spec.c (in_function): Delete.
2241 (dump_generic_ada_node): Do not change in_function and remove the
2242 redundant code dealing with it.
2243 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2244 (print_ada_methods): Output the static member functions in a nested
2245 package after the regular methods as well as associated renamings.
2246
4853031e
MP
22472015-04-24 Marek Polacek <polacek@redhat.com>
2248
2249 PR c/65830
2250 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2251 and OPT_Wshift_count_overflow.
2252
8c2b7f79
MP
2253 PR c/63357
2254 * c-common.c (warn_logical_operator): Warn if the operands have the
2255 same expressions.
2256
b8787813
MP
22572015-04-24 Marek Polacek <polacek@redhat.com>
2258
2259 PR c/61534
2260 * c-common.c (warn_logical_operator): Bail if either operand comes
2261 from a macro expansion.
2262
8fba1830
BRF
22632015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2264
2265 PR target/55143
2266 * c-common.c (c_default_pointer_mode): Add definition.
2267 * c-common.h (c_default_pointer_mode): Add declaration.
2268
17958621
JJ
22692015-03-11 Jakub Jelinek <jakub@redhat.com>
2270
2271 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2272 on record_builtin_type argument.
2273
7ccb1a11
JJ
22742015-03-10 Jakub Jelinek <jakub@redhat.com>
2275
2276 PR c/65120
2277 * c-common.c (warn_logical_not_parentheses): Don't warn for
2278 !x == 0 or !x != 0.
2279
04fd785e
MP
22802015-03-07 Marek Polacek <polacek@redhat.com>
2281
2282 PR sanitizer/65280
2283 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2284 before trying to figure out whether we have a flexible array member.
2285
a4e26206
EB
22862015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2287 Jonathan Wakely <jwakely.gcc@gmail.com>
2288
2289 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2290
0d2489f4
EB
22912015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2292
2293 PR ada/65319
2294 * c-ada-spec.c (print_destructor): Remove obsolete code.
2295
83ed54d7
EB
22962015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2297
2298 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2299 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2300 DECL_TEMPLATE_RESULT emulations.
2301 (dump_ada_template)): Add guard for TYPE_METHODS.
2302
7631f0e2
MP
23032015-02-27 Marek Polacek <polacek@redhat.com>
2304
2305 PR c/65040
2306 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2307
d1783ae5
KT
23082015-02-27 Kai Tietz <ktietz@redhat.com>
2309
2310 PR c/35330
2311 * c-pragma.c (handle_pragma_weak): Do not try to create
2312 weak/alias of declarations not being function, or variable
2313 declarations.
2314
56a9f6bc
TS
23152015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2316
2317 PR libgomp/64625
2318 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2319 Remove macros.
2320 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2321
3d5cb23d
MP
23222015-02-16 Marek Polacek <polacek@redhat.com>
2323
2324 PR c/65066
2325 * c-format.c (check_format_types): Handle null param.
2326
fa008882
MP
23272015-02-13 Marek Polacek <polacek@redhat.com>
2328
2329 PR c/65040
2330 * c-format.c (check_format_types): Don't warn about different
2331 signedness if the original value is in the range of WANTED_TYPE.
2332
785f21af
JM
23332015-02-12 Jason Merrill <jason@redhat.com>
2334
2335 PR c++/64956
2336 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2337 to the current highest version.
2338 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2339
4886ec8e
JJ
23402015-02-04 Jakub Jelinek <jakub@redhat.com>
2341
2342 PR c/64824
2343 PR c/64868
2344 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2345 instead of RDIV_EXPR. Use build_binary_op instead of
2346 build2_loc.
2347
40fecdd6
JM
23482015-01-30 Joseph Myers <joseph@codesourcery.com>
2349
2350 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2351 to pass input_location as first argument.
2352
a0c88d06
TV
23532015-01-23 Tom de Vries <tom@codesourcery.com>
2354
2355 PR libgomp/64672
2356 * c.opt (fopenacc): Mark as LTO option.
2357
1506ae0e
TV
23582015-01-23 Tom de Vries <tom@codesourcery.com>
2359
2360 PR libgomp/64707
2361 * c.opt (fopenmp): Mark as LTO option.
2362
31be63ab
JJ
23632015-01-21 Jakub Jelinek <jakub@redhat.com>
2364
2365 PR c/63307
b1726d6c 2366 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2367 (compare_decls): Fix up formatting.
2368
23692015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2370
2371 PR c/63307
2372 * cilk.c: Include vec.h.
2373 (struct cilk_decls): New structure.
2374 (wrapper_parm_cb): Split this function to...
2375 (fill_decls_vec): ...this...
2376 (create_parm_list): ...and this.
2377 (compare_decls): New function.
2378 (for_local_cb): Remove.
2379 (wrapper_local_cb): Ditto.
2380 (build_wrapper_type): For now first traverse and fill vector of
2381 declarations then sort it and then deal with sorted vector.
2382 (cilk_outline): Ditto.
2383 (declare_one_free_variable): Ditto.
2384
6875457f
JM
23852015-01-21 Jason Merrill <jason@redhat.com>
2386
2387 PR c++/64629
2388 * c-format.c (check_format_arg): Call decl_constant_value.
2389
185c9e56
ML
23902015-01-19 Martin Liska <mliska@suse.cz>
2391
2392 * c-common.c (handle_noicf_attribute): New function.
2393
41dbbb37
TS
23942015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2395 Bernd Schmidt <bernds@codesourcery.com>
2396 James Norris <jnorris@codesourcery.com>
2397 Cesar Philippidis <cesar@codesourcery.com>
2398 Ilmir Usmanov <i.usmanov@samsung.com>
2399 Jakub Jelinek <jakub@redhat.com>
2400
2401 * c.opt (fopenacc): New option.
2402 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2403 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2404 New macros.
2405 * c-common.h (c_finish_oacc_wait): New prototype.
2406 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2407 (c_finish_oacc_wait): New function.
2408 * c-pragma.c (oacc_pragmas): New variable.
2409 (c_pp_lookup_pragma, init_pragma): Handle it.
2410 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2411 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2412 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2413 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2414 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2415 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2416 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2417 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2418 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2419 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2420 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2421 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2422 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2423 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2424 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2425 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2426 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2427 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2428 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2429 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2430 PRAGMA_OACC_CLAUSE_WORKER.
2431
3f8257db 24322015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2433
2434 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2435 for the new option fstack-protector_explicit.
2436 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2437 (handle_stack_protect_attribute): New function.
2438
3f8257db 24392015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2440
2441 * c.opt: New option -Warray-bounds=.
2442
adfac8df
JJ
24432015-01-09 Michael Collison <michael.collison@linaro.org>
2444
2445 * array-notation-common.c: Include hash-set.h, machmode.h,
2446 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2447 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2448 * c-ada-spec.c: Ditto.
2449 * c-cilkplus.c: Ditto.
2450 * c-common.c: Include input.h due to flattening of tree.h.
2451 Define macro GCC_C_COMMON_C.
2452 * c-common.h: Flatten tree.h header files into c-common.h.
2453 Remove include of tree-core.h.
2454 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2455 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2456 fold-const.h, wide-int.h, and inchash.h due to
2457 flattening of tree.h.
2458 * c-dump.c: Ditto.
2459 * c-format.c: Flatten tree.h header files into c-common.h.
2460 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2461 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2462 fold-const.h, wide-int.h, and inchash.h due to
2463 flattening of tree.h.
2464 * c-dump.c: Include hash-set.h, machmode.h,
2465 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2466 fold-const.h, wide-int.h, and inchash.h due to
2467 flattening of tree.h.
2468 * c-format.c: Include hash-set.h, machmode.h,
2469 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2470 fold-const.h, wide-int.h, inchash.h and real.h due to
2471 flattening of tree.h.
2472 * c-gimplify.c: Include hash-set.h, machmode.h,
2473 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2474 fold-const.h, wide-int.h, and inchash.h due to
2475 flattening of tree.h.
2476 * cilk.c: Ditto.
2477 * c-lex.c: Ditto.
2478 * c-omp.c: Ditto.
2479 * c-opts.c: Ditto.
2480 * c-pch.c: Ditto.
2481 * c-ppoutput.c: Ditto.
2482 * c-pragma.c: Ditto.
2483 * c-pretty-print.c: Ditto.
2484 * c-semantics.c: Ditto.
2485 * c-ubsan.c: Ditto.
2486 * stub-objc.c: Ditto.
2487
f5481fc4
JM
24882015-01-08 Jason Merrill <jason@redhat.com>
2489
2490 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2491 do_ubsan_in_current_function.
2492 (ubsan_maybe_instrument_reference_or_call): Likewise.
2493 * c-ubsan.h: Declare it.
2494
de35aa66
MS
24952015-01-08 Mike Stump <mikestump@comcast.net>
2496
2497 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2498
4a9a42ab
MP
24992015-01-07 Marek Polacek <polacek@redhat.com>
2500
2501 PR c/64440
2502 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2503 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2504
2f42e5de
TS
25052015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2506
2507 PR c++/31397
2508 * c.opt (Wsuggest-override): New option.
2509
5624e564
JJ
25102015-01-05 Jakub Jelinek <jakub@redhat.com>
2511
2512 Update copyright years.
2513
5bd012f8
MP
25142015-01-05 Marek Polacek <polacek@redhat.com>
2515
2516 PR c/64423
2517 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2518 parameter. Use it.
2519 * c-common.h (warn_array_subscript_with_type_char): Update
2520 declaration.
2521
a7fa8d18
ESR
25222014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2523
2524 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2525 Control macro with flag_sized_deallocation.
2526
3f8257db 25272014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2528
2529 * c.opt (Wdiscarded-array-qualifiers): New option.
2530
1f8d3e84
JJ
25312014-12-19 Jakub Jelinek <jakub@redhat.com>
2532
2533 PR preprocessor/63831
2534 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2535 and __has_cpp_attribute here.
2536 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2537 c_common_has_attribute.
2538 * c-common.h (c_common_has_attribute): New prototype.
2539 * c-lex.c (init_c_lex): Set cb->has_attribute to
2540 c_common_has_attribute instead of cb_has_attribute.
2541 (get_token_no_padding): New function.
2542 (cb_has_attribute): Renamed to ...
2543 (c_common_has_attribute): ... this. No longer static. Use
2544 get_token_no_padding, require ()s, don't build TREE_LIST
2545 unnecessarily, fix up formatting, adjust diagnostics, call
2546 init_attributes.
2547
20b06add
JM
25482014-12-15 Jason Merrill <jason@redhat.com>
2549
2550 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2551 (-Wsized-deallocation): New.
2552 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2553 to on in C++14 and up.
2554
94a073b2
JM
25552014-12-11 Jason Merrill <jason@redhat.com>
2556
acaa5911
JM
2557 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2558
94a073b2
JM
2559 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2560 we aren't complaining about VLAs.
2561
7fb66c15
MP
25622014-12-06 Marek Polacek <polacek@redhat.com>
2563
2564 PR tree-optimization/64183
2565 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2566 shift-expression if it is integer_type_node. Use types_compatible_p.
2567
b731b390
JJ
25682014-11-29 Jakub Jelinek <jakub@redhat.com>
2569
2570 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2571 last argument from create_tmp_var_raw and create_tmp_var calls.
2572 * cilk.c (gimplify_cilk_spawn): Likewise.
2573 * c-omp.c (c_finish_omp_atomic): Likewise.
2574
6a4da643
MP
25752014-11-28 Marek Polacek <polacek@redhat.com>
2576
2577 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2578 instead of unsigned_type_node.
2579
541e35a6
MP
25802014-11-28 Marek Polacek <polacek@redhat.com>
2581
2582 PR c/63862
2583 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2584 to op1_utype.
2585 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2586 expression to unsigned_type_node.
2587
dcc97066
MW
25882014-11-20 Mark Wielaard <mjw@redhat.com>
2589
2590 PR debug/38757
2591 * c-opts.c (set_std_c89): Set lang_hooks.name.
2592 (set_std_c99): Likewise.
2593 (set_std_c11): Likewise.
2594 (set_std_cxx98): Likewise.
2595 (set_std_cxx11): Likewise.
2596 (set_std_cxx14): Likewise.
2597 (set_std_cxx1z): Likewise.
2598
aa7da51a
JJ
25992014-11-21 Jakub Jelinek <jakub@redhat.com>
2600
2601 PR target/63764
2602 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2603 return type to bool.
009a3480 2604 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2605 (convert_vector_to_pointer_for_subscript): Change return type to
2606 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2607 and copy it into a TARGET_EXPR and use that instead of *vecp
2608 directly.
2609
538dd0b7
DM
26102014-11-19 David Malcolm <dmalcolm@redhat.com>
2611
2612 Merger of git branch "gimple-classes-v2-option-3".
2613 * ChangeLog.gimple-classes: New.
2614 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2615 from being just a vec<gimple> to a vec<gbind *>.
2616
c39a5e99
JJ
26172014-11-18 Jakub Jelinek <jakub@redhat.com>
2618
2619 PR sanitizer/63813
2620 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2621 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2622 get_pointer_alignment for non-pointers. Use ptype, or if it is
2623 reference type, corresponding pointer type, as type of kind
2624 argument.
2625 (ubsan_maybe_instrument_reference,
2626 ubsan_maybe_instrument_member_call): Adjust callers.
2627
8537a4a9
MP
26282014-11-15 Marek Polacek <polacek@redhat.com>
2629
2630 PR middle-end/63884
2631 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2632 for NULL fndecl.
2633 (extract_array_notation_exprs): Return for NULL node.
2634
2079956a
JM
26352014-11-12 Joseph Myers <joseph@codesourcery.com>
2636
2637 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2638 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2639
1304953e
JJ
26402014-11-12 Jakub Jelinek <jakub@redhat.com>
2641
2642 PR c/59708
2643 * c-common.c (check_builtin_function_arguments): Handle
2644 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2645
e5e44252
AK
26462014-11-10 Andi Kleen <ak@linux.intel.com>
2647
2648 PR c/60804
2649 * c-common.h (check_no_cilk): Declare.
2650 * cilk.c (get_error_location): New function.
2651 (check_no_cilk): Dito.
2652
e64b984d
AK
26532014-11-10 Andi Kleen <ak@linux.intel.com>
2654
2655 * cilk.c (recognize_spawn): Use expression location
2656 for error message.
2657
13c21655
PC
26582014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2659
2660 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2661
42fd12b1
ESR
26622014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2663
2664 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2665 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2666 (__cpp_range_based_for, __cpp_initializer_lists,
2667 __cpp_delegating_constructors, __cpp_nsdmi,
2668 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2669 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2670 __has_cpp_attribute.
2671 * c-lex.c (cb_has_attribute): New callback CPP function;
2672 (init_c_lex): Set has_attribute callback.
2673
6f450181
RB
26742014-11-04 Richard Biener <rguenther@suse.de>
2675
2676 * c-common.c (shorten_compare): Do not shorten mixed
2677 DFP and non-DFP compares.
2678
26f0e1d6
ESR
26792014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2680
2681 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2682 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2683 Commentary and rearrangement of tests.
2684 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2685 Commentary and rearrangement of tests.
2686 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2687 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2688
ef4bddc2
RS
26892014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2690
2691 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2692 enum from machine_mode.
2693
c582198b
AM
26942014-10-28 Andrew MacLeod <amacleod@redhat.com>
2695
adfac8df
JJ
2696 * c-common.c: Adjust include files.
2697 * c-gimplify.c: Ditto.
2698 * cilk.c: Ditto.
2699 * c-pragma.c: Ditto.
2700 * c-ubsan.c: Ditto.
c582198b 2701
60393bbc
AM
27022014-10-27 Andrew MacLeod <amacleod@redhat.com>
2703
2704 * c-gimplify.c: Adjust include files.
2705
d723bb7c
MLI
27062014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2707
2708 PR c++/53061
2709 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2710 c_common_initialize_diagnostics.
2711 * c-common.h: Likewise.
2712
90f3520e
MP
27132014-10-24 Marek Polacek <polacek@redhat.com>
2714
2715 PR c/56980
2716 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2717 print "struct"/"union"/"enum" for typedefed names.
2718
59d7607a
MP
27192014-10-23 Marek Polacek <polacek@redhat.com>
2720
2721 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2722 in unsigned type.
2723
d95a2703
JJ
27242014-10-22 Jakub Jelinek <jakub@redhat.com>
2725 Yury Gribov <y.gribov@samsung.com>
2726
2727 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2728 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2729 instead of flag_sanitize_recover as bool flag.
2730
8e6ef852
KY
27312014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2732
2733 * cilk.c: Revert previous change.
2734
948cf550
IZ
27352014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2736
2737 PR c/63307
2738 * cilk.c: Include vec.h.
2739 (struct cilk_decls): New structure.
2740 (wrapper_parm_cb): Split this function to...
2741 (fill_decls_vec): ...this...
2742 (create_parm_list): ...and this.
2743 (compare_decls): New function.
2744 (for_local_cb): Remove.
2745 (wrapper_local_cb): Ditto.
2746 (build_wrapper_type): For now first traverse and fill vector of
2747 declarations then sort it and then deal with sorted vector.
2748 (cilk_outline): Ditto.
2749 (declare_one_free_variable): Ditto.
2750
92574c7c
MP
27512014-10-17 Marek Polacek <polacek@redhat.com>
2752
2753 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2754 * c.opt (Wimplicit-int): Initialize to -1.
2755
83685514
AM
27562014-10-16 Andrew MacLeod <amacleod@redhat.com>
2757
2758 * c-pragma.c: Adjust include files.
2759 * c-semantics.c: Likewise.
2760
5b8300ea
DD
27612014-10-16 DJ Delorie <dj@redhat.com>
2762
2763 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2764 multiples of bytes.
2765
5f83e90b
JM
27662014-10-14 Jason Merrill <jason@redhat.com>
2767
2768 PR c++/63455
2769 * c-common.h (CPP_PREPARSED_EXPR): New.
2770 (N_CP_TTYPES): Adjust.
2771
d73326ca
MP
27722014-10-15 Marek Polacek <polacek@redhat.com>
2773
2774 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2775
78a7c317
DD
27762014-10-14 DJ Delorie <dj@redhat.com>
2777
2778 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2779 types, not just __int128.
2780 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2781 types, not just __int128.
2782 (cpp_atomic_builtins): Round pointer sizes up.
2783 (type_suffix): Use type precision, not specific types.
2784 * c-common.c (c_common_reswords): Remove __int128 special case.
2785 (c_common_type_for_size): Check for all __intN types, not just
2786 __int128.
2787 (c_common_type_for_mode): Likewise.
2788 (c_common_signed_or_unsigned_type): Likewise.
2789 (c_build_bitfield_integer_type): Likewise.
2790 (c_common_nodes_and_builtins): Likewise.
2791 (keyword_begins_type_specifier): Likewise.
2792 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2793 __intN variants.
2794
2a22f99c
TS
27952014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2796
2797 * c-common.c: Use hash_table instead of hashtab.
2798
2a8ef767
ESR
27992014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2800
adfac8df 2801 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2802 C++11 section.
2803
3c9aabbd
MG
28042014-10-03 Marc Glisse <marc.glisse@inria.fr>
2805
2806 PR c++/54427
2807 PR c++/57198
2808 PR c++/58845
2809 * c-common.c (warn_logical_operator): Punt for vectors.
2810
a15f7cb8
ESR
28112014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2812
2813 Implement SD-6: SG10 Feature Test Recommendations
2814 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2815 macros and the __has_header macro.
2816
8d0cf15e
JM
28172014-09-30 Jason Merrill <jason@redhat.com>
2818
dd5d5481
JM
2819 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2820 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2821 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2822
b752325e
JM
2823 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2824 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2825
8d0cf15e
JM
2826 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2827 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2828
083e891e
MP
28292014-09-24 Marek Polacek <polacek@redhat.com>
2830
2831 PR c/61405
2832 PR c/53874
2833 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2834
7861b648
AK
28352014-09-23 Andi Kleen <ak@linux.intel.com>
2836
2837 * c-common.c (handle_no_reorder_attribute): New function.
2838 (c_common_attribute_table): Add no_reorder attribute.
2839
9a79452d
JM
28402014-09-22 Joseph Myers <joseph@codesourcery.com>
2841
2842 * c-cppbuiltin.c (c_cpp_builtins): Define
2843 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2844 modes.
2845
dd69f047
JM
28462014-09-18 Joseph Myers <joseph@codesourcery.com>
2847
2848 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2849 for supported floating-point modes.
2850
737a4826
MLI
28512014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2852
2853 * c.opt (Wpsabi): Use LangEnabledBy.
2854 * c-opts.c (c_common_handle_option): Do not handle here.
2855
8cc4b7a2
JM
28562014-09-12 Joseph Myers <joseph@codesourcery.com>
2857
2858 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2859 macros for floating-point modes.
2860
179b5a55
MG
28612014-09-11 Marc Glisse <marc.glisse@inria.fr>
2862
2863 PR target/58757
2864 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2865 __*_DENORM_MIN__ without denormals.
2866
570a11fe
JJ
28672014-09-10 Jakub Jelinek <jakub@redhat.com>
2868
2869 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2870 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2871 ubsan_create_data callers.
2872 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2873 index is constant or BIT_AND_EXPR with constant mask and is
2874 small enough for the bound.
2875 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2876 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2877
b559c810
MLI
28782014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2879
2880 * c.opt: Add CppReason to various flags.
2881 (Wdate-time): Re-sort.
2882 * c-common.c: Include c-common.h earlier.
2883 (struct reason_option_codes_t): Delete.
2884 (c_option_controlling_cpp_error): Prefix global type and struct
2885 with cpp_.
2886
1ef33fd4
MLI
28872014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2888
2889 * c.opt (Wnormalized): New.
2890 (Wnormalized=): Use Enum and Reject Negative.
2891 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2892
66bb34c0
JM
28932014-09-08 Joseph Myers <joseph@codesourcery.com>
2894
2895 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2896 digits of floating-point modes if -fbuilding-libgcc.
2897
53d68b9f
JM
28982014-09-05 Joseph Myers <joseph@codesourcery.com>
2899
2900 * c-cppbuiltin.c (c_cpp_builtins): Also define
2901 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2902 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2903 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2904 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2905 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2906 __LIBGCC_STACK_GROWS_DOWNWARD__,
2907 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2908 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2909 __LIBGCC_DWARF_FRAME_REGISTERS__,
2910 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2911 __LIBGCC_STACK_POINTER_REGNUM__ and
2912 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2913 (builtin_define_with_value): Handle backslash-escaping in string
2914 macro values.
2915
f65586dc
RB
29162014-09-05 Richard Biener <rguenther@suse.de>
2917
2918 PR middle-end/63148
2919 * c-format.c (check_format_arg): Properly handle
2920 effectively signed POINTER_PLUS_EXPR offset.
2921
2b71f4a4
MLI
29222014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2923
2924 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2925 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2926 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2927 and Init.
2928 * c-opts.c (c_common_handle_option): Do not handle here.
2929 (sanitize_cpp_opts): Likewise.
2930 * c-common.c (struct reason_option_codes_t): Handle
2931 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2932
d2e4feca
MP
29332014-09-03 Marek Polacek <polacek@redhat.com>
2934
2935 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2936
9a771876
JJ
29372014-09-02 Jakub Jelinek <jakub@redhat.com>
2938 Balaji V. Iyer <balaji.v.iyer@intel.com>
2939 Igor Zamyatin <igor.zamyatin@intel.com>
2940
2941 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2942 * c-common.c (c_common_reswords): Added _Cilk_for.
2943 * c-common.h (enum rid): Added RID_CILK_FOR.
2944 (cilk_for_number_of_iterations): Add declaration.
2945 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2946 CILK_FOR.
2947 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2948 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2949
81b5d104
MLI
29502014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2951
2952 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2953 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2954 Wundef): Use CPP, Var and Init.
2955 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2956
b753b37b
MLI
29572014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2958
2959 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2960 * c-opts.c (c_common_handle_option): Do not handle here.
2961
028aee17
JM
29622014-08-25 Jason Merrill <jason@redhat.com>
2963
2964 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2965 -std=c++14 and -std=gnu++14, rather than the reverse.
2966 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2967 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2968 * c-common.h (cxx_dialect): Remove cxx1y.
2969
e4276ba5
ESR
29702014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2971
2972 * c-common.h (enum cxx_dialect): Add cxx14.
2973 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2974 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2975 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2976
a545cacd
JM
29772014-08-22 Jason Merrill <jason@redhat.com>
2978
2979 * c.opt (std=gnu++17): Fix alias.
2980
59ea0364
MP
29812014-08-22 Marek Polacek <polacek@redhat.com>
2982
2983 PR c++/62199
2984 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2985 check for vector types. Drop LHS argument.
2986 * c-common.h (warn_logical_not_parentheses): Adjust.
2987
596e808c
MLI
29882014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2989
2990 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2991 (Wmultichar): Likewise.
2992 (Wdate-time): Use C-family languages instead of Common. Use CPP
2993 and Var.
2994 * c-opts.c (c_common_handle_option): Do not handle the above
2995 options here.
2996 (sanitize_cpp_opts): Likewise.
2997
18767f65
MLI
29982014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2999
3000 PR fortran/44054
3001 * c-opts.c: Include tree-diagnostics.h.
3002 (c_diagnostic_finalizer): New.
3003 (c_common_initialize_diagnostics): Use it.
3004
b4413594
MLI
30052014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3006
3007 PR preprocessor/51303
3008 * c-common.c (struct reason_option_codes_t option_codes):
3009 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3010
43f9a13c
MLI
30112014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3012
3013 PR c/60975
3014 PR c/53063
3015 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3016 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3017 (c_common_post_options): Call init_global_opts_from_cpp.
3018 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3019
04159acf
MP
30202014-08-19 Marek Polacek <polacek@redhat.com>
3021
3022 PR c++/62153
3023 * c-common.c (maybe_warn_bool_compare): New function.
3024 * c-common.h (maybe_warn_bool_compare): Declare.
3025 * c.opt (Wbool-compare): New option.
3026
35aff4fb
MP
30272014-08-19 Marek Polacek <polacek@redhat.com>
3028
3029 * c.opt (Wc99-c11-compat): New option.
3030
177cce46
MP
30312014-08-19 Marek Polacek <polacek@redhat.com>
3032
3033 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3034 to warn_c90_c99_compat.
3035 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3036 to -1.
3037
6ae9194f
MLI
30382014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3039 Steven Bosscher <steven@gcc.gnu.org>
3040
3041 PR c/52952
3042 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3043 format_check_results.
3044 (check_function_format): Use true and add comment for boolean
3045 argument.
3046 (finish_dollar_format_checking): Use explicit location when warning.
3047 (check_format_info): Likewise.
3048 (check_format_arg): Set extra_arg_loc and format_string_loc.
3049 (check_format_info_main): Use explicit location when warning.
3050 (check_format_types): Pass explicit location.
3051 (format_type_warning): Likewise.
3052
8e54f6d3
MLI
30532014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3054
3055 PR fortran/44054
3056 * c-format.c: Handle Fortran flags.
3057
cd4e76fc
IZ
30582014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3059
3060 PR other/61962
3061 * array-notation-common.c (find_rank): Added handling for other
3062 types of references.
3063
f3bede71
MP
30642014-08-10 Marek Polacek <polacek@redhat.com>
3065
3066 PR c/51849
3067 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3068 * c.opt (Wc90-c99-compat): Add option.
3069
9f25a338
TS
30702014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3071
3072 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3073
62e4eb35
MP
30742014-08-03 Marek Polacek <polacek@redhat.com>
3075
3076 * c-common.c (check_case_value): Add location_t parameter. Use it.
3077 (c_add_case_label): Pass loc to check_case_value.
3078
b787e7a2
TS
30792014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3080
3081 * cilk.c: Use hash_map instead of pointer_map.
3082
6e2830c3
TS
30832014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3084
3085 * c-gimplify.c: Use hash_set instead of pointer_set.
3086
a7ee52fb
IZ
30872014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3088
3089 PR middle-end/61455
3090 * array-notation-common.c (extract_array_notation_exprs): Handling
3091 of DECL_EXPR added.
3092
944fa280
JJ
30932014-08-01 Jakub Jelinek <jakub@redhat.com>
3094
3095 * c-common.h (min_align_of_type): Removed prototype.
3096 * c-common.c (min_align_of_type): Removed.
3097 * c-ubsan.h (ubsan_maybe_instrument_reference,
3098 ubsan_maybe_instrument_member_call): New prototypes.
3099 * c-ubsan.c: Include stor-layout.h and builtins.h.
3100 (ubsan_maybe_instrument_reference_or_call,
3101 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3102 functions.
3103
b4dfdc11
MG
31042014-07-31 Marc Glisse <marc.glisse@inria.fr>
3105
3106 PR c++/60517
3107 * c.opt (-Wreturn-local-addr): Move to common.opt.
3108
a41844e5
JM
31092014-07-30 Jason Merrill <jason@redhat.com>
3110
3111 PR c++/61659
3112 PR c++/61687
3113 Revert:
3114 * c.opt (-fuse-all-virtuals): New.
3115
976d5a22
TT
31162014-07-30 Tom Tromey <tromey@redhat.com>
3117
3118 PR c/59855
3119 * c.opt (Wdesignated-init): New option.
3120 * c-common.c (c_common_attribute_table): Add "designated_init".
3121 (handle_designated_init): New function.
3122
cdc94aca
MP
31232014-07-24 Marek Polacek <polacek@redhat.com>
3124
3125 PR c/57653
3126 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3127
f41373b6
DS
31282014-07-16 Dodji Seketeli <dodji@redhat.com>
3129
3130 PR preprocessor/60723 - missing system-ness marks for macro tokens
3131 * c-ppoutput.c (struct print::prev_was_system_token): New data
3132 member.
3133 (init_pp_output): Initialize it.
3134 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3135 (do_line_change): Return a flag saying if a line marker was
3136 emitted or not.
3137 (scan_translation_unit): Detect if the system-ness of the token we
3138 are about to emit is different from the one of the previously
3139 emitted token. If so, emit a line marker. Avoid emitting useless
3140 adjacent line markers. Avoid emitting line markers for tokens
3141 originating from the expansion of built-in macros.
3142 (scan_translation_unit_directives_only): Adjust.
3143
4d661eaa
MP
31442014-07-15 Marek Polacek <polacek@redhat.com>
3145
3146 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3147 TYPE_MAX_VALUE is NULL.
3148
b108f48f
JJ
31492014-07-14 Jakub Jelinek <jakub@redhat.com>
3150
3151 PR middle-end/61294
3152 * c.opt (Wmemset-transposed-args): New warning.
3153
c0221884
JM
31542014-07-10 Jason Merrill <jason@redhat.com>
3155
3156 PR c++/61659
3157 PR c++/61687
3158 * c.opt (-fuse-all-virtuals): New.
3159
63dfbb95
RB
31602014-07-09 Richard Biener <rguenther@suse.de>
3161
3162 PR c-family/61741
3163 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3164 using unsigned arithmetic if overflow does not wrap instead of
3165 if overflow is undefined.
3166
773ec47f
MP
31672014-07-06 Marek Polacek <polacek@redhat.com>
3168
3169 PR c/6940
3170 * c.opt (Wsizeof-array-argument): New option.
3171
00a7ba58
JJ
31722014-07-03 Jakub Jelinek <jakub@redhat.com>
3173
b1726d6c 3174 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3175 comments->count <= 1, as comments->entries might be NULL.
3176
52ec0ea3
MP
31772014-07-01 Marek Polacek <polacek@redhat.com>
3178
3179 * c.opt (Wint-conversion): New option.
3180
d5c3d343
MP
31812014-07-01 Marek Polacek <polacek@redhat.com>
3182
3183 PR c/58286
3184 * c.opt (Wincompatible-pointer-types): New option.
3185
6e7ceb17
PC
31862014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3187
3188 PR c++/51400
3189 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3190 Do not discard TYPE_QUALS of type.
3191
da73100b
JM
31922014-06-26 Jason Merrill <jason@redhat.com>
3193
3194 * c-common.h (enum cxx_dialect): Add cxx1z.
3195 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3196 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3197
08eedf75
TJ
31982014-06-26 Teresa Johnson <tejohnson@google.com>
3199
3200 * c-common.h (get_dump_info): Declare.
3201 * c-gimplify.c (c_genericize): Use saved dump files.
3202 * c-opts.c (c_common_parse_file): Begin and end dumps
3203 once around parsing invocation.
3204 (get_dump_info): New function.
3205
7b56b2f8
MP
32062014-06-23 Marek Polacek <polacek@redhat.com>
3207 Andrew MacLeod <amacleod@redhat.com>
3208
3209 PR c/61553
3210 * c-common.c (get_atomic_generic_size): Don't segfault if the
3211 type doesn't have a size.
3212
0e37a2f3
MP
32132014-06-20 Marek Polacek <polacek@redhat.com>
3214
3215 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3216 (ubsan_walk_array_refs_r): New function.
3217 (c_genericize): Instrument array bounds.
3218 * c-ubsan.c: Include "internal-fn.h".
3219 (ubsan_instrument_division): Mark instrumented arrays as having
3220 side effects. Adjust ubsan_type_descriptor call.
3221 (ubsan_instrument_shift): Likewise.
3222 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3223 (ubsan_instrument_bounds): New function.
3224 (ubsan_array_ref_instrumented_p): New function.
3225 (ubsan_maybe_instrument_array_ref): New function.
3226 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3227 (ubsan_array_ref_instrumented_p): Declare.
3228 (ubsan_maybe_instrument_array_ref): Declare.
3229
32302014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3231
3232 PR lto/61123
3233 * c.opt (fshort-enums): Add to LTO.
3234 * c.opt (fshort-wchar): Likewise.
3235
5c3d09f7
MP
32362014-06-16 Marek Polacek <polacek@redhat.com>
3237
3238 PR c/60439
3239 * c.opt (Wswitch-bool): Add Var.
3240
9cf32741
JJ
32412014-06-12 Jakub Jelinek <jakub@redhat.com>
3242
3243 PR middle-end/61486
3244 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3245 #pragma omp target teams or
3246 #pragma omp {,target }teams distribute simd.
3247
62984918
JM
32482014-06-12 Jason Merrill <jason@redhat.com>
3249
3250 * c.opt (Wabi=, fabi-compat-version): New.
3251 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3252 (c_common_post_options): Handle flag_abi_compat_version default.
3253 Disallow -fabi-compat-version=1.
3254 * c-common.h (abi_version_crosses): New.
3255
f961457f
JH
32562014-06-11 Jan Hubicka <hubicka@ucw.cz>
3257
adfac8df 3258 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3259 section names that are no longer trees.
3260
92d28cbb
JJ
32612014-06-10 Jakub Jelinek <jakub@redhat.com>
3262
3263 PR fortran/60928
3264 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3265 (omp_pragmas): ... back here.
3266
742938c9
MP
32672014-06-05 Marek Polacek <polacek@redhat.com>
3268
3269 PR c/49706
3270 * c-common.c (warn_logical_not_parentheses): New function.
3271 * c-common.h (warn_logical_not_parentheses): Declare.
3272 * c.opt (Wlogical-not-parentheses): New option.
3273
9d548dfb
MP
32742014-06-04 Marek Polacek <polacek@redhat.com>
3275
3276 PR c/30020
3277 * c-common.c (check_case_bounds): Add location parameter.
3278 Use it.
3279 (c_add_case_label): Pass loc to check_case_bounds.
3280
fedfecef
MP
32812014-06-03 Marek Polacek <polacek@redhat.com>
3282
3283 PR c/60439
3284 * c.opt (Wswitch-bool): New option.
3285
f6a7cffc
TS
32862014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3287
040d18b6
TS
3288 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3289 Remove prototypes.
3290 (record_types_used_by_current_var_decl): Move prototype to where
3291 it belongs.
3292
f6a7cffc
TS
3293 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3294 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3295 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3296
632f2871
RS
32972014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3298
3299 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3300 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3301 void_zero_node.
3302 * c-pretty-print.c (pp_c_void_constant): New function.
3303 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3304 (c_pretty_printer::expression): Handle VOID_CST.
3305 * cilk.c (extract_free_variables): Likewise.
3306 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3307 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3308
766090c2
TS
33092014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3310
3311 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3312 * c-pragma.c (push_alignment): Adjust.
3313 (handle_pragma_push_options): Likewise.
3314
661a0813
MP
33152014-05-09 Marek Polacek <polacek@redhat.com>
3316
3317 PR c/50459
3318 * c-common.c (check_user_alignment): Return -1 if alignment is error
3319 node.
3320 (handle_aligned_attribute): Don't call default_conversion on
3321 FUNCTION_DECLs.
3322 (handle_vector_size_attribute): Likewise.
3323 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3324 (handle_sentinel_attribute): Call default_conversion and allow even
3325 integral types as an argument.
3326
2793eeab
MP
33272014-05-08 Marek Polacek <polacek@redhat.com>
3328
3329 PR c/61053
3330 * c-common.c (min_align_of_type): New function factored out from...
3331 (c_sizeof_or_alignof_type): ...here.
3332 * c-common.h (min_align_of_type): Declare.
3333
f827930a
MP
33342014-05-08 Marek Polacek <polacek@redhat.com>
3335
3336 PR c/61077
3337 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3338 parameter type of main.
3339
ca49b74e
DD
33402014-05-07 DJ Delorie <dj@redhat.com>
3341
3342 * c-cppbuiltin.c (print_bits_of_hex): New.
3343 (builtin_define_type_minmax): Print values using hex so as not to
3344 require a pre-computed list of string values.
3345
1d60af08
KZ
33462014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3347 Mike Stump <mikestump@comcast.net>
3348 Richard Sandiford <rdsandiford@googlemail.com>
3349
3350 * c-ada-spec.c: Include wide-int.h.
3351 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3352 (dump_generic_ada_node): Use wide-int interfaces.
3353 * c-common.c: Include wide-int-print.h.
3354 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3355 (pointer_int_sum): Use wide-int interfaces.
3356 (c_common_nodes_and_builtins): Use make_int_cst.
3357 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3358 (handle_alloc_size_attribute): Use wide-int interfaces.
3359 (get_nonnull_operand): Likewise.
3360 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3361 * c-lex.c: Include wide-int.h.
3362 (narrowest_unsigned_type): Take a widest_int rather than two
3363 HOST_WIDE_INTs.
3364 (narrowest_signed_type): Likewise.
3365 (interpret_integer): Update accordingly. Use wide-int interfaces.
3366 (lex_charconst): Use wide-int interfaces.
3367 * c-pretty-print.c: Include wide-int.h.
3368 (pp_c_integer_constant): Use wide-int interfaces.
3369 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3370 INT_CST_LT_UNSIGNED.
3371
b15458be
RB
33722014-05-06 Richard Biener <rguenther@suse.de>
3373
3374 * c-opts.c (c_common_post_options): For -freestanding,
3375 -fno-hosted and -fno-builtin disable pattern recognition
3376 if not enabled explicitely.
3377
6577374e
MP
33782014-05-02 Marek Polacek <polacek@redhat.com>
3379
3380 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3381
d00887e8
MP
33822014-05-01 Marek Polacek <polacek@redhat.com>
3383
3384 PR c/43245
3385 * c.opt (Wdiscarded-qualifiers): Add.
3386
f8ed5150
MP
33872014-04-30 Marek Polacek <polacek@redhat.com>
3388
3389 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3390 INT_MIN / -1 sanitization only for integer types.
3391
45484dcf
MP
33922014-04-25 Marek Polacek <polacek@redhat.com>
3393
3394 PR c/18079
3395 * c-common.c (handle_noinline_attribute): Warn if the attribute
3396 conflicts with always_inline attribute.
3397 (handle_always_inline_attribute): Warn if the attribute conflicts
3398 with noinline attribute.
3399
38e514c0
MP
34002014-04-25 Marek Polacek <polacek@redhat.com>
3401
3402 PR c/60156
3403 * c-common.c (check_main_parameter_types): Warn about variadic main.
3404
44875f92
MS
34052014-04-24 Mike Stump <mikestump@comcast.net>
3406
3407 * c.opt (Wshadow-ivar): Default to on.
3408
dcaaa5a0
DP
34092014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3410
3411 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3412
c07d7c02
MP
34132014-04-23 Marek Polacek <polacek@redhat.com>
3414
3415 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3416
1c33c9b7
JJ
34172014-04-22 Jakub Jelinek <jakub@redhat.com>
3418
3419 PR sanitizer/60275
3420 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3421 if flag_sanitize_undefined_trap_on_error.
3422 (ubsan_instrument_division, ubsan_instrument_shift,
3423 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3424 if !flag_sanitize_recover.
3425
793c625f
MG
34262014-04-22 Marc Glisse <marc.glisse@inria.fr>
3427
3428 PR libstdc++/43622
3429 * c-common.c (registered_builtin_types): Make non-static.
3430 * c-common.h (registered_builtin_types): Declare.
3431
b0f1bf36
RB
34322014-04-14 Richard Biener <rguenther@suse.de>
3433 Marc Glisse <marc.glisse@inria.fr>
3434
3435 PR c/60819
3436 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3437 apply may-alias the scalar pointer type when applicable.
3438
3b07fa4a
IZ
34392014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3440
3441 PR middle-end/60467
3442 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3443 as possible argument for Cilk_spawn.
3444
cbbd2b1c
TB
34452014-04-11 Tobias Burnus <burnus@net-b.de>
3446
3447 PR c/60194
3448 * c.opt (Wformat-signedness): Add
3449 * c-format.c(check_format_types): Use it.
3450
6415bd5d
JM
34512014-04-11 Jason Merrill <jason@redhat.com>
3452
3453 PR c++/57926
3454 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3455 default_conversion for an array argument.
3456
6525783a
MP
34572014-04-08 Marek Polacek <polacek@redhat.com>
3458
3459 PR sanitizer/60745
3460 * c-ubsan.c: Include asan.h.
3461 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3462
880a467b
NS
34632014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3464
3465 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3466
7b59ff2d
MP
34672014-04-02 Marek Polacek <polacek@redhat.com>
3468
3469 * c-common.h (c_expand_expr): Remove declaration.
3470
8edbfaa6
JJ
34712014-03-28 Jakub Jelinek <jakub@redhat.com>
3472
3473 PR c++/60689
3474 * c-common.c (add_atomic_size_parameter): When creating new
3475 params vector, push the size argument first.
3476
07d72e1d
JJ
34772014-03-26 Jakub Jelinek <jakub@redhat.com>
3478
3479 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3480 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3481 ubsan_create_data callers.
3482
b35e0fa0
JJ
34832014-03-22 Jakub Jelinek <jakub@redhat.com>
3484
3485 PR debug/60603
3486 * c-opts.c (c_finish_options): Restore cb_file_change call to
3487 <built-in>.
3488
39a1ebb3
JJ
34892014-03-13 Jakub Jelinek <jakub@redhat.com>
3490
3491 PR middle-end/36282
3492 * c-pragma.c (apply_pragma_weak): Only look at
3493 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3494 DECL_ASSEMBLER_NAME_SET_P (decl).
3495 (maybe_apply_pending_pragma_weaks): Exit early if
3496 vec_safe_is_empty (pending_weaks) rather than only when
3497 !pending_weaks.
3498 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3499 set assembler name back to NULL afterwards.
3500
a07f6ed2
JM
35012014-03-11 Jason Merrill <jason@redhat.com>
3502
3503 * c.opt: Add -std=gnu++14.
3504
75b107f5
IB
35052014-03-11 Ian Bolton <ian.bolton@arm.com>
3506
3507 * c-opts.c (c_common_post_options): Don't override
3508 -ffp-contract=fast if unsafe-math-optimizations is on.
3509
f42c637e
PM
35102014-03-08 Paulo Matos <paulo@matos-sorge.com>
3511
3512 * c.opt: Enable LTO FE for fshort-double.
3513
70e24808
JM
35142014-03-07 Jason Merrill <jason@redhat.com>
3515
3516 * c.opt: Add -std=c++14.
3517
3af9c5e9
MP
35182014-03-06 Marek Polacek <polacek@redhat.com>
3519
3520 PR c/60197
3521 * cilk.c (contains_cilk_spawn_stmt): New function.
3522 (contains_cilk_spawn_stmt_walker): Likewise.
3523 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3524 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3525
b3bdf019
JJ
35262014-03-03 Jakub Jelinek <jakub@redhat.com>
3527
3528 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3529 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3530 even when flag_preprocess_only.
3531
ca7e759d
JM
35322014-02-26 Jason Merrill <jason@redhat.com>
3533
3534 PR c++/59231
3535 PR c++/11586
3536 * c-common.c (shorten_compare): Don't check
3537 c_inhibit_evaluation_warnings.
3538
28e41874
JJ
35392014-02-19 Jakub Jelinek <jakub@redhat.com>
3540
cca615af
JJ
3541 PR c/37743
3542 * c-common.c (c_common_nodes_and_builtins): When initializing
3543 c_uint{16,32,64}_type_node, also set corresponding
3544 uint{16,32,64}_type_node to the same value.
3545
28e41874
JJ
3546 PR c++/60267
3547 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3548 for PRAGMA_IVDEP if flag_preprocess_only.
3549
c2bf53a1
JJ
35502014-02-12 Jakub Jelinek <jakub@redhat.com>
3551
3552 PR c/60101
3553 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3554 if false, add ADD itself, rather than vice versa.
3555 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3556 copy. For SAVE_EXPR, only call merge_tlist once.
3557
8fcbce72
JJ
35582014-02-08 Jakub Jelinek <jakub@redhat.com>
3559
3560 PR middle-end/60092
3561 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3562 and tree_to_uhwi.
3563 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3564 functions.
3565 (c_common_attribute_table): Add alloc_align and assume_aligned
3566 attributes.
3567
0a756a3f
MP
35682014-02-06 Marek Polacek <polacek@redhat.com>
3569
3570 PR c/60087
3571 * c-common.c (warn_for_sign_compare): Call warning_at with location
3572 instead of warning.
3573
7ec4847a
MP
35742014-02-05 Marek Polacek <polacek@redhat.com>
3575
3576 PR c/53123
3577 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3578 statement.
3579
66f20604
MP
35802014-02-04 Marek Polacek <polacek@redhat.com>
3581
3582 PR c/60036
3583 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3584 SAVE_EXPR.
3585
5d77fb19
MG
35862014-02-03 Marc Glisse <marc.glisse@inria.fr>
3587
3588 PR c++/53017
3589 PR c++/59211
3590 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3591 handle_vector_size_attribute, handle_nonnull_attribute): Call
3592 default_conversion on the attribute argument.
3593 (handle_nonnull_attribute): Increment the argument number.
3594
81e5eca8
MP
35952014-01-31 Marek Polacek <polacek@redhat.com>
3596
3597 PR c/59963
3598 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3599 build_function_call_vec.
3600 (resolve_overloaded_builtin): Likewise.
3601 * c-common.h (build_function_call_vec): Adjust declaration.
3602
68fca595
MP
36032014-01-30 Marek Polacek <polacek@redhat.com>
3604
3605 PR c/59940
3606 * c-common.h (unsafe_conversion_p): Adjust declaration.
3607 (warnings_for_convert_and_check): Likewise.
3608 (convert_and_check): Likewise.
3609 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3610 expansion_point_location_if_in_system_header on it.
3611 (warnings_for_convert_and_check): Add location parameter. Call
3612 expansion_point_location_if_in_system_header on it. Use it.
3613 (convert_and_check): Add location parameter. Use it.
3614 (conversion_warning): Likewise.
3615 (c_add_case_label): Adjust convert_and_check calls.
3616 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3617
b72271b9
BI
36182014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3619
3620 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3621 flag_cilkplus.
3622 * c-pragma.c (init_pragma): Likewise.
3623 * c.opt: Likewise.
3624
393e8e8b
MP
36252014-01-23 Marek Polacek <polacek@redhat.com>
3626
3627 PR c/59846
3628 * c-common.c (shorten_compare): Add location_t parameter.
3629 * c-common.h (shorten_binary_op): Adjust declaration.
3630
f04dda30
MP
36312014-01-23 Marek Polacek <polacek@redhat.com>
3632
3633 PR c/58346
3634 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3635 * c-common.h: Declare it.
3636
621955cb
EB
36372014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3638
3639 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3640 * c-ada-spec.c (dump_ads): Likewise.
3641 (cpp_check): Likewise.
3642 (dump_ada_specs): Likewise.
3643
36442014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3645
3646 PR c++/49718
3647 * c-common.c (handle_no_instrument_function_attribute): Allow
3648 no_instrument_function attribute in class member
3649 definition/declaration.
3650
241f845a
JJ
36512014-01-15 Jakub Jelinek <jakub@redhat.com>
3652
3653 PR c/58943
3654 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3655 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3656 being COMPOUND_EXPR.
3657 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3658 operand a SAVE_EXPR and second MODIFY_EXPR.
3659
e83b8e2e
JJ
36602014-01-09 Jakub Jelinek <jakub@redhat.com>
3661
3662 PR target/58115
3663 * c-pch.c (c_common_write_pch): Call
3664 prepare_target_option_nodes_for_pch.
3665
23a5b65a
RS
36662014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3667
3668 Update copyright years
3669
f9030485
RS
36702014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3671
3672 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3673 the copyright notice.
3674
f2aa696b
EB
36752013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3676
3677 * c-ada-spec.c (print_constructor): New function.
3678 (print_destructor): Retrieve the origin of the destructor.
3679 (print_ada_declaration): Revamp handling of constructors/destructors.
3680
3f8257db 36812013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3682 Bill Maddox <maddox@google.com>
3683 Jason Merrill <jason@redhat.com>
3684
3685 * c.opt: Add -fdeclone-ctor-dtor.
3686 * c-opts.c (c_common_post_options): Default to on iff -Os.
3687
41958c28
BI
36882013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3689
3690 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3691 attribute.
3692 * c-pragma.h (enum pragma_cilk_clause): Remove.
3693 (enum pragma_omp_clause): Added the following fields:
3694 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3695 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3696 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3697 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3698 PRAGMA_CILK_CLAUSE_UNIFORM.
3699
b1726d6c 3700
12893402
BI
37012013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3702
3703 * cilk.c (cilk_outline): Made this function non-static.
3704 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3705 (create_cilk_wrapper): Added a new parameter: a function pointer.
3706 (c_install_body_w_frame_cleanup): Remove
3707 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3708 * c-common.h (cilk_outline): New prototype.
3709 (gimplify_cilk_spawn): Removed two parameters.
3710 (cilk_install_body_with_frame_cleanup): New prototype.
3711 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3712 CILK_SPAWN_STMT case.
3713
085b42ed
BS
37142013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3715
2ce064c3
BS
3716 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3717
085b42ed
BS
3718 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3719 (int_array_type_node): Remove.
3720 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3721
9e36c9ed
MP
37222013-12-05 Marek Polacek <polacek@redhat.com>
3723
3724 PR c/52023
3725 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3726 [ADJUST_FIELD_ALIGN].
3727
296674db
JM
37282013-12-04 Joseph Myers <joseph@codesourcery.com>
3729
3730 PR c/52023
3731 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3732 and check field alignment if set.
3733 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3734 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3735
b1726d6c 37362013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3737 Marek Polacek <polacek@redhat.com>
3738
3739 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3740 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3741
d7947e19
L
37422013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3743
3744 PR c/59309
3745 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3746 arguments.
3747
fad7652e
JJ
37482013-11-29 Jakub Jelinek <jakub@redhat.com>
3749
3750 PR c/59280
3751 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3752 goto invalid. If it is error_mark_node, don't issue further
3753 diagnostics.
3754
8b5e1202
SO
37552013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3756
3757 * c.opt (Wopenmp-simd): New.
3758
0a508bb6
JJ
37592013-11-22 Jakub Jelinek <jakub@redhat.com>
3760
3761 * c-ubsan.h (ubsan_instrument_return): New prototype.
3762 * c-ubsan.c (ubsan_instrument_return): New function.
3763
2fb9a547
AM
37642013-11-22 Andrew MacLeod <amacleod@redhat.com>
3765
3766 * c-common.c: Add required include files from gimple.h.
3767 * c-gimplify.c: Likewise
3768 * cilk.c: Likewise
3769
8400e75e
DM
37702013-11-22 David Malcolm <dmalcolm@redhat.com>
3771
3772 * c-common.c (unsafe_conversion_p): Remove use of
3773 EXPR_LOC_OR_HERE macro.
3774 (conversion_warning): Likewise.
3775 (warnings_for_convert_and_check): Likewise.
3776 (warn_for_collisions_1): Likewise.
3777 (shorten_compare): Likewise, and remove use of in_system_header
3778 macro, using the location from the former.
3779 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3780 (cb_def_pragma): Remove use of in_system_header macro.
3781 (lex_string): Likewise.
3782 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3783
eb1ce453
KZ
37842013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3785 Mike Stump <mikestump@comcast.net>
3786 Richard Sandiford <rdsandiford@googlemail.com>
3787
3788 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3789 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3790 tree_fits_shwi_p or tree_fits_uhwi_p.
3791 (dump_generic_ada_node): Likewise.
3792 * c-format.c (check_format_arg): Likewise.
3793 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3794
6b3b8c27
KZ
37952013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3796
3797 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3798
49b0aa18
JC
37992013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3800
3801 PR c/53001
3802 * c-common.c (unsafe_conversion_p): Make this function
3803 return an enumeration with more detail.
3804 (conversion_warning): Use the new return type of
3805 unsafe_conversion_p to separately warn either about conversions
3806 that lower floating point number precision or about the other
3807 kinds of conversions.
3808 * c-common.h (enum conversion_safety): New enumeration.
3809 (unsafe_conversion_p): switching return type to
3810 conversion_safety enumeration.
3811 * c.opt: Adding new warning -Wfloat-conversion and
3812 enabling it with -Wconversion.
3813
b826515a
BS
38142013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3815
3816 * c-opts.c: Include plugin.h.
3817 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3818
b9a55b13
MP
38192013-11-19 Marek Polacek <polacek@redhat.com>
3820
3821 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3822 call.
3823 (ubsan_instrument_shift): Likewise.
3824 (ubsan_instrument_vla): Likewise.
3825
7d362f6c
RS
38262013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3827
3828 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3829 cast to unsigned type.
3830
386b1f1f
RS
38312013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3832
3833 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3834 tree_low_cst.
3835 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3836 rather than tree_low_cst.
3837
ae7e9ddd
RS
38382013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3839
3840 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3841 tree_to_uhwi throughout.
3842
9439e9a1
RS
38432013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3844
3845 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3846 tree_low_cst (..., 0) with tree_to_shwi throughout.
3847
cc269bb6
RS
38482013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3849
3850 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3851 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3852
9541ffee
RS
38532013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3854
3855 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3856 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3857
c02065fc
AH
38582013-11-15 Aldy Hernandez <aldyh@redhat.com>
3859
3860 * c-cilkplus.c: New file.
3861 * c-common.c (readonly_error): Add location argument.
3862 * c-common.h (readonly_error): Same.
3863 (c_finish_cilk_clauses): Protoize.
3864 (c_check_cilk_loop): Same.
3865 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3866 Do not fail on error_mark_node.
3867 Abstract increment canonicalization to here...
3868 (c_omp_for_incr_canonicalize_ptr): New.
3869 c-pragma.c (init_pragma): Register "simd" pragma.
3870 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3871 (enum pragma_cilk_clause): New.
3872
9cc65f15
RS
38732013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3874
3875 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3876 wchar_type and host_integerp checks.
3877
18f429e2
AM
38782013-11-14 Andrew MacLeod <amacleod@redhat.com>
3879
3880 * c-common.c: Likewise.
3881 * c-gimplify.c: Likewise.
3882 * cilk.c: Likewise.
3883
d8a2d370
DN
38842013-11-14 Diego Novillo <dnovillo@google.com>
3885
3886 * c-common.c: Include fold-const.h.
3887 Include stor-layout.h.
3888 Include calls.h.
3889 Include stringpool.h.
3890 Include attribs.h.
3891 Include varasm.h.
3892 Include trans-mem.h.
3893 * c-cppbuiltin.c: Include stor-layout.h.
3894 Include stringpool.h.
3895 * c-format.c: Include stringpool.h.
3896 * c-lex.c: Include stringpool.h.
3897 Include stor-layout.h.
3898 * c-pragma.c: Include stringpool.h.
3899 Include attribs.h.
3900 Include varasm.h.
3901 Include gcc-symtab.h.
3902 * c-pretty-print.c: Include stor-layout.h.
3903 Include attribs.h.
3904 * cilk.c: Include stringpool.h.
3905 Include calls.h.
3906
38b7bc7f
JM
39072013-11-13 Joseph Myers <joseph@codesourcery.com>
3908
3909 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3910 * c-common.c (c_common_reswords): Add __auto_type.
3911 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3912
45b0be94
AM
39132013-11-12 Andrew MacLeod <amacleod@redhat.com>
3914
18f429e2
AM
3915 * c-common.c: Include gimplify.h.
3916 * c-gimplify.c: Likewise.
3917 * cilk.c: Likewise.
3918 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3919 * c-ubsan.c: Don't include gimple.h.
45b0be94 3920
582d9b50
JM
39212013-11-12 Joseph Myers <joseph@codesourcery.com>
3922
3923 * c-common.c (c_common_reswords): Add _Thread_local.
3924
6b28e197
JM
39252013-11-09 Joseph Myers <joseph@codesourcery.com>
3926
3927 * c-common.c (atomic_size_supported_p): New function.
3928 (resolve_overloaded_atomic_exchange)
3929 (resolve_overloaded_atomic_compare_exchange)
3930 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3931 Use it instead of comparing size with a local list of sizes.
3932
267bac10
JM
39332013-11-07 Andrew MacLeod <amacleod@redhat.com>
3934 Joseph Myers <joseph@codesourcery.com>
3935
3936 * c-common.h (enum rid): Add RID_ATOMIC.
3937 * c-common.c (c_common_reswords): Add _Atomic.
3938 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3939 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3940 * c-format.c (check_format_types): Check for extra _Atomic
3941 qualifiers in format argument.
3942 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3943 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3944
5157b91e
TB
39452013-11-06 Tobias Burnus <burnus@net-b.de>
3946
3947 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3948
6dbe0958
JM
39492013-11-06 Joseph Myers <joseph@codesourcery.com>
3950
3951 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3952 standards modes.
3953 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3954 to mean lack of IEEE 754 support.
3955
e8ff5196
TB
39562013-11-05 Tobias Burnus <burnus@net-b.de>
3957
3958 * c.opt (-Wdate-time): New option
3959 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3960
254a0760
JM
39612013-11-05 Joseph Myers <joseph@codesourcery.com>
3962
3963 * c-cppbuiltin.c (cpp_iec_559_value): Test
3964 flag_excess_precision_cmdline not flag_excess_precision.
3965
6d7f7e0a
TB
39662013-11-05 Tobias Burnus <burnus@net-b.de>
3967
3968 * c.opt (fopenmp-simd): New option.
3969 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3970 (omp_pragmas): ... this new struct.
3971 (c_pp_lookup_pragma): Also walk omp_pragmas.
3972 (init_pragma): Init pragmas for -fopenmp-simd.
3973
55a7f02f
MP
39742013-11-04 Marek Polacek <polacek@redhat.com>
3975
3976 PR c++/58979
3977 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3978
9193fb05
JM
39792013-11-04 Joseph Myers <joseph@codesourcery.com>
3980
3981 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3982 New functions.
3983 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3984
94159ecf
EB
39852013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3986
3987 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3988 (dump_ada_specs): Adjust prototype of second callback.
3989 * c-ada-spec.c (cpp_check): New global variable.
3990 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3991 (print_generic_ada_decl): Likewise.
3992 (has_static_fields): Change return type to bool and add guard.
3993 (has_nontrivial_methods): New predicate.
3994 (is_tagged_type): Change return type to bool.
3995 (separate_class_package): Call has_nontrivial_methods.
3996 (pp_ada_tree_identifier): Minor tweaks.
3997 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3998 (dump_ada_array_domains): Likewise.
3999 (dump_ada_array_type): Likewise.
4000 (dump_template_types): Remove cpp_check parameter and do not pass it to
4001 dump_generic_ada_node.
4002 (dump_ada_template): Likewise.
4003 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4004 recursively.
4005 (print_ada_methods): Change return type to integer. Remove cpp_check
4006 parameter and do not pass it down.
4007 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4008 dump_generic_ada_node.
4009 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4010 accessing methods.
4011 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4012 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4013 value of print_ada_methods.
4014 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4015 Set cpp_check to it before invoking dump_ada_nodes.
4016 (dump_ada_specs): Likewise.
4017
b906f4ca
MP
40182013-11-03 Marek Polacek <polacek@redhat.com>
4019
4020 * c-ubsan.c: Don't include hash-table.h.
4021 (ubsan_instrument_vla): New function.
4022 * c-ubsan.h: Declare it.
4023
5e20cdc9
DM
40242013-10-31 David Malcolm <dmalcolm@redhat.com>
4025
4026 Automated part of renaming of symtab_node_base to symtab_node.
4027
4028 Patch autogenerated by rename_symtab.py from
4029 https://github.com/davidmalcolm/gcc-refactoring-scripts
4030 revision 58bb219cc090b2f4516a9297d868c245495ee622
4031
4032 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4033 symtab_node_base to symtab_node.
4034
7057e645
ESR
40352013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4036
4037 Implement C++14 digit separators.
4038 * c-lex.c (interpret_float): Remove digit separators from scratch string
4039 before building real literal.
4040
193ea7bc
JJ
40412013-10-30 Jakub Jelinek <jakub@redhat.com>
4042
4043 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4044
939b37da
BI
40452013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4046
4047 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4048 fields.
4049 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4050 enabled.
4051 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4052 (insert_cilk_frame): New prototype.
4053 (cilk_init_builtins): Likewise.
4054 (gimplify_cilk_spawn): Likewise.
4055 (c_cilk_install_body_w_frame_cleanup): Likewise.
4056 (cilk_detect_spawn_and_unwrap): Likewise.
4057 (cilk_set_spawn_marker): Likewise.
4058 (build_cilk_sync): Likewise.
4059 (build_cilk_spawn): Likewise.
4060 * cilk.c: New file.
4061
67348ccc
DM
40622013-10-29 David Malcolm <dmalcolm@redhat.com>
4063
4064 Patch autogenerated by refactor_symtab.py from
4065 https://github.com/davidmalcolm/gcc-refactoring-scripts
4066 revision 58bb219cc090b2f4516a9297d868c245495ee622
4067
4068 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4069 to a true class hierarchy.
4070 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4071
d570872d
RS
40722013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4073
4074 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4075
98906124
JL
40762013-10-26 Jeff Law <law@redhat.com>
4077
adfac8df
JJ
4078 * c-common.c (c_define_builtins): Remove mudflap support.
4079 * c.opt: Ignore and warn for mudflap options.
98906124 4080
d73749df 40812013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4082
4083 PR other/33426
4084 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4085 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4086
3f04b1bb
JM
40872013-10-23 Jason Merrill <jason@redhat.com>
4088
4089 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4090
acf0174b
JJ
40912013-10-11 Jakub Jelinek <jakub@redhat.com>
4092
acd15a28
JJ
4093 * c-common.h (omp_clause_mask::operator !=): New method.
4094 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4095 instead of if (mask & something) tests everywhere.
4096
acf0174b
JJ
4097 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4098 201307 instead of 201107.
4099 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4100 (c_common_attribute_table): Add "omp declare target" and
4101 "omp declare simd" attributes.
4102 (handle_omp_declare_target_attribute,
4103 handle_omp_declare_simd_attribute): New functions.
4104 * c-omp.c: Include c-pragma.h.
4105 (c_finish_omp_taskgroup): New function.
4106 (c_finish_omp_atomic): Add swapped argument, if true,
4107 build the operation first with rhs, lhs arguments and use NOP_EXPR
4108 build_modify_expr.
4109 (c_finish_omp_for): Add code argument, pass it down to make_code.
4110 (c_omp_split_clauses): New function.
4111 (c_split_parallel_clauses): Removed.
4112 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4113 c_omp_declare_simd_clauses_to_decls): New functions.
4114 * c-common.h (omp_clause_mask): New type.
4115 (OMP_CLAUSE_MASK_1): Define.
4116 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4117 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4118 omp_clause_mask::operator |, omp_clause_mask::operator &,
4119 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4120 omp_clause_mask::operator ==): New methods.
4121 (enum c_omp_clause_split): New.
4122 (c_finish_omp_taskgroup): New prototype.
4123 (c_finish_omp_atomic): Add swapped argument.
4124 (c_finish_omp_for): Add code argument.
4125 (c_omp_split_clauses): New prototype.
4126 (c_split_parallel_clauses): Removed.
4127 (c_omp_declare_simd_clauses_to_numbers,
4128 c_omp_declare_simd_clauses_to_decls): New prototypes.
4129 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4130 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4131 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4132 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4133 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4134 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4135 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4136 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4137 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4138 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4139 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4140 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4141 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4142 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4143 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4144 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4145 PRAGMA_OMP_CLAUSE_UNIFORM.
4146
826cacfe
MG
41472013-10-09 Marc Glisse <marc.glisse@inria.fr>
4148
4149 PR tree-optimization/20318
4150 * c-common.c (handle_returns_nonnull_attribute): New function.
4151 (c_common_attribute_table): Add returns_nonnull.
4152
2284b034
MG
41532013-10-03 Marc Glisse <marc.glisse@inria.fr>
4154
4155 PR c++/19476
4156 * c.opt (fcheck-new): Move to common.opt.
4157
b56e9788
MP
41582013-09-25 Marek Polacek <polacek@redhat.com>
4159 Jakub Jelinek <jakub@redhat.com>
4160
4161 PR sanitizer/58413
4162 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4163 an expression if we can prove it is correct.
4164 (ubsan_instrument_division): Likewise. Remove unnecessary
4165 check.
4166
ce6923c5
MP
41672013-09-18 Marek Polacek <polacek@redhat.com>
4168
4169 PR sanitizer/58411
4170 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4171 Declare it.
4172 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4173
fb5610fb
IS
41742013-09-14 Iain Sandoe <iain@codesourcery.com>
4175
4176 PR target/48094
4177 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4178 fobjc-gc, freplace-objc-classes): Accept for LTO.
4179
88b0e79e
JC
41802013-09-13 Jacek Caban <jacek@codeweavers.com>
4181
4182 * c-target.def: New hook
4183
c9b0866a
PC
41842013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4185
4186 PR c++/43452
4187 * c.opt (Wdelete-incomplete): Add.
4188
0af94e6f
JR
41892013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4190
4191 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4192 (vector_types_compatible_elements_p): New function.
4193 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4194 declaration.
4195 (vector_types_compatible_elements_p): Declare.
4196
7c26172c
GDR
41972013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4198
4199 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4200 a virtual member function.
4201 (pp_simple_type_specifier): Remove.
4202 (pp_c_type_specifier): Likewise.
4203 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4204 Rename from pp_c_type_specifier. Adjust.
4205 (c_pretty_printer::c_pretty_printer): Do not assign to
4206 simple_type_specifier.
4207
20059c8b
GDR
42082013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4209
4210 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4211 member function.
4212 (c_pretty_printer::storage_class_specifier): Likewise.
4213 (c_pretty_printer::initializer): Likewise.
4214 (pp_declaration): Remove.
4215 (pp_declaration_specifiers): Likewise.
4216 (pp_abstract_declarator): Likewise.
4217 (pp_declarator): Likewise.
4218 (pp_type_id): Likewise.
4219 (pp_statement): Likewise.
4220 (pp_constant): Likewise.
4221 (pp_id_expression): Likewise.
4222 (pp_primary_expression): Likewise.
4223 (pp_unary_expression): Likewise.
4224 (pp_multiplicative_expression): Likewise.
4225 (pp_conditional_expression): Likewise.
4226 (pp_assignment_expression): Likewise.
4227 (pp_expression): Likewise.
4228 (pp_c_type_id): Likewise.
4229 (pp_c_storage_class_specifier): Likewise.
4230 * c-pretty-print.c (pp_c_type_cast): Tidy.
4231 (pp_c_pointer): Likewise.
4232 (pp_c_type_specifier): Likewise.
4233 (pp_c_parameter_type_list): Likewise.
4234 (pp_c_function_definition): Likewise.
4235 (pp_c_init_declarator): Likewise.
4236 (pp_c_initializer_list): Likewise.
4237 (pp_c_constructor_elts): Likewise.
4238 (c_pretty_printer::direct_abstract_declarator): Likewise.
4239 (c_pretty_printer::declaration_specifiers): Likewise.
4240 (c_pretty_printer::primary_expression): Likewise.
4241 (c_pretty_printer::postfix_expression): Likewise.
4242 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4243 (c_pretty_printer::storage_class_specifier): Rename from
4244 pp_c_storage_class_specifier.
4245 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4246 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4247 storage_class_specifier, initializer, offset_list, flags.
4248
de5a5fa1
MP
42492013-08-30 Marek Polacek <polacek@redhat.com>
4250
4251 * c-ubsan.c: New file.
4252 * c-ubsan.h: New file.
4253
8f0e4d72
GDR
42542013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4255
4256 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4257 member function.
4258 (c_pretty_printer::declaration_specifiers): Likewise.
4259 (c_pretty_printer::declarator): Likewise.
4260 (c_pretty_printer::abstract_declarator): Likewise.
4261 (c_pretty_printer::direct_abstract_declarator): Likewise.
4262 (c_pretty_printer::direct_declarator): Likewise.
4263 (c_pretty_printer::function_specifier): Likewise.
4264 (pp_declaration): Adjust.
4265 (pp_declaration_specifiers): Likewise.
4266 (pp_abstract_declarator): Likewise.
4267 (pp_direct_declarator): Likewise.
4268 (pp_function_specifier): Likewise.
4269 (pp_direct_abstract_declarator): Remove as unused.
4270 (pp_c_declaration): Remove.
4271 (pp_c_declaration_specifiers): Likewise.
4272 (pp_c_declarator): Likewise.
4273 (pp_c_direct_declarator): Likewise.
4274 (pp_c_function_specifier): Likewise.
4275 (pp_c_direct_abstract_declarator): Likewise.
4276 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4277 from pp_c_abstract_declarator. Adjust.
4278 (c_pretty_printer::direct_abstract_declarator): Rename from
4279 pp_c_direct_abstract_declarator. Adjust.
4280 (c_pretty_printer::function_specifier): Rename from
4281 pp_c_function_specifier. Adjust.
4282 (c_pretty_printer::declaration_specifiers): Rename from
4283 pp_c_declaration_specifiers. Adjust.
4284 (c_pretty_printer::direct_declarator): Rename from
4285 pp_c_direct_declarator. Adjust.
4286 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4287 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4288 (c_pretty_printer::c_pretty_printer): Do not assign to
4289 declaration, declaration_specifiers, declarator,
4290 direct_declarator, direct_abstract_declarator, function_specifier.
4291
00d34d3a
GDR
42922013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4293
4294 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4295 virtual member function.
4296 (c_pretty_printer::multiplicative_expression): Likewise.
4297 (c_pretty_printer::conditional_expression): Likewise.
4298 (c_pretty_printer::assignment_expression): Likewise.
4299 (c_pretty_printer::expression): Likewise.
4300 (pp_unary_expression): Adjust.
4301 (pp_multiplicative_expression): Likewise.
4302 (pp_assignment_expression): Likewise.
4303 (pp_conditional_expression): Likewise.
4304 (pp_expression): Likewise.
4305 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4306 from pp_c_unary_expression. Adjust.
4307 (c_pretty_printer::multiplicative_expression): Rename from
4308 pp_c_multiplicative_expression. Adjust.
4309 (c_pretty_printer::conditional_expression): Rename from
4310 pp_c_conditional_expression. Adjust.
4311 (c_pretty_printer::assignment_expression): Rename from
4312 pp_c_assignment_expression. Adjust.
4313 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4314 (c_pretty_printer::c_pretty_printer): Do not assign to
4315 unary_expression, multiplicative_expression,
4316 conditional_expression, expression.
4317
fb22178f
GDR
43182013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4319
4320 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4321 virtual member function.
4322 (pp_postfix_expression): Adjust.
4323 (pp_c_postfix_expression): Remove.
4324 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4325 from pp_c_postfix_expression. Adjust.
4326 (c_pretty_printer::c_pretty_printer): Do not assign to
4327 postfix_expression.
4328
7ecc2600
GDR
43292013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4330
4331 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4332 virtua member function.
4333 (pp_primary_expression): Adjust.
4334 (pp_c_primary_expression): Remove.
4335 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4336 from pp_c_primary_expression. Adjust.
4337 (pp_c_initializer_list): Use pp_primary_expression.
4338 (c_pretty_printer::c_pretty_printer): Do not assign to
4339 primary_expression.
4340
0691175f
GDR
43412013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4342
4343 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4344 * c-pretty-print.c (M_): Remove.
4345 (c_pretty_printer::translate_string): Define.
4346 (pp_c_type_specifier): Use it.
4347 (pp_c_primary_expression): Likewise.
4348 (pp_c_expression): Likewise.
4349
66dfe4c4
GDR
43502013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4351
4352 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4353 virtual function.
4354 (pp_c_id_expression): Remove.
4355 (pp_id_expression): Adjust.
4356 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4357 pp_c_id_expression. Adjust.
4358 (pp_c_postfix_expression): Use pp_id_expression.
4359 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4360
ca43e9d5
GDR
43612013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4362
4363 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4364 member function.
4365 (pp_constant): Adjust.
4366 (pp_c_constant): Remove.
4367 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4368 pp_c_constant. Adjust.
4369 (pp_c_constant)
4370 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4371 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4372
da6ca2b5
GDR
43732013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4374
4375 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4376 (c_pretty_printer::c_pretty_printer): Declare.
4377 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4378 c_pretty_printer_init. Adjust.
4379 (print_c_tree): Do not call c_pretty_printer_init.
4380 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4381
65a372f4
AC
43822013-08-09 Arnaud Charlet <charlet@adacore.com>
4383
4384 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4385
fd9b0f32
PC
43862013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4387
4388 PR c++/58080
4389 * c-common.c (pointer_int_sum): Add bool parameter.
4390 * c-common.h (pointer_int_sum): Adjust declaration.
4391
e0aec1e9
GDR
43922013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4393
4394 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4395 c_pretty_printer variable.
4396
b066401f
GDR
43972013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4398
4399 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4400 (pp_base): Remove.
4401 (pp_c_base): Likewise. Adjust users.
4402 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4403 (pp_c_whitespace): Do not call pp_base.
4404 (pp_c_left_paren): Likewise.
4405 (pp_c_right_paren): Likewise.
4406 (pp_c_left_brace): Likewise.
4407 (pp_c_right_brace): Likewise.
4408 (pp_c_left_bracket): Likewise.
4409 (pp_c_right_bracket): Likewise.
4410 (pp_c_dot): Likewise.
4411 (pp_c_ampersand): Likewise.
4412 (pp_c_star): Likewise.
4413 (pp_c_arrow): Likewise.
4414 (pp_c_semicolon): Likewise.
4415 (pp_c_complement): Likewise.
4416 (pp_c_exclamation): Likewise.
4417 (pp_c_direct_declarator): Likewise.
4418 (pp_c_ws_string): Likewise.
4419 (pp_c_identifier): Likewise.
4420 (pp_c_statement): Likewise.
4421 (print_c_tree): Likewise.
4422
65e5a578
ESR
44232013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4424
4425 PR c++/58072
4426 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4427 provide useful error strings.
4428
137a1a27
GDR
44292013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4430
4431 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4432 printer functions instead of pp_string or operators and punctuators.
4433 (dump_generic_ada_node): Likewise.
4434 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4435 (pp_c_relational_expression): Likewise.
4436 (pp_c_logical_or_expression): Likewise.
4437
07838b13
GDR
44382013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4439
4440 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4441 functions instead of pp_character.
4442 (pp_ada_tree_identifier): Likewise.
4443 (dump_ada_double_name): Likewise.
4444 (dump_ada_function_declaration): Likewise.
4445 (dump_ada_array_domains): Likewise.
4446 (dump_template_types): Likewise.
4447 (dump_generic_ada_node): Likewise.
4448 (print_ada_declaration): Likewise.
4449 (print_ada_struct_decl): Likewise.
4450 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4451
433cc7b0
TT
44522013-07-23 Tom Tromey <tromey@redhat.com>
4453
4454 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4455 * c-common.c (c_common_reswords): Add _Generic.
4456
688010ba
OB
44572013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4458
4459 * c-common.c: Fix typos.
4460 * c-common.h: Likewise.
4461
2a99e5e6
LL
44622013-07-13 Lubos Lunak <l.lunak@suse.cz>
4463
4464 PR c++/55203
4465 * c-common.c (c_common_attribute_table): Add warn_unused.
4466 (handle_warn_unused_attribute): New.
4467
c26302d5
JJ
44682013-07-10 Jakub Jelinek <jakub@redhat.com>
4469
4470 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4471 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4472
dfeadaa0
PC
44732013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4474
4475 PR c++/57869
4476 * c.opt: Add Wconditionally-supported.
4477
6a2fa4b2
GS
44782013-07-08 Graham Stott <graham.stott@btinternet.com>
4479
adfac8df 4480 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4481 unused variables l_length and l_node.
4482
ecdbd01a 44832013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4484
4485 PR c/57821
4486 * c-common.c (complete_array_type): Delay folding first index
4487 like other indices. When folding, check for index overflow.
4488
bedc293e
MG
44892013-06-27 Marc Glisse <marc.glisse@inria.fr>
4490
4491 PR c++/57509
4492 * c-common.h (c_build_vec_perm_expr): New complain argument.
4493 * c-common.c (c_build_vec_perm_expr): Likewise.
4494 Use save_expr also in C++.
4495
604b2bfc
GDR
44962013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4497
4498 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4499 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4500 * c-opts.c (c_common_post_options): Likewise.
4501
dfeadaa0 45022013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4503
4504 * array-notation-common.c (length_mismatch_in_expr): Changed the
4505 parameter type's from a dynamic array to a vec_tree. Also removed
4506 the size parameters.
4507 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4508 the change above.
4509
2ce86d2e
BI
45102013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4511
4512 * c-common.h (struct cilkplus_an_parts): New structure.
4513 (struct cilkplus_an_loop_parts): Likewise.
4514 (cilkplus_extract_an_triplets): New prototype.
4515 (fix_sec_implicit_args): Likewise.
4516 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4517 (fix_sec_implicit_args): Likewise.
604b2bfc 4518
07a6825b
BI
45192013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4520
4521 * array-notation-common.c (find_inv_trees): Removed an unwanted
4522 typecasting.
4523 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4524 enum rid to enum tree_code.
4525
08346abd
JH
45262013-06-11 Jan Hubicka <jh@suse.cz>
4527
4528 * c-common.c (handle_alias_ifunc_attribute): Do not set
4529 DECL_EXTERNAL for weakref variables.
4530 * c-pragma.c (handle_pragma_weak): Make sure aliases
4531 are not declared as external.
4532
d60f1706
BI
45332013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4534
4535 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4536 function from c/c-array-notation.c.
4537 (is_cilkplus_reduce_builtin): Likewise.
4538 (find_rank): Likewise.
4539 (extract_array_notation_exprs): Likewise.
4540 (replace_array_notations): Likewise.
4541 (find_inv_trees): Likewise.
4542 (replace_inv_trees): Likewise.
4543 (contains_array_notation_expr): Likewise.
4544 (find_correct_array_notation_type): Likewise.
4545 * c-common.h (struct inv_list): Moved this struct from the file
4546 c/c-array-notation.c and added a new field called additional tcodes.
4547 (length_mismatch_in_expr_p): New prototype.
4548 (is_cilkplus_reduce_builtin): Likewise.
4549 (find_rank): Likewise.
4550 (extract_array_notation_exprs): Likewise.
4551 (replace_array_notation): Likewise.
4552 (find_inv_trees): Likewise.
4553 (replace_inv_trees): Likewise.
4554 (find_correct_array_notation_type): Likewise.
dfeadaa0 4555
36536d79
BI
45562013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4557
4558 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4559 function array_notation_init_builtins is called.
4560 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4561 * c-common.def (ARRAY_NOTATION_REF): New tree.
4562 * c-common.h (build_array_notation_expr): New function declaration.
4563 (build_array_notation_ref): Likewise.
4564 (extract_sec_implicit_index_arg): New extern declaration.
4565 (is_sec_implicit_index_fn): Likewise.
4566 (ARRAY_NOTATION_CHECK): New define.
4567 (ARRAY_NOTATION_ARRAY): Likewise.
4568 (ARRAY_NOTATION_START): Likewise.
4569 (ARRAY_NOTATION_LENGTH): Likewise.
4570 (ARRAY_NOTATION_STRIDE): Likewise.
4571 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4572 ARRAY_NOTATION_REF.
4573 (pp_c_expression): Likewise.
4574 * c.opt (flag_enable_cilkplus): New flag.
4575 * array-notation-common.c: New file.
4576
f7716d57
JJ
45772013-05-14 Jakub Jelinek <jakub@redhat.com>
4578
4579 PR c++/57274
4580 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4581
a5e0cd1d
MG
45822013-05-10 Marc Glisse <marc.glisse@inria.fr>
4583
4584 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4585 vectors.
4586
f6bc1c4a
HS
45872013-05-07 Han Shen <shenhan@google.com>
4588
4589 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4590
3f12f6e9
SKS
45912013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4592
4593 * c-common.c (check_user_alignment): Emit error for negative values.
4594
61949153
PC
45952013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4596
4597 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4598
e93e18e9
PC
45992013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4600
4601 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4602 __GXX_EXPERIMENTAL_CXX1Y__.
4603
44d90fe1
PC
46042013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4605 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4606
4607 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4608 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4609 to simply use OPT_Wpointer_arith.
4610 (c_sizeof_or_alignof_type): Likewise.
4611
13f39b2e
PC
46122013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4613
4614 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4615
4b84d650
JJ
46162013-04-12 Jakub Jelinek <jakub@redhat.com>
4617
4618 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4619 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4620 specifiers.
4621
fb037b5d
SB
46222013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4623
4624 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4625
4e856798
PC
46262013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4627
4628 * c-common.c (pointer_int_sum): Remove dead code.
4629
4b1baac8
RS
46302013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4631
4632 PR middle-end/56524
4633 * c-common.c (handle_optimize_attribute): Don't call
4634 save_optabs_if_changed.
4635
0b50e654
JJ
46362013-03-05 Jakub Jelinek <jakub@redhat.com>
4637
4638 PR middle-end/56461
4639 * c-pch.c (pch_init): Free target_validity at the end.
4640
48c41403
JJ
46412013-03-04 Jakub Jelinek <jakub@redhat.com>
4642
4643 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4644
e664c61c
KS
46452013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4646 Jakub Jelinek <jakub@redhat.com>
4647
4648 PR sanitizer/56454
4649 * c-common.c (handle_no_sanitize_address_attribute): New function.
4650 (c_common_attribute_table): Add no_sanitize_address attribute.
4651 (handle_no_address_safety_analysis_attribute): Add
4652 no_sanitize_address attribute, not no_address_safety_analysis
4653 attribute.
4654
a475fd3d 46552013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4656
4657 PR target/52555
4658 * c-common.c (handle_optimize_attribute): Call
4659 save_optabs_if_changed.
4660
f6007d99
JJ
46612013-02-18 Jakub Jelinek <jakub@redhat.com>
4662 Steven Bosscher <steven@gcc.gnu.org>
4663
4664 PR pch/54117
4665 * c-opts.c (c_common_post_options): If debug info is enabled
4666 and non-dwarf*, refuse to load PCH files and when writing PCH
4667 file warn.
4668
cf35e2b1
JJ
46692013-02-05 Jakub Jelinek <jakub@redhat.com>
4670
4671 PR middle-end/56167
4672 * c-common.c (handle_error_attribute): Fix condition.
4673
32887460
JJ
46742013-01-30 Jakub Jelinek <jakub@redhat.com>
4675
4676 PR c++/55742
4677 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4678
5af057d8
JM
46792013-01-18 Jason Merrill <jason@redhat.com>
4680
4681 PR target/54908
4682 * c.opt (-fextern-tls-init): New.
4683 * c-opts.c (c_common_post_options): Handle it.
4684
cc83c823
JJ
46852013-01-09 Jakub Jelinek <jakub@redhat.com>
4686
4687 PR c/48418
4688 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4689 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4690 and is either negative or bigger or equal to type precision
4691 of the first operand.
4692
a859517f
MP
46932012-12-03 Marek Polacek <polacek@redhat.com>
4694
4695 PR c/55570
4696 * c-common.c (check_user_alignment): Swap order of tests,
4697 check TREE_CODE first.
4698
2d7aa578
ESR
46992012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4700
4701 PR c++/52654
4702 * c-common.h (overflow_type): New enum.
4703 (build_userdef_literal): Add overflow_type argument.
4704 (tree_userdef_literal): Add overflow_type.
4705 (USERDEF_LITERAL_OVERFLOW): New access macro.
4706 * c-common.c (build_userdef_literal): Add overflow_type
4707 argument.
4708 * c-lex.c (c_lex_with_flags): Add overflow_type to
4709 build_userdef_literal calls.
4710 (interpret_integer, interpret_float): Add overflow_type argument.
4711
cc3c4f62
RB
47122012-11-28 Richard Biener <rguenther@suse.de>
4713
4714 PR c/35634
4715 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4716 here and use a type with proper overflow behavior for types that would
4717 need to be promoted for the arithmetic.
4718
77bc5132
JJ
47192012-11-23 Jakub Jelinek <jakub@redhat.com>
4720
4721 PR sanitizer/55435
4722 * c-common.c (handle_no_address_safety_analysis_attribute): New
4723 function.
4724 (c_common_attribute_table): Add no_address_safety_analysis.
4725
5dc99c46
SB
47262012-11-16 Simon Baldwin <simonb@google.com>
4727
4728 * c.opt: Add f[no-]canonical-system-headers.
4729 * c-opts.c (c_common_handle_option): Handle
4730 OPT_fcanonical_system_headers.
4731
a4a0016d
ESR
47322012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4733
4734 PR c++/54413
4735 * c-opts.c (c_common_handle_option): Set new flags.
4736 * c.opt: Describe new flags.
4737
7dbb85a7
JM
47382012-11-09 Jason Merrill <jason@redhat.com>
4739
4740 * c.opt (Wabi-tag): New.
4741
ad7bac31
AK
47422012-11-09 Andi Kleen <ak@linux.intel.com>
4743
4744 PR 55139
4745 * c-common.c (get_atomic_generic_size): Mask with
4746 MEMMODEL_MASK
4747
7332899a
MLI
47482012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4749
4750 PR c/53063
4751 * c.opt (Wformat): Make it Alias Wformat=1.
4752 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4753 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4754 LangEnabledBy.
4755 (Wformat=): RejectNegative. Use LangEnabledBy.
4756 (Wnonnull): Use LangEnabledBy.
4757 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4758 * c-format.c (set_Wformat): Delete.
4759 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4760 (maybe_read_dollar_number): Likewise.
4761 (avoid_dollar_number): Likewise.
4762 (finish_dollar_format_checking): Likewise.
4763 (check_format_info): Likewise.
4764 (check_format_info_main): Likewise.
4765 (check_format_types): Likewise.
4766 (format_type_warning): Likewise.
4767 * c-common.c (int): Likewise.
4768 (check_function_sentinel): Likewise.
4769 * c-common.h (warn_format,set_Wformat): Do not declare here.
4770
34a180a6
MLI
47712012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4772
4773 PR c/53063
4774 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4775 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4776 Use LangEnabledBy.
4777 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4778 common.opt.
4779 (Wvariadic-macros): Init(1).
4780 * c-opts.c (c_common_handle_option): Do not handle them
4781 explicitly.
4782 (c_common_post_options): Likewise.
4783 (sanitize_cpp_opts): warn_unused_macros is now
4784 cpp_warn_unused_macros.
4785 (push_command_line_include): Likewise.
4786 * c-common.c (warn_unknown_pragmas): Do not define.
4787 * c-common.h (warn_unknown_pragmas): Do not declare.
4788
3f46d6a5
MLI
47892012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4790
4791 PR c/51294
4792 * c-common.c (conversion_warning): Handle conditional expressions.
4793
880661a4
JW
47942012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4795
4796 PR c++/54930
4797 * c.opt (Wreturn_local_addr): Define new option.
4798
4514a96b
JM
47992012-10-25 Jason Merrill <jason@redhat.com>
4800
f14edc1a
JM
4801 * c.opt (Wvirtual-move-assign): New.
4802
4514a96b
JM
4803 * c.opt (Winherited-variadic-ctor): New.
4804
93100c6b
MG
48052012-10-25 Marc Glisse <marc.glisse@inria.fr>
4806
4807 PR c++/54427
4808 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4809
1efcb8c6
JM
48102012-10-23 Joseph Myers <joseph@codesourcery.com>
4811
4812 * c-common.h (pch_cpp_save_state): Declare.
4813 * c-target.def (c_preinclude): New hook.
4814 * c-opts.c (done_preinclude): New.
4815 (push_command_line_include): Handle default preincluded header.
4816 (cb_file_change): Call pch_cpp_save_state when calling
4817 push_command_line_include.
4818 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4819 (pch_cpp_save_state): New.
4820 (pch_init): Call pch_cpp_save_state conditionally, instead of
4821 calling cpp_save_state.
4822
4a0ae68e
MLI
48232012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4824
4825 PR c/53063
4826 PR c/40989
4827 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4828 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4829 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4830 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4831 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4832 * c-opts.c (c_common_handle_option): Remove explicit handling from
4833 here.
4834 (c_common_post_options): Likewise.
4835
67e4210b
EB
48362012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4837
4838 * c-ada-spec.c (LOCATION_COL): Delete.
4839 (compare_location): New function.
4840 (compare_node): Use it.
4841 (compare_comment): Likewise.
4842
65d4f2cd
MLI
48432012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4844
4845 PR c/53063
4846 PR c/40989
4847 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4848 * c-opts.c (c_common_handle_option): Do not set them here. Add
4849 comment.
4850 (c_common_post_options): Likewise.
4851
909881cb
EB
48522012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4853
4854 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4855 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4856 Remove POINTER_TYPE handling, add large unsigned handling and use
4857 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4858
3a785c97
JJ
48592012-10-12 Jakub Jelinek <jakub@redhat.com>
4860
4861 PR c/54381
4862 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4863 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4864 locs and array of 3 trees instead of just single loc and single
4865 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4866 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4867 For *cmp* builtins that take two sources strings report warnings
4868 about first and second source, not about destination and source.
4869
5e54f81d
MG
48702012-10-12 Marc Glisse <marc.glisse@inria.fr>
4871
4872 PR c++/53055
4873 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4874
f5b02f1e
EB
48752012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4876
4877 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4878 declaring something coming from another file.
4879
b46dbc6c
AC
48802012-10-10 Arnaud Charlet <charlet@adacore.com>
4881
f5b02f1e 4882 PR ada/54845
b46dbc6c
AC
4883 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4884
5d9de0d0
PC
48852012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4886
4887 PR c++/54194
4888 * c-common.c (warn_about_parentheses): Add location_t parameter;
4889 use EXPR_LOC_OR_LOC.
4890 * c-common.h: Update declaration.
4891
a212e43f
MG
48922012-10-09 Marc Glisse <marc.glisse@inria.fr>
4893
4894 PR c++/54427
4895 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4896 more operations. Make error messages optional.
4897 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4898 (scalar_to_vector): Declare.
4899
b1db7f91
JM
49002012-10-08 Jason Merrill <jason@redhat.com>
4901
4902 * c-common.c (c_common_reswords): Add thread_local.
4903
e28d52cf
DS
49042012-10-08 Dodji Seketeli <dodji@redhat.com>
4905
4906 PR c++/53528 C++11 attribute support
4907 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4908 new functions.
4909 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4910 static function.
4911 (handle_aligned_attribute): In choose strictest alignment
4912 among many. Use new check_cxx_fundamental_alignment_constraints.
4913 (handle_transparent_union_attribute): In c++11 attribute syntax,
4914 don't look through typedefs.
4915
3b78de56
AC
49162012-10-04 Arnaud Charlet <charlet@adacore.com>
4917
4918 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4919 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4920 out of dumpfile.h.
4921
6040bb5f
DC
49222012-09-25 Dehao Chen <dehao@google.com>
4923
4924 PR middle-end/54645
3b78de56 4925 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4926 map when read in the pch.
4927
3f8257db 49282012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
4929
4930 * c-ada-spec.c: Style fixes.
4931
3f8257db 49322012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
4933
4934 * c.opt (-fada-spec-parent): Define new command line switch.
4935 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4936 is specified, generate binding spec as a child of the specified unit.
4937
0ccb505d
PC
49382012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4939 Manuel López-Ibáñez <manu@gcc.gnu.org>
4940
4941 PR c++/53210
4942 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4943
c583af79
AC
49442012-08-23 Arnaud Charlet <charlet@adacore.com>
4945
4946 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4947 for pointers, and add missing Convention C pragma.
4948 (print_ada_struct_decl): Add missing aliased keyword.
4949 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4950
1a4049e7
JJ
49512012-08-17 Jakub Jelinek <jakub@redhat.com>
4952
4953 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4954 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4955 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4956 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4957 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4958
70b5e7dc
RG
49592012-08-10 Richard Guenther <rguenther@suse.de>
4960
4961 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4962
f8923f7e
SB
49632012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4964
4965 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4966 instead of separate pp_newline and pp_flush.
4967 (print_c_tree): Likewise.
4968
e45abe1f
RH
49692012-07-26 Richard Henderson <rth@redhat.com>
4970
4971 * c-common.c (handle_hot_attribute): Allow labels.
4972 (handle_cold_attribute): Likewise.
4973
332f1d24
JJ
49742012-07-20 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR c++/28656
4977 * c-common.c (check_function_nonnull): Handle multiple nonnull
4978 attributes properly.
4979
7ee2468b
SB
49802012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4981
4982 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4983 * c-ada-spec.c: Likewise.
4984 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4985
ee7b28eb
SB
49862012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4987
4988 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4989 Remove code conditional on it.
4990
6bdf3519
SB
49912012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4992
4993 * c-gimplify.c: Do not include basic-block.h.
4994 * c-common.c: Do not include linfuncs.h.
4995
532aafad
SB
49962012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4997
4998 * c-common.h: Include tree.h.
4999
8d0d1915
JM
50002012-07-02 Jason Merrill <jason@redhat.com>
5001
5002 PR c++/53524
5003 * c-common.c (get_priority): Call default_conversion.
5004
fbc873ad
UB
50052012-07-01 Uros Bizjak <ubizjak@gmail.com>
5006
5007 * c-pch.c (c_common_write_pch): Remove unused variables.
5008
d4a10d0a
SB
50092012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5010
5011 * cppspec.c: Moved from gcc/ to here.
5012
6f3a2e23
KT
50132012-06-27 Kai Tietz <ktietz@redhat.com>
5014
5015 PR preprocessor/37215
5016 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5017
8ca92d04
SB
50182012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5019
5020 * c-common.h (c_common_print_pch_checksum): Remove.
5021 * c-pch.c: Do not include output.h.
5022 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5023 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5024 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5025 (struct c_pch_header): Remove.
5026 (get_ident): Update gpch version.
5027 (pch_init): Do not print executable_checksum to asm_out_file.
5028 Do not fail if there is no asm_out_file to read back from. Set
5029 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5030 (c_common_write_pch): Verify that nothing was written to asm_out_file
5031 since pch_init was called. Do not write a c_pch_header, and do not
5032 copy from asm_out_file to the PCH.
5033 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5034 the content of asm_out_file from the PCH.
5035 (c_common_print_pch_checksum): Remove.
5036 * c-opts.c (c_common_init): Print out executable_checksum directly.
5037
70f42967
SB
50382012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5039
5040 * c-target.def (objc_declare_unresolved_class_reference,
5041 objc_declare_class_definition): Add new hooks.
5042
a8781821
SB
50432012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5044
5045 * c-lex.c: Do not include output.h.
5046 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5047 Remove uses of ASM_OUTPUT_IDENT.
5048
9e1a8dd1
RR
50492012-06-15 Marc Glisse <marc.glisse@inria.fr>
5050
5051 PR c++/51033
5052 * c-common.h (c_build_vec_perm_expr): Move decl here.
5053 * c-common.c (c_build_vec_perm_expr): Move definition
5054 here.
5055
6f07a821
SB
50562012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5057
5058 * c.opt (fconserve-space): Turn into a no-op.
5059
9faeb493 50602012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5061
5062 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5063 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5064 both the start and end of the function.
5065
a4b7d13c
SB
50662012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5067
5068 * c-common.c: Do not include output.h.
5069 * c-pragma.c: Likewise.
5070
c265f413
SA
50712012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5072
5073 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5074 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5075 (lang_decl_name): Handle namespace decls.
5076
be7a421e
SB
50772012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5078
5079 * c-ada-spec.c: Do not include output.h.
5080 * c-semantics.c: Likewise.
5081
65de6659
JM
50822012-05-29 Joseph Myers <joseph@codesourcery.com>
5083
5084 * c-common.c: Fix typo.
5085
ca5f4331
MM
50862012-05-29 Michael Matz <matz@suse.de>
5087
5088 * c-common.h (c_expand_decl): Remove prototype.
5089
4f7f7aca
MLI
50902012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5091
5092 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5093 * c-opts.c (c_common_handle_option): Remove code handling
5094 warn_missing_braces.
5095
4a792f9b
PC
50962012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5097
5098 PR c++/25137
5099 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5100 -Wmissing_braces.
5101
650dc14a
DS
51022012-05-22 Dodji Seketeli <dodji@redhat.com>
5103
5104 PR c++/53322
5105 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5106
9b095bf1
MLI
51072012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5108
5109 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5110 * c-opts.c (c_common_handle_option): Do not handle explicitly
5111 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5112
0b2c4be5
DS
51132012-05-16 Dodji Seketeli <dodji@redhat.com>
5114
5115 PR preprocessor/7263
5116 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5117 to cpp_classify_number. For diagnostics, use the precise location
5118 instead of the global input_location.
5119
a1bde5af
PC
51202012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5121
d02924ef 5122 PR c++/11856
a1bde5af
PC
5123 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5124
d1ede5f4
BS
51252012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5126
a1bde5af 5127 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5128
f2bc201f
MLI
51292012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5130
5131 PR 53063
5132 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5133 Wreorder): Use LangEnabledBy.
5134 * c-opts.c (c_common_handle_option): Do not enable them
5135 explicitly. Call lang-specific generated functions.
5136 (c_common_post_options): Do not set them here.
5137
95744782
MLI
51382012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5139
5140 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5141 Wmissing-field-initializers,Wmissing-parameter-type,
5142 Wold-style-declaration,Woverride-init): Use EnabledBy.
5143 * c-opts.c (c_common_post_options): Do not set here explicitly.
5144
7d5a5747
MLI
51452012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5146
5147 PR 53063
5148 * c-opts.c (c_common_handle_option): Use handle_generated_option
5149 to enable sub-options.
5150
5a3c9cf2
PC
51512012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5152
5153 PR c++/53158
5154 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5155
3ac8781c
RG
51562012-05-10 Richard Guenther <rguenther@suse.de>
5157
5158 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5159 adjust commentary about TYPE_IS_SIZETYPE types.
5160
1e537948
MLI
51612012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5162
5163 PR c++/53261
5164 * c-common.c (warn_logical_operator): Check that argument of
5165 integer_zerop is not NULL.
5166
f2c4a785
MLI
51672012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5168
5169 PR c/43772
5170 * c-common.c (warn_logical_operator): Do not warn if either side
5171 is already true or false.
5172
50f305ca
MLI
51732012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5174
5175 PR c/51712
5176 * c-common.c (expr_original_type): New.
5177 (shorten_compare): Do not warn for enumeration types.
5178
0c3641b0
MLI
51792012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5180
5181 * c.opt (fpermissive): Add Var(flag_permissive).
5182
7edaa4d2
MG
51832012-04-30 Marc Glisse <marc.glisse@inria.fr>
5184
5185 PR c++/51033
5186 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5187 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5188
b9c8da34
DS
51892012-04-30 Dodji Seketeli <dodji@redhat.com>
5190
5191 Add -Wvarargs option
5192 * c.opt (Wvarargs): Define new option.
5193
e6c69da0
MLI
51942012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5195
5196 * c-common.c (check_function_arguments): Replace
5197 Wmissing-format-attribute with Wsuggest-attribute=format.
5198
90137d8f
MLI
51992012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5200
5201 * c.opt (Wsuggest-attribute=format): New. Alias of
5202 Wmissing-format-attribute.
5203 * c-format.c (decode_format_type): Replace
5204 Wmissing-format-attribute with Wsuggest-attribute=format.
5205 (check_function_format): Likewise.
5206
9faeb493 52072012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5208
5209 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5210 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5211 * c.opt: Add Wliteral-suffix.
5212
c1771a20
MLI
52132012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5214
5215 PR c/44774
5216 * c.opt (Wpedantic): New.
5217 (pedantic): Alias Wpedantic.
5218 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5219 (c_common_post_options): Likewise.
5220 (sanitize_cpp_opts): Likewise.
5221 * c-lex.c (interpret_float): Likewise.
5222 * c-format.c (check_format_types): Likewise.
5223 * c-common.c (pointer_int_sum): Likewise.
5224 (c_sizeof_or_alignof_type): Likewise.
5225 (c_add_case_label): Likewise.
5226 (c_do_switch_warnings): Likewise.
5227 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5228
04b391c1
JM
52292012-04-15 Jason Merrill <jason@redhat.com>
5230
5231 PR c++/52818
5232 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5233 (C_STD_NAME): Distinguish between C++98 and C++11.
5234
ac868f29
EB
52352012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5236
5237 PR target/52624
5238 * c-common.h (uint16_type_node): Rename into...
5239 (c_uint16_type_node): ...this.
5240 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5241 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5242
fd4116f4
MLI
52432012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5244
5245 * c-common.c (warn_if_unused_value): Move definition to here.
5246 * c-common.h (warn_if_unused_value): Move declaration to here.
5247
573ac65e
WB
52482012-03-23 William Bader <williambader@hotmail.com>
5249
5250 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5251
552b8185
JM
52522012-03-20 Jason Merrill <jason@redhat.com>
5253
5254 * c-common.h (enum cxx_dialect): Add cxx1y.
5255 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5256 test.
5257 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5258 * c-opts.c (c_common_post_options): Likewise.
5259 (set_std_cxx1y): New.
5260 (c_common_handle_option): Call it.
5261 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5262
04398fa8
PC
52632012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5264
5265 PR c++/14710
5266 * c.opt ([Wuseless-cast]): Add.
5267
d2a12ae7
RG
52682012-03-16 Richard Guenther <rguenther@suse.de>
5269
5270 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5271
a12bf402
MLI
52722012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5273
5274 PR c++/44783
5275 * c.opt (ftemplate-backtrace-limit) Add.
5276
5c30094f
RO
52772012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5278
5279 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5280 handling.
5281 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5282 (init_pragma): Don't register extern_prefix.
5283
21fa2faf
RG
52842012-03-12 Richard Guenther <rguenther@suse.de>
5285
5286 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5287 (builtin_type_for_size): Likewise.
5288
e3793c6f
JJ
52892012-02-13 Jakub Jelinek <jakub@redhat.com>
5290
5291 PR c++/52215
5292 * c-common.c (sync_resolve_params): Don't decide whether to convert
5293 or not based on TYPE_SIZE comparison, convert whenever arg_type
5294 is unsigned INTEGER_TYPE.
5295
93286335
PC
52962012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5297
5298 PR c/52118
5299 * c.opt ([Wunused-local-typedefs]): Fix description.
5300
7a421706
MS
53012012-01-24 Mike Stump <mikestump@comcast.net>
5302
5303 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5304 exactly.
5305
ba9b1f11
RG
53062012-01-18 Richard Guenther <rguenther@suse.de>
5307
5308 * c-opts.c (c_common_post_options): Reset LTO flags if
5309 we are about to generate a PCH.
5310
465406be
PC
53112012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5312
5313 PR c++/51777
5314 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5315 use pp_unsigned_wide_integer.
5316
aee15221
RG
53172012-01-10 Richard Guenther <rguenther@suse.de>
5318
5319 PR middle-end/51806
5320 * c-opts.c (c_common_handle_option): Move -Werror handling
5321 to language independent code.
5322
5720c0dc
RG
53232012-01-05 Richard Guenther <rguenther@suse.de>
5324
5325 PR middle-end/51764
5326 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5327 from common.opt.
5328
73ac190a
PC
53292011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5330
5331 PR c++/51316
5332 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5333 of array types with an unknown bound.
5334
48b0b196
JM
53352011-12-20 Joseph Myers <joseph@codesourcery.com>
5336
5337 * c-common.c (flag_isoc99): Update comment to refer to C11.
5338 (flag_isoc1x): Change to flag_isoc11.
5339 * c-common.h (flag_isoc99): Update comment to refer to C11.
5340 (flag_isoc1x): Change to flag_isoc11.
5341 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5342 C11.
5343 * c-opts.c (set_std_c1x): Change to set_std_c11.
5344 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5345 Call set_std_c11.
5346 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5347 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5348 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5349 standard.
5350 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5351 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5352 (std=gnu1x): Make alias of std=gnu11.
5353
d58d6eb5
JM
53542011-12-19 Jason Merrill <jason@redhat.com>
5355
5356 PR c++/51228
5357 * c-common.c (handle_transparent_union_attribute): Check the first
5358 field if the type is complete.
5359
b3908fcc
JW
53602011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5361
5362 PR libstdc++/51365
5363 * c-common.c (RID_IS_FINAL): Add.
5364 * c-common.h (RID_IS_FINAL): Add.
5365
fea3ca91
IS
53662011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5367
5368 * c.opt (fgnu-runtime): Provide full description.
5369 (fnext-runtime): Likewise.
5370 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5371
62bad7cd
AM
53722011-11-28 Andrew MacLeod <amacleod@redhat.com>
5373
5374 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5375 predefines in one place. Add LOCK_FREE predefines.
5376 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5377 new func.
5378
c466c4ff
AM
53792011-11-24 Andrew MacLeod <amacleod@redhat.com>
5380
5381 PR c/51256
9faeb493 5382 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5383 conditions
9faeb493
UB
5384 (resolve_overloaded_atomic_exchange,
5385 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5386 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5387 error_mark_node for error conditions.
9faeb493 5388
a5952633
RG
53892011-11-08 Richard Guenther <rguenther@suse.de>
5390
5391 PR middle-end/51010
5392 c-family/
5393
0a35513e
AH
53942011-11-07 Richard Henderson <rth@redhat.com>
5395 Aldy Hernandez <aldyh@redhat.com>
5396 Torvald Riegel <triegel@redhat.com>
5397
5398 Merged from transactional-memory.
5399
5400 * c-common.c (handle_tm_wrap_attribute,
5401 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5402 (struct c_common_reswords): Added __transaction* keywords.
5403 (struct c_common_attribute_table): Added transaction* and tm_regparm
5404 attributes.
5405 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5406 masks.
5407 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5408 find_tm_attribute): Declare.
5409
6d87092d
JM
54102011-11-07 Jason Merrill <jason@redhat.com>
5411
5412 PR c++/35688
5413 * c-common.c, c-common.h: Revert yesterday's changes.
5414
8e7860a1
JM
54152011-11-06 Jason Merrill <jason@redhat.com>
5416
5417 PR c++/35688
5418 * c-common.c (decl_has_visibility_attr): Split out from...
5419 (c_determine_visibility): ...here.
5420 * c-common.h: Declare it.
5421
d19fa6b5
JM
54222011-11-06 Joseph Myers <joseph@codesourcery.com>
5423
5424 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5425 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5426 type.
5427 (check_user_alignment): New. Split out of
5428 handle_aligned_attribute. Disallow integer constants with
5429 noninteger types. Conditionally allow zero.
5430 (handle_aligned_attribute): Use check_user_alignment.
5431 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5432
86951993
AM
54332011-11-06 Andrew MacLeod <amacleod@redhat.com>
5434 Richard Henderson <rth@redhat.com>
5435
5436 Merged from cxx-mem-model.
5437
5438 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5439 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5440 parameters that are the same type size.
5441 (get_atomic_generic_size): New. Find size of generic
5442 atomic function parameters and do typechecking.
5443 (add_atomic_size_parameter): New. Insert size into parameter list.
5444 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5445 either __atomic_exchange_n or external library call.
9faeb493 5446 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5447 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5448 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5449 __atomic_load_n or an external library call.
5450 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5451 __atomic_store_n or an external library call.
5452 (resolve_overloaded_builtin): Handle new __atomic builtins.
5453
cf9e9959
EB
54542011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5455
5456 PR c++/50608
5457 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5458 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5459 <INDIRECT_REF>: Return the argument.
5460 <ARRAY_REF>: Remove special code for negative offset.
5461 Call fold_build_pointer_plus instead of size_binop.
5462 (fold_offsetof): Remove STOP_REF argument and adjust.
5463 * c-common.h (fold_offsetof_1): Declare.
5464 (fold_offsetof): Remove STOP_REF argument.
5465
25339f10
JM
54662011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5467
5468 PR c++/50810
5469 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5470 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5471 Wnarrowing for C++0x and C++98.
5472 * c.opt ([Wnarrowing]): Update.
5473
89401152
PC
54742011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5475
5476 PR c++/44277
5477 * c.opt: Add Wzero-as-null-pointer-constant.
5478
97e3ad20
JM
54792011-10-31 Jason Merrill <jason@redhat.com>
5480
15694fdd
JM
5481 * c.opt (-fdeduce-init-list): Off by default.
5482
97e3ad20
JM
5483 PR c++/50920
5484 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5485 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5486 and -Wc++11-compat.
5487 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5488
fb9120e3
RAV
54892011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5490
5491 PR c++/30066
5492 * c.opt (fvisibility-inlines-hidden): Description change.
5493
3ce4f9e4
ESR
54942011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5495
5496 Implement C++11 user-defined literals.
5497 * c-common.c (build_userdef_literal): New.
5498 * c-common.def: New tree code.
5499 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5500 * c-lex.c (interpret_float): Add suffix parm.
5501 (c_lex_with_flags): Build literal tokens.
5502
5f53c243
PC
55032011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5504
5505 PR c++/50841
5506 Revert:
5507 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5508
5509 PR c++/50810
5510 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5511 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5512 Wnarrowing for C++0x and C++98.
5513 * c.opt ([Wnarrowing]): Update.
5514
263734e1
PC
55152011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5516
5517 PR c++/50810
5518 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5519 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5520 Wnarrowing for C++0x and C++98.
5521 * c.opt ([Wnarrowing]): Update.
5522
d2e312d7
PC
55232011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5524
5525 PR c++/45385
5526 * c-common.c (conversion_warning): Remove code looking for
5527 artificial operands.
5528
d17687f6
DS
55292011-10-18 Dodji Seketeli <dodji@redhat.com>
5530
5531 PR bootstrap/50760
5532 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5533 !NO_IMPLICIT_EXTERN_C.
d17687f6 5534
fc8396e9
PC
55352011-10-17 Michael Spertus <mike_spertus@symantec.com>
5536
5537 * c-common.c (c_common_reswords): Add __bases,
5538 __direct_bases.
5539 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5540
55412011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5542
5543 PR c++/50757
5544 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5545
847e697a
TT
55462011-10-15 Tom Tromey <tromey@redhat.com>
5547 Dodji Seketeli <dodji@redhat.com>
5548
5549 * c.opt (fdebug-cpp): New option.
5550 * c-opts.c (c_common_handle_option): Handle the option.
5551 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5552 output stream in parameter. Factorized from ...
5553 (maybe_print_line): ... this. Dump location debug information when
5554 -fdebug-cpp is in effect.
5555 (print_line_1): New static function. Takes an output stream in
5556 parameter. Factorized from ...
5557 (print_line): ... here. Dump location information when -fdebug-cpp
5558 is in effect.
5559 (scan_translation_unit): Dump location information when
5560 -fdebug-cpp is in effect.
5561
92582b75
TT
55622011-10-15 Tom Tromey <tromey@redhat.com>
5563 Dodji Seketeli <dodji@redhat.com>
5564
5565 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5566 without argument.
5567 * c-opts.c (c_common_handle_option)<case
5568 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5569 cases. Handle -ftrack-macro-expansion with and without argument.
5570
46427374
TT
55712011-10-15 Tom Tromey <tromey@redhat.com>
5572 Dodji Seketeli <dodji@redhat.com>
5573
5574 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5575 (print_line, cb_define, do_line_change): Adjust to avoid touching
5576 the internals of struct line_map. Use the public API instead.
5577 * c-pch.c (c_common_read_pch): Likewise.
5578 * c-lex.c (fe_file_change): Likewise.
5579
fc8396e9
PC
55802011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5581
5582 PR c++/17212
5583 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5584
55852011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5586
5587 PR c++/33067
5588 * c-pretty-print.c (pp_c_floating_constant): Output
5589 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5590
e79983f4
MM
55912011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5592
5593 * c-common.c (def_builtin_1): Delete old interface with two
5594 parallel arrays to hold standard builtin declarations, and replace
5595 it with a function based interface that can support creating
5596 builtins on the fly in the future. Change all uses, and poison
5597 the old names. Make sure 0 is not a legitimate builtin index.
5598 * c-omp.c (c_finish_omp_barrier): Ditto.
5599 (c_finish_omp_taskwait): Ditto.
5600 (c_finish_omp_flush): Ditto.
5601
6637388f
TG
56022011-10-11 Tristan Gingold <gingold@adacore.com>
5603
5604 * c.opt: (fallow-parameterless-variadic-functions): New.
5605
3797cb21
DS
56062011-09-08 Dodji Seketeli <dodji@redhat.com>
5607
5608 PR c++/33255 - Support -Wunused-local-typedefs warning
5609 * c-common.h (struct c_language_function::local_typedefs): New
5610 field.
9faeb493
UB
5611 (record_locally_defined_typedef, maybe_record_typedef_use)
5612 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5613 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5614 (maybe_record_typedef_use)
5615 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5616 * c.opt: Declare new -Wunused-local-typedefs flag.
5617
693ddb1b
EB
56182011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5619
5620 PR middle-end/50266
5621 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5622 computations.
5623
830c740f
RG
56242011-09-05 Richard Guenther <rguenther@suse.de>
5625
5626 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5627 of integer_minus_one_node for empty array upper bounds.
5628
892a371f
DS
56292011-08-28 Dodji Seketeli <dodji@redhat.com>
5630
5631 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5632 it's the first time it's being called on this main TU.
5633
0e3fdb48
RB
56342011-08-24 Richard Guenther <rguenther@suse.de>
5635
5636 PR c/49396
5637 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5638
56392011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5640
5641 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5642 defined in cpp_init_builtins and c_cpp_builtins.
5643
d4a83c10
JM
56442011-08-19 Joseph Myers <joseph@codesourcery.com>
5645
5646 * c-common.c (c_common_reswords): Add __builtin_complex.
5647 * c-common.h (RID_BUILTIN_COMPLEX): New.
5648
bbceee64
JM
56492011-08-18 Joseph Myers <joseph@codesourcery.com>
5650
5651 * c-common.c (c_common_reswords): Add _Noreturn.
5652 (keyword_is_function_specifier): Handle RID_NORETURN.
5653 * c-common.h (RID_NORETURN): New.
5654
3f8257db 56552011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5656
5657 * c-common.c (unsafe_conversion_p): New function. Check if it is
5658 unsafe to convert an expression to the type.
5659 (conversion_warning): Adjust, use unsafe_conversion_p.
5660 * c-common.h (unsafe_conversion_p): New function declaration.
5661
20906c66
JJ
56622011-08-02 Jakub Jelinek <jakub@redhat.com>
5663
5664 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5665 (c_finish_omp_taskyield): New prototype.
5666 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5667 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5668 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5669 or RHS1 have side-effects, evaluate those too in the right spot,
5670 if it is a decl and LHS is also a decl, error out if they
5671 aren't the same.
5672 (c_finish_omp_taskyield): New function.
5673 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5674 * c-pragma.c (omp_pragmas): Add taskyield.
5675 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5676 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5677 PRAGMA_OMP_CLAUSE_MERGEABLE.
5678
770e5a2e
DS
56792011-07-25 Dodji Seketeli <dodji@redhat.com>
5680
5681 * c-common.h (set_underlying_type): Remove parm name from
5682 declaration.
5683
1baae426
RG
56842011-07-25 Romain Geissler <romain.geissler@gmail.com>
5685
5686 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5687
fcb21722
JM
56882011-07-22 Jason Merrill <jason@redhat.com>
5689
76f86d00
JM
5690 PR c++/49793
5691 * c.opt (Wnarrowing): New.
5692
3a636414
JM
5693 PR c++/30112
5694 * c-common.h: Declare c_linkage_bindings.
5695 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5696
fcb21722
JM
5697 PR c++/49813
5698 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5699 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5700 as flag_isoc99 for 'restrict'.
5701 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5702
02614448
ILT
57032011-07-21 Ian Lance Taylor <iant@google.com>
5704
5705 PR middle-end/49705
5706 * c-common.c (c_disable_warnings): New static function.
5707 (c_enable_warnings): New static function.
5708 (c_fully_fold_internal): Change local unused_p to bool. Call
5709 c_disable_warnings and c_enable_warnings rather than change
5710 c_inhibit_evaluation_warnings.
5711
34429675
JM
57122011-07-20 Jason Merrill <jason@redhat.com>
5713
5714 PR c++/6709 (DR 743)
5715 PR c++/42603 (DR 950)
5716 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5717 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5718 (CPP_DECLTYPE): New.
5719 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5720
5d49b6a7
RG
57212011-07-19 Richard Guenther <rguenther@suse.de>
5722
5723 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5724 * c-omp.c (c_finish_omp_for): Likewise.
5725
e84a58ff
EB
57262011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5727
5728 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5729 body on the next line.
5730
329af3c7
JM
57312011-07-08 Jason Merrill <jason@redhat.com>
5732
4063e61b
JM
5733 PR c++/45437
5734 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5735
329af3c7
JM
5736 PR c++/49673
5737 * c-common.c (c_apply_type_quals_to_decl): Don't check
5738 TYPE_NEEDS_CONSTRUCTING.
5739
1a072294
RG
57402011-07-06 Richard Guenther <rguenther@suse.de>
5741
5742 * c-common.c (c_common_nodes_and_builtins):
5743 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5744
fce5dddd
RG
57452011-07-05 Richard Guenther <rguenther@suse.de>
5746
5747 * c-common.c (c_common_nodes_and_builtins): Build all common
5748 tree nodes first.
5749
45d439ac
JJ
57502011-06-27 Jakub Jelinek <jakub@redhat.com>
5751
56300785
JJ
5752 * c-common.h (c_tree_chain_next): New static inline function.
5753
45d439ac
JJ
5754 * c-common.c (check_builtin_function_arguments): Handle
5755 BUILT_IN_ASSUME_ALIGNED.
5756
e0a8ecf2
AM
57572011-06-21 Andrew MacLeod <amacleod@redhat.com>
5758
5759 * c-common.c: Add sync_ or SYNC__ to builtin names.
5760 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5761
57622011-06-20 Pierre Vittet <piervit@pvittet.com>
5763
5764 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5765 handler.
5766 (gen_pragma_handler): New union.
5767 (internal_pragma_handler): New type.
5768 (c_register_pragma_with_data)
5769 (c_register_pragma_with_expansion_and_data): New functions.
5770
5771 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5772 (c_register_pragma, c_register_pragma_with_expansion)
5773 (c_invoke_pragma_handler): Changed to work with
5774 internal_pragma_handler.
5775 (c_register_pragma_with_data)
5776 (c_register_pragma_with_expansion_and_data): New functions.
5777
677f3fa8
JM
57782011-06-14 Joseph Myers <joseph@codesourcery.com>
5779
5780 * c-common.c: Include common/common-target.h.
5781 (handle_section_attribute): Use
5782 targetm_common.have_named_sections.
5783 * c-cppbuiltin.c: Include common/common-target.h.
5784 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5785
d7fc8c14
RG
57862011-06-10 Richard Guenther <rguenther@suse.de>
5787
5788 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5789 to print a IDENTIFIER_NODE.
5790
10e48e39
RO
57912011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5792 Joseph Myers <joseph@codesourcery.com>
5793
5794 * c.opt (fbuilding-libgcc): New option.
5795 * c-cppbuiltin.c (c_cpp_builtins): Define
5796 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5797
6976ae51
JM
57982011-06-07 Jason Merrill <jason@redhat.com>
5799
3ff60975
JM
5800 * c-common.c (max_tinst_depth): Lower default to 900.
5801
6976ae51
JM
5802 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5803
009db074
RG
58042011-06-07 Richard Guenther <rguenther@suse.de>
5805
5806 * c-common.c (c_common_nodes_and_builtins): Do not set
5807 size_type_node or call set_sizetype.
5808
b4592b92
DS
58092011-06-07 Dodji Seketeli <dodji@redhat.com>
5810
5811 PR debug/49130
5812 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5813 type when using pointer comparison to compare types.
b4592b92 5814
014ab419
JW
58152011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5816
5817 * c.opt: Add -Wdelete-non-virtual-dtor.
5818 * c-opts.c (c_common_handle_option): Include it in -Wall.
5819
4f60111f
NF
58202011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5821
5822 PR bootstrap/49190
5823
5824 Revert:
5825 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5826
5827 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5828 not tree_common.
5829
4cc4f2f4
JJ
58302011-05-27 Jakub Jelinek <jakub@redhat.com>
5831
5832 PR c++/49165
5833 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5834 C++ don't call c_common_truthvalue_conversion on void type arms.
5835
38e01f9e
NF
58362011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5837
5838 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5839 (stmt_list_stack): Define.
5840 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5841 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5842
92e948a8
NF
58432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5844
5845 * c-common.c (warning_candidate_p): Check for BLOCKs.
5846
a2fc3e63
NF
58472011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5848
5849 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5850 not tree_common.
5851
0957c029
JJ
58522011-05-25 Jakub Jelinek <jakub@redhat.com>
5853
5854 * c-common.c (def_fn_type): Remove extra va_end.
5855
828fb3ba
JM
58562011-05-23 Jason Merrill <jason@redhat.com>
5857
5858 PR c++/48106
5859 * c-common.c (c_common_get_narrower): New.
5860 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5861
dde05067
NF
58622011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5863
5864 * c-common.h (check_function_arguments): Tweak prototype of
5865 check_function_arguments.
5866 * c-common.c (check_function_arguments): Likewise. Adjust
5867 calls to check_function_nonnull, check_function_format, and
5868 check_function_sentinel.
5869 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5870 separate attributes and typelist arguments. Use
5871 FOREACH_FUNCTION_ARGS to iterate over argument types.
5872
3c0d13bf
PC
58732011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5874
5875 * c-common.c (c_common_reswords): Reorder.
5876 * c-common.h (rid): Likewise.
5877
8242dd04
NF
58782011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5879
5880 * c-common.c (def_fn_type): Don't call build_function_type, call
5881 build_function_type_array or build_varargs_function_type_array
5882 instead.
5883 (c_common_nodes_and_builtins): Likewise.
5884
3d528853
NF
58852011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5886
5887 * c-common.c (c_add_case_label): Omit the loc argument to
5888 build_case_label.
5889 * c-common.h (build_case_label): Remove.
5890 * c-semantics.c (build_case_label): Remove.
5891
a04a722b
JM
58922011-05-05 Joseph Myers <joseph@codesourcery.com>
5893
5894 * c-objc.h (objc_start_method_definition): Update prototype.
5895 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5896
e19a18d4
NF
58972011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5898
5899 * c-common.c (check_main_parameter_types): Reindent. Don't use
5900 TYPE_ARG_TYPES directly.
5901 (handle_nonnull_attribute): Likewise.
5902 (sync_resolve_params): Likewise.
5903 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5904 to check_format_string.
5905 (handle_format_attribute): Likewise.
5906 (check_format_string): Take a function type to examine instead of
5907 a type list. Use a function_arg_iterator to step through argument
5908 types.
5909
c62c040f
RG
59102011-05-04 Richard Guenther <rguenther@suse.de>
5911
5912 * c-common.c (fix_string_type): Use size_int for index type bounds.
5913 (start_fname_decls): Do not pass NULL to build_int_cst.
5914 (c_init_attributes): Likewise.
5915 * c-lex.c (c_lex_with_flags): Likewise.
5916
c12ff9d8
JM
59172011-04-27 Jason Merrill <jason@redhat.com>
5918
5919 * c-common.c (make_tree_vector_from_list): New.
5920 * c-common.h: Declare it.
5921
304dfbe3
RG
59222011-04-26 Richard Guenther <rguenther@suse.de>
5923
5924 PR preprocessor/48248
5925 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5926 for output size with -P.
5927
3c0d13bf
PC
59282011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5929
5930 * c-common.c (struct c_common_resword): Add __underlying_type.
5931 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5932
04695783
JM
59332011-04-20 Jim Meyering <meyering@redhat.com>
5934
5935 * c-format.c (init_dollar_format_checking): Remove useless
5936 if-before-free.
5937
0dc33c3c
NP
59382011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5939
5940 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5941 (objc_detect_field_duplicates): New.
0dc33c3c 5942 * stub-objc.c: Likewise.
3c0d13bf 5943
c59633d9
NP
59442011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5945
5946 * stub-objc.c (objc_declare_protocols): Renamed to
5947 objc_declare_protocol.
5948 * c-objc.h: Likewise.
3c0d13bf 5949
32dabdaf
NP
59502011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5951
5952 * stub-objc.c (objc_declare_class): Updated argument name.
5953
81f653d6
NF
59542011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5955
5956 * c-common.h (c_common_init_ts): Declare.
5957 * c-common.c (c_common_init_ts): Define.
5958
eb345401
NP
59592011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5960
5961 * c-objc.h (objc_build_message_expr): Updated prototype.
5962 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5963
a358e188
MJ
59642011-04-12 Martin Jambor <mjambor@suse.cz>
5965
5966 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5967 of cgraph_node.
5968
e6313a78
RG
59692011-04-11 Richard Guenther <rguenther@suse.de>
5970
5971 * c-common.c (complete_array_type): Build a range type of
5972 proper type.
5973
dcf0c47e
NF
59742011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5975
5976 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5977 (handle_type_generic_attribute): Likewise.
5978
1ee44b26
JM
59792011-04-07 Jason Merrill <jason@redhat.com>
5980
5981 PR c++/48450
5982 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5983 conversion from C++0x scoped enum.
5984
acce4e77
JM
59852011-04-06 Joseph Myers <joseph@codesourcery.com>
5986
5987 * c-target-def.h: New file.
5988 * c-target.def: New file.
5989 * c-target.h: New file.
5990 * c-common.c (targetcm): Don't define here.
5991 * c-common.h (default_handle_c_option): Declare.
5992 * c-format.c: Include c-target.h instead of target.h.
5993 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5994 include tm.h.
5995 (default_handle_c_option): Move from targhooks.c.
5996
e2eefb55
JJ
59972011-03-29 Jakub Jelinek <jakub@redhat.com>
5998
5999 PR preprocessor/48248
6000 * c-ppoutput.c (print): Add src_file field.
6001 (init_pp_output): Initialize it.
6002 (maybe_print_line): Don't optimize by adding up to 8 newlines
6003 if map->to_file and print.src_file are different file.
6004 (print_line): Update print.src_file.
6005
ba78087b
KT
60062011-03-25 Kai Tietz <ktietz@redhat.com>
6007
6008 * c-ada-spec.c (compare_comment): Use filename_cmp
6009 instead of strcmp for filename.
6010
0edf1bb2
JL
60112011-03-25 Jeff Law <law@redhat.com>
6012
adfac8df 6013 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6014
c7dc8804
JM
60152011-03-25 Jason Merrill <jason@redhat.com>
6016
6017 * c.opt: Add -std=c++03.
6018
d1d879b1
EB
60192011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6020
6021 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6022
3f8257db 60232011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6024
6025 PR target/12171
5050afdf
KT
6026 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6027 Display allowed attributes for function pointer types.
6028 (pp_c_attributes_display): New function to display
6029 attributes having affects_type_identity flag set to true.
6030 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6031
62d784f7
KT
6032 * c-common.c (c_common_attribute_table):
6033 Add new element.
6034 (c_common_format_attribute_table): Likewise.
6035
82d37118
JM
60362011-03-18 Jason Merrill <jason@redhat.com>
6037
49a000c3
JM
6038 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6039 * c-common.h: Don't declare it here.
6040 * c-common.c: Or define it here.
6041 * c-opts.c (c_common_handle_option): Or set it here.
6042
82d37118
JM
6043 PR c++/35315
6044 * c-common.c (handle_transparent_union_attribute): Don't
6045 make a duplicate type in C++.
6046
17bc631c
JM
60472011-03-15 Jason Merrill <jason@redhat.com>
6048
6049 * c-common.c (max_constexpr_depth): New.
6050 * c-common.h: Declare it.
6051 * c-opts.c (c_common_handle_option): Set it.
6052 * c.opt (fconstexpr-depth): New option.
6053
1b9b91a6
JM
60542011-03-11 Jason Merrill <jason@redhat.com>
6055
f231b5ff
JM
6056 * c-common.c (attribute_takes_identifier_p): Add missing const.
6057
1b9b91a6
JM
6058 PR c++/46803
6059 * c-common.c (attribute_takes_identifier_p): Assume that an
6060 unknown attribute takes an identifier.
6061
a19e4d44
NF
60622011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6063
6064 PR c/47786
6065 * c-common.c (c_type_hash): Call list_length instead of iterating
6066 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6067
982d62f6
JJ
60682011-02-19 Jakub Jelinek <jakub@redhat.com>
6069
6070 PR c/47809
6071 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6072
0a256240
NP
60732011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6074
6075 * c.opt (fobjc-abi-version=) New.
6076 (fobjc-nilcheck): New.
6077
ba9e6dd5
NF
60782011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6079
6080 PR c++/46890
6081 * c-common.h (keyword_is_decl_specifier): Declare.
6082 * c-common.c (keyword_is_decl_specifier): Define.
6083 (keyword_is_function_specifier): New function.
6084
7273813a
JJ
60852011-01-26 Jakub Jelinek <jakub@redhat.com>
6086
6087 PR c/47473
6088 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6089 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6090 REAL_TYPE.
6091
908ef79b
AC
60922011-01-26 Arnaud Charlet <charlet@adacore.com>
6093
6094 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6095
237e9384
JJ
60962011-01-26 Jakub Jelinek <jakub@redhat.com>
6097
6098 PR pch/47430
6099 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6100 after init_c_lex if pch_file is set.
6101
47ea1edf
DK
61022011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6103
d4dba752 6104 PR c++/43601
47ea1edf
DK
6105 * c.opt (-fkeep-inline-dllexport): New switch.
6106
2aa9c6ae
RG
61072011-01-12 Richard Guenther <rguenther@suse.de>
6108
6109 PR middle-end/32511
6110 * c-common.c (handle_weak_attribute): Warn instead of error
6111 on declaring an inline function weak.
6112
7bd11157
TT
61132011-01-05 Tom Tromey <tromey@redhat.com>
6114
6115 * c-common.h (lvalue_error): Update.
6116 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6117 not error.
6118
0e66e494 61192010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6120
b4f588c4
NP
6121 PR objc/47075
6122 * c-objc.h (objc_finish_message_expr): Added argument to
6123 prototype.
6124
f4da8dce
NF
61252010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6126
6127 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6128 Use prototype_p.
6129
46270f14
NP
61302010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6131
6132 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6133 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6134
4816c593
NF
61352010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6136
6137 * c-common.h (readonly_error): Declare.
6138 * c-common.c (readonly_error): Define.
6139
7a6daeb0
NF
61402010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6141
6142 * c-common.h (invalid_indirection_error): Declare.
6143 * c-common.c (invalid_indirection_error): Define.
6144
892f6119
RG
61452010-12-03 Richard Guenther <rguenther@suse.de>
6146
6147 PR c/46745
6148 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6149 (pp_c_unary_expression): Likewise.
6150 (pp_c_expression): Likewise.
6151
6c39e757
NP
61522010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6153
6154 * c-common.h (objc_finish_function): New.
6155 (objc_non_volatilized_type): Removed.
6156 (objc_type_quals_match): Removed.
6157 * stub-objc.c (objc_finish_function): New.
6158 (objc_non_volatilized_type): Removed.
6159 (objc_type_quals_match): Removed.
9faeb493 6160
7c475d11
JM
61612010-11-30 Joseph Myers <joseph@codesourcery.com>
6162
6163 * c-common.h (parse_optimize_options): Declare.
6164 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6165 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6166
71f3e391
JM
61672010-11-29 Joseph Myers <joseph@codesourcery.com>
6168
6169 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6170 GET_ENVIRONMENT.
6171 * c-pch.c (O_BINARY): Don't define here.
6172 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6173
d5fabb58
JM
61742010-11-25 Joseph Myers <joseph@codesourcery.com>
6175
6176 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6177 targetm.except_unwind_info.
6178
299404a1
JM
61792010-11-23 Joseph Myers <joseph@codesourcery.com>
6180
6181 * c-opts.c (c_common_handle_option): Pass location to
6182 set_struct_debug_option.
6183
c98cd5bf
JM
61842010-11-23 Joseph Myers <joseph@codesourcery.com>
6185
6186 * c-common.c (visibility_options): Move from ../opts.c.
6187 * c-common.h (struct visibility_flags, visibility_options):
6188 Declare here.
6189 * c-opts.c (finish_options): Rename to c_finish_options.
6190 (c_common_init): Update call to finish_options.
6191
a9546771
NP
61922010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6193
6194 PR objc/34033
6195 * c-lex.c (lex_string): Check that each string in an Objective-C
6196 string concat sequence starts with either one or zero '@', and
6197 that there are no spurious '@' signs at the end.
6198
24a57808
JM
61992010-11-20 Joseph Myers <joseph@codesourcery.com>
6200
6201 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6202 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6203 HANDLE_PRAGMA_VISIBILITY.
6204 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6205 HANDLE_PRAGMA_VISIBILITY): Don't define.
6206 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6207
a9aa2c3a
NF
62082010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6209
6210 PR c++/16189
6211 PR c++/36888
6212 PR c++/45331
6213 * c-common.h (keyword_begins_type_specifier): Declare.
6214 (keyword_is_storage_class_specifier): Declare.
6215 (keyword_is_type_qualifier): Declare.
6216 * c-common.c (keyword_begins_type_specifier): New function.
6217 (keyword_is_storage_class_specifier): New function.
6218 (keyword_is_type_qualifier): Declare.
6219
5386338c
JM
62202010-11-19 Joseph Myers <joseph@codesourcery.com>
6221
6222 PR c/46547
6223 * c-common.c (in_late_binary_op): Define.
6224 (c_common_truthvalue_conversion): Check in_late_binary_op before
6225 calling c_save_expr.
6226 * c-common.h (in_late_binary_op): Declare.
6227
69ccdddb
JM
62282010-11-19 Joseph Myers <joseph@codesourcery.com>
6229
6230 * c-opts.c (c_common_handle_option): Update calls to
6231 set_struct_debug_option.
6232
6b192a09
NP
62332010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6234
6235 * c-common.h (objc_declare_protocols): Added additional argument.
6236 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6237
fb52b50a
NF
62382010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6239
6240 PR c/33193
6241 * c-common.h (build_real_imag_expr): Declare.
6242 * c-semantics.c (build_real_imag_expr): Define.
6243
b37421c6
JM
62442010-11-17 Joseph Myers <joseph@codesourcery.com>
6245
6246 * c-opts.c (c_common_parse_file): Take no arguments.
6247 * c-common.h (c_common_parse_file): Update prototype.
6248
07078664
JJ
62492010-11-16 Jakub Jelinek <jakub@redhat.com>
6250
6251 PR c++/46401
6252 * c-common.c (warning_candidate_p): Don't track non-const calls
6253 or STRING_CSTs.
6254
c6a13190
ILT
62552010-11-15 Ian Lance Taylor <iant@google.com>
6256
6257 * c-lex.c (init_c_lex): Set macro debug callbacks if
6258 flag_dump_go_spec is set.
6259
925e8657
NP
62602010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6261
6262 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6263 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6264
bb0a9581
NF
62652010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6266
6267 PR preprocessor/45038
6268 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6269 dialects.
6270
c5fa0890
JM
62712010-11-12 Joseph Myers <joseph@codesourcery.com>
6272
6273 * c-common.h (c_family_lang_mask): Declare.
6274 * c-opts.c (c_family_lang_mask): Make extern.
6275 * c-pragma.c (handle_pragma_diagnostic): Use
6276 control_warning_option.
6277
a4d8c676
JM
62782010-11-12 Joseph Myers <joseph@codesourcery.com>
6279
6280 * c-common.c (parse_optimize_options): Update call to
6281 decode_options.
6282 * c-common.h (c_common_handle_option): Update prototype.
6283 * c-opts.c (c_common_handle_option): Take location_t parameter and
6284 pass it to other functions.
6285
f954bd2c
JM
62862010-11-11 Joseph Myers <joseph@codesourcery.com>
6287
6288 * c-opts.c (warning_as_error_callback): Remove.
6289 (c_common_initialize_diagnostics): Don't call
6290 register_warning_as_error_callback.
6291 (c_common_handle_option): Handle -Werror=normalized= here.
6292
d8a07487
JM
62932010-11-10 Joseph Myers <joseph@codesourcery.com>
6294
6295 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6296 in diagnostic.
6297 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6298 letter.
6299 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6300 Remove trailing '.' from diagnostics.
6301 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6302
d5478783
JM
63032010-11-10 Joseph Myers <joseph@codesourcery.com>
6304
6305 * c-common.c (parse_optimize_options): Pass global_dc to
6306 decode_options.
6307 * c-opts.c (c_common_handle_option): Pass &global_options to
6308 set_Wstrict_aliasing.
6309 * c.opt (v): Don't mark Common or document here.
6310
91ebb981
IS
63112010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6312
6313 PR target/44981
6314 * c-format.c (format_type): New type gcc_objc_string_format_type.
6315 (valid_stringptr_type_p): New.
6316 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6317 (check_format_string): Pass expected type, use
91ebb981
IS
6318 valid_stringptr_type_p (), check that the format string types are
6319 consistent with the format specification.
6320 (decode_format_attr): Warn if NSString is used outside objective-c.
6321 (format_types_orig): Add NSString.
6322 (format_name): New.
6323 (format_flags): New.
6324 (check_format_arg): Handle format strings requiring an external parser.
6325 first_target_format_type: New variable.
6326 (handle_format_attribute): Set up first_target_format_type, pass the
6327 expected format arg string type to check_format_string().
6328 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6329 * stub-objc.c (objc_string_ref_type_p): New.
6330 (objc_check_format_arg): New.
6331
bede2adc
NP
63322010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6333
9faeb493 6334 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6335 * c-common.h (objc_build_class_component_ref): New.
6336 * stub-objc.c (objc_build_class_component_ref): New.
6337
9a179d01
NP
63382010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6339
6340 * c.opt (Wproperty-assign-default): New option.
6341
22d8d616
NP
63422010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6343
6344 Implemented -fobjc-std=objc1 flag.
6345 * c.opt (fobjc-std=objc1): New option.
6346
2debdb4f
NP
63472010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6348
6349 Implemented format and noreturn attributes for Objective-C methods.
6350 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6351 attribute for Objective-C methods.
6352
ec52b111
JM
63532010-10-31 Jason Merrill <jason@redhat.com>
6354
6355 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6356 EXPR_LOC_OR_HERE.
6357
46a88c12
NP
63582010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6359
6360 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6361 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6362 (objc_add_property_declaration): Removed arguments for copies and
6363 ivar.
6364 (objc_build_getter_call): Renamed to
6365 objc_maybe_build_component_ref.
6366 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6367 (objc_is_property_ref): New.
6368 * c-common.c (c_common_reswords): Removed copies and ivar.
6369 * stub-objc.c (objc_add_property_declaration): Removed arguments
6370 for copies and ivar.
6371 (objc_build_getter_call): Renamed to
6372 objc_maybe_build_component_ref.
6373 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6374 (objc_is_property_ref): New.
9faeb493 6375
1e4bf85b
AC
63762010-10-29 Arnaud Charlet <charlet@adacore.com>
6377 Matthew Gingell <gingell@adacore.com>
6378
6379 * c-ada-spec.c (separate_class_package): New function.
6380 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6381 name of their enclosing package.
6382 (print_ada_declaration): Use separate_class_package.
6383
81f0bab2
JM
63842010-10-27 Jason Merrill <jason@redhat.com>
6385
2b08f2c5
JM
6386 * c-common.c (c_common_reswords): Add __is_literal_type.
6387 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6388
81f0bab2
JM
6389 * c-common.c (check_case_value): Remove special C++ code.
6390
200290f2
NP
63912010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6392
6393 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6394 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6395 and RID_LAST_PATTR.
6396 (objc_add_property_declaration): Added additional arguments.
6397 (objc_property_attribute_kind): Removed.
6398 (objc_set_property_attr): Removed.
6399 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6400 copy and nonatomic.
6401 * stub-objc.c (objc_add_property_declaration): Added additional
6402 arguments.
6403 (objc_set_property_attr): Removed.
9faeb493 6404
f614132b
NP
64052010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6406
6407 * c-common.h (objc_add_property_variable): Renamed to
6408 objc_add_property_declaration. Added location argument.
6409 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6410
b8a18805
NP
64112010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6412
6413 * c-common.h (objc_maybe_printable_name): New.
6414 * stub-objc.c (objc_maybe_printable_name): New.
6415
3f8257db
JJ
64162010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6417 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6418
6419 * c-common.h (c_common_mark_addressable_vec): Declare.
6420 * c-common.c (c_common_mark_addressable_vec): New function.
6421
249a82c4
NP
64222010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6423
6424 * c-common.h (objc_set_method_type): Removed.
6425 (objc_add_method_declaration): Added boolean argument.
6426 (objc_start_method_definition): Same change.
6427 (objc_build_method_signature): Same change.
6428 * stub-objc.c (objc_set_method_type): Removed.
6429 (objc_add_method_declaration): Added boolean argument.
6430 (objc_start_method_definition): Same change.
6431 (objc_build_method_signature): Same change.
6432
977e30bc
NP
64332010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6434
6435 * c-common.h (finish_file): Removed.
6436 (objc_write_global_declarations): New.
6437 * c-opts.c (c_common_parse_file): Do not call finish_file.
6438 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6439
da57d1b9
NP
64402010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6441
6442 Implemented parsing @synthesize and @dynamic for
6443 Objective-C/Objective-C++.
6444 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6445 (objc_add_synthesize_declaration): New.
6446 (objc_add_dynamic_declaration): New.
6447 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6448 * stub-objc.c (objc_add_synthesize_declaration): New.
6449 (objc_add_dynamic_declaration): New.
9faeb493 6450
0069111f
MM
64512010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6452
6453 PR target/46041
6454 * c-cppbuiltin.c (mode_has_fma): Move function here from
6455 builtins.c. Don't use the fma optab, instead just use the
6456 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6457 using -save-temps.
6458
e426b47b
NP
64592010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6460
6461 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6462
3f8257db 6463 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6464
9faeb493 6465 Radar 4330422
e426b47b
NP
6466 * c-common.h (objc_non_volatilized_type): New declaration
6467 * stub-objc.c (objc_non_volatilized_type): New stub.
6468
90fbfdc3
NP
64692010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6470
e426b47b 6471 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6472
3f8257db 6473 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6474
9faeb493 6475 Radar 4133425
90fbfdc3 6476 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6477 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6478
c37d8c30
IS
64792010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6480
6481 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6482 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6483 (objc_ivar_visibility_kind): New enum.
6484 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6485 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6486 visibility enum.
6487
1b1562a5
MM
64882010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6489
6490 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6491 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6492 has the appropriate fma builtins.
6493 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6494
668ea4b1
IS
64952010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6496
1b1562a5 6497 merge from FSF apple 'trunk' branch.
3f8257db 6498 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6499
668ea4b1
IS
6500 Radars 4436866, 4505126, 4506903, 4517826
6501 * c-common.c (c_common_resword): Define @property and its attributes.
6502 * c-common.h: Define property attribute enum entries.
6503 (OBJC_IS_PATTR_KEYWORD): New.
6504 (objc_property_attribute_kind): New enum.
6505 Declare objc_set_property_attr (), objc_add_property_variable (),
6506 objc_build_getter_call () and objc_build_setter_call ().
6507 * stub-objc.c (objc_set_property_attr): New stub.
6508 (objc_add_property_variable): Likewise.
6509 (objc_build_getter_call): Likewise.
6510 (objc_build_setter_call) Likewise.
1b1562a5 6511
a1178b30
IS
65122010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6513
1b1562a5 6514 merge from FSF apple 'trunk' branch.
3f8257db 6515 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6516
6517 Radar 3803157 (method attributes)
6518 * c-common.c (handle_deprecated_attribute): Recognize
6519 objc methods as valid declarations.
6520 * c-common.h: Declare objc_method_decl ().
1b1562a5 6521 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6522
a75bfaa6
JM
65232010-10-08 Joseph Myers <joseph@codesourcery.com>
6524
6525 * c-common.c (parse_optimize_options): Call
6526 decode_cmdline_options_to_array_default_mask before
6527 decode_options. Update arguments to decode_options.
6528 * c-common.h (c_common_init_options_struct): Declare.
6529 * c-opts.c (c_common_init_options_struct): New. Split out from
6530 c_common_init_options.
6531
f05b9d93
NP
65322010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6533
6534 Implemented fast enumeration for Objective-C.
6535 * c-common.h (objc_finish_foreach_loop): New.
6536 * stub-objc.c (objc_finish_foreach_loop): New.
6537
1ebe4b4f
JM
65382010-10-05 Joseph Myers <joseph@codesourcery.com>
6539
6540 * c-common.h (struct diagnostic_context): Don't declare here.
6541 (c_common_initialize_diagnostics): Declare using
6542 diagnostic_context typedef.
6543 * c-opts.c (c_common_handle_option): Pass global_dc to
6544 handle_generated_option.
6545
d4d24ba4
JM
65462010-10-04 Joseph Myers <joseph@codesourcery.com>
6547
6548 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6549 handle_generated_option.
6550
478a1c5b
ILT
65512010-10-03 Ian Lance Taylor <iant@google.com>
6552
6553 * c.opt (-fplan9-extensions): New option.
6554
82a1c2fe
FXC
65552010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6556
6557 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6558 Remove.
6559 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6560 of duplicating code.
6561
92902b1b
IS
65622010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6563
6564 * c-common.c: Add two new entries for @optional
6565 and @required keywords.
6566
6567 merge from FSF 'apple/trunk' branch.
3f8257db 6568 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6569
6570 Radar 4386773
6571 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6572 objective-c keywords.
6573 (objc_set_method_opt): New declaration.
6574 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6575
46625112
JM
65762010-09-30 Joseph Myers <joseph@codesourcery.com>
6577
6578 * c-common.c (handle_optimize_attribute): Pass &global_options to
6579 cl_optimization_save and cl_optimization_restore.
6580 * c-opts.c (c_common_handle_option): Pass &global_options to
6581 handle_generated_option.
6582 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6583 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6584 &global_options to cl_optimization_restore.
6585
49b91f05
NP
65862010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6587
6588 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6589 Objective-C/Objective-C++ keywords.
6590
13ed556f 65912010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6592
9faeb493
UB
6593 Merge from 'apple/trunk' branch on FSF servers.
6594
3f8257db 6595 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6596
6597 Radar 4281748
6598 * c-common.h (objc_check_global_decl): New declaration.
6599 * stub-objc.c (objc_check_global_decl): New stub.
6600
f0036cca
JM
66012010-09-29 Joseph Myers <joseph@codesourcery.com>
6602
6603 * c.opt: Don't use VarExists.
6604
e3339d0f
JM
66052010-09-29 Joseph Myers <joseph@codesourcery.com>
6606
6607 * c-common.c (c_cpp_error): Update names of diagnostic_context
6608 members.
6609 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6610 cl_optimization members.
6611 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6612 sanitize_cpp_opts, finish_options): Update names of cpp_options
6613 members.
6614
1973201f
NP
66152010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6616
6617 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6618 (objc_is_reserved_word): Removed.
6619 * c-common.c: Updated comments.
6620 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6621 objc_is_reserved_word.
6622 * stub-objc.c (objc_is_reserved_word): Removed.
6623
f7e71da5
IS
66242010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6625
9faeb493 6626 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6627 include attributes.
6628 (objc_start_method_definition): Likewise.
6629 (objc_build_keyword_decl): Likewise.
6630 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6631 (objc_start_method_definition): Likewise.
6632 (objc_build_keyword_decl): Likewise.
6633
c165dca7
IS
66342010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6635
6636 * c-common.h (objc_start_class_interface): Adjust prototype.
6637 (objc_start_category_interface): Likewise.
6638 (objc_start_protocol): Likewise.
6639 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6640 (objc_start_class_interface): Likewise.
6641 (objc_start_category_interface): Likewise.
6642
7458026b
ILT
66432010-09-27 Ian Lance Taylor <iant@google.com>
6644
6645 * c-common.c (c_common_attribute_table): Add no_split_stack.
6646 (handle_no_split_stack_attribute): New static function.
6647
b581b85b
NP
66482010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6649
9faeb493 6650 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6651
3f8257db 6652 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6653
9faeb493 6654 Radar 4229905
b581b85b
NP
6655 * c-common.h (objc_have_common_type): New declaration.
6656 * stub-objc.c (objc_have_common_type): New stub.
6657
6658 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6659
6660 Radar 4154928
6661 * c-common.h (objc_common_type): New prototype.
9faeb493 6662 * stub-objc.c (objc_common_type): New stub.
b581b85b 6663
46a4da10
JH
66642010-09-24 Jan Hubicka <jh@suse.cz>
6665
6666 * c-common.c (handle_leaf_attribute): New function.
6667 (struct attribute_spec c_common_att): Add leaf.
6668
e200444e
JM
66692010-09-22 Joseph Myers <joseph@codesourcery.com>
6670
6671 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6672 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6673 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6674 -include-barrier, -include-directory, -include-directory=,
6675 -include-directory-after, -include-directory-after=,
6676 -include-prefix, -include-prefix=, -include-with-prefix,
6677 -include-with-prefix=, -include-with-prefix-after,
6678 -include-with-prefix-after=, -include-with-prefix-before,
6679 -include-with-prefix-before=, -no-integrated-cpp,
6680 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6681 -output=, -pedantic, -pedantic-errors, -preprocess,
6682 -print-missing-file-dependencies, -trace-includes, -traditional,
6683 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6684 -user-dependencies, -verbose, -write-dependencies,
6685 -write-user-dependencies, no-integrated-cpp, traditional): New.
6686
29a80ea6
NP
66872010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6688
6689 PR objc/23710
ac1fc2fc
NP
6690 * c-common.h (objc_start_method_definition): Return bool instead
6691 of void.
6692 * stub-objc.c (objc_start_method_definition): Return bool instead
6693 of void.
6694
66952010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6696
6697 PR objc/25965
6698 * c-common.h (objc_get_interface_ivars): New declaration.
6699 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6700
de621752
ILT
67012010-09-15 Ian Lance Taylor <iant@google.com>
6702
6703 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6704 messages. Remove period at end of warning message.
de621752 6705
ba885ec5
NS
67062010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6707
6708 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6709 (handle_alias_attribute): ... here.
6710 (handle_ifunc_attribute): New.
6711
c5ee1358
MM
67122010-09-06 Mark Mitchell <mark@codesourcery.com>
6713
6714 * c-common.h (do_warn_double_promotion): Declare.
6715 * c-common.c (do_warn_double_promotion): Define.
6716
0a0b3574
MM
67172010-09-05 Mark Mitchell <mark@codesourcery.com>
6718
6719 * c.opt (Wdouble-promotion): New.
6720
d1779886
JM
67212010-09-02 Joseph Myers <joseph@codesourcery.com>
6722
6723 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6724 fvtable-thunks, fxref): Mark no longer supported in help text.
6725
2d2bd949
JM
67262010-09-02 Joseph Myers <joseph@codesourcery.com>
6727
6728 * c.opt (Wimport, fall-virtual, falt-external-templates,
6729 fdefault-inline, fenum-int-equiv, fexternal-templates,
6730 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6731 fname-mangling-version-, fnew-abi, fnonnull-objects,
6732 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6733 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6734 applicable.
6735 (fhandle-exceptions): Mark with Alias and Warn.
6736 * c-opts.c (c_common_handle_option): Don't handle options marked
6737 as ignored.
6738
5de8299c
JM
67392010-09-02 Joseph Myers <joseph@codesourcery.com>
6740
6741 * c.opt (Wcomments, Werror-implicit-function-declaration,
6742 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6743 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6744 aliases.
6745 * c-common.c (option_codes): Use OPT_Wcomment instead of
6746 OPT_Wcomments.
6747 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6748 Don't handle options marked as aliases.
6749
0ceb0201
RG
67502010-08-25 Richard Guenther <rguenther@suse.de>
6751
6752 * c-common.c (c_common_get_alias_set): Remove special
6753 handling for pointers.
6754
ac47786e
NF
67552010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6756
6757 * c-common.c: Use FOR_EACH_VEC_ELT.
6758 * c-gimplify.c: Likewise.
6759 * c-pragma.c: Likewise.
6760
c878765b
JM
67612010-08-16 Joseph Myers <joseph@codesourcery.com>
6762
6763 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6764 RejectDriver.
6765 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6766 RejectDriver.
6767 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6768 instead of OPT_MDX and OPT_MMDX.
6769
603349bf
JM
67702010-08-16 Joseph Myers <joseph@codesourcery.com>
6771
6772 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6773
644fa7ac
JM
67742010-08-12 Joseph Myers <joseph@codesourcery.com>
6775
6776 * c.opt (MD, MMD): Change to MDX and MMDX.
6777 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6778
481e1176
JM
67792010-08-11 Joseph Myers <joseph@codesourcery.com>
6780
6781 * c-opts.c (c_common_handle_option): Call handle_generated_option
6782 instead of handle_option.
6783
ac8dc9f7
NF
67842010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6785
6786 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6787 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6788
4f8c876d
NF
67892010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6790
6791 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6792 (pending_redefine_extname): Change type to a VEC.
6793 (add_to_renaming_pragma_list): Update for new type of
6794 pending_redefine_extname.
ac8dc9f7 6795 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6796
3b0c690e
AC
67972010-08-04 Arnaud Charlet <charlet@adacore.com>
6798
6799 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6800 visited.
6801 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6802 decide whether a type has already been declared/seen.
6803 Do not go to the original type.
6804 (dump_nested_types): New parameter forward.
6805 Generate forward declaration if needed and mark type as visited.
6806 (print_ada_declaration): Call dump_nested_types if not already done.
6807 Mark types as visited.
6808
1890bccc
JM
68092010-08-03 Joseph Myers <joseph@codesourcery.com>
6810
6811 * c.opt (-print-pch-checksum): Remove option.
6812 * c-opts.c (c_common_handle_option): Don't handle
6813 OPT_print_pch_checksum.
6814
5f20c657
JM
68152010-07-27 Joseph Myers <joseph@codesourcery.com>
6816
6817 * c-common.h (c_common_handle_option): Update prototype and return
6818 value type.
6819 * c-opts.c (c_common_handle_option): Update prototype and return
6820 value type. Update calls to handle_option and
6821 enable_warning_as_error.
6822
f551f80c
JJ
68232010-07-27 Jakub Jelinek <jakub@redhat.com>
6824
6825 PR c/45079
6826 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6827
61ff2bdc
JM
68282010-07-27 Joseph Myers <joseph@codesourcery.com>
6829
6830 * c-common.h (c_common_missing_argument): Remove.
6831 * c-opts.c (c_common_missing_argument): Remove.
6832 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6833 idirafter, imacros, include, isysroot, isystem, iquote): Add
6834 MissingArgError.
6835 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6836
7a9bf9a4
JM
68372010-07-27 Joseph Myers <joseph@codesourcery.com>
6838
6839 * c-common.h (c_common_option_lang_mask,
6840 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6841 New.
6842 (c_common_init_options): Update prototype.
6843 * c-opts.c (c_common_option_lang_mask): New.
6844 (c_common_initialize_diagnostics): Split out of
6845 c_common_init_options.
6846 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6847 New.
6848 (c_common_init_options): Update prototype. Use decoded options in
6849 search for -lang-asm.
6850
910ad8de
NF
68512010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6852
6853 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6854 * c-format.c: Likewise.
6855
718f9c0f
MLI
68562010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6857
6858 * c-common.h: Include diagnostic-core.h. Error if already
6859 included.
6860 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6861
4d451982
MLI
68622010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6863
adfac8df 6864 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6865 Do not include expr.h
6866 (vector_mode_valid_p): Move here.
6867
119fe915
SB
68682010-06-21 DJ Delorie <dj@redhat.com>
6869
6870 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6871 allow these pragmas anywhere.
6872
68732010-06-14 Jakub Jelinek <jakub@redhat.com>
6874
6875 PR bootstrap/44509
6876 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6877 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6878 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6879 ggc_strdup instead of xstrdup.
6880
68812010-06-10 Jakub Jelinek <jakub@redhat.com>
6882
6883 * c-cppbuiltin.c: Include cpp-id-data.h.
6884 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6885 (lazy_hex_fp_value): New function.
6886 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6887
6662d794
MLI
68882010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6889
6890 * c-gimplify.c: Do not include tree-flow.h
6891
38f8b050
JR
68922010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6893
6894 PR other/44034
6895 * c-common.c: Rename targetm member:
6896 targetm.enum_va_list -> targetm.enum_va_list_p
6897
9589f23e
AS
68982010-06-28 Anatoly Sokolov <aesok@post.ru>
6899
6900 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6901
3b06d379
SB
69022010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6903
6904 * c-cppbuiltin.c: Do not include except.h.
6905
d166d4c3
AK
69062010-06-24 Andi Kleen <ak@linux.intel.com>
6907
9faeb493
UB
6908 * c-common.c (warn_for_omitted_condop): New.
6909 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6910
70cb8be6
JM
69112010-06-21 Joseph Myers <joseph@codesourcery.com>
6912
6913 * c.opt (lang-objc): Remove.
6914 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6915
a4c97feb
JR
69162010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6917
6918 * c-opts.c: Include "tm_p.h".
6919
6e2f1956
JM
69202010-06-20 Joseph Myers <joseph@codesourcery.com>
6921
6922 * c-common.c (parse_optimize_options): Update call to
6923 decode_options.
6924
bc87224e
NF
69252010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6926
6927 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6928 new type of types_used_by_cur_var_decl.
6929
b49cf425
JR
69302010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6931
6932 PR bootstrap/44512
6933 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6934 for C++ standard compliance.
6935
59f9c2ed
JM
69362010-06-16 Jason Merrill <jason@redhat.com>
6937
6938 * c.opt: Add -Wnoexcept.
6939
33766b66
RG
69402010-06-16 Richard Guenther <rguenther@suse.de>
6941
6942 PR c/44555
6943 * c-common.c (c_common_truthvalue_conversion): Remove
6944 premature and wrong optimization concering ADDR_EXPRs.
6945
eff7e30c
AC
69462010-06-15 Arnaud Charlet <charlet@adacore.com>
6947
6948 * c-ada-spec.c (dump_sloc): Remove column info.
6949 (is_simple_enum): New function.
6950 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6951 enum types when relevant.
6952
6312e84d
MLI
69532010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6954
9faeb493 6955 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6956 location.
6957
1cb42611
JM
69582010-06-10 Joseph Myers <joseph@codesourcery.com>
6959
6960 * c-opts.c (c_common_handle_option): Don't handle
6961 OPT_fshow_column.
6962
a9429e29
LB
69632010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6964
6965 * c-pragma.c (push_alignment): Use typed GC allocation.
6966 (handle_pragma_push_options): Likewise.
6967
6968 * c-common.c (parse_optimize_options): Likewise.
6969
6970 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6971 option.
6972
5498f011
JM
69732010-06-07 Joseph Myers <joseph@codesourcery.com>
6974
6975 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6976 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6977 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6978 flag_signed_bitfields, warn_strict_null_sentinel,
6979 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6980 flag_gen_declaration, flag_no_gnu_keywords,
6981 flag_implement_inlines, flag_implicit_templates,
6982 flag_implicit_inline_templates, flag_optional_diags,
6983 flag_elide_constructors, flag_default_inline, flag_rtti,
6984 flag_conserve_space, flag_access_control, flag_check_new,
6985 flag_new_for_scope, flag_weak, flag_working_directory,
6986 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6987 flag_enforce_eh_specs, flag_threadsafe_statics,
6988 flag_pretty_templates): Remove.
6989 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6990 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6991 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6992 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6993 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6994 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6995 flag_no_gnu_keywords, flag_implement_inlines,
6996 flag_implicit_templates, flag_implicit_inline_templates,
6997 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6998 flag_rtti, flag_conserve_space, flag_access_control,
6999 flag_check_new, flag_new_for_scope, flag_weak,
7000 flag_working_directory, flag_use_cxa_atexit,
7001 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7002 flag_threadsafe_statics, flag_pretty_templates,
7003 warn_strict_null_sentinel): Remove.
7004 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7005 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7006 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7007 fimplicit-inline-templates, fimplicit-templates,
7008 flax-vector-conversions, fms-extensions, fnil-receivers,
7009 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7010 frtti, fshort-double, fshort-enums, fshort-wchar,
7011 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7012 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7013 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7014 gen-decls, undef): Use Var.
7015 (fdefault-inline, foptional-diags): Document as doing nothing.
7016 * c-opts.c (c_common_handle_option): Remove cases for options now
7017 using Var. Mark ignored options as such.
7018
39dabefd
SB
70192010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7020
9faeb493 7021 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7022 * c-common.def: Likewise.
7023 * c-common.h: Likewise.
7024 * c-cppbuiltin.c: Likewise.
7025 * c-dump.c: Likewise.
7026 * c-format.c: Likewise.
7027 * c-format.h : Likewise.
7028 * c-gimplify.c: Likewise.
7029 * c-lex.c: Likewise.
7030 * c-omp.c: Likewise.
7031 * c.opt: Likewise.
7032 * c-opts.c: Likewise.
7033 * c-pch.c: Likewise.
7034 * c-ppoutput.c: Likewise.
7035 * c-pragma.c: Likewise.
7036 * c-pragma.h: Likewise.
7037 * c-pretty-print.c: Likewise.
7038 * c-pretty-print.h: Likewise.
7039 * c-semantics.c: Likewise.
7040 * stub-objc.c: Likewise.
7041
7042 * c-common.c: Include gt-c-family-c-common.h.
7043 * c-pragma.c: Include gt-c-family-c-pragma.h.
7044\f
818ab71a 7045Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
7046
7047Copying and distribution of this file, with or without modification,
7048are permitted in any medium without royalty provided the copyright
7049notice and this notice are preserved.
This page took 2.432995 seconds and 5 git commands to generate.