]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Handle errors in both args of va_arg
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
ba9bbd6f
TV
12016-08-29 Tom de Vries <tom@codesourcery.com>
2
3 PR c/77398
4 * c-common.c (build_va_arg): Add first argument error. Build va_arg
5 with error_mark_node as va_list instead of with illegal va_list.
6
ebef225f
MP
72016-08-25 Marek Polacek <polacek@redhat.com>
8 David Malcolm <dmalcolm@redhat.com>
9
10 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
11 * c-common.h (warn_logical_not_parentheses): Update declaration.
12
b00e6e75
MP
132016-08-22 Marek Polacek <polacek@redhat.com>
14
15 PR c++/77321
16 * c-common.c (warn_for_memset): Check type for null.
17
6dc198e3
JM
182016-08-22 Joseph Myers <joseph@codesourcery.com>
19
20 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
21 _FloatNx types for suffixes for built-in functions.
22
c65699ef
JM
232016-08-19 Joseph Myers <joseph@codesourcery.com>
24
25 PR c/32187
26 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
27 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
28 (RID_FLOAT128X): New enum rid values.
29 (CASE_RID_FLOATN_NX): New macro.
30 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
31 keywords.
32 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
33 corresponding complex types.
34 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
35 _FloatNx and corresponding complex types.
36 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
37 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
38 and _FloatNx types for the widest type for determining
39 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
40 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
41 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
42 and _FloatNx types.
43 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
44 constants.
45 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
46 _FloatNx types.
47
cc015f3a
DM
482016-08-18 David Malcolm <dmalcolm@redhat.com>
49
50 * c-opts.c (c_diagnostic_finalizer): Update for change to
51 diagnostic_show_locus.
52
cb18fd07
DM
532016-08-18 David Malcolm <dmalcolm@redhat.com>
54
55 * c-common.c: Include "spellcheck.h".
56 (cb_get_suggestion): New function.
57 * c-common.h (cb_get_suggestion): New decl.
58 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
59 cb_get_suggestion.
60
a76989dc
MP
612016-08-18 Marek Polacek <polacek@redhat.com>
62
63 PR c/71514
64 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
65 and pointer-to-VLA.
66
65e736c0
DM
672016-08-16 David Malcolm <dmalcolm@redhat.com>
68
69 PR c/72857
70 * c-common.c (substring_loc::get_range): Rename to...
71 (substring_loc::get_location): ...this, converting param from a
72 source_range * to a location_t *. Call
73 get_source_location_for_substring rather than
74 get_source_range_for_substring, and pass in m_caret_idx.
75 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
76 (substring_loc::get_range): Replace with...
77 (substring_loc::get_location): ...this.
78 (substring_loc::set_caret_index): New method.
79 (substring_loc): Add field m_caret_idx.
80 * c-format.c (format_warning_va): Update for above changes.
81 Rename local "substring_loc" to "fmt_substring_loc" to avoid
82 clashing with type name.
83 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
84 (check_argument_type): Likewise.
85 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
86 Use a copy when emitting warnings, setting the caret index from TYPE.
87
7e1dde14
EB
882016-08-16 Eric Botcazou <ebotcazou@adacore.com>
89 Arnaud Charlet <charlet@adacore.com>
90
91 * c-ada-spec.c (dump_number): New function.
92 (handle_escape_character): Likewise.
93 (print_ada_macros): Add handling of constant integers and strings.
94
191816a3
MP
952016-08-12 Marek Polacek <polacek@redhat.com>
96
97 PR c/7652
98 * c-common.c (scalar_to_vector): Adjust fall through comment.
99 * c-opts.c (c_common_handle_option): Likewise.
100 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
101 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
102 fall through comment.
103 * cilk.c (extract_free_variables): Add FALLTHRU.
104
452df4a4
JM
1052016-08-10 Jason Merrill <jason@redhat.com>
106
107 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
108
f3365c12
JM
1092016-08-09 Jason Merrill <jason@redhat.com>
110
111 * c-common.c (c_common_attribute_table): vector_size affects type
112 identity.
113
f0bc3323
MP
1142016-08-09 Marek Polacek <polacek@redhat.com>
115
116 PR c/7652
117 * c-ada-spec.c (dump_generic_ada_node): Add return.
118
98e5a19a
JM
1192016-08-09 Jason Merrill <jason@redhat.com>
120
121 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
122 C++17 constexpr lambdas.
123
895aa8e1
DM
1242016-08-08 David Malcolm <dmalcolm@redhat.com>
125
126 PR c/64955
127 * c-common.h (selftest::c_format_c_tests): New declaration.
128 (selftest::run_c_tests): New declaration.
129 * c-format.c: Include "selftest.h.
130 (format_warning_va): Add param "corrected_substring" and use
131 it to add a replacement fix-it hint.
132 (format_warning_at_substring): Likewise.
133 (format_warning_at_char): Update for new param of
134 format_warning_va.
135 (argument_parser::check_argument_type): Pass "fki" to
136 check_format_types.
137 (check_format_types): Add param "fki" and pass it to
138 format_type_warning.
139 (deref_n_times): New function.
140 (get_modifier_for_format_len): New function.
141 (selftest::test_get_modifier_for_format_len): New function.
142 (get_format_for_type): New function.
143 (format_type_warning): Add param "fki" and use it to attempt
144 to provide hints for argument types when calling
145 format_warning_at_substring.
146 (selftest::get_info): New function.
147 (selftest::assert_format_for_type_streq): New function.
148 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
149 (selftest::test_get_format_for_type_printf): New function.
150 (selftest::test_get_format_for_type_scanf): New function.
151 (selftest::c_format_c_tests): New function.
152
e52ed3fe
DM
1532016-08-08 David Malcolm <dmalcolm@redhat.com>
154
155 PR c/52952
156 * c-format.c: Include "diagnostic.h".
157 (location_column_from_byte_offset): Delete.
158 (location_from_offset): Delete.
159 (format_warning_va): New function.
160 (format_warning_at_substring): New function.
161 (format_warning_at_char): New function.
162 (check_format_arg): Capture location of format_tree and pass to
163 check_format_info_main.
164 (argument_parser): Add fields "start_of_this_format" and
165 "format_string_cst".
166 (flag_chars_t::validate): Add param "format_string_cst". Convert
167 warning_at call using location_from_offset to call to
168 format_warning_at_char.
169 (argument_parser::argument_parser): Add param "format_string_cst_"
170 and use use it to initialize field "format_string_cst".
171 Initialize new field "start_of_this_format".
172 (argument_parser::read_format_flags): Convert warning_at call
173 using location_from_offset to a call to format_warning_at_char.
174 (argument_parser::read_any_format_left_precision): Likewise.
175 (argument_parser::read_any_format_precision): Likewise.
176 (argument_parser::read_any_other_modifier): Likewise.
177 (argument_parser::find_format_char_info): Likewise, in three places.
178 (argument_parser::parse_any_scan_set): Likewise, in one place.
179 (argument_parser::handle_conversions): Likewise, in two places.
180 (argument_parser::check_argument_type): Add param "fmt_param_loc"
181 and use it to make a substring_loc. Pass the latter to
182 check_format_types.
183 (check_format_info_main): Add params "fmt_param_loc" and
184 "format_string_cst". Convert warning_at calls using
185 location_from_offset to calls to format_warning_at_char. Pass the
186 new params to the arg_parser ctor. Pass "format_string_cst" to
187 flag_chars.validate. Pass "fmt_param_loc" to
188 arg_parser.check_argument_type.
189 (check_format_types): Convert first param from a location_t
190 to a const substring_loc & and rename to "fmt_loc". Attempt
191 to extract the range of the relevant parameter and pass it
192 to format_type_warning.
193 (format_type_warning): Convert first param from a location_t
194 to a const substring_loc & and rename to "fmt_loc". Add
195 params "param_range" and "type". Replace calls to warning_at
196 with calls to format_warning_at_substring.
197
1c4d457e
DM
1982016-08-08 David Malcolm <dmalcolm@redhat.com>
199
200 * c-format.c (class flag_chars_t): New class.
201 (struct length_modifier): New struct.
202 (class argument_parser): New class.
203 (flag_chars_t::flag_chars_t): New ctor.
204 (flag_chars_t::has_char_p): New method.
205 (flag_chars_t::add_char): New method.
206 (flag_chars_t::validate): New method.
207 (flag_chars_t::get_alloc_flag): New method.
208 (flag_chars_t::assignment_suppression_p): New method.
209 (argument_parser::argument_parser): New ctor.
210 (argument_parser::read_any_dollar): New method.
211 (argument_parser::read_format_flags): New method.
212 (argument_parser::read_any_format_width): New method.
213 (argument_parser::read_any_format_left_precision): New method.
214 (argument_parser::read_any_format_precision): New method.
215 (argument_parser::handle_alloc_chars): New method.
216 (argument_parser::read_any_length_modifier): New method.
217 (argument_parser::read_any_other_modifier): New method.
218 (argument_parser::find_format_char_info): New method.
219 (argument_parser::validate_flag_pairs): New method.
220 (argument_parser::give_y2k_warnings): New method.
221 (argument_parser::parse_any_scan_set): New method.
222 (argument_parser::handle_conversions): New method.
223 (argument_parser::check_argument_type): New method.
224 (check_format_info_main): Introduce classes argument_parser
225 and flag_chars_t, moving the code within the loop into methods
226 of these classes. Make various locals "const".
227
88fa5555
DM
2282016-08-05 David Malcolm <dmalcolm@redhat.com>
229
230 * c-common.c: Include "substring-locations.h".
231 (get_cpp_ttype_from_string_type): New function.
232 (g_string_concat_db): New global.
233 (substring_loc::get_range): New method.
234 * c-common.h (g_string_concat_db): New declaration.
235 (class substring_loc): New class.
236 * c-lex.c (lex_string): When concatenating strings, capture the
237 locations of all tokens using a new obstack, and record the
238 concatenation locations within g_string_concat_db.
239 * c-opts.c (c_common_init_options): Construct g_string_concat_db
240 on the ggc-heap.
241
78169471
MP
2422016-07-29 Marek Polacek <polacek@redhat.com>
243
638fc14f
MP
244 PR c/71926
245 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
246 parentheses warning.
247
78169471
MP
248 PR c/71574
249 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
250
1225d6b1
ML
2512016-07-28 Martin Liska <mliska@suse.cz>
252
253 PR gcov-profile/68025
254 * c-common.c (handle_no_profile_instrument_function_attribute):
255
ec1e2a40
BE
2562016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
257
258 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
259 BITS_PER_UNIT_LOG.
260
5ec2cd9f
JM
2612016-07-25 Jason Merrill <jason@redhat.com>
262
263 PR c++/65970
264 * c.opt (fconstexpr-loop-limit): New.
265
2e6b45af
MS
2662016-07-22 Martin Sebor <msebor@redhat.com>
267
268 PR c++/71675
269 * c-common.c (resolve_overloaded_builtin): Avoid converting
270 __atomic_compare_exchange_n return type to that of what its
271 first argument points to.
272
e3fe09c1
UB
2732016-07-22 Uros Bizjak <ubizjak@gmail.com>
274
275 * c-common.c: Use HOST_WIDE_INT_M1U instead of
276 ~(unsigned HOST_WIDE_INT) 0.
277
bc91c436
ML
2782016-07-22 Martin Liska <mliska@suse.cz>
279
280 PR gcov-profile/69028
281 PR gcov-profile/62047
282 * cilk.c (create_cilk_helper_decl): Set location of a new decl
283 to the current_function_decl.
284
451dcc66
JM
2852016-07-21 Jason Merrill <jason@redhat.com>
286
287 PR c++/65168
288 * c-common.c (c_common_truthvalue_conversion): Check
289 c_inhibit_evaluation_warnings for warning about address of
290 reference.
291
de6a69ee
DM
2922016-07-20 David Malcolm <dmalcolm@redhat.com>
293
294 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
295 const char *.
296
d022c55a
JM
2972016-07-15 Jason Merrill <jason@redhat.com>
298
299 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
300
ddbbcb19
JJ
3012016-07-15 Jakub Jelinek <jakub@redhat.com>
302
303 PR c/71858
304 * c-common.h (enum lookup_name_fuzzy_kind): Add
305 FUZZY_LOOKUP_FUNCTION_NAME.
306
d0cf395a
JM
3072016-07-08 Jason Merrill <jason@redhat.com>
308
309 P0145: Refining Expression Order for C++.
310 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
311 * c-opts.c: Adjust.
312
98d44e93
MT
3132016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
314
315 PR c++/71214
316 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
317
f9d8d994
TS
3182016-06-29 Thomas Schwinge <thomas@codesourcery.com>
319
320 * c-pragma.h (enum pragma_kind): Rename
321 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
322 users.
323
4aa83879
RB
3242016-06-29 Richard Biener <rguenther@suse.de>
325
326 PR middle-end/71002
327 * c-common.c (c_common_get_alias_set): Remove union type punning case.
328
a25bd9e6
JM
3292016-06-24 Jason Merrill <jason@redhat.com>
330
331 P0145R2: Refining Expression Order for C++.
332 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
333 MODIFY_EXPR.
334
a86451b9
JJ
3352016-06-24 Jakub Jelinek <jakub@redhat.com>
336
337 * c-common.c (check_builtin_function_arguments): Require last
338 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
339 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
340 if the last argument is pointer to enumerated or boolean type.
341
1a4f11c8
DM
3422016-06-22 David Malcolm <dmalcolm@redhat.com>
343
344 PR c/70339
345 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
346 (lookup_name_fuzzy): New prototype.
347
fe55692c
JDA
3482016-06-21 John David Anglin <danglin@gcc.gnu.org>
349
350 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
351
4eb24e01
JM
3522016-06-14 Jason Merrill <jason@redhat.com>
353
354 P0145R2: Refining Expression Order for C++.
355 * c.opt (fargs-in-order): New.
356 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
357
ef7cf206
JJ
3582016-06-13 Jakub Jelinek <jakub@redhat.com>
359
0dda258b
JJ
360 PR sanitizer/71498
361 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
362 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
363
ef7cf206
JJ
364 PR preprocessor/71183
365 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
366 to cb_get_source_date_epoch.
367
50b15873
JJ
3682016-06-10 Jakub Jelinek <jakub@redhat.com>
369
370 PR c/68657
371 * c.opt (Wpsabi): Add Warning flag.
372
4d926e34
MS
3732016-06-10 Martin Sebor <msebor@redhat.com>
374
375 PR c/71392
376 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
377 the nonnull attribute in type-generic builtins.
378
e01b4e16
MS
3792016-06-09 Martin Sebor <msebor@redhat.com>
380
381 PR c/70883
382 * c-common.c (builtin_function_validate_nargs): Make text of error
383 message consistent with others like it.
384
44a845ca
MS
3852016-06-08 Martin Sebor <msebor@redhat.com>
386 Jakub Jelinek <jakub@redhat.com>
387
388 PR c++/70507
389 PR c/68120
390 * c-common.c (check_builtin_function_arguments): Handle
391 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
392
a80a7051
RB
3932016-06-08 Richard Biener <rguenther@suse.de>
394
395 * c-common.c (parse_optimize_options): Improve diagnostic messages.
396
bfd67b47
RB
3972016-06-07 Richard Biener <rguenther@suse.de>
398
399 PR c/61564
400 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
401 options and warn about others.
402
15c98b2e
ES
4032016-06-01 Eduard Sanou <dhole@openmailbox.org>
404
405 * c-common.c (get_source_date_epoch): Rename to
406 cb_get_source_date_epoch.
407 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
408 message when the parsing fails. Use error_at instead of fatal_error.
409 * c-common.h (get_source_date_epoch): Rename to
410 cb_get_source_date_epoch.
411 * c-common.h (cb_get_source_date_epoch): Prototype.
412 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
413 * c-common.h (c_omp_region_type): Remove trailing comma.
414 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
415 * c-lex.c (c_lex_with_flags): Remove initialization of
416 pfile->source_date_epoch.
417
00631022
JJ
4182016-05-30 Jakub Jelinek <jakub@redhat.com>
419
420 PR c++/71349
421 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
422 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
423 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
424 instead of C_OMP_CLAUSE_SPLIT_FOR.
425
f17a223d
RB
4262016-05-24 Richard Biener <rguenther@suse.de>
427
428 PR middle-end/70434
429 PR c/69504
430 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
431 (convert_vector_to_array_for_subscript): ... this.
432 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
433 VIEW_CONVERT_EXPR to an array type. Rename to ...
434 (convert_vector_to_array_for_subscript): ... this.
435
4f2e1536
MP
4362016-05-12 Marek Polacek <polacek@redhat.com>
437
438 PR c/70756
439 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
440 size_in_bytes and pass LOC to it.
441
d6e83a8d
MM
4422016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
443
444 PR c/43651
445 * c.opt (Wduplicate-decl-specifier): New option.
446
5c3a10fb
MP
4472016-05-11 Marek Polacek <polacek@redhat.com>
448
449 PR c++/71024
450 * c-common.c (diagnose_mismatched_attributes): New function.
451 * c-common.h (diagnose_mismatched_attributes): Declare.
452
deef7113
MP
4532016-05-04 Marek Polacek <polacek@redhat.com>
454
455 * c.opt (Wdangling-else): New option.
456
79ce98bc
MP
4572016-05-03 Marek Polacek <polacek@redhat.com>
458
459 PR c/70859
460 * c-common.c (builtin_function_validate_nargs): Add location
461 parameter. Use it.
462 (check_builtin_function_arguments): Add location and arguments
463 parameters. Use them.
464 * c-common.h (check_builtin_function_arguments): Update declaration.
465
381cdae4
RB
4662016-05-03 Richard Biener <rguenther@suse.de>
467
468 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
469 allow call args to gimplify to SSA names.
470
1d793c34
MP
4712016-05-03 Marek Polacek <polacek@redhat.com>
472
473 * c-common.h (enum c_omp_region_type): Remove stray comma.
474
77886428
CP
4752016-05-02 Cesar Philippidis <cesar@codesourcery.com>
476
477 * c-common.h (enum c_omp_region_type): Define.
478
697e0b28
RS
4792016-05-02 Richard Sandiford <richard.sandiford@arm.com>
480
481 * c-common.c (shorten_compare): Use wi::to_wide.
482
e7ff0319
CP
4832016-04-29 Cesar Philippidis <cesar@codesourcery.com>
484
485 PR middle-end/70626
486 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
487 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
488 reduction clauses in acc parallel loops.
489
2fff3db8
MP
4902016-04-29 Marek Polacek <polacek@redhat.com>
491
492 PR c/70852
493 * c-common.c (warn_for_memset): Check domain before accessing it.
494
509063eb
DV
4952016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
496
497 PR/69089
498 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
499 "aligned" attribute.
500
b632761d
JM
5012016-04-28 Jason Merrill <jason@redhat.com>
502
503 * c-lex.c (c_common_has_attribute): Handle nodiscard.
504
174f6622
ES
5052016-04-28 Eduard Sanou <dhole@openmailbox.org>
506 Matthias Klose <doko@debian.org>
507
508 * c-common.c (get_source_date_epoch): New function, gets the environment
509 variable SOURCE_DATE_EPOCH and parses it as long long with error
510 handling.
511 * c-common.h (get_source_date_epoch): Prototype.
512 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
513
6bc2bb18
RB
5142015-04-27 Ryan Burn <contact@rnburn.com>
515
516 PR c++/69024
517 PR c++/68997
518 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
519 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
520 external linkage.
521 (cilk_detect_and_unwrap): Corresponding changes.
522 (extract_free_variables): Don't extract free variables from
523 AGGR_INIT_EXPR slot.
524 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
525 (cilk_recognize_spawn): Likewise.
526
c1e1f433
BS
5272016-04-27 Bernd Schmidt <bschmidt@redhat.com>
528
529 * c.opt (Wmemset-elt-size): New option.
530 * c-common.c (warn_for_memset): New function.
531 * c-common.h (warn_for_memset): Declare.
532
d067e05f
JM
5332016-04-25 Jason Merrill <jason@redhat.com>
534
535 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
536 No longer static.
537 * c-common.h: Declare it.
538 * c-lex.c (c_common_has_attribute): Add maybe_unused.
539
9aa36ae5
JM
5402016-04-22 Jason Merrill <jason@redhat.com>
541
542 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
543
477d4906
IV
5442016-04-20 Ilya Verbin <ilya.verbin@intel.com>
545
546 PR c++/69363
547 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
548 * c-common.h (c_finish_cilk_clauses): Remove declaration.
549
fe37c7af
MM
5502016-04-18 Michael Matz <matz@suse.de>
551
552 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
553 and SET_DECL_ALIGN.
554
23f2660f
EB
5552016-04-17 Eric Botcazou <ebotcazou@adacore.com>
556
557 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
558 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
559 to incomplete types.
560 (dump_nested_type): Remove redundant tests and tidy up.
561 (print_ada_declaration): Also set TREE_VISITED on the declaration of
562 a type which is the typedef of an original type.
563
1e77281b
MP
5642016-04-15 Marek Polacek <polacek@redhat.com>
565
566 PR c/70651
567 * c-common.c (build_va_arg): Change two asserts into errors and return
568 error_mark_node.
569
b3a77f21
MP
5702016-04-13 Marek Polacek <polacek@redhat.com>
571
572 PR c++/70639
573 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
574 for switch statements, too.
575
322b8466
JM
5762016-03-28 Jason Merrill <jason@redhat.com>
577
578 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
579
fbdb6baf
MP
5802016-03-23 Marek Polacek <polacek@redhat.com>
581
582 PR c++/69884
583 * c.opt (Wignored-attributes): New option.
584
5c240f4d
DM
5852016-03-22 David Malcolm <dmalcolm@redhat.com>
586
587 PR c/69993
588 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
589 diagnostic text, reversing the order of the warning and note so
590 that they appear in source order.
591
14ba7b28
MP
5922016-03-17 Marek Polacek <polacek@redhat.com>
593
594 PR c/69407
595 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
596 operations.
597
08a1cadc
JM
5982016-03-14 Jason Merrill <jason@redhat.com>
599
2aaeea19
JM
600 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
601
08a1cadc
JM
602 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
603
c06d25bb
RB
6042016-03-09 Richard Biener <rguenther@suse.de>
605
606 PR c/70143
607 * c-common.c (strict_aliasing_warning): Add back
608 alias_sets_conflict_p check.
609
80aac5c8
JM
6102016-03-08 Jason Merrill <jason@redhat.com>
611
612 * c-opts.c (set_std_cxx1z): Don't enable concepts.
613
64b23c13
DM
6142016-03-04 David Malcolm <dmalcolm@redhat.com>
615
616 PR c/68187
617 * c-indentation.c (get_visual_column): Move code to determine next
618 tab stop to...
619 (next_tab_stop): ...this new function.
620 (line_contains_hash_if): Delete function.
621 (detect_preprocessor_logic): Delete function.
622 (get_first_nws_vis_column): New function.
623 (detect_intervening_unindent): New function.
624 (should_warn_for_misleading_indentation): Replace call to
625 detect_preprocessor_logic with a call to
626 detect_intervening_unindent.
627
729526f5
DM
6282016-03-04 David Malcolm <dmalcolm@redhat.com>
629
630 PR c/68187
631 * c-indentation.c (should_warn_for_misleading_indentation): When
632 suppressing warnings about cases where the guard and body are on
633 the same column, only use the first non-whitespace column in place
634 of the guard token column when dealing with "else" clauses.
635 When rejecting aligned BODY and NEXT, loosen the requirement
636 from equality with the first non-whitespace of guard to simply
637 that they not be indented relative to it.
638
e9a35493
RB
6392016-03-04 Richard Biener <rguenther@suse.de>
640
641 PR c++/70054
642 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
643 instead of alias_sets_conflict_p.
644
1be56bc5
MP
6452016-03-01 Marek Polacek <polacek@redhat.com>
646
647 PR c++/69795
648 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
649 any DECL.
650
35886f0b
MS
6512016-02-22 Martin Sebor <msebor@redhat.com>
652
653 PR middle-end/69780
654 * c-common.c (check_builtin_function_arguments): Validate and
655 reject invalid arguments to __builtin_alloca_with_align.
656
4246c8da
MW
6572016-02-20 Mark Wielaard <mjw@redhat.com>
658
659 PR c/28901
660 * c.opt (Wunused-const-variable): Turn into Alias for...
661 (Wunused-const-variable=): New option.
662
268be88c
BE
6632016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
664
665 PR c++/69865
666 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
667 here...
668 (c_common_init_options): ...to here.
669 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
670
871b3f47
JJ
6712016-02-19 Jakub Jelinek <jakub@redhat.com>
672
673 PR c++/69826
674 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
675 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
676 flag_preprocess_only.
677
bf14eba2
JJ
6782016-02-16 Jakub Jelinek <jakub@redhat.com>
679
680 PR c/69835
681 * c.opt (Wnonnull-compare): Enable for -Wall.
682
ba6b3795
JJ
6832016-02-15 Jakub Jelinek <jakub@redhat.com>
684
685 PR c++/69797
686 * c-common.c (sync_resolve_size): Diagnose too few arguments
687 even when params is non-NULL empty vector.
688
a011cd92
BS
6892016-02-08 Bernd Schmidt <bschmidt@redhat.com>
690
691 PR target/60410
692 * c.opt (fshort-double): Remove.
693
46cb9332
MS
6942016-02-05 Martin Sebor <msebor@redhat.com>
695
696 PR c++/69662
697 * c.opt (Warning options): Update -Wplacement-new to take
698 an optional argument.
699
e1b81f2b
JJ
7002016-02-01 Jakub Jelinek <jakub@redhat.com>
701
702 PR preprocessor/69543
703 PR c/69558
704 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
705 instead of loc to control_warning_option.
706
b6adbb9f
NS
7072016-02-01 Nathan Sidwell <nathan@codesourcery.com>
708
709 * c.opt (fopenacc-dim=): New option.
710
5d70666e
RB
7112016-01-27 Ryan Burn <contact@rnburn.com>
712
713 PR cilkplus/69267
714 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
715 gimplify_arg. Removed superfluous post_p argument.
716 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
717 superfluous post_p argument.
718 * c-gimplify.c (c_gimplify_expr): Likewise.
719
01e1dea3
DM
7202016-01-26 David Malcolm <dmalcolm@redhat.com>
721
722 PR other/69006
723 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
724 pp_newline_and_flush with pp_flush.
725
9f04a53e
MS
7262016-01-20 Martin Sebor <msebor@redhat.com>
727
728 PR c/69405
729 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
730 an incompatible argument when the argument isn't a valid tree node.
731
7f26f7df
JM
7322016-01-18 Jason Merrill <jason@redhat.com>
733
734 PR c++/68767
735 * c-common.c (check_function_arguments_recurse): Fold the whole
736 COND_EXPR, not just the condition.
737
f62bf092
TV
7382016-01-18 Tom de Vries <tom@codesourcery.com>
739
740 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
741 classify as loop clause.
742
e0a575ff
JJ
7432016-01-15 Jakub Jelinek <jakub@redhat.com>
744
745 PR bootstrap/68271
746 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
747 C++ FE no longer has limit on number of pragmas.
748
7492015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
750
751 PR c++/69048
752 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 753 to add missing cleanup point.
b6e3db06 754
c7df95d8
DM
7552016-01-14 David Malcolm <dmalcolm@redhat.com>
756
757 PR c++/68819
758 * c-indentation.c (get_visual_column): Add location_t param.
759 Handle the column number being zero by effectively disabling the
760 warning, with an "inform".
761 (should_warn_for_misleading_indentation): Add location_t argument
762 for all uses of get_visual_column.
763
21efdd80
PP
7642016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
765
766 PR c++/69029
767 * c-indentation.c (should_warn_for_misleading_indentation):
768 Don't warn about do-while statements.
769
7a127fa7
MS
7702016-01-07 Martin Sebor <msebor@redhat.com>
771
772 PR c/68966
773 * c-common.c (sync_resolve_size): Reject first argument when it's
774 a pointer to _Bool.
775
c589e975
DM
7762016-01-05 David Malcolm <dmalcolm@redhat.com>
777
778 PR c/69122
779 * c-indentation.c (get_visual_column): Remove default argument.
780 (should_warn_for_misleading_indentation): For the multiline case,
781 update call to get_visual_column for next_stmt_exploc so that it
782 captures the location of the first non-whitespace character in the
783 relevant line. Don't issue warnings if there is non-whitespace
784 before the next statement.
785
818ab71a
JJ
7862016-01-04 Jakub Jelinek <jakub@redhat.com>
787
788 Update copyright years.
789
745e411d
DM
7902015-12-21 David Malcolm <dmalcolm@redhat.com>
791
792 * c-common.c (binary_op_error): Convert first param from
793 location_t to rich_location * and use it when emitting an error.
794 * c-common.h (binary_op_error): Convert first param from
795 location_t to rich_location *.
796
de67c4c3
DM
7972015-12-16 David Malcolm <dmalcolm@redhat.com>
798
799 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
800 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
801
4a38b02b
IV
8022015-12-15 Ilya Verbin <ilya.verbin@intel.com>
803
804 * c-common.c (c_common_attribute_table): Handle "omp declare target
805 link" attribute.
806
54d62f51
JJ
8072015-12-14 Jakub Jelinek <jakub@redhat.com>
808
809 PR c/68833
810 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
811
8d4227c8
TB
8122014-12-12 Tobias Burnus <burnus@net-b.de>
813
814 PR fortran/68815
815 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
816 specifiers (%d, %i,%u and %c).
817
f6069ccc
DM
8182015-12-10 David Malcolm <dmalcolm@redhat.com>
819
820 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
821
63bbf46d
JJ
8222015-12-08 Jakub Jelinek <jakub@redhat.com>
823
824 PR c/48088
825 PR c/68657
826 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
827 * c-pragma.c (handle_pragma_diagnostic): Adjust
828 control_warning_option caller.
829
f79520bb
DM
8302015-12-07 David Malcolm <dmalcolm@redhat.com>
831
832 * c-common.c (c_cpp_error): Update for change to
833 rich_location::set_range.
834
b3d5bc62
JJ
8352015-12-04 Paolo Bonzini <bonzini@gnu.org>
836
837 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
838 shifting 1 out of the sign bit.
839
8402015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
841
842 * c-common.c (c_common_attribute_table[]): Update max arguments
843 count for "simd" attribute.
844 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
845
6eb4a537
JJ
8462015-12-03 Jakub Jelinek <jakub@redhat.com>
847
848 PR preprocessor/57580
849 * c-ppoutput.c (print): Change printed field to bool.
850 Move src_file last for smaller padding.
851 (init_pp_output): Set print.printed to false instead of 0.
852 (scan_translation_unit): Fix up formatting. Set print.printed
853 to true after printing something other than newline.
854 (scan_translation_unit_trad): Set print.printed to true instead of 1.
855 (maybe_print_line_1): Set print.printed to false instead of 0.
856 (print_line_1): Likewise.
857 (do_line_change): Set print.printed to true instead of 1.
858 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
859 dump_macro): Set print.printed to false after printing newline.
860
4250754e
JM
8612015-12-02 Jason Merrill <jason@redhat.com>
862
f479b43d
JM
863 * c-common.c (fold_for_warn): New.
864 (warn_logical_operator, warn_tautological_cmp)
865 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
866
4250754e
JM
867 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
868 (c_fully_fold_internal, decl_constant_value_for_optimization):
869 Move to c/c-fold.c.
870 * c-common.h: Don't declare decl_constant_value_for_optimization.
871
e9e32ee6
JM
8722015-12-02 Joseph Myers <joseph@codesourcery.com>
873
874 PR c/68162
875 * c-common.h (c_build_qualified_type): Add extra default
876 arguments.
877
37d5ad46
JB
8782015-12-01 Julian Brown <julian@codesourcery.com>
879 Cesar Philippidis <cesar@codesourcery.com>
880 James Norris <James_Norris@mentor.com>
881
882 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
883 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
884 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
885
f07862c7
EB
8862015-11-30 Eric Botcazou <ebotcazou@adacore.com>
887
888 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
889 (decl_sloc_common): Delete and move bulk of processing to...
890 (decl_sloc): ...here.
891 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
892 (dump_ada_double_name): Remove S parameter and compute the suffix.
893 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
894 element type and deal with an anonymous one.
895 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
896 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
897 and remove reference to QUAL_UNION_TYPE.
898 (dump_nested_types): Make 2 passes on the fields and move bulk to...
899 (dump_nested_type): ...here. New function extracted from above.
900 Generate a full declaration for anonymous element type of arrays.
901 (print_ada_declaration): Really skip anonymous declarations. Remove
902 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
903 Clean up processing of declarations of array types and objects.
904 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
905 Remove obsolete code and tidy up.
906
75c8aac3
JH
9072015-11-29 Jan Hubicka <hubicka@ucw.cz>
908
909 PR c/67581
910 * c-common.c (handle_transparent_union_attribute): Update
911 also type variants.
912
b58d3df2
ML
9132015-11-27 Martin Liska <mliska@suse.cz>
914
915 PR c++/68312
916 * array-notation-common.c (cilkplus_extract_an_triplets):
917 Release vector of vectors.
918 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
919
89a01fcf
EB
9202015-11-26 Eric Botcazou <ebotcazou@adacore.com>
921
922 PR c++/68527
923 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
924 (print_ada_struct_decl): Likewise.
925
cc5c5226
IZ
9262015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
927
928 PR c++/68001
929 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
930 * cilk.c (recognize_spawn): Determine location in a more precise
931 way.
932
269adb9d
JM
9332015-11-19 Jason Merrill <jason@redhat.com>
934
935 * c-common.c (shorten_compare): But look through macros from
936 system headers.
937
d0eccfcd
JM
9382015-11-18 Jason Merrill <jason@redhat.com>
939
940 * c-common.c (shorten_compare): Don't -Wtype-limits if the
941 non-constant operand comes from a macro.
942
3e44547c
JM
9432015-11-17 Jason Merrill <jason@redhat.com>
944
945 PR bootstrap/68346
946 * c-common.c (warn_tautological_cmp): Fold before checking for
947 constants.
948
0f62c7a0
MP
9492015-11-16 Marek Polacek <polacek@redhat.com>
950
951 PR c++/68362
952 * c-common.c (check_case_bounds): Fold low and high cases.
953
a868811e
MP
9542015-11-16 Marek Polacek <polacek@redhat.com>
955
956 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
957 * c-common.c (c_common_get_alias_set): Likewise.
958 (handle_visibility_attribute): Likewise.
959
fff77217
KY
9602015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
961
962 * c-common.c (handle_simd_attribute): New.
963 (struct attribute_spec): Add entry for "simd".
964 (handle_simd_attribute): New.
965
269e63b7
KT
9662015-11-13 Kai Tietz <ktietz70@googlemail.com>
967
968 * c-lex.c (interpret_float): Use fold_convert.
969
ebedc9a3
DM
9702015-11-13 David Malcolm <dmalcolm@redhat.com>
971
972 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
973 and store it on the result.
974 * c-opts.c (c_common_init_options): Set
975 global_dc->colorize_source_p.
976
6e232ba4
JN
9772015-11-12 James Norris <jnorris@codesourcery.com>
978 Joseph Myers <joseph@codesourcery.com>
979
980 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
981 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
982 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
983 PRAGMA_OACC_CLAUSE_LINK.
984
e78bede6
MP
9852015-11-11 Marek Polacek <polacek@redhat.com>
986
987 PR c/68107
988 PR c++/68266
989 * c-common.c (valid_array_size_p): New function.
990 * c-common.h (valid_array_size_p): Declare.
991
4ac93c7c
DH
9922015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
993
994 PR bootstrap/68271
995 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
996
69f293c9
AM
9972015-11-11 Andrew MacLeod <amacleod@redhat.com>
998
999 * array-notation-common.c: Remove unused header files.
1000 * c-ada-spec.c: Likewise.
1001 * c-cilkplus.c: Likewise.
1002 * c-common.c: Likewise.
1003 * c-cppbuiltin.c: Likewise.
1004 * c-dump.c: Likewise.
1005 * c-format.c: Likewise.
1006 * c-gimplify.c: Likewise.
1007 * c-indentation.c: Likewise.
1008 * c-lex.c: Likewise.
1009 * c-omp.c: Likewise.
1010 * c-opts.c: Likewise.
1011 * c-pch.c: Likewise.
1012 * c-ppoutput.c: Likewise.
1013 * c-pragma.c: Likewise.
1014 * c-pretty-print.c: Likewise.
1015 * c-semantics.c: Likewise.
1016 * c-ubsan.c: Likewise.
1017 * cilk.c: Likewise.
1018 * stub-objc.c: Likewise.
1019
3a40d81d
NS
10202015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1021 Cesar Philippidis <cesar@codesourcery.com>
1022 James Norris <jnorris@codesourcery.com>
1023 Julian Brown <julian@codesourcery.com>
1024 Nathan Sidwell <nathan@codesourcery.com>
1025
1026 * c-pragma.c (oacc_pragmas): Add "routine".
1027 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1028
ee45a32d
EB
10292015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1030
1031 * c-common.c (c_common_attributes): Add scalar_storage_order.
1032 (handle_scalar_storage_order_attribute): New function.
1033 * c-pragma.c (global_sso): New variable.
1034 (maybe_apply_pragma_scalar_storage_order): New function.
1035 (handle_pragma_scalar_storage_order): Likewise.
1036 (init_pragma): Register scalar_storage_order.
1037 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1038 * c.opt (Wscalar-storage-order): New warning.
1039 (fsso-struct=): New option.
1040
eb11eb15
MS
10412015-11-08 Martin Sebor <msebor@redhat.com>
1042
1043 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1044
0aad0198
RS
10452015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1046
1047 * c-common.c: Don't undef DEF_BUILTIN.
1048
8a645150
DM
10492015-11-06 David Malcolm <dmalcolm@redhat.com>
1050
1051 * c-common.c (c_cpp_error): Convert parameter from location_t to
1052 rich_location *. Eliminate the "column_override" parameter and
1053 the call to diagnostic_override_column.
1054 Update the "done_lexing" clause to set range 0
1055 on the rich_location, rather than overwriting a location_t.
1056 * c-common.h (c_cpp_error): Convert parameter from location_t to
1057 rich_location *. Eliminate the "column_override" parameter.
1058
7a5e4956
CP
10592015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1060 Thomas Schwinge <thomas@codesourcery.com>
1061 James Norris <jnorris@codesourcery.com>
1062
1063 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1064 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1065 clauses with parallel and kernels and loops.
1066 * c-pragma.h (enum pragma_omp_clause): Add entries for
1067 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1068 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1069 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1070 INDEPENDENT,SEQ}.
1071 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1072
e2f5cc96
MS
10732015-11-05 Martin Sebor <msebor@redhat.com>
1074
1075 PR c++/67942
1076 * c.opt (-Wplacement-new): New option.
1077
e01d41e5
JJ
10782015-11-05 Jakub Jelinek <jakub@redhat.com>
1079
1080 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1081 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1082 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1083 save_expr or create_tmp_var* if TEST is true.
1084 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1085 Don't call add_stmt here.
1086 (struct c_omp_check_loop_iv_data): New type.
1087 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1088 c_omp_check_loop_iv_exprs): New functions.
1089 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1090 distribute.
1091 (c_omp_declare_simd_clauses_to_numbers): Change
1092 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1093 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1094 from numbers to PARM_DECLs.
1095
595278be
MM
10962015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1097
1098 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1099 flag_checking.
1100
c85158de
MS
11012015-11-03 Bernd Schmidt <bschmidt@redhat.com>
1102
1103 PR c++-common/67882
b3d5bc62
JJ
1104 * c-common.h (fold_offsetof_1): Add argument.
1105 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1106 offsetof expressions that reference elements past the end of
1107 an array.
1108
4bf9e5a8
TS
11092015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1110 Chung-Lin Tang <cltang@codesourcery.com>
1111
1112 * c-pragma.c (oacc_pragmas): Add "atomic".
1113 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1114
3b1661a9
ES
11152015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1116
1117 * c-common.c (handle_target_clones_attribute): New.
1118 (c_common_attribute_table): Add handle_target_clones_attribute.
1119 (handle_always_inline_attribute): Add check on target_clones attribute.
1120 (handle_target_attribute): Ditto.
1121
2adfab87
AM
11222015-10-29 Andrew MacLeod <amacleod@redhat.com>
1123
1124 * array-notation-common.c: Reorder #include's and remove duplicates.
1125 * c-ada-spec.c: Likewise.
1126 * c-cilkplus.c: Likewise.
1127 * c-common.c: Likewise.
1128 * c-cppbuiltin.c: Likewise.
1129 * c-dump.c: Likewise.
1130 * c-format.c: Likewise.
1131 * c-gimplify.c: Likewise.
1132 * c-indentation.c: Likewise.
1133 * c-lex.c: Likewise.
1134 * c-omp.c: Likewise.
1135 * c-opts.c: Likewise.
1136 * c-pch.c: Likewise.
1137 * c-ppoutput.c: Likewise.
1138 * c-pragma.c: Likewise.
1139 * c-pretty-print.c: Likewise.
1140 * c-semantics.c: Likewise.
1141 * c-ubsan.c: Likewise.
1142 * cilk.c: Likewise.
1143 * stub-objc.c: Likewise.
1144
d90ec4f2
JM
11452015-10-28 Jason Merrill <jason@redhat.com>
1146
1147 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1148
88bae6f4
TS
11492015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1150 James Norris <jnorris@codesourcery.com>
1151 Cesar Philippidis <cesar@codesourcery.com>
1152
1153 PR c/64765
1154 PR c/64880
1155 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1156 * c-omp.c (c_oacc_split_loop_clauses): New function.
1157
b1726d6c
MS
11582015-10-21 Martin Sebor <msebor@redhat.com>
1159
1160 PR driver/68043
1161 * c.opt: End each sentence that describes an option with a period.
1162
fa60eeb9
MP
11632015-10-20 Marek Polacek <polacek@redhat.com>
1164
1165 * array-notation-common.c (is_cilkplus_vector_p): Define.
1166 * c-common.h (is_cilkplus_vector_p): Declare.
1167
95979049
MP
11682015-10-20 Marek Polacek <polacek@redhat.com>
1169
1170 * c.opt (std=gnu++11): Do not describe as experimental.
1171 (std=gnu++14): Likewise.
1172
2a9fb712
JM
11732015-10-19 Jason Merrill <jason@redhat.com>
1174
1175 * c-cppbuiltin.c (c_cpp_builtins): Define
1176 __cpp_nontype_template_args.
1177
13b380a3
JM
11782015-10-19 Jason Merrill <jason@redhat.com>
1179
1180 * c-cppbuiltin.c (c_cpp_builtins): Define
1181 __cpp_enumerator_attributes, __cpp_fold_expressions,
1182 __cpp_unicode_characters.
1183
d9a6bd32
JJ
11842015-10-13 Jakub Jelinek <jakub@redhat.com>
1185 Aldy Hernandez <aldyh@redhat.com>
1186
1187 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1188 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1189 (c_define_builtins): Likewise.
1190 * c-common.h (enum c_omp_clause_split): Add
1191 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1192 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1193 (c_finish_omp_for): Add ORIG_DECLV argument.
1194 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1195 201511 instead of 201307.
1196 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1197 OMP_CRITICAL_CLAUSES to it.
1198 (c_finish_omp_ordered): Add CLAUSES argument, set
1199 OMP_ORDERED_CLAUSES to it.
1200 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1201 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1202 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1203 constructs and new OpenMP 4.5 clauses. Clear
1204 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1205 verification code.
1206 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1207 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1208 (enum pragma_omp_clause): Add
1209 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1210 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1211
624d31fe
RS
12122015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1213
1214 * c-lex.c (interpret_float): Use real_equal instead of
1215 REAL_VALUES_EQUAL.
1216
b8fd7909
JM
12172015-10-04 Jason Merrill <jason@redhat.com>
1218
1219 Implement N4514, C++ Extensions for Transactional Memory.
1220 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1221 (c_common_attribute_table): Add transaction_safe_dynamic.
1222 transaction_safe now affects type identity.
1223 (handle_tm_attribute): Handle transaction_safe_dynamic.
1224 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1225 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1226 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1227 (D_TRANSMEM): New.
1228 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1229 * c-pretty-print.c (pp_c_attributes_display): Don't print
1230 transaction_safe in C++.
1231
12651878
MP
12322015-10-02 Marek Polacek <polacek@redhat.com>
1233
1234 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1235
3e3b8d63
MP
12362015-10-02 Marek Polacek <polacek@redhat.com>
1237
1238 PR c/64249
1239 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1240 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1241 * c.opt (Wduplicated-cond): New option.
1242
0d1a8f75
JM
12432015-10-01 Joseph Myers <joseph@codesourcery.com>
1244
1245 * c.opt (std=c11): Do not describe as experimental.
1246 (std=gnu11): Likewise.
1247 (std=iso9899:2011): Likewise.
1248
3e32ee19
NS
12492015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1250
1251 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1252 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1253
974348ee
MP
12542015-09-25 Marek Polacek <polacek@redhat.com>
1255
1256 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1257 (ubsan_instrument_shift): Likewise.
1258
15dbc1a6
MP
12592015-09-25 Marek Polacek <polacek@redhat.com>
1260
1261 PR sanitizer/64906
1262 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1263
6b95d7cc
PP
12642015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1265
1266 * c-indentation.c (should_warn_for_misleading_indentation):
1267 Compare next_stmt_vis_column with guard_line_first_nws instead
1268 of with guard_line_vis_column.
1269
c1822f9c
MLI
12702015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1271
1272 PR c/49654
1273 PR c/49655
1274 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1275 options and options not valid for the current language.
1276
d5398058
PP
12772015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1278
1279 * c-indentation.c (should_warn_for_misleading_indentation):
1280 Float out and consolidate the calls to get_visual_column that
1281 are passed guard_exploc as an argument. Compare
1282 next_stmt_vis_column with guard_line_first_nws instead of with
1283 body_line_first_nws.
1284
6b333269
NS
12852015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1286
1287 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1288 Wnamespaces): New C++ warnings.
1289
a75f1574
JM
12902015-09-22 Jason Merrill <jason@redhat.com>
1291
1292 * c-common.h (abi_compat_version_crosses): New.
1293 (warn_abi_version): Declare.
1294 * c-common.c: Define it.
1295 * c-opts.c (c_common_post_options): Handle it.
1296 flag_abi_compat_version defaults to 8.
1297
bdaaa8b7
VV
12982015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1299
1300 Complete the implementation of N4230, Nested namespace definition.
1301 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1302 __cpp_nested_namespace_definitions.
1303
eaa797e8
MLI
13042015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1305
1306 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1307
c4914de6
MLI
13082015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1309
1310 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1311 when warning.
1312 * c-pragma.h (pragma_lex): Add optional loc argument.
1313
fcb87c50
MM
13142015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1315
1316 * c-format.c (check_format_arg): Adjust to use common block size in all
1317 object pools.
1318
31bdd08a
DM
13192015-09-15 David Malcolm <dmalcolm@redhat.com>
1320
1321 * c-format.c (location_from_offset): Update for change in
1322 signature of location_get_source_line.
1323 * c-indentation.c (get_visual_column): Likewise.
1324 (line_contains_hash_if): Likewise.
1325
aa9f4b4c
MP
13262015-09-14 Marek Polacek <polacek@redhat.com>
1327
1328 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1329 setting various warnings.
1330
aa256c4a
MP
13312015-09-14 Marek Polacek <polacek@redhat.com>
1332
1333 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1334 a negative value.
1335
0f876f22
MW
13362015-09-11 Mark Wielaard <mjw@redhat.com>
1337
1338 PR c/28901
1339 * c.opt (Wunused-variable): Option from common.opt.
1340 (Wunused-const-variable): New option.
1341
273aa49e
PC
13422015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1343
1344 PR c++/53184
1345 * c.opt ([Wsubobject-linkage]): Add.
1346
1807ffc1
MS
13472015-09-03 Martin Sebor <msebor@redhat.com>
1348
1349 PR c/66516
1350 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1351 functions.
1352 * c-common.c (reject_gcc_builtin): Define.
1353
38942840
BI
13542015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1355
1356 PR middle-end/60586
1357 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1358 prototype.
1359 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1360 cilk_gimplify_call_params_in_spawned_fn.
1361 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1362 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1363 unwrapping.
1364
c316b5e4
MP
13652015-08-25 Marek Polacek <polacek@redhat.com>
1366
1367 PR middle-end/67330
1368 * c-common.c (handle_weak_attribute): Don't check whether the
1369 visibility can be changed here.
1370
584a7c46
MLI
13712015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1372
1373 * c-lex.c (c_lex_with_flags): Use explicit locations.
1374
a79683d5
TS
13752015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1376
1377 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1378 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1379
61717a45
FXC
13802015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1381
1382 PR middle-end/36757
1383 * c-common.c (check_builtin_function_arguments): Add check
1384 for BUILT_IN_SIGNBIT argument.
1385
329524f5
PC
13862015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1387
1388 PR c++/67160
1389 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1390 in c++1z mode.
1391
4ee55665
MP
13922015-08-17 Marek Polacek <polacek@redhat.com>
1393
1394 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1395 with whitespaces before qualifier names.
1396
b893e375
MP
13972015-08-12 Marek Polacek <polacek@redhat.com>
1398
1399 PR c++/55095
1400 * c-common.c (maybe_warn_shift_overflow): Properly handle
1401 left-shifting 1 into the sign bit.
1402
c2d89095
MLI
14032015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1404
1405 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1406
971e17ff
AS
14072015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1408 Braden Obrzut <admin@maniacsvault.net>
1409 Jason Merrill <jason@redhat.com>
1410
1411 Add C++ Concepts TS support.
1412 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1413 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1414 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1415 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1416 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1417 * c.opt (fconcepts): New.
1418
b3d5bc62
JJ
14192015-08-02 Martin Sebor <msebor@redhat.com>
1420
1421 * c.opt (-Wframe-address): New warning option.
1422
8ebca419
PP
14232015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1424
1425 * c-indentation.c (should_warn_for_misleading_indentation):
1426 Improve heuristics.
1427
1a1e101f
PP
14282015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1429
1430 * c-indentation.c (get_visual_column): Add parameter first_nws,
1431 use it. Update comment documenting the function.
1432 (is_first_nonwhitespace_on_line): Remove.
1433 (should_warn_for_misleading_indentation): Replace usage of
1434 of is_first_nonwhitespace_on_line with get_visual_column.
1435
992118a1
PP
14362015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1437
1438 * c-indentation.h (struct token_indent_info): Define.
1439 (get_token_indent_info): Define.
1440 (warn_for_misleading_information): Declare.
1441 * c-common.h (warn_for_misleading_information): Remove.
1442 * c-identation.c (warn_for_misleading_indentation):
1443 Change declaration to take three token_indent_infos. Adjust
1444 accordingly.
1445 * c-identation.c (should_warn_for_misleading_indentation):
1446 Likewise. Bail out early if the body is a compound statement.
1447 (guard_tinfo_to_string): Define.
1448
e8fa3817
JM
14492015-07-30 Jason Merrill <jason@redhat.com>
1450
1451 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1452 '*' for reference decay.
1453
173864e8
MP
14542015-07-30 Marek Polacek <polacek@redhat.com>
1455
1456 * c-common.c (warn_tautological_cmp): Bail for float types.
1457
f2afe6dd
MP
14582015-07-27 Marek Polacek <polacek@redhat.com>
1459
1460 PR bootstrap/67030
1461 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1462
05b28fd6
MP
14632015-07-27 Marek Polacek <polacek@redhat.com>
1464
1465 PR c++/66555
1466 PR c/54979
1467 * c-common.c (find_array_ref_with_const_idx_r): New function.
1468 (warn_tautological_cmp): New function.
1469 * c-common.h (warn_tautological_cmp): Declare.
1470 * c.opt (Wtautological-compare): New option.
1471
5a5062b8
MP
14722015-07-23 Marek Polacek <polacek@redhat.com>
1473
1474 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1475 (ubsan_instrument_shift): Likewise.
1476
dc891fe7
MP
14772015-07-23 Marek Polacek <polacek@redhat.com>
1478
1479 PR sanitizer/66908
1480 * c-ubsan.c: Include gimplify.h.
1481 (ubsan_instrument_division): Unshare OP0 and OP1.
1482 (ubsan_instrument_shift): Likewise.
1483
451b5e48
MP
14842015-07-20 Marek Polacek <polacek@redhat.com>
1485 Richard Sandiford <richard.sandiford@arm.com>
1486
1487 PR c++/55095
1488 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1489 Use EXPR_LOC_OR_LOC.
1490 (maybe_warn_shift_overflow): New function.
1491 * c-common.h (maybe_warn_shift_overflow): Declare.
1492 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1493 * c.opt (Wshift-overflow): New option.
1494
fb0b2914
ML
14952015-07-16 Martin Liska <mliska@suse.cz>
1496
1497 * c-format.c (static void check_format_info_main): Use
1498 object_allocator instead of pool_allocator.
1499 (check_format_arg): Likewise.
1500 (check_format_info_main): Likewise.
1501
903f5c23
AM
15022015-07-15 Andrew MacLeod <amacleod@redhat.com>
1503
1504 * c-opts.c: Remove multiline #include comment.
1505
026c3cfd
AH
15062015-07-12 Aldy Hernandez <aldyh@redhat.com>
1507
1508 * c-common.c: Fix double word typos.
1509
bb49ee66
EB
15102015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1511
1512 * c-ada-spec.h (cpp_operation): Revert latest change.
1513 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1514 constructors and destructors.
1515
1916bcb5
AM
15162015-07-09 Andrew MacLeod <amacleod@redhat.com>
1517
1518 * c-common.h: Adjust includes for flags.h changes.
1519 * stub-objc.c: Likewise.
026c3cfd 1520
a9dcd529
EB
15212015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1522
1523 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1524 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1525
b03b462f
JJ
15262015-07-08 Jakub Jelinek <jakub@redhat.com>
1527
1528 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1529 are to be removed, return NULL rather than original clauses list.
1530
c7131fb2
AM
15312015-07-07 Andrew MacLeod <amacleod@redhat.com>
1532
1533 * array-notation-common.c: Adjust includes.
1534 * c-ada-spec.c: Likewise.
1535 * c-cilkplus.c: Likewise.
1536 * c-common.h: Likewise.
1537 * c-cppbuiltin.c: Likewise.
1538 * c-dump.c: Likewise.
1539 * c-format.c: Likewise.
1540 * c-gimplify.c: Likewise.
1541 * c-indentation.c: Likewise.
1542 * c-lex.c: Likewise.
1543 * c-omp.c: Likewise.
1544 * c-opts.c: Likewise.
1545 * c-pch.c: Likewise.
1546 * c-ppoutput.c: Likewise.
1547 * c-pragma.c: Likewise.
1548 * c-pretty-print.c: Likewise.
1549 * c-semantics.c: Likewise.
1550 * c-ubsan.c: Likewise.
1551 * cilk.c: Likewise.
1552 * stub-objc.c: Likewise.
1553
2a7fb83f
EB
15542015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1555
1556 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1557 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1558
a03c9bf1
JM
15592015-07-01 Jason Merrill <jason@redhat.com>
1560
36a85135
JM
1561 * c-common.h (D_CXX11): Rename from D_CXX0X.
1562 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1563 * c-common.c: Adjust.
1564
e7fa68d5
JM
1565 * c-opts.c (c_common_post_options): Default to C++14.
1566
a03c9bf1
JM
1567 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1568
fe95b036
ESR
15692015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1570
1571 Implement N4197 - Adding u8 character literals
b3d5bc62 1572 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1573 CPP_CHAR.
b3d5bc62 1574 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1575 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1576 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1577 and CPP_UTF8CHAR tokens.
1578 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1579
da2e71c9
MLI
15802015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1581
1582 PR fortran/66605
1583 * c-common.c (do_warn_unused_parameter): Move here.
1584 * c-common.h (do_warn_unused_parameter): Declare.
1585
b155cfd9
MP
15862015-06-29 Marek Polacek <polacek@redhat.com>
1587
1588 PR c/66322
1589 * c-common.c (check_case_bounds): Add bool * parameter. Set
1590 OUTSIDE_RANGE_P.
1591 (c_add_case_label): Add bool * parameter. Pass it down to
1592 check_case_bounds.
1593 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1594 warning here.
1595 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1596 declarations.
1597
31521951
MP
15982015-06-27 Marek Polacek <polacek@redhat.com>
1599
1600 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1601 or VECTOR_INTEGER_TYPE_P throughout.
1602 * c-gimplify.c: Likewise.
1603
22d03525
MP
16042015-06-26 Marek Polacek <polacek@redhat.com>
1605
1606 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1607 * c-common.c (c_fully_fold_internal): Likewise.
1608 (c_alignof_expr): Likewise.
1609 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1610 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1611 * cilk.c (create_parm_list): Likewise.
22d03525 1612
af05e6e5
MP
16132015-06-26 Marek Polacek <polacek@redhat.com>
1614
1615 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1616
f0889939
AM
16172015-06-25 Andrew MacLeod <amacleod@redhat.com>
1618
1619 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1620 * c-gimplify.c: Likewise.
1621 * c-pragma.c: Likewise.
1622 * c-ubsan.c: Likewise.
1623 * cilk.c: Likewise.
1624
ca752f39
RS
16252015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1626
1627 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1628 ggc_hasher.
1629
16a16ec7
AM
16302015-06-25 Andrew MacLeod <amacleod@redhat.com>
1631
1632 * cilk.c: Move calls.h after tm.h in the include chain.
1633
0ae9bd27
MP
16342015-06-25 Marek Polacek <polacek@redhat.com>
1635
1636 * array-notation-common.c: Use VAR_P throughout.
1637 * c-ada-spec.c: Likewise.
1638 * c-common.c: Likewise.
1639 * c-format.c: Likewise.
1640 * c-gimplify.c: Likewise.
1641 * c-omp.c: Likewise.
1642 * c-pragma.c: Likewise.
1643 * c-pretty-print.c: Likewise.
1644 * cilk.c: Likewise.
1645
62f9079a
MP
16462015-06-25 Marek Polacek <polacek@redhat.com>
1647
1648 * cilk.c (extract_free_variables): Use is_global_var.
1649
0fa16060
RS
16502015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1651
1652 * c-common.c: Don't include target-def.h.
1653
a68ae2e1
MP
16542015-06-23 Marek Polacek <polacek@redhat.com>
1655
1656 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1657 when comparing INTEGER_CSTs.
1658
c6a2f2d9
PMR
16592015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1660
1661 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1662 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1663 (dump_ada_template): Skip partially specialized types.
1664
6b4db501
MM
16652015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1666
1667 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1668 swapping.
1669
abb226c9
AM
16702015-06-17 Andrew MacLeod <amacleod@redhat.com>
1671
1672 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1673 * c-ada-spec.c: Likewise.
1674 * c-cilkplus.c: Likewise.
1675 * c-common.c: Likewise.
1676 * c-common.h: Likewise.
1677 * c-cppbuiltin.c: Likewise.
1678 * c-dump.c: Likewise.
1679 * c-format.c: Likewise.
1680 * c-gimplify.c: Likewise.
1681 * c-indentation.c: Likewise.
1682 * c-lex.c: Likewise.
1683 * c-omp.c: Likewise.
1684 * c-opts.c: Likewise.
1685 * c-pch.c: Likewise.
1686 * c-ppoutput.c: Likewise.
1687 * c-pragma.c: Likewise.
1688 * c-pretty-print.c: Likewise.
1689 * c-semantics.c: Likewise.
1690 * c-ubsan.c: Likewise.
1691 * cilk.c: Likewise.
1692 * stub-objc.c: Likewise.
1693
076fecad
PP
16942015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1695
1696 PR c++/65168
1697 * c-common.c (c_common_truthvalue_conversion): Warn when
1698 converting an address of a reference to a truth value.
1699
13fdf2e2
AM
17002015-06-08 Andrew MacLeod <amacleod@redhat.com>
1701
1702 * array-notation-common.c : Adjust include files.
1703 * c-ada-spec.c : Likewise.
1704 * c-cilkplus.c : Likewise.
1705 * c-common.c : Likewise.
1706 * c-common.h : Likewise.
1707 * c-cppbuiltin.c : Likewise.
1708 * c-dump.c : Likewise.
1709 * c-format.c : Likewise.
1710 * c-gimplify.c : Likewise.
1711 * c-indentation.c : Likewise.
1712 * c-lex.c : Likewise.
1713 * c-omp.c : Likewise.
1714 * c-opts.c : Likewise.
1715 * c-pch.c : Likewise.
1716 * c-ppoutput.c : Likewise.
1717 * c-pragma.c : Likewise.
1718 * c-pretty-print.c : Likewise.
1719 * c-semantics.c : Likewise.
1720 * c-ubsan.c : Likewise.
1721 * cilk.c : Likewise.
1722 * stub-objc.c : Likewise.
1723
a1661b90
MP
17242015-06-08 Marek Polacek <polacek@redhat.com>
1725
1726 PR c/66415
1727 * c-format.c (location_from_offset): Return LOC if LINE is null.
1728
d7438551
AH
17292015-06-05 Aldy Hernandez <aldyh@redhat.com>
1730
1731 * c-common.h (c_parse_final_cleanups): New prototype.
1732 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1733
b3d5bc62
JJ
17342015-06-04 Sriraman Tallam <tmsriram@google.com>
1735
1736 * c-common.c (noplt): New attribute.
1737 (handle_noplt_attribute): New handler.
1738
ecb9f223
AM
17392015-06-04 Andrew MacLeod <amacleod@redhat.com>
1740
1741 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1742 * c-ada-spec.c: Likewise.
1743 * c-cilkplus.c: Likewise.
1744 * c-common.c: Likewise.
1745 * c-common.h: Likewise.
1746 * c-cppbuiltin.c: Likewise.
1747 * c-dump.c: Likewise.
1748 * c-format.c: Likewise.
1749 * c-gimplify.c: Likewise.
1750 * c-indentation.c: Likewise.
1751 * c-lex.c: Likewise.
1752 * c-omp.c: Likewise.
1753 * c-opts.c: Likewise.
1754 * c-pch.c: Likewise.
1755 * c-ppoutput.c: Likewise.
1756 * c-pragma.c: Likewise.
1757 * c-pretty-print.c: Likewise.
1758 * c-semantics.c: Likewise.
1759 * c-ubsan.c: Likewise.
1760 * cilk.c: Likewise.
1761 * stub-objc.c: Likewise.
1762
6ac48155
DM
17632015-06-02 David Malcolm <dmalcolm@redhat.com>
1764
1765 PR c/66220:
1766 * c-indentation.c (should_warn_for_misleading_indentation): Use
1767 expand_location rather than expand_location_to_spelling_point.
1768 Don't warn if the guarding statement is more indented than the
1769 next/body stmts.
1770
773ce42e
DM
17712015-06-02 David Malcolm <dmalcolm@redhat.com>
1772
1773 * c-indentation.c (warn_for_misleading_indentation): Bail out
1774 immediately if -Wmisleading-indentation isn't enabled.
1775
4fef8379
ML
17762015-06-01 Martin Liska <mliska@suse.cz>
1777
1778 * c-format.c (check_format_arg):Use new type-based pool allocator.
1779 (check_format_info_main) Likewise.
1780
1edfb384
EB
17812015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1782
1783 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1784 (has_nontrivial_methods): Likewise.
1785
9677ef52
MP
17862015-05-25 Marek Polacek <polacek@redhat.com>
1787
1788 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1789
fd5c817a
MP
17902015-05-22 Marek Polacek <polacek@redhat.com>
1791
1792 PR c/47043
1793 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1794
a2f45fe6 17952015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1796
1797 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1798 STACK_GROWS_DOWNWARD.
1799
a2f45fe6 18002015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1801
1802 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1803 STACK_GROWS_DOWNWARD rather than if it is defined.
1804
0fee2ac2 18052015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1806
0fee2ac2
MLI
1807 PR c/52952
1808 * c-format.c (location_column_from_byte_offset): New.
1809 (location_from_offset): New.
1810 (struct format_wanted_type): Add offset_loc field.
1811 (check_format_info): Move handling of location for extra arguments
1812 closer to the point of warning.
1813 (check_format_info_main): Pass the result of location_from_offset
1814 to warning_at.
1815 (format_type_warning): Pass the result of location_from_offset
1816 to warning_at.
1817
cf4ef6f7
MP
18182015-05-20 Marek Polacek <polacek@redhat.com>
1819
1820 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1821
3a65ee74
MP
18222015-05-20 Marek Polacek <polacek@redhat.com>
1823
1824 * c-ada-spec.c (dump_sloc): Use DECL_P.
1825
21b634ae
MP
18262015-05-20 Marek Polacek <polacek@redhat.com>
1827
1828 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1829 * c-common.c: Likewise.
1830
0e50b624
DM
18312015-05-19 David Malcolm <dmalcolm@redhat.com>
1832
1833 * c-common.h (fe_file_change): Strengthen param from
1834 const line_map * to const line_map_ordinary *.
1835 (pp_file_change): Likewise.
1836 * c-lex.c (fe_file_change): Likewise.
1837 (cb_define): Use linemap_check_ordinary when invoking
1838 SOURCE_LINE.
1839 (cb_undef): Likewise.
1840 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1841 invoking cb_file_change.
1842 (c_finish_options): Likewise.
1843 (push_command_line_include): Likewise.
1844 (cb_file_change): Strengthen param "new_map" from
1845 const line_map * to const line_map_ordinary *.
1846 * c-ppoutput.c (cb_define): Likewise for local "map".
1847 (pp_file_change): Likewise for param "map" and local "from".
1848
fab27f52
MM
18492015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1850
1851 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1852
2fe1d762
TV
18532015-05-18 Tom de Vries <tom@codesourcery.com>
1854
1855 * c-common.c (build_va_arg_1): New function.
1856 (build_va_arg): Add address operator to va_list operand if necessary.
1857
7a37fa90
MM
18582015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1859
1860 PR c/48956
1861 * c-common.c (int_safely_convertible_to_real_p): Define.
1862 (unsafe_conversion_p): Check conversions involving complex types.
1863 (conversion_warning): Add new warning message for conversions which
1864 discard imaginary component.
1865 * c-common.h: (enum conversion_safety): Add new enumerator for such
1866 conversions.
1867
3aa3c9fc
MP
18682015-05-14 Marek Polacek <polacek@redhat.com>
1869
1870 PR c/66066
1871 PR c/66127
1872 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1873 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1874 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1875 use it. If FOR_INT_CONST, require that all evaluated operands be
1876 INTEGER_CSTs.
1877
c3388e62
DM
18782015-05-12 David Malcolm <dmalcolm@redhat.com>
1879
1880 * c-common.h (warn_for_misleading_indentation): New prototype.
1881 * c-indentation.c: New file.
1882 * c.opt (Wmisleading-indentation): New option.
1883
c7b38fd5
TV
18842015-05-12 Tom de Vries <tom@codesourcery.com>
1885
1886 PR tree-optimization/66010
1887 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1888
381bf11e
JM
18892015-05-09 Jason Merrill <jason@redhat.com>
1890
edff0c06
JM
1891 * c-opts.c (c_common_post_options): Also clear
1892 cpp_opts->cpp_warn_cxx11_compat.
1893
129211bc
JM
1894 * c-common.h (enum cxx_dialect): Add cxx_unset.
1895 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1896 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1897
381bf11e
JM
1898 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1899 (std=gnu++0x): Mark as Undocumented.
1900 (std=gnu++1y): Add deprecated message.
1901
fe191308
JM
19022015-05-08 Jason Merrill <jason@redhat.com>
1903
765189ff
JM
1904 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1905 * c-opts.c: Adjust.
1906
fe191308
JM
1907 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1908
755e528f
MP
19092015-05-08 Marek Polacek <polacek@redhat.com>
1910
1911 PR c/64918
1912 * c.opt (Woverride-init-side-effects): New option.
1913
0173bd2a
MP
19142015-05-07 Marek Polacek <polacek@redhat.com>
1915
1916 PR c/65179
1917 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1918 negative value.
1919 * c.opt (Wshift-negative-value): New option.
1920 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1921 when -Wextra and C99/C++11 mode.
1922
e0f0d3b9
MP
19232015-05-07 Marek Polacek <polacek@redhat.com>
1924 Martin Uecker <uecker@eecs.berkeley.edu>
1925
1926 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1927 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1928
8243e2a9
JM
19292015-05-05 Jason Merrill <jason@redhat.com>
1930
1931 * c.opt (Wterminate): New.
1932
577cd070
MP
19332015-04-30 Marek Polacek <polacek@redhat.com>
1934
1935 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1936 require that the non-constant be of a boolean type.
1937
0373796b
JT
19382015-04-29 Josh Triplett <josh@joshtriplett.org>
1939
e0f0d3b9
MP
1940 * c-common.c (handle_section_attribute): Refactor to reduce
1941 nesting and distinguish between error cases.
0373796b 1942
716c0ba6
MP
19432015-04-29 Marek Polacek <polacek@redhat.com>
1944
1945 PR c/64610
1946 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1947 with 0/1.
1948
8848828b
JJ
19492015-04-29 Jakub Jelinek <jakub@redhat.com>
1950
1951 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1952 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1953 HOST_BITS_PER_WIDE_INT.
1954
ecd0e562
TV
19552015-04-28 Tom de Vries <tom@codesourcery.com>
1956
1957 PR tree-optimization/65887
1958 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1959
2a877204 19602015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1961 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1962
1963 * c-ada-spec.c (in_function): Delete.
1964 (dump_generic_ada_node): Do not change in_function and remove the
1965 redundant code dealing with it.
1966 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1967 (print_ada_methods): Output the static member functions in a nested
1968 package after the regular methods as well as associated renamings.
1969
4853031e
MP
19702015-04-24 Marek Polacek <polacek@redhat.com>
1971
1972 PR c/65830
1973 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1974 and OPT_Wshift_count_overflow.
1975
8c2b7f79
MP
1976 PR c/63357
1977 * c-common.c (warn_logical_operator): Warn if the operands have the
1978 same expressions.
1979
b8787813
MP
19802015-04-24 Marek Polacek <polacek@redhat.com>
1981
1982 PR c/61534
1983 * c-common.c (warn_logical_operator): Bail if either operand comes
1984 from a macro expansion.
1985
8fba1830
BRF
19862015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1987
1988 PR target/55143
1989 * c-common.c (c_default_pointer_mode): Add definition.
1990 * c-common.h (c_default_pointer_mode): Add declaration.
1991
17958621
JJ
19922015-03-11 Jakub Jelinek <jakub@redhat.com>
1993
1994 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1995 on record_builtin_type argument.
1996
7ccb1a11
JJ
19972015-03-10 Jakub Jelinek <jakub@redhat.com>
1998
1999 PR c/65120
2000 * c-common.c (warn_logical_not_parentheses): Don't warn for
2001 !x == 0 or !x != 0.
2002
04fd785e
MP
20032015-03-07 Marek Polacek <polacek@redhat.com>
2004
2005 PR sanitizer/65280
2006 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2007 before trying to figure out whether we have a flexible array member.
2008
a4e26206
EB
20092015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2010 Jonathan Wakely <jwakely.gcc@gmail.com>
2011
2012 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2013
0d2489f4
EB
20142015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2015
2016 PR ada/65319
2017 * c-ada-spec.c (print_destructor): Remove obsolete code.
2018
83ed54d7
EB
20192015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2020
2021 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2022 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2023 DECL_TEMPLATE_RESULT emulations.
2024 (dump_ada_template)): Add guard for TYPE_METHODS.
2025
7631f0e2
MP
20262015-02-27 Marek Polacek <polacek@redhat.com>
2027
2028 PR c/65040
2029 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2030
d1783ae5
KT
20312015-02-27 Kai Tietz <ktietz@redhat.com>
2032
2033 PR c/35330
2034 * c-pragma.c (handle_pragma_weak): Do not try to create
2035 weak/alias of declarations not being function, or variable
2036 declarations.
2037
56a9f6bc
TS
20382015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2039
2040 PR libgomp/64625
2041 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2042 Remove macros.
2043 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2044
3d5cb23d
MP
20452015-02-16 Marek Polacek <polacek@redhat.com>
2046
2047 PR c/65066
2048 * c-format.c (check_format_types): Handle null param.
2049
fa008882
MP
20502015-02-13 Marek Polacek <polacek@redhat.com>
2051
2052 PR c/65040
2053 * c-format.c (check_format_types): Don't warn about different
2054 signedness if the original value is in the range of WANTED_TYPE.
2055
785f21af
JM
20562015-02-12 Jason Merrill <jason@redhat.com>
2057
2058 PR c++/64956
2059 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2060 to the current highest version.
2061 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2062
4886ec8e
JJ
20632015-02-04 Jakub Jelinek <jakub@redhat.com>
2064
2065 PR c/64824
2066 PR c/64868
2067 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2068 instead of RDIV_EXPR. Use build_binary_op instead of
2069 build2_loc.
2070
40fecdd6
JM
20712015-01-30 Joseph Myers <joseph@codesourcery.com>
2072
2073 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2074 to pass input_location as first argument.
2075
a0c88d06
TV
20762015-01-23 Tom de Vries <tom@codesourcery.com>
2077
2078 PR libgomp/64672
2079 * c.opt (fopenacc): Mark as LTO option.
2080
1506ae0e
TV
20812015-01-23 Tom de Vries <tom@codesourcery.com>
2082
2083 PR libgomp/64707
2084 * c.opt (fopenmp): Mark as LTO option.
2085
31be63ab
JJ
20862015-01-21 Jakub Jelinek <jakub@redhat.com>
2087
2088 PR c/63307
b1726d6c 2089 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2090 (compare_decls): Fix up formatting.
2091
20922015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2093
2094 PR c/63307
2095 * cilk.c: Include vec.h.
2096 (struct cilk_decls): New structure.
2097 (wrapper_parm_cb): Split this function to...
2098 (fill_decls_vec): ...this...
2099 (create_parm_list): ...and this.
2100 (compare_decls): New function.
2101 (for_local_cb): Remove.
2102 (wrapper_local_cb): Ditto.
2103 (build_wrapper_type): For now first traverse and fill vector of
2104 declarations then sort it and then deal with sorted vector.
2105 (cilk_outline): Ditto.
2106 (declare_one_free_variable): Ditto.
2107
6875457f
JM
21082015-01-21 Jason Merrill <jason@redhat.com>
2109
2110 PR c++/64629
2111 * c-format.c (check_format_arg): Call decl_constant_value.
2112
185c9e56
ML
21132015-01-19 Martin Liska <mliska@suse.cz>
2114
2115 * c-common.c (handle_noicf_attribute): New function.
2116
41dbbb37
TS
21172015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2118 Bernd Schmidt <bernds@codesourcery.com>
2119 James Norris <jnorris@codesourcery.com>
2120 Cesar Philippidis <cesar@codesourcery.com>
2121 Ilmir Usmanov <i.usmanov@samsung.com>
2122 Jakub Jelinek <jakub@redhat.com>
2123
2124 * c.opt (fopenacc): New option.
2125 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2126 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2127 New macros.
2128 * c-common.h (c_finish_oacc_wait): New prototype.
2129 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2130 (c_finish_oacc_wait): New function.
2131 * c-pragma.c (oacc_pragmas): New variable.
2132 (c_pp_lookup_pragma, init_pragma): Handle it.
2133 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2134 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2135 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2136 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2137 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2138 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2139 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2140 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2141 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2142 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2143 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2144 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2145 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2146 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2147 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2148 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2149 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2150 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2151 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2152 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2153 PRAGMA_OACC_CLAUSE_WORKER.
2154
5434dc07
MD
21552015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2156
2157 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2158 for the new option fstack-protector_explicit.
2159 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2160 (handle_stack_protect_attribute): New function.
2161
de1b5c17
MU
21622015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
2163
2164 * c.opt: New option -Warray-bounds=.
2165
adfac8df
JJ
21662015-01-09 Michael Collison <michael.collison@linaro.org>
2167
2168 * array-notation-common.c: Include hash-set.h, machmode.h,
2169 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2170 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2171 * c-ada-spec.c: Ditto.
2172 * c-cilkplus.c: Ditto.
2173 * c-common.c: Include input.h due to flattening of tree.h.
2174 Define macro GCC_C_COMMON_C.
2175 * c-common.h: Flatten tree.h header files into c-common.h.
2176 Remove include of tree-core.h.
2177 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2178 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2179 fold-const.h, wide-int.h, and inchash.h due to
2180 flattening of tree.h.
2181 * c-dump.c: Ditto.
2182 * c-format.c: Flatten tree.h header files into c-common.h.
2183 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2184 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2185 fold-const.h, wide-int.h, and inchash.h due to
2186 flattening of tree.h.
2187 * c-dump.c: Include hash-set.h, machmode.h,
2188 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2189 fold-const.h, wide-int.h, and inchash.h due to
2190 flattening of tree.h.
2191 * c-format.c: Include hash-set.h, machmode.h,
2192 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2193 fold-const.h, wide-int.h, inchash.h and real.h due to
2194 flattening of tree.h.
2195 * c-gimplify.c: Include hash-set.h, machmode.h,
2196 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2197 fold-const.h, wide-int.h, and inchash.h due to
2198 flattening of tree.h.
2199 * cilk.c: Ditto.
2200 * c-lex.c: Ditto.
2201 * c-omp.c: Ditto.
2202 * c-opts.c: Ditto.
2203 * c-pch.c: Ditto.
2204 * c-ppoutput.c: Ditto.
2205 * c-pragma.c: Ditto.
2206 * c-pretty-print.c: Ditto.
2207 * c-semantics.c: Ditto.
2208 * c-ubsan.c: Ditto.
2209 * stub-objc.c: Ditto.
2210
f5481fc4
JM
22112015-01-08 Jason Merrill <jason@redhat.com>
2212
2213 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2214 do_ubsan_in_current_function.
2215 (ubsan_maybe_instrument_reference_or_call): Likewise.
2216 * c-ubsan.h: Declare it.
2217
de35aa66
MS
22182015-01-08 Mike Stump <mikestump@comcast.net>
2219
2220 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2221
4a9a42ab
MP
22222015-01-07 Marek Polacek <polacek@redhat.com>
2223
2224 PR c/64440
2225 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2226 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2227
2f42e5de
TS
22282015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2229
2230 PR c++/31397
2231 * c.opt (Wsuggest-override): New option.
2232
5624e564
JJ
22332015-01-05 Jakub Jelinek <jakub@redhat.com>
2234
2235 Update copyright years.
2236
5bd012f8
MP
22372015-01-05 Marek Polacek <polacek@redhat.com>
2238
2239 PR c/64423
2240 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2241 parameter. Use it.
2242 * c-common.h (warn_array_subscript_with_type_char): Update
2243 declaration.
2244
a7fa8d18
ESR
22452014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2246
2247 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2248 Control macro with flag_sized_deallocation.
2249
768952be
MU
22502014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
2251
2252 * c.opt (Wdiscarded-array-qualifiers): New option.
2253
1f8d3e84
JJ
22542014-12-19 Jakub Jelinek <jakub@redhat.com>
2255
2256 PR preprocessor/63831
2257 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2258 and __has_cpp_attribute here.
2259 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2260 c_common_has_attribute.
2261 * c-common.h (c_common_has_attribute): New prototype.
2262 * c-lex.c (init_c_lex): Set cb->has_attribute to
2263 c_common_has_attribute instead of cb_has_attribute.
2264 (get_token_no_padding): New function.
2265 (cb_has_attribute): Renamed to ...
2266 (c_common_has_attribute): ... this. No longer static. Use
2267 get_token_no_padding, require ()s, don't build TREE_LIST
2268 unnecessarily, fix up formatting, adjust diagnostics, call
2269 init_attributes.
2270
20b06add
JM
22712014-12-15 Jason Merrill <jason@redhat.com>
2272
2273 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2274 (-Wsized-deallocation): New.
2275 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2276 to on in C++14 and up.
2277
94a073b2
JM
22782014-12-11 Jason Merrill <jason@redhat.com>
2279
acaa5911
JM
2280 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2281
94a073b2
JM
2282 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2283 we aren't complaining about VLAs.
2284
7fb66c15
MP
22852014-12-06 Marek Polacek <polacek@redhat.com>
2286
2287 PR tree-optimization/64183
2288 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2289 shift-expression if it is integer_type_node. Use types_compatible_p.
2290
b731b390
JJ
22912014-11-29 Jakub Jelinek <jakub@redhat.com>
2292
2293 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2294 last argument from create_tmp_var_raw and create_tmp_var calls.
2295 * cilk.c (gimplify_cilk_spawn): Likewise.
2296 * c-omp.c (c_finish_omp_atomic): Likewise.
2297
6a4da643
MP
22982014-11-28 Marek Polacek <polacek@redhat.com>
2299
2300 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2301 instead of unsigned_type_node.
2302
541e35a6
MP
23032014-11-28 Marek Polacek <polacek@redhat.com>
2304
2305 PR c/63862
2306 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2307 to op1_utype.
2308 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2309 expression to unsigned_type_node.
2310
dcc97066
MW
23112014-11-20 Mark Wielaard <mjw@redhat.com>
2312
2313 PR debug/38757
2314 * c-opts.c (set_std_c89): Set lang_hooks.name.
2315 (set_std_c99): Likewise.
2316 (set_std_c11): Likewise.
2317 (set_std_cxx98): Likewise.
2318 (set_std_cxx11): Likewise.
2319 (set_std_cxx14): Likewise.
2320 (set_std_cxx1z): Likewise.
2321
aa7da51a
JJ
23222014-11-21 Jakub Jelinek <jakub@redhat.com>
2323
2324 PR target/63764
2325 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2326 return type to bool.
009a3480 2327 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2328 (convert_vector_to_pointer_for_subscript): Change return type to
2329 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2330 and copy it into a TARGET_EXPR and use that instead of *vecp
2331 directly.
2332
538dd0b7
DM
23332014-11-19 David Malcolm <dmalcolm@redhat.com>
2334
2335 Merger of git branch "gimple-classes-v2-option-3".
2336 * ChangeLog.gimple-classes: New.
2337 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2338 from being just a vec<gimple> to a vec<gbind *>.
2339
c39a5e99
JJ
23402014-11-18 Jakub Jelinek <jakub@redhat.com>
2341
2342 PR sanitizer/63813
2343 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2344 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2345 get_pointer_alignment for non-pointers. Use ptype, or if it is
2346 reference type, corresponding pointer type, as type of kind
2347 argument.
2348 (ubsan_maybe_instrument_reference,
2349 ubsan_maybe_instrument_member_call): Adjust callers.
2350
8537a4a9
MP
23512014-11-15 Marek Polacek <polacek@redhat.com>
2352
2353 PR middle-end/63884
2354 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2355 for NULL fndecl.
2356 (extract_array_notation_exprs): Return for NULL node.
2357
2079956a
JM
23582014-11-12 Joseph Myers <joseph@codesourcery.com>
2359
2360 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2361 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2362
1304953e
JJ
23632014-11-12 Jakub Jelinek <jakub@redhat.com>
2364
2365 PR c/59708
2366 * c-common.c (check_builtin_function_arguments): Handle
2367 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2368
e5e44252
AK
23692014-11-10 Andi Kleen <ak@linux.intel.com>
2370
2371 PR c/60804
2372 * c-common.h (check_no_cilk): Declare.
2373 * cilk.c (get_error_location): New function.
2374 (check_no_cilk): Dito.
2375
e64b984d
AK
23762014-11-10 Andi Kleen <ak@linux.intel.com>
2377
2378 * cilk.c (recognize_spawn): Use expression location
2379 for error message.
2380
13c21655
PC
23812014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2382
2383 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2384
42fd12b1
ESR
23852014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2386
2387 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2388 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2389 (__cpp_range_based_for, __cpp_initializer_lists,
2390 __cpp_delegating_constructors, __cpp_nsdmi,
2391 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2392 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2393 __has_cpp_attribute.
2394 * c-lex.c (cb_has_attribute): New callback CPP function;
2395 (init_c_lex): Set has_attribute callback.
2396
6f450181
RB
23972014-11-04 Richard Biener <rguenther@suse.de>
2398
2399 * c-common.c (shorten_compare): Do not shorten mixed
2400 DFP and non-DFP compares.
2401
26f0e1d6
ESR
24022014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2403
2404 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2405 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2406 Commentary and rearrangement of tests.
2407 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2408 Commentary and rearrangement of tests.
2409 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2410 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2411
ef4bddc2
RS
24122014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2413
2414 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2415 enum from machine_mode.
2416
c582198b
AM
24172014-10-28 Andrew MacLeod <amacleod@redhat.com>
2418
adfac8df
JJ
2419 * c-common.c: Adjust include files.
2420 * c-gimplify.c: Ditto.
2421 * cilk.c: Ditto.
2422 * c-pragma.c: Ditto.
2423 * c-ubsan.c: Ditto.
c582198b 2424
60393bbc
AM
24252014-10-27 Andrew MacLeod <amacleod@redhat.com>
2426
2427 * c-gimplify.c: Adjust include files.
2428
d723bb7c
MLI
24292014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2430
2431 PR c++/53061
2432 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2433 c_common_initialize_diagnostics.
2434 * c-common.h: Likewise.
2435
90f3520e
MP
24362014-10-24 Marek Polacek <polacek@redhat.com>
2437
2438 PR c/56980
2439 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2440 print "struct"/"union"/"enum" for typedefed names.
2441
59d7607a
MP
24422014-10-23 Marek Polacek <polacek@redhat.com>
2443
2444 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2445 in unsigned type.
2446
d95a2703
JJ
24472014-10-22 Jakub Jelinek <jakub@redhat.com>
2448 Yury Gribov <y.gribov@samsung.com>
2449
2450 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2451 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2452 instead of flag_sanitize_recover as bool flag.
2453
8e6ef852
KY
24542014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2455
2456 * cilk.c: Revert previous change.
2457
948cf550
IZ
24582014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2459
2460 PR c/63307
2461 * cilk.c: Include vec.h.
2462 (struct cilk_decls): New structure.
2463 (wrapper_parm_cb): Split this function to...
2464 (fill_decls_vec): ...this...
2465 (create_parm_list): ...and this.
2466 (compare_decls): New function.
2467 (for_local_cb): Remove.
2468 (wrapper_local_cb): Ditto.
2469 (build_wrapper_type): For now first traverse and fill vector of
2470 declarations then sort it and then deal with sorted vector.
2471 (cilk_outline): Ditto.
2472 (declare_one_free_variable): Ditto.
2473
92574c7c
MP
24742014-10-17 Marek Polacek <polacek@redhat.com>
2475
2476 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2477 * c.opt (Wimplicit-int): Initialize to -1.
2478
83685514
AM
24792014-10-16 Andrew MacLeod <amacleod@redhat.com>
2480
2481 * c-pragma.c: Adjust include files.
2482 * c-semantics.c: Likewise.
2483
5b8300ea
DD
24842014-10-16 DJ Delorie <dj@redhat.com>
2485
2486 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2487 multiples of bytes.
2488
5f83e90b
JM
24892014-10-14 Jason Merrill <jason@redhat.com>
2490
2491 PR c++/63455
2492 * c-common.h (CPP_PREPARSED_EXPR): New.
2493 (N_CP_TTYPES): Adjust.
2494
d73326ca
MP
24952014-10-15 Marek Polacek <polacek@redhat.com>
2496
2497 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2498
78a7c317
DD
24992014-10-14 DJ Delorie <dj@redhat.com>
2500
2501 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2502 types, not just __int128.
2503 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2504 types, not just __int128.
2505 (cpp_atomic_builtins): Round pointer sizes up.
2506 (type_suffix): Use type precision, not specific types.
2507 * c-common.c (c_common_reswords): Remove __int128 special case.
2508 (c_common_type_for_size): Check for all __intN types, not just
2509 __int128.
2510 (c_common_type_for_mode): Likewise.
2511 (c_common_signed_or_unsigned_type): Likewise.
2512 (c_build_bitfield_integer_type): Likewise.
2513 (c_common_nodes_and_builtins): Likewise.
2514 (keyword_begins_type_specifier): Likewise.
2515 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2516 __intN variants.
2517
2a22f99c
TS
25182014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2519
2520 * c-common.c: Use hash_table instead of hashtab.
2521
2a8ef767
ESR
25222014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2523
adfac8df 2524 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2525 C++11 section.
2526
3c9aabbd
MG
25272014-10-03 Marc Glisse <marc.glisse@inria.fr>
2528
2529 PR c++/54427
2530 PR c++/57198
2531 PR c++/58845
2532 * c-common.c (warn_logical_operator): Punt for vectors.
2533
a15f7cb8
ESR
25342014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2535
2536 Implement SD-6: SG10 Feature Test Recommendations
2537 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2538 macros and the __has_header macro.
2539
8d0cf15e
JM
25402014-09-30 Jason Merrill <jason@redhat.com>
2541
dd5d5481
JM
2542 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2543 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2544 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2545
b752325e
JM
2546 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2547 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2548
8d0cf15e
JM
2549 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2550 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2551
083e891e
MP
25522014-09-24 Marek Polacek <polacek@redhat.com>
2553
2554 PR c/61405
2555 PR c/53874
2556 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2557
7861b648
AK
25582014-09-23 Andi Kleen <ak@linux.intel.com>
2559
2560 * c-common.c (handle_no_reorder_attribute): New function.
2561 (c_common_attribute_table): Add no_reorder attribute.
2562
9a79452d
JM
25632014-09-22 Joseph Myers <joseph@codesourcery.com>
2564
2565 * c-cppbuiltin.c (c_cpp_builtins): Define
2566 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2567 modes.
2568
dd69f047
JM
25692014-09-18 Joseph Myers <joseph@codesourcery.com>
2570
2571 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2572 for supported floating-point modes.
2573
737a4826
MLI
25742014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2575
2576 * c.opt (Wpsabi): Use LangEnabledBy.
2577 * c-opts.c (c_common_handle_option): Do not handle here.
2578
8cc4b7a2
JM
25792014-09-12 Joseph Myers <joseph@codesourcery.com>
2580
2581 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2582 macros for floating-point modes.
2583
179b5a55
MG
25842014-09-11 Marc Glisse <marc.glisse@inria.fr>
2585
2586 PR target/58757
2587 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2588 __*_DENORM_MIN__ without denormals.
2589
570a11fe
JJ
25902014-09-10 Jakub Jelinek <jakub@redhat.com>
2591
2592 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2593 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2594 ubsan_create_data callers.
2595 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2596 index is constant or BIT_AND_EXPR with constant mask and is
2597 small enough for the bound.
2598 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2599 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2600
b559c810
MLI
26012014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2602
2603 * c.opt: Add CppReason to various flags.
2604 (Wdate-time): Re-sort.
2605 * c-common.c: Include c-common.h earlier.
2606 (struct reason_option_codes_t): Delete.
2607 (c_option_controlling_cpp_error): Prefix global type and struct
2608 with cpp_.
2609
1ef33fd4
MLI
26102014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2611
2612 * c.opt (Wnormalized): New.
2613 (Wnormalized=): Use Enum and Reject Negative.
2614 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2615
66bb34c0
JM
26162014-09-08 Joseph Myers <joseph@codesourcery.com>
2617
2618 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2619 digits of floating-point modes if -fbuilding-libgcc.
2620
53d68b9f
JM
26212014-09-05 Joseph Myers <joseph@codesourcery.com>
2622
2623 * c-cppbuiltin.c (c_cpp_builtins): Also define
2624 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2625 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2626 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2627 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2628 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2629 __LIBGCC_STACK_GROWS_DOWNWARD__,
2630 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2631 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2632 __LIBGCC_DWARF_FRAME_REGISTERS__,
2633 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2634 __LIBGCC_STACK_POINTER_REGNUM__ and
2635 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2636 (builtin_define_with_value): Handle backslash-escaping in string
2637 macro values.
2638
f65586dc
RB
26392014-09-05 Richard Biener <rguenther@suse.de>
2640
2641 PR middle-end/63148
2642 * c-format.c (check_format_arg): Properly handle
2643 effectively signed POINTER_PLUS_EXPR offset.
2644
2b71f4a4
MLI
26452014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2646
2647 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2648 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2649 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2650 and Init.
2651 * c-opts.c (c_common_handle_option): Do not handle here.
2652 (sanitize_cpp_opts): Likewise.
2653 * c-common.c (struct reason_option_codes_t): Handle
2654 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2655
d2e4feca
MP
26562014-09-03 Marek Polacek <polacek@redhat.com>
2657
2658 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2659
9a771876
JJ
26602014-09-02 Jakub Jelinek <jakub@redhat.com>
2661 Balaji V. Iyer <balaji.v.iyer@intel.com>
2662 Igor Zamyatin <igor.zamyatin@intel.com>
2663
2664 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2665 * c-common.c (c_common_reswords): Added _Cilk_for.
2666 * c-common.h (enum rid): Added RID_CILK_FOR.
2667 (cilk_for_number_of_iterations): Add declaration.
2668 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2669 CILK_FOR.
2670 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2671 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2672
81b5d104
MLI
26732014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2674
2675 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2676 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2677 Wundef): Use CPP, Var and Init.
2678 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2679
b753b37b
MLI
26802014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2681
2682 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2683 * c-opts.c (c_common_handle_option): Do not handle here.
2684
028aee17
JM
26852014-08-25 Jason Merrill <jason@redhat.com>
2686
2687 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2688 -std=c++14 and -std=gnu++14, rather than the reverse.
2689 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2690 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2691 * c-common.h (cxx_dialect): Remove cxx1y.
2692
e4276ba5
ESR
26932014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2694
2695 * c-common.h (enum cxx_dialect): Add cxx14.
2696 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2697 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2698 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2699
a545cacd
JM
27002014-08-22 Jason Merrill <jason@redhat.com>
2701
2702 * c.opt (std=gnu++17): Fix alias.
2703
59ea0364
MP
27042014-08-22 Marek Polacek <polacek@redhat.com>
2705
2706 PR c++/62199
2707 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2708 check for vector types. Drop LHS argument.
2709 * c-common.h (warn_logical_not_parentheses): Adjust.
2710
596e808c
MLI
27112014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2712
2713 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2714 (Wmultichar): Likewise.
2715 (Wdate-time): Use C-family languages instead of Common. Use CPP
2716 and Var.
2717 * c-opts.c (c_common_handle_option): Do not handle the above
2718 options here.
2719 (sanitize_cpp_opts): Likewise.
2720
18767f65
MLI
27212014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2722
2723 PR fortran/44054
2724 * c-opts.c: Include tree-diagnostics.h.
2725 (c_diagnostic_finalizer): New.
2726 (c_common_initialize_diagnostics): Use it.
2727
b4413594
MLI
27282014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2729
2730 PR preprocessor/51303
2731 * c-common.c (struct reason_option_codes_t option_codes):
2732 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2733
43f9a13c
MLI
27342014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2735
2736 PR c/60975
2737 PR c/53063
2738 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2739 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2740 (c_common_post_options): Call init_global_opts_from_cpp.
2741 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2742
04159acf
MP
27432014-08-19 Marek Polacek <polacek@redhat.com>
2744
2745 PR c++/62153
2746 * c-common.c (maybe_warn_bool_compare): New function.
2747 * c-common.h (maybe_warn_bool_compare): Declare.
2748 * c.opt (Wbool-compare): New option.
2749
35aff4fb
MP
27502014-08-19 Marek Polacek <polacek@redhat.com>
2751
2752 * c.opt (Wc99-c11-compat): New option.
2753
177cce46
MP
27542014-08-19 Marek Polacek <polacek@redhat.com>
2755
2756 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2757 to warn_c90_c99_compat.
2758 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2759 to -1.
2760
6ae9194f
MLI
27612014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2762 Steven Bosscher <steven@gcc.gnu.org>
2763
2764 PR c/52952
2765 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2766 format_check_results.
2767 (check_function_format): Use true and add comment for boolean
2768 argument.
2769 (finish_dollar_format_checking): Use explicit location when warning.
2770 (check_format_info): Likewise.
2771 (check_format_arg): Set extra_arg_loc and format_string_loc.
2772 (check_format_info_main): Use explicit location when warning.
2773 (check_format_types): Pass explicit location.
2774 (format_type_warning): Likewise.
2775
8e54f6d3
MLI
27762014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2777
2778 PR fortran/44054
2779 * c-format.c: Handle Fortran flags.
2780
cd4e76fc
IZ
27812014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2782
2783 PR other/61962
2784 * array-notation-common.c (find_rank): Added handling for other
2785 types of references.
2786
f3bede71
MP
27872014-08-10 Marek Polacek <polacek@redhat.com>
2788
2789 PR c/51849
2790 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2791 * c.opt (Wc90-c99-compat): Add option.
2792
9f25a338
TS
27932014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2794
2795 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2796
62e4eb35
MP
27972014-08-03 Marek Polacek <polacek@redhat.com>
2798
2799 * c-common.c (check_case_value): Add location_t parameter. Use it.
2800 (c_add_case_label): Pass loc to check_case_value.
2801
b787e7a2
TS
28022014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2803
2804 * cilk.c: Use hash_map instead of pointer_map.
2805
6e2830c3
TS
28062014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2807
2808 * c-gimplify.c: Use hash_set instead of pointer_set.
2809
a7ee52fb
IZ
28102014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2811
2812 PR middle-end/61455
2813 * array-notation-common.c (extract_array_notation_exprs): Handling
2814 of DECL_EXPR added.
2815
944fa280
JJ
28162014-08-01 Jakub Jelinek <jakub@redhat.com>
2817
2818 * c-common.h (min_align_of_type): Removed prototype.
2819 * c-common.c (min_align_of_type): Removed.
2820 * c-ubsan.h (ubsan_maybe_instrument_reference,
2821 ubsan_maybe_instrument_member_call): New prototypes.
2822 * c-ubsan.c: Include stor-layout.h and builtins.h.
2823 (ubsan_maybe_instrument_reference_or_call,
2824 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2825 functions.
2826
b4dfdc11
MG
28272014-07-31 Marc Glisse <marc.glisse@inria.fr>
2828
2829 PR c++/60517
2830 * c.opt (-Wreturn-local-addr): Move to common.opt.
2831
a41844e5
JM
28322014-07-30 Jason Merrill <jason@redhat.com>
2833
2834 PR c++/61659
2835 PR c++/61687
2836 Revert:
2837 * c.opt (-fuse-all-virtuals): New.
2838
976d5a22
TT
28392014-07-30 Tom Tromey <tromey@redhat.com>
2840
2841 PR c/59855
2842 * c.opt (Wdesignated-init): New option.
2843 * c-common.c (c_common_attribute_table): Add "designated_init".
2844 (handle_designated_init): New function.
2845
cdc94aca
MP
28462014-07-24 Marek Polacek <polacek@redhat.com>
2847
2848 PR c/57653
2849 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2850
f41373b6
DS
28512014-07-16 Dodji Seketeli <dodji@redhat.com>
2852
2853 PR preprocessor/60723 - missing system-ness marks for macro tokens
2854 * c-ppoutput.c (struct print::prev_was_system_token): New data
2855 member.
2856 (init_pp_output): Initialize it.
2857 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2858 (do_line_change): Return a flag saying if a line marker was
2859 emitted or not.
2860 (scan_translation_unit): Detect if the system-ness of the token we
2861 are about to emit is different from the one of the previously
2862 emitted token. If so, emit a line marker. Avoid emitting useless
2863 adjacent line markers. Avoid emitting line markers for tokens
2864 originating from the expansion of built-in macros.
2865 (scan_translation_unit_directives_only): Adjust.
2866
4d661eaa
MP
28672014-07-15 Marek Polacek <polacek@redhat.com>
2868
2869 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2870 TYPE_MAX_VALUE is NULL.
2871
b108f48f
JJ
28722014-07-14 Jakub Jelinek <jakub@redhat.com>
2873
2874 PR middle-end/61294
2875 * c.opt (Wmemset-transposed-args): New warning.
2876
c0221884
JM
28772014-07-10 Jason Merrill <jason@redhat.com>
2878
2879 PR c++/61659
2880 PR c++/61687
2881 * c.opt (-fuse-all-virtuals): New.
2882
63dfbb95
RB
28832014-07-09 Richard Biener <rguenther@suse.de>
2884
2885 PR c-family/61741
2886 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2887 using unsigned arithmetic if overflow does not wrap instead of
2888 if overflow is undefined.
2889
773ec47f
MP
28902014-07-06 Marek Polacek <polacek@redhat.com>
2891
2892 PR c/6940
2893 * c.opt (Wsizeof-array-argument): New option.
2894
00a7ba58
JJ
28952014-07-03 Jakub Jelinek <jakub@redhat.com>
2896
b1726d6c 2897 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2898 comments->count <= 1, as comments->entries might be NULL.
2899
52ec0ea3
MP
29002014-07-01 Marek Polacek <polacek@redhat.com>
2901
2902 * c.opt (Wint-conversion): New option.
2903
d5c3d343
MP
29042014-07-01 Marek Polacek <polacek@redhat.com>
2905
2906 PR c/58286
2907 * c.opt (Wincompatible-pointer-types): New option.
2908
6e7ceb17
PC
29092014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2910
2911 PR c++/51400
2912 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2913 Do not discard TYPE_QUALS of type.
2914
da73100b
JM
29152014-06-26 Jason Merrill <jason@redhat.com>
2916
2917 * c-common.h (enum cxx_dialect): Add cxx1z.
2918 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2919 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2920
08eedf75
TJ
29212014-06-26 Teresa Johnson <tejohnson@google.com>
2922
2923 * c-common.h (get_dump_info): Declare.
2924 * c-gimplify.c (c_genericize): Use saved dump files.
2925 * c-opts.c (c_common_parse_file): Begin and end dumps
2926 once around parsing invocation.
2927 (get_dump_info): New function.
2928
7b56b2f8
MP
29292014-06-23 Marek Polacek <polacek@redhat.com>
2930 Andrew MacLeod <amacleod@redhat.com>
2931
2932 PR c/61553
2933 * c-common.c (get_atomic_generic_size): Don't segfault if the
2934 type doesn't have a size.
2935
0e37a2f3
MP
29362014-06-20 Marek Polacek <polacek@redhat.com>
2937
2938 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2939 (ubsan_walk_array_refs_r): New function.
2940 (c_genericize): Instrument array bounds.
2941 * c-ubsan.c: Include "internal-fn.h".
2942 (ubsan_instrument_division): Mark instrumented arrays as having
2943 side effects. Adjust ubsan_type_descriptor call.
2944 (ubsan_instrument_shift): Likewise.
2945 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2946 (ubsan_instrument_bounds): New function.
2947 (ubsan_array_ref_instrumented_p): New function.
2948 (ubsan_maybe_instrument_array_ref): New function.
2949 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2950 (ubsan_array_ref_instrumented_p): Declare.
2951 (ubsan_maybe_instrument_array_ref): Declare.
2952
29532014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2954
2955 PR lto/61123
2956 * c.opt (fshort-enums): Add to LTO.
2957 * c.opt (fshort-wchar): Likewise.
2958
5c3d09f7
MP
29592014-06-16 Marek Polacek <polacek@redhat.com>
2960
2961 PR c/60439
2962 * c.opt (Wswitch-bool): Add Var.
2963
9cf32741
JJ
29642014-06-12 Jakub Jelinek <jakub@redhat.com>
2965
2966 PR middle-end/61486
2967 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2968 #pragma omp target teams or
2969 #pragma omp {,target }teams distribute simd.
2970
62984918
JM
29712014-06-12 Jason Merrill <jason@redhat.com>
2972
2973 * c.opt (Wabi=, fabi-compat-version): New.
2974 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2975 (c_common_post_options): Handle flag_abi_compat_version default.
2976 Disallow -fabi-compat-version=1.
2977 * c-common.h (abi_version_crosses): New.
2978
f961457f
JH
29792014-06-11 Jan Hubicka <hubicka@ucw.cz>
2980
adfac8df 2981 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2982 section names that are no longer trees.
2983
92d28cbb
JJ
29842014-06-10 Jakub Jelinek <jakub@redhat.com>
2985
2986 PR fortran/60928
2987 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2988 (omp_pragmas): ... back here.
2989
742938c9
MP
29902014-06-05 Marek Polacek <polacek@redhat.com>
2991
2992 PR c/49706
2993 * c-common.c (warn_logical_not_parentheses): New function.
2994 * c-common.h (warn_logical_not_parentheses): Declare.
2995 * c.opt (Wlogical-not-parentheses): New option.
2996
9d548dfb
MP
29972014-06-04 Marek Polacek <polacek@redhat.com>
2998
2999 PR c/30020
3000 * c-common.c (check_case_bounds): Add location parameter.
3001 Use it.
3002 (c_add_case_label): Pass loc to check_case_bounds.
3003
fedfecef
MP
30042014-06-03 Marek Polacek <polacek@redhat.com>
3005
3006 PR c/60439
3007 * c.opt (Wswitch-bool): New option.
3008
f6a7cffc
TS
30092014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3010
040d18b6
TS
3011 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3012 Remove prototypes.
3013 (record_types_used_by_current_var_decl): Move prototype to where
3014 it belongs.
3015
f6a7cffc
TS
3016 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3017 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3018 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3019
632f2871
RS
30202014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3021
3022 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3023 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3024 void_zero_node.
3025 * c-pretty-print.c (pp_c_void_constant): New function.
3026 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3027 (c_pretty_printer::expression): Handle VOID_CST.
3028 * cilk.c (extract_free_variables): Likewise.
3029 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3030 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3031
766090c2
TS
30322014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3033
3034 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3035 * c-pragma.c (push_alignment): Adjust.
3036 (handle_pragma_push_options): Likewise.
3037
661a0813
MP
30382014-05-09 Marek Polacek <polacek@redhat.com>
3039
3040 PR c/50459
3041 * c-common.c (check_user_alignment): Return -1 if alignment is error
3042 node.
3043 (handle_aligned_attribute): Don't call default_conversion on
3044 FUNCTION_DECLs.
3045 (handle_vector_size_attribute): Likewise.
3046 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3047 (handle_sentinel_attribute): Call default_conversion and allow even
3048 integral types as an argument.
3049
2793eeab
MP
30502014-05-08 Marek Polacek <polacek@redhat.com>
3051
3052 PR c/61053
3053 * c-common.c (min_align_of_type): New function factored out from...
3054 (c_sizeof_or_alignof_type): ...here.
3055 * c-common.h (min_align_of_type): Declare.
3056
f827930a
MP
30572014-05-08 Marek Polacek <polacek@redhat.com>
3058
3059 PR c/61077
3060 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3061 parameter type of main.
3062
ca49b74e
DD
30632014-05-07 DJ Delorie <dj@redhat.com>
3064
3065 * c-cppbuiltin.c (print_bits_of_hex): New.
3066 (builtin_define_type_minmax): Print values using hex so as not to
3067 require a pre-computed list of string values.
3068
1d60af08
KZ
30692014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3070 Mike Stump <mikestump@comcast.net>
3071 Richard Sandiford <rdsandiford@googlemail.com>
3072
3073 * c-ada-spec.c: Include wide-int.h.
3074 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3075 (dump_generic_ada_node): Use wide-int interfaces.
3076 * c-common.c: Include wide-int-print.h.
3077 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3078 (pointer_int_sum): Use wide-int interfaces.
3079 (c_common_nodes_and_builtins): Use make_int_cst.
3080 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3081 (handle_alloc_size_attribute): Use wide-int interfaces.
3082 (get_nonnull_operand): Likewise.
3083 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3084 * c-lex.c: Include wide-int.h.
3085 (narrowest_unsigned_type): Take a widest_int rather than two
3086 HOST_WIDE_INTs.
3087 (narrowest_signed_type): Likewise.
3088 (interpret_integer): Update accordingly. Use wide-int interfaces.
3089 (lex_charconst): Use wide-int interfaces.
3090 * c-pretty-print.c: Include wide-int.h.
3091 (pp_c_integer_constant): Use wide-int interfaces.
3092 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3093 INT_CST_LT_UNSIGNED.
3094
b15458be
RB
30952014-05-06 Richard Biener <rguenther@suse.de>
3096
3097 * c-opts.c (c_common_post_options): For -freestanding,
3098 -fno-hosted and -fno-builtin disable pattern recognition
3099 if not enabled explicitely.
3100
6577374e
MP
31012014-05-02 Marek Polacek <polacek@redhat.com>
3102
3103 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3104
d00887e8
MP
31052014-05-01 Marek Polacek <polacek@redhat.com>
3106
3107 PR c/43245
3108 * c.opt (Wdiscarded-qualifiers): Add.
3109
f8ed5150
MP
31102014-04-30 Marek Polacek <polacek@redhat.com>
3111
3112 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3113 INT_MIN / -1 sanitization only for integer types.
3114
45484dcf
MP
31152014-04-25 Marek Polacek <polacek@redhat.com>
3116
3117 PR c/18079
3118 * c-common.c (handle_noinline_attribute): Warn if the attribute
3119 conflicts with always_inline attribute.
3120 (handle_always_inline_attribute): Warn if the attribute conflicts
3121 with noinline attribute.
3122
38e514c0
MP
31232014-04-25 Marek Polacek <polacek@redhat.com>
3124
3125 PR c/60156
3126 * c-common.c (check_main_parameter_types): Warn about variadic main.
3127
44875f92
MS
31282014-04-24 Mike Stump <mikestump@comcast.net>
3129
3130 * c.opt (Wshadow-ivar): Default to on.
3131
dcaaa5a0
DP
31322014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3133
3134 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3135
c07d7c02
MP
31362014-04-23 Marek Polacek <polacek@redhat.com>
3137
3138 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3139
1c33c9b7
JJ
31402014-04-22 Jakub Jelinek <jakub@redhat.com>
3141
3142 PR sanitizer/60275
3143 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3144 if flag_sanitize_undefined_trap_on_error.
3145 (ubsan_instrument_division, ubsan_instrument_shift,
3146 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3147 if !flag_sanitize_recover.
3148
793c625f
MG
31492014-04-22 Marc Glisse <marc.glisse@inria.fr>
3150
3151 PR libstdc++/43622
3152 * c-common.c (registered_builtin_types): Make non-static.
3153 * c-common.h (registered_builtin_types): Declare.
3154
b0f1bf36
RB
31552014-04-14 Richard Biener <rguenther@suse.de>
3156 Marc Glisse <marc.glisse@inria.fr>
3157
3158 PR c/60819
3159 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3160 apply may-alias the scalar pointer type when applicable.
3161
3b07fa4a
IZ
31622014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3163
3164 PR middle-end/60467
3165 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3166 as possible argument for Cilk_spawn.
3167
cbbd2b1c
TB
31682014-04-11 Tobias Burnus <burnus@net-b.de>
3169
3170 PR c/60194
3171 * c.opt (Wformat-signedness): Add
3172 * c-format.c(check_format_types): Use it.
3173
6415bd5d
JM
31742014-04-11 Jason Merrill <jason@redhat.com>
3175
3176 PR c++/57926
3177 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3178 default_conversion for an array argument.
3179
6525783a
MP
31802014-04-08 Marek Polacek <polacek@redhat.com>
3181
3182 PR sanitizer/60745
3183 * c-ubsan.c: Include asan.h.
3184 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3185
880a467b
NS
31862014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3187
3188 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3189
7b59ff2d
MP
31902014-04-02 Marek Polacek <polacek@redhat.com>
3191
3192 * c-common.h (c_expand_expr): Remove declaration.
3193
8edbfaa6
JJ
31942014-03-28 Jakub Jelinek <jakub@redhat.com>
3195
3196 PR c++/60689
3197 * c-common.c (add_atomic_size_parameter): When creating new
3198 params vector, push the size argument first.
3199
07d72e1d
JJ
32002014-03-26 Jakub Jelinek <jakub@redhat.com>
3201
3202 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3203 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3204 ubsan_create_data callers.
3205
b35e0fa0
JJ
32062014-03-22 Jakub Jelinek <jakub@redhat.com>
3207
3208 PR debug/60603
3209 * c-opts.c (c_finish_options): Restore cb_file_change call to
3210 <built-in>.
3211
39a1ebb3
JJ
32122014-03-13 Jakub Jelinek <jakub@redhat.com>
3213
3214 PR middle-end/36282
3215 * c-pragma.c (apply_pragma_weak): Only look at
3216 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3217 DECL_ASSEMBLER_NAME_SET_P (decl).
3218 (maybe_apply_pending_pragma_weaks): Exit early if
3219 vec_safe_is_empty (pending_weaks) rather than only when
3220 !pending_weaks.
3221 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3222 set assembler name back to NULL afterwards.
3223
a07f6ed2
JM
32242014-03-11 Jason Merrill <jason@redhat.com>
3225
3226 * c.opt: Add -std=gnu++14.
3227
75b107f5
IB
32282014-03-11 Ian Bolton <ian.bolton@arm.com>
3229
3230 * c-opts.c (c_common_post_options): Don't override
3231 -ffp-contract=fast if unsafe-math-optimizations is on.
3232
f42c637e
PM
32332014-03-08 Paulo Matos <paulo@matos-sorge.com>
3234
3235 * c.opt: Enable LTO FE for fshort-double.
3236
70e24808
JM
32372014-03-07 Jason Merrill <jason@redhat.com>
3238
3239 * c.opt: Add -std=c++14.
3240
3af9c5e9
MP
32412014-03-06 Marek Polacek <polacek@redhat.com>
3242
3243 PR c/60197
3244 * cilk.c (contains_cilk_spawn_stmt): New function.
3245 (contains_cilk_spawn_stmt_walker): Likewise.
3246 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3247 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3248
b3bdf019
JJ
32492014-03-03 Jakub Jelinek <jakub@redhat.com>
3250
3251 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3252 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3253 even when flag_preprocess_only.
3254
ca7e759d
JM
32552014-02-26 Jason Merrill <jason@redhat.com>
3256
3257 PR c++/59231
3258 PR c++/11586
3259 * c-common.c (shorten_compare): Don't check
3260 c_inhibit_evaluation_warnings.
3261
28e41874
JJ
32622014-02-19 Jakub Jelinek <jakub@redhat.com>
3263
cca615af
JJ
3264 PR c/37743
3265 * c-common.c (c_common_nodes_and_builtins): When initializing
3266 c_uint{16,32,64}_type_node, also set corresponding
3267 uint{16,32,64}_type_node to the same value.
3268
28e41874
JJ
3269 PR c++/60267
3270 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3271 for PRAGMA_IVDEP if flag_preprocess_only.
3272
c2bf53a1
JJ
32732014-02-12 Jakub Jelinek <jakub@redhat.com>
3274
3275 PR c/60101
3276 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3277 if false, add ADD itself, rather than vice versa.
3278 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3279 copy. For SAVE_EXPR, only call merge_tlist once.
3280
8fcbce72
JJ
32812014-02-08 Jakub Jelinek <jakub@redhat.com>
3282
3283 PR middle-end/60092
3284 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3285 and tree_to_uhwi.
3286 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3287 functions.
3288 (c_common_attribute_table): Add alloc_align and assume_aligned
3289 attributes.
3290
0a756a3f
MP
32912014-02-06 Marek Polacek <polacek@redhat.com>
3292
3293 PR c/60087
3294 * c-common.c (warn_for_sign_compare): Call warning_at with location
3295 instead of warning.
3296
7ec4847a
MP
32972014-02-05 Marek Polacek <polacek@redhat.com>
3298
3299 PR c/53123
3300 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3301 statement.
3302
66f20604
MP
33032014-02-04 Marek Polacek <polacek@redhat.com>
3304
3305 PR c/60036
3306 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3307 SAVE_EXPR.
3308
5d77fb19
MG
33092014-02-03 Marc Glisse <marc.glisse@inria.fr>
3310
3311 PR c++/53017
3312 PR c++/59211
3313 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3314 handle_vector_size_attribute, handle_nonnull_attribute): Call
3315 default_conversion on the attribute argument.
3316 (handle_nonnull_attribute): Increment the argument number.
3317
81e5eca8
MP
33182014-01-31 Marek Polacek <polacek@redhat.com>
3319
3320 PR c/59963
3321 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3322 build_function_call_vec.
3323 (resolve_overloaded_builtin): Likewise.
3324 * c-common.h (build_function_call_vec): Adjust declaration.
3325
68fca595
MP
33262014-01-30 Marek Polacek <polacek@redhat.com>
3327
3328 PR c/59940
3329 * c-common.h (unsafe_conversion_p): Adjust declaration.
3330 (warnings_for_convert_and_check): Likewise.
3331 (convert_and_check): Likewise.
3332 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3333 expansion_point_location_if_in_system_header on it.
3334 (warnings_for_convert_and_check): Add location parameter. Call
3335 expansion_point_location_if_in_system_header on it. Use it.
3336 (convert_and_check): Add location parameter. Use it.
3337 (conversion_warning): Likewise.
3338 (c_add_case_label): Adjust convert_and_check calls.
3339 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3340
b72271b9
BI
33412014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3342
3343 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3344 flag_cilkplus.
3345 * c-pragma.c (init_pragma): Likewise.
3346 * c.opt: Likewise.
3347
393e8e8b
MP
33482014-01-23 Marek Polacek <polacek@redhat.com>
3349
3350 PR c/59846
3351 * c-common.c (shorten_compare): Add location_t parameter.
3352 * c-common.h (shorten_binary_op): Adjust declaration.
3353
f04dda30
MP
33542014-01-23 Marek Polacek <polacek@redhat.com>
3355
3356 PR c/58346
3357 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3358 * c-common.h: Declare it.
3359
621955cb
EB
33602014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3361
3362 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3363 * c-ada-spec.c (dump_ads): Likewise.
3364 (cpp_check): Likewise.
3365 (dump_ada_specs): Likewise.
3366
33672014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3368
3369 PR c++/49718
3370 * c-common.c (handle_no_instrument_function_attribute): Allow
3371 no_instrument_function attribute in class member
3372 definition/declaration.
3373
241f845a
JJ
33742014-01-15 Jakub Jelinek <jakub@redhat.com>
3375
3376 PR c/58943
3377 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3378 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3379 being COMPOUND_EXPR.
3380 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3381 operand a SAVE_EXPR and second MODIFY_EXPR.
3382
e83b8e2e
JJ
33832014-01-09 Jakub Jelinek <jakub@redhat.com>
3384
3385 PR target/58115
3386 * c-pch.c (c_common_write_pch): Call
3387 prepare_target_option_nodes_for_pch.
3388
23a5b65a
RS
33892014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3390
3391 Update copyright years
3392
f9030485
RS
33932014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3394
3395 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3396 the copyright notice.
3397
f2aa696b
EB
33982013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3399
3400 * c-ada-spec.c (print_constructor): New function.
3401 (print_destructor): Retrieve the origin of the destructor.
3402 (print_ada_declaration): Revamp handling of constructors/destructors.
3403
1f26ac87
JM
34042013-12-23 Stuart Hastings <stuart@apple.com>
3405 Bill Maddox <maddox@google.com>
3406 Jason Merrill <jason@redhat.com>
3407
3408 * c.opt: Add -fdeclone-ctor-dtor.
3409 * c-opts.c (c_common_post_options): Default to on iff -Os.
3410
41958c28
BI
34112013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3412
3413 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3414 attribute.
3415 * c-pragma.h (enum pragma_cilk_clause): Remove.
3416 (enum pragma_omp_clause): Added the following fields:
3417 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3418 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3419 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3420 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3421 PRAGMA_CILK_CLAUSE_UNIFORM.
3422
b1726d6c 3423
12893402
BI
34242013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3425
3426 * cilk.c (cilk_outline): Made this function non-static.
3427 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3428 (create_cilk_wrapper): Added a new parameter: a function pointer.
3429 (c_install_body_w_frame_cleanup): Remove
3430 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3431 * c-common.h (cilk_outline): New prototype.
3432 (gimplify_cilk_spawn): Removed two parameters.
3433 (cilk_install_body_with_frame_cleanup): New prototype.
3434 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3435 CILK_SPAWN_STMT case.
3436
085b42ed
BS
34372013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3438
2ce064c3
BS
3439 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3440
085b42ed
BS
3441 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3442 (int_array_type_node): Remove.
3443 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3444
9e36c9ed
MP
34452013-12-05 Marek Polacek <polacek@redhat.com>
3446
3447 PR c/52023
3448 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3449 [ADJUST_FIELD_ALIGN].
3450
296674db
JM
34512013-12-04 Joseph Myers <joseph@codesourcery.com>
3452
3453 PR c/52023
3454 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3455 and check field alignment if set.
3456 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3457 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3458
b1726d6c 34592013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3460 Marek Polacek <polacek@redhat.com>
3461
3462 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3463 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3464
d7947e19
L
34652013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3466
3467 PR c/59309
3468 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3469 arguments.
3470
fad7652e
JJ
34712013-11-29 Jakub Jelinek <jakub@redhat.com>
3472
3473 PR c/59280
3474 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3475 goto invalid. If it is error_mark_node, don't issue further
3476 diagnostics.
3477
8b5e1202
SO
34782013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3479
3480 * c.opt (Wopenmp-simd): New.
3481
0a508bb6
JJ
34822013-11-22 Jakub Jelinek <jakub@redhat.com>
3483
3484 * c-ubsan.h (ubsan_instrument_return): New prototype.
3485 * c-ubsan.c (ubsan_instrument_return): New function.
3486
2fb9a547
AM
34872013-11-22 Andrew MacLeod <amacleod@redhat.com>
3488
3489 * c-common.c: Add required include files from gimple.h.
3490 * c-gimplify.c: Likewise
3491 * cilk.c: Likewise
3492
8400e75e
DM
34932013-11-22 David Malcolm <dmalcolm@redhat.com>
3494
3495 * c-common.c (unsafe_conversion_p): Remove use of
3496 EXPR_LOC_OR_HERE macro.
3497 (conversion_warning): Likewise.
3498 (warnings_for_convert_and_check): Likewise.
3499 (warn_for_collisions_1): Likewise.
3500 (shorten_compare): Likewise, and remove use of in_system_header
3501 macro, using the location from the former.
3502 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3503 (cb_def_pragma): Remove use of in_system_header macro.
3504 (lex_string): Likewise.
3505 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3506
eb1ce453
KZ
35072013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3508 Mike Stump <mikestump@comcast.net>
3509 Richard Sandiford <rdsandiford@googlemail.com>
3510
3511 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3512 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3513 tree_fits_shwi_p or tree_fits_uhwi_p.
3514 (dump_generic_ada_node): Likewise.
3515 * c-format.c (check_format_arg): Likewise.
3516 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3517
6b3b8c27
KZ
35182013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3519
3520 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3521
49b0aa18
JC
35222013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3523
3524 PR c/53001
3525 * c-common.c (unsafe_conversion_p): Make this function
3526 return an enumeration with more detail.
3527 (conversion_warning): Use the new return type of
3528 unsafe_conversion_p to separately warn either about conversions
3529 that lower floating point number precision or about the other
3530 kinds of conversions.
3531 * c-common.h (enum conversion_safety): New enumeration.
3532 (unsafe_conversion_p): switching return type to
3533 conversion_safety enumeration.
3534 * c.opt: Adding new warning -Wfloat-conversion and
3535 enabling it with -Wconversion.
3536
b826515a
BS
35372013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3538
3539 * c-opts.c: Include plugin.h.
3540 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3541
b9a55b13
MP
35422013-11-19 Marek Polacek <polacek@redhat.com>
3543
3544 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3545 call.
3546 (ubsan_instrument_shift): Likewise.
3547 (ubsan_instrument_vla): Likewise.
3548
7d362f6c
RS
35492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3550
3551 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3552 cast to unsigned type.
3553
386b1f1f
RS
35542013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3555
3556 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3557 tree_low_cst.
3558 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3559 rather than tree_low_cst.
3560
ae7e9ddd
RS
35612013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3562
3563 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3564 tree_to_uhwi throughout.
3565
9439e9a1
RS
35662013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3567
3568 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3569 tree_low_cst (..., 0) with tree_to_shwi throughout.
3570
cc269bb6
RS
35712013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3572
3573 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3574 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3575
9541ffee
RS
35762013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3577
3578 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3579 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3580
c02065fc
AH
35812013-11-15 Aldy Hernandez <aldyh@redhat.com>
3582
3583 * c-cilkplus.c: New file.
3584 * c-common.c (readonly_error): Add location argument.
3585 * c-common.h (readonly_error): Same.
3586 (c_finish_cilk_clauses): Protoize.
3587 (c_check_cilk_loop): Same.
3588 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3589 Do not fail on error_mark_node.
3590 Abstract increment canonicalization to here...
3591 (c_omp_for_incr_canonicalize_ptr): New.
3592 c-pragma.c (init_pragma): Register "simd" pragma.
3593 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3594 (enum pragma_cilk_clause): New.
3595
9cc65f15
RS
35962013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3597
3598 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3599 wchar_type and host_integerp checks.
3600
18f429e2
AM
36012013-11-14 Andrew MacLeod <amacleod@redhat.com>
3602
3603 * c-common.c: Likewise.
3604 * c-gimplify.c: Likewise.
3605 * cilk.c: Likewise.
3606
d8a2d370
DN
36072013-11-14 Diego Novillo <dnovillo@google.com>
3608
3609 * c-common.c: Include fold-const.h.
3610 Include stor-layout.h.
3611 Include calls.h.
3612 Include stringpool.h.
3613 Include attribs.h.
3614 Include varasm.h.
3615 Include trans-mem.h.
3616 * c-cppbuiltin.c: Include stor-layout.h.
3617 Include stringpool.h.
3618 * c-format.c: Include stringpool.h.
3619 * c-lex.c: Include stringpool.h.
3620 Include stor-layout.h.
3621 * c-pragma.c: Include stringpool.h.
3622 Include attribs.h.
3623 Include varasm.h.
3624 Include gcc-symtab.h.
3625 * c-pretty-print.c: Include stor-layout.h.
3626 Include attribs.h.
3627 * cilk.c: Include stringpool.h.
3628 Include calls.h.
3629
38b7bc7f
JM
36302013-11-13 Joseph Myers <joseph@codesourcery.com>
3631
3632 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3633 * c-common.c (c_common_reswords): Add __auto_type.
3634 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3635
45b0be94
AM
36362013-11-12 Andrew MacLeod <amacleod@redhat.com>
3637
18f429e2
AM
3638 * c-common.c: Include gimplify.h.
3639 * c-gimplify.c: Likewise.
3640 * cilk.c: Likewise.
3641 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3642 * c-ubsan.c: Don't include gimple.h.
45b0be94 3643
582d9b50
JM
36442013-11-12 Joseph Myers <joseph@codesourcery.com>
3645
3646 * c-common.c (c_common_reswords): Add _Thread_local.
3647
6b28e197
JM
36482013-11-09 Joseph Myers <joseph@codesourcery.com>
3649
3650 * c-common.c (atomic_size_supported_p): New function.
3651 (resolve_overloaded_atomic_exchange)
3652 (resolve_overloaded_atomic_compare_exchange)
3653 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3654 Use it instead of comparing size with a local list of sizes.
3655
267bac10
JM
36562013-11-07 Andrew MacLeod <amacleod@redhat.com>
3657 Joseph Myers <joseph@codesourcery.com>
3658
3659 * c-common.h (enum rid): Add RID_ATOMIC.
3660 * c-common.c (c_common_reswords): Add _Atomic.
3661 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3662 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3663 * c-format.c (check_format_types): Check for extra _Atomic
3664 qualifiers in format argument.
3665 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3666 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3667
5157b91e
TB
36682013-11-06 Tobias Burnus <burnus@net-b.de>
3669
3670 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3671
6dbe0958
JM
36722013-11-06 Joseph Myers <joseph@codesourcery.com>
3673
3674 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3675 standards modes.
3676 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3677 to mean lack of IEEE 754 support.
3678
e8ff5196
TB
36792013-11-05 Tobias Burnus <burnus@net-b.de>
3680
3681 * c.opt (-Wdate-time): New option
3682 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3683
254a0760
JM
36842013-11-05 Joseph Myers <joseph@codesourcery.com>
3685
3686 * c-cppbuiltin.c (cpp_iec_559_value): Test
3687 flag_excess_precision_cmdline not flag_excess_precision.
3688
6d7f7e0a
TB
36892013-11-05 Tobias Burnus <burnus@net-b.de>
3690
3691 * c.opt (fopenmp-simd): New option.
3692 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3693 (omp_pragmas): ... this new struct.
3694 (c_pp_lookup_pragma): Also walk omp_pragmas.
3695 (init_pragma): Init pragmas for -fopenmp-simd.
3696
55a7f02f
MP
36972013-11-04 Marek Polacek <polacek@redhat.com>
3698
3699 PR c++/58979
3700 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3701
9193fb05
JM
37022013-11-04 Joseph Myers <joseph@codesourcery.com>
3703
3704 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3705 New functions.
3706 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3707
94159ecf
EB
37082013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3709
3710 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3711 (dump_ada_specs): Adjust prototype of second callback.
3712 * c-ada-spec.c (cpp_check): New global variable.
3713 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3714 (print_generic_ada_decl): Likewise.
3715 (has_static_fields): Change return type to bool and add guard.
3716 (has_nontrivial_methods): New predicate.
3717 (is_tagged_type): Change return type to bool.
3718 (separate_class_package): Call has_nontrivial_methods.
3719 (pp_ada_tree_identifier): Minor tweaks.
3720 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3721 (dump_ada_array_domains): Likewise.
3722 (dump_ada_array_type): Likewise.
3723 (dump_template_types): Remove cpp_check parameter and do not pass it to
3724 dump_generic_ada_node.
3725 (dump_ada_template): Likewise.
3726 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3727 recursively.
3728 (print_ada_methods): Change return type to integer. Remove cpp_check
3729 parameter and do not pass it down.
3730 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3731 dump_generic_ada_node.
3732 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3733 accessing methods.
3734 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3735 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3736 value of print_ada_methods.
3737 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3738 Set cpp_check to it before invoking dump_ada_nodes.
3739 (dump_ada_specs): Likewise.
3740
b906f4ca
MP
37412013-11-03 Marek Polacek <polacek@redhat.com>
3742
3743 * c-ubsan.c: Don't include hash-table.h.
3744 (ubsan_instrument_vla): New function.
3745 * c-ubsan.h: Declare it.
3746
5e20cdc9
DM
37472013-10-31 David Malcolm <dmalcolm@redhat.com>
3748
3749 Automated part of renaming of symtab_node_base to symtab_node.
3750
3751 Patch autogenerated by rename_symtab.py from
3752 https://github.com/davidmalcolm/gcc-refactoring-scripts
3753 revision 58bb219cc090b2f4516a9297d868c245495ee622
3754
3755 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3756 symtab_node_base to symtab_node.
3757
7057e645
ESR
37582013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3759
3760 Implement C++14 digit separators.
3761 * c-lex.c (interpret_float): Remove digit separators from scratch string
3762 before building real literal.
3763
193ea7bc
JJ
37642013-10-30 Jakub Jelinek <jakub@redhat.com>
3765
3766 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3767
939b37da
BI
37682013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3769
3770 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3771 fields.
3772 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3773 enabled.
3774 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3775 (insert_cilk_frame): New prototype.
3776 (cilk_init_builtins): Likewise.
3777 (gimplify_cilk_spawn): Likewise.
3778 (c_cilk_install_body_w_frame_cleanup): Likewise.
3779 (cilk_detect_spawn_and_unwrap): Likewise.
3780 (cilk_set_spawn_marker): Likewise.
3781 (build_cilk_sync): Likewise.
3782 (build_cilk_spawn): Likewise.
3783 * cilk.c: New file.
3784
67348ccc
DM
37852013-10-29 David Malcolm <dmalcolm@redhat.com>
3786
3787 Patch autogenerated by refactor_symtab.py from
3788 https://github.com/davidmalcolm/gcc-refactoring-scripts
3789 revision 58bb219cc090b2f4516a9297d868c245495ee622
3790
3791 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3792 to a true class hierarchy.
3793 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3794
d570872d
RS
37952013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3796
3797 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3798
98906124
JL
37992013-10-26 Jeff Law <law@redhat.com>
3800
adfac8df
JJ
3801 * c-common.c (c_define_builtins): Remove mudflap support.
3802 * c.opt: Ignore and warn for mudflap options.
98906124 3803
d73749df 38042013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3805
3806 PR other/33426
3807 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3808 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3809
3f04b1bb
JM
38102013-10-23 Jason Merrill <jason@redhat.com>
3811
3812 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3813
acf0174b
JJ
38142013-10-11 Jakub Jelinek <jakub@redhat.com>
3815
acd15a28
JJ
3816 * c-common.h (omp_clause_mask::operator !=): New method.
3817 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3818 instead of if (mask & something) tests everywhere.
3819
acf0174b
JJ
3820 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3821 201307 instead of 201107.
3822 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3823 (c_common_attribute_table): Add "omp declare target" and
3824 "omp declare simd" attributes.
3825 (handle_omp_declare_target_attribute,
3826 handle_omp_declare_simd_attribute): New functions.
3827 * c-omp.c: Include c-pragma.h.
3828 (c_finish_omp_taskgroup): New function.
3829 (c_finish_omp_atomic): Add swapped argument, if true,
3830 build the operation first with rhs, lhs arguments and use NOP_EXPR
3831 build_modify_expr.
3832 (c_finish_omp_for): Add code argument, pass it down to make_code.
3833 (c_omp_split_clauses): New function.
3834 (c_split_parallel_clauses): Removed.
3835 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3836 c_omp_declare_simd_clauses_to_decls): New functions.
3837 * c-common.h (omp_clause_mask): New type.
3838 (OMP_CLAUSE_MASK_1): Define.
3839 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3840 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3841 omp_clause_mask::operator |, omp_clause_mask::operator &,
3842 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3843 omp_clause_mask::operator ==): New methods.
3844 (enum c_omp_clause_split): New.
3845 (c_finish_omp_taskgroup): New prototype.
3846 (c_finish_omp_atomic): Add swapped argument.
3847 (c_finish_omp_for): Add code argument.
3848 (c_omp_split_clauses): New prototype.
3849 (c_split_parallel_clauses): Removed.
3850 (c_omp_declare_simd_clauses_to_numbers,
3851 c_omp_declare_simd_clauses_to_decls): New prototypes.
3852 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3853 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3854 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3855 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3856 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3857 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3858 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3859 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3860 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3861 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3862 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3863 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3864 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3865 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3866 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3867 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3868 PRAGMA_OMP_CLAUSE_UNIFORM.
3869
826cacfe
MG
38702013-10-09 Marc Glisse <marc.glisse@inria.fr>
3871
3872 PR tree-optimization/20318
3873 * c-common.c (handle_returns_nonnull_attribute): New function.
3874 (c_common_attribute_table): Add returns_nonnull.
3875
2284b034
MG
38762013-10-03 Marc Glisse <marc.glisse@inria.fr>
3877
3878 PR c++/19476
3879 * c.opt (fcheck-new): Move to common.opt.
3880
b56e9788
MP
38812013-09-25 Marek Polacek <polacek@redhat.com>
3882 Jakub Jelinek <jakub@redhat.com>
3883
3884 PR sanitizer/58413
3885 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3886 an expression if we can prove it is correct.
3887 (ubsan_instrument_division): Likewise. Remove unnecessary
3888 check.
3889
ce6923c5
MP
38902013-09-18 Marek Polacek <polacek@redhat.com>
3891
3892 PR sanitizer/58411
3893 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3894 Declare it.
3895 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3896
fb5610fb
IS
38972013-09-14 Iain Sandoe <iain@codesourcery.com>
3898
3899 PR target/48094
3900 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3901 fobjc-gc, freplace-objc-classes): Accept for LTO.
3902
88b0e79e
JC
39032013-09-13 Jacek Caban <jacek@codeweavers.com>
3904
3905 * c-target.def: New hook
3906
c9b0866a
PC
39072013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3908
3909 PR c++/43452
3910 * c.opt (Wdelete-incomplete): Add.
3911
0af94e6f
JR
39122013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3913
3914 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3915 (vector_types_compatible_elements_p): New function.
3916 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3917 declaration.
3918 (vector_types_compatible_elements_p): Declare.
3919
7c26172c
GDR
39202013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3921
3922 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3923 a virtual member function.
3924 (pp_simple_type_specifier): Remove.
3925 (pp_c_type_specifier): Likewise.
3926 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3927 Rename from pp_c_type_specifier. Adjust.
3928 (c_pretty_printer::c_pretty_printer): Do not assign to
3929 simple_type_specifier.
3930
20059c8b
GDR
39312013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3932
3933 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3934 member function.
3935 (c_pretty_printer::storage_class_specifier): Likewise.
3936 (c_pretty_printer::initializer): Likewise.
3937 (pp_declaration): Remove.
3938 (pp_declaration_specifiers): Likewise.
3939 (pp_abstract_declarator): Likewise.
3940 (pp_declarator): Likewise.
3941 (pp_type_id): Likewise.
3942 (pp_statement): Likewise.
3943 (pp_constant): Likewise.
3944 (pp_id_expression): Likewise.
3945 (pp_primary_expression): Likewise.
3946 (pp_unary_expression): Likewise.
3947 (pp_multiplicative_expression): Likewise.
3948 (pp_conditional_expression): Likewise.
3949 (pp_assignment_expression): Likewise.
3950 (pp_expression): Likewise.
3951 (pp_c_type_id): Likewise.
3952 (pp_c_storage_class_specifier): Likewise.
3953 * c-pretty-print.c (pp_c_type_cast): Tidy.
3954 (pp_c_pointer): Likewise.
3955 (pp_c_type_specifier): Likewise.
3956 (pp_c_parameter_type_list): Likewise.
3957 (pp_c_function_definition): Likewise.
3958 (pp_c_init_declarator): Likewise.
3959 (pp_c_initializer_list): Likewise.
3960 (pp_c_constructor_elts): Likewise.
3961 (c_pretty_printer::direct_abstract_declarator): Likewise.
3962 (c_pretty_printer::declaration_specifiers): Likewise.
3963 (c_pretty_printer::primary_expression): Likewise.
3964 (c_pretty_printer::postfix_expression): Likewise.
3965 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3966 (c_pretty_printer::storage_class_specifier): Rename from
3967 pp_c_storage_class_specifier.
3968 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3969 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3970 storage_class_specifier, initializer, offset_list, flags.
3971
de5a5fa1
MP
39722013-08-30 Marek Polacek <polacek@redhat.com>
3973
3974 * c-ubsan.c: New file.
3975 * c-ubsan.h: New file.
3976
8f0e4d72
GDR
39772013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3978
3979 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3980 member function.
3981 (c_pretty_printer::declaration_specifiers): Likewise.
3982 (c_pretty_printer::declarator): Likewise.
3983 (c_pretty_printer::abstract_declarator): Likewise.
3984 (c_pretty_printer::direct_abstract_declarator): Likewise.
3985 (c_pretty_printer::direct_declarator): Likewise.
3986 (c_pretty_printer::function_specifier): Likewise.
3987 (pp_declaration): Adjust.
3988 (pp_declaration_specifiers): Likewise.
3989 (pp_abstract_declarator): Likewise.
3990 (pp_direct_declarator): Likewise.
3991 (pp_function_specifier): Likewise.
3992 (pp_direct_abstract_declarator): Remove as unused.
3993 (pp_c_declaration): Remove.
3994 (pp_c_declaration_specifiers): Likewise.
3995 (pp_c_declarator): Likewise.
3996 (pp_c_direct_declarator): Likewise.
3997 (pp_c_function_specifier): Likewise.
3998 (pp_c_direct_abstract_declarator): Likewise.
3999 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4000 from pp_c_abstract_declarator. Adjust.
4001 (c_pretty_printer::direct_abstract_declarator): Rename from
4002 pp_c_direct_abstract_declarator. Adjust.
4003 (c_pretty_printer::function_specifier): Rename from
4004 pp_c_function_specifier. Adjust.
4005 (c_pretty_printer::declaration_specifiers): Rename from
4006 pp_c_declaration_specifiers. Adjust.
4007 (c_pretty_printer::direct_declarator): Rename from
4008 pp_c_direct_declarator. Adjust.
4009 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4010 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4011 (c_pretty_printer::c_pretty_printer): Do not assign to
4012 declaration, declaration_specifiers, declarator,
4013 direct_declarator, direct_abstract_declarator, function_specifier.
4014
00d34d3a
GDR
40152013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4016
4017 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4018 virtual member function.
4019 (c_pretty_printer::multiplicative_expression): Likewise.
4020 (c_pretty_printer::conditional_expression): Likewise.
4021 (c_pretty_printer::assignment_expression): Likewise.
4022 (c_pretty_printer::expression): Likewise.
4023 (pp_unary_expression): Adjust.
4024 (pp_multiplicative_expression): Likewise.
4025 (pp_assignment_expression): Likewise.
4026 (pp_conditional_expression): Likewise.
4027 (pp_expression): Likewise.
4028 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4029 from pp_c_unary_expression. Adjust.
4030 (c_pretty_printer::multiplicative_expression): Rename from
4031 pp_c_multiplicative_expression. Adjust.
4032 (c_pretty_printer::conditional_expression): Rename from
4033 pp_c_conditional_expression. Adjust.
4034 (c_pretty_printer::assignment_expression): Rename from
4035 pp_c_assignment_expression. Adjust.
4036 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4037 (c_pretty_printer::c_pretty_printer): Do not assign to
4038 unary_expression, multiplicative_expression,
4039 conditional_expression, expression.
4040
fb22178f
GDR
40412013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4042
4043 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4044 virtual member function.
4045 (pp_postfix_expression): Adjust.
4046 (pp_c_postfix_expression): Remove.
4047 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4048 from pp_c_postfix_expression. Adjust.
4049 (c_pretty_printer::c_pretty_printer): Do not assign to
4050 postfix_expression.
4051
7ecc2600
GDR
40522013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4053
4054 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4055 virtua member function.
4056 (pp_primary_expression): Adjust.
4057 (pp_c_primary_expression): Remove.
4058 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4059 from pp_c_primary_expression. Adjust.
4060 (pp_c_initializer_list): Use pp_primary_expression.
4061 (c_pretty_printer::c_pretty_printer): Do not assign to
4062 primary_expression.
4063
0691175f
GDR
40642013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4065
4066 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4067 * c-pretty-print.c (M_): Remove.
4068 (c_pretty_printer::translate_string): Define.
4069 (pp_c_type_specifier): Use it.
4070 (pp_c_primary_expression): Likewise.
4071 (pp_c_expression): Likewise.
4072
66dfe4c4
GDR
40732013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4074
4075 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4076 virtual function.
4077 (pp_c_id_expression): Remove.
4078 (pp_id_expression): Adjust.
4079 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4080 pp_c_id_expression. Adjust.
4081 (pp_c_postfix_expression): Use pp_id_expression.
4082 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4083
ca43e9d5
GDR
40842013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4085
4086 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4087 member function.
4088 (pp_constant): Adjust.
4089 (pp_c_constant): Remove.
4090 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4091 pp_c_constant. Adjust.
4092 (pp_c_constant)
4093 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4094 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4095
da6ca2b5
GDR
40962013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4097
4098 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4099 (c_pretty_printer::c_pretty_printer): Declare.
4100 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4101 c_pretty_printer_init. Adjust.
4102 (print_c_tree): Do not call c_pretty_printer_init.
4103 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4104
65a372f4
AC
41052013-08-09 Arnaud Charlet <charlet@adacore.com>
4106
4107 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4108
fd9b0f32
PC
41092013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4110
4111 PR c++/58080
4112 * c-common.c (pointer_int_sum): Add bool parameter.
4113 * c-common.h (pointer_int_sum): Adjust declaration.
4114
e0aec1e9
GDR
41152013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4116
4117 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4118 c_pretty_printer variable.
4119
b066401f
GDR
41202013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4121
4122 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4123 (pp_base): Remove.
4124 (pp_c_base): Likewise. Adjust users.
4125 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4126 (pp_c_whitespace): Do not call pp_base.
4127 (pp_c_left_paren): Likewise.
4128 (pp_c_right_paren): Likewise.
4129 (pp_c_left_brace): Likewise.
4130 (pp_c_right_brace): Likewise.
4131 (pp_c_left_bracket): Likewise.
4132 (pp_c_right_bracket): Likewise.
4133 (pp_c_dot): Likewise.
4134 (pp_c_ampersand): Likewise.
4135 (pp_c_star): Likewise.
4136 (pp_c_arrow): Likewise.
4137 (pp_c_semicolon): Likewise.
4138 (pp_c_complement): Likewise.
4139 (pp_c_exclamation): Likewise.
4140 (pp_c_direct_declarator): Likewise.
4141 (pp_c_ws_string): Likewise.
4142 (pp_c_identifier): Likewise.
4143 (pp_c_statement): Likewise.
4144 (print_c_tree): Likewise.
4145
65e5a578
ESR
41462013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4147
4148 PR c++/58072
4149 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4150 provide useful error strings.
4151
137a1a27
GDR
41522013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4153
4154 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4155 printer functions instead of pp_string or operators and punctuators.
4156 (dump_generic_ada_node): Likewise.
4157 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4158 (pp_c_relational_expression): Likewise.
4159 (pp_c_logical_or_expression): Likewise.
4160
07838b13
GDR
41612013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4162
4163 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4164 functions instead of pp_character.
4165 (pp_ada_tree_identifier): Likewise.
4166 (dump_ada_double_name): Likewise.
4167 (dump_ada_function_declaration): Likewise.
4168 (dump_ada_array_domains): Likewise.
4169 (dump_template_types): Likewise.
4170 (dump_generic_ada_node): Likewise.
4171 (print_ada_declaration): Likewise.
4172 (print_ada_struct_decl): Likewise.
4173 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4174
433cc7b0
TT
41752013-07-23 Tom Tromey <tromey@redhat.com>
4176
4177 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4178 * c-common.c (c_common_reswords): Add _Generic.
4179
688010ba
OB
41802013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4181
4182 * c-common.c: Fix typos.
4183 * c-common.h: Likewise.
4184
2a99e5e6
LL
41852013-07-13 Lubos Lunak <l.lunak@suse.cz>
4186
4187 PR c++/55203
4188 * c-common.c (c_common_attribute_table): Add warn_unused.
4189 (handle_warn_unused_attribute): New.
4190
c26302d5
JJ
41912013-07-10 Jakub Jelinek <jakub@redhat.com>
4192
4193 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4194 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4195
dfeadaa0
PC
41962013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4197
4198 PR c++/57869
4199 * c.opt: Add Wconditionally-supported.
4200
6a2fa4b2
GS
42012013-07-08 Graham Stott <graham.stott@btinternet.com>
4202
adfac8df 4203 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4204 unused variables l_length and l_node.
4205
ecdbd01a 42062013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4207
4208 PR c/57821
4209 * c-common.c (complete_array_type): Delay folding first index
4210 like other indices. When folding, check for index overflow.
4211
bedc293e
MG
42122013-06-27 Marc Glisse <marc.glisse@inria.fr>
4213
4214 PR c++/57509
4215 * c-common.h (c_build_vec_perm_expr): New complain argument.
4216 * c-common.c (c_build_vec_perm_expr): Likewise.
4217 Use save_expr also in C++.
4218
604b2bfc
GDR
42192013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4220
4221 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4222 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4223 * c-opts.c (c_common_post_options): Likewise.
4224
dfeadaa0 42252013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4226
4227 * array-notation-common.c (length_mismatch_in_expr): Changed the
4228 parameter type's from a dynamic array to a vec_tree. Also removed
4229 the size parameters.
4230 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4231 the change above.
4232
2ce86d2e
BI
42332013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4234
4235 * c-common.h (struct cilkplus_an_parts): New structure.
4236 (struct cilkplus_an_loop_parts): Likewise.
4237 (cilkplus_extract_an_triplets): New prototype.
4238 (fix_sec_implicit_args): Likewise.
4239 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4240 (fix_sec_implicit_args): Likewise.
604b2bfc 4241
07a6825b
BI
42422013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4243
4244 * array-notation-common.c (find_inv_trees): Removed an unwanted
4245 typecasting.
4246 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4247 enum rid to enum tree_code.
4248
08346abd
JH
42492013-06-11 Jan Hubicka <jh@suse.cz>
4250
4251 * c-common.c (handle_alias_ifunc_attribute): Do not set
4252 DECL_EXTERNAL for weakref variables.
4253 * c-pragma.c (handle_pragma_weak): Make sure aliases
4254 are not declared as external.
4255
d60f1706
BI
42562013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4257
4258 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4259 function from c/c-array-notation.c.
4260 (is_cilkplus_reduce_builtin): Likewise.
4261 (find_rank): Likewise.
4262 (extract_array_notation_exprs): Likewise.
4263 (replace_array_notations): Likewise.
4264 (find_inv_trees): Likewise.
4265 (replace_inv_trees): Likewise.
4266 (contains_array_notation_expr): Likewise.
4267 (find_correct_array_notation_type): Likewise.
4268 * c-common.h (struct inv_list): Moved this struct from the file
4269 c/c-array-notation.c and added a new field called additional tcodes.
4270 (length_mismatch_in_expr_p): New prototype.
4271 (is_cilkplus_reduce_builtin): Likewise.
4272 (find_rank): Likewise.
4273 (extract_array_notation_exprs): Likewise.
4274 (replace_array_notation): Likewise.
4275 (find_inv_trees): Likewise.
4276 (replace_inv_trees): Likewise.
4277 (find_correct_array_notation_type): Likewise.
dfeadaa0 4278
36536d79
BI
42792013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4280
4281 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4282 function array_notation_init_builtins is called.
4283 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4284 * c-common.def (ARRAY_NOTATION_REF): New tree.
4285 * c-common.h (build_array_notation_expr): New function declaration.
4286 (build_array_notation_ref): Likewise.
4287 (extract_sec_implicit_index_arg): New extern declaration.
4288 (is_sec_implicit_index_fn): Likewise.
4289 (ARRAY_NOTATION_CHECK): New define.
4290 (ARRAY_NOTATION_ARRAY): Likewise.
4291 (ARRAY_NOTATION_START): Likewise.
4292 (ARRAY_NOTATION_LENGTH): Likewise.
4293 (ARRAY_NOTATION_STRIDE): Likewise.
4294 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4295 ARRAY_NOTATION_REF.
4296 (pp_c_expression): Likewise.
4297 * c.opt (flag_enable_cilkplus): New flag.
4298 * array-notation-common.c: New file.
4299
f7716d57
JJ
43002013-05-14 Jakub Jelinek <jakub@redhat.com>
4301
4302 PR c++/57274
4303 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4304
a5e0cd1d
MG
43052013-05-10 Marc Glisse <marc.glisse@inria.fr>
4306
4307 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4308 vectors.
4309
f6bc1c4a
HS
43102013-05-07 Han Shen <shenhan@google.com>
4311
4312 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4313
3f12f6e9
SKS
43142013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4315
4316 * c-common.c (check_user_alignment): Emit error for negative values.
4317
61949153
PC
43182013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4319
4320 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4321
e93e18e9
PC
43222013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4323
4324 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4325 __GXX_EXPERIMENTAL_CXX1Y__.
4326
44d90fe1
PC
43272013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4328 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4329
4330 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4331 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4332 to simply use OPT_Wpointer_arith.
4333 (c_sizeof_or_alignof_type): Likewise.
4334
13f39b2e
PC
43352013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4336
4337 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4338
4b84d650
JJ
43392013-04-12 Jakub Jelinek <jakub@redhat.com>
4340
4341 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4342 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4343 specifiers.
4344
fb037b5d
SB
43452013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4346
4347 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4348
4e856798
PC
43492013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4350
4351 * c-common.c (pointer_int_sum): Remove dead code.
4352
4b1baac8
RS
43532013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4354
4355 PR middle-end/56524
4356 * c-common.c (handle_optimize_attribute): Don't call
4357 save_optabs_if_changed.
4358
0b50e654
JJ
43592013-03-05 Jakub Jelinek <jakub@redhat.com>
4360
4361 PR middle-end/56461
4362 * c-pch.c (pch_init): Free target_validity at the end.
4363
48c41403
JJ
43642013-03-04 Jakub Jelinek <jakub@redhat.com>
4365
4366 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4367
e664c61c
KS
43682013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4369 Jakub Jelinek <jakub@redhat.com>
4370
4371 PR sanitizer/56454
4372 * c-common.c (handle_no_sanitize_address_attribute): New function.
4373 (c_common_attribute_table): Add no_sanitize_address attribute.
4374 (handle_no_address_safety_analysis_attribute): Add
4375 no_sanitize_address attribute, not no_address_safety_analysis
4376 attribute.
4377
a475fd3d 43782013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4379
4380 PR target/52555
4381 * c-common.c (handle_optimize_attribute): Call
4382 save_optabs_if_changed.
4383
f6007d99
JJ
43842013-02-18 Jakub Jelinek <jakub@redhat.com>
4385 Steven Bosscher <steven@gcc.gnu.org>
4386
4387 PR pch/54117
4388 * c-opts.c (c_common_post_options): If debug info is enabled
4389 and non-dwarf*, refuse to load PCH files and when writing PCH
4390 file warn.
4391
cf35e2b1
JJ
43922013-02-05 Jakub Jelinek <jakub@redhat.com>
4393
4394 PR middle-end/56167
4395 * c-common.c (handle_error_attribute): Fix condition.
4396
32887460
JJ
43972013-01-30 Jakub Jelinek <jakub@redhat.com>
4398
4399 PR c++/55742
4400 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4401
5af057d8
JM
44022013-01-18 Jason Merrill <jason@redhat.com>
4403
4404 PR target/54908
4405 * c.opt (-fextern-tls-init): New.
4406 * c-opts.c (c_common_post_options): Handle it.
4407
cc83c823
JJ
44082013-01-09 Jakub Jelinek <jakub@redhat.com>
4409
4410 PR c/48418
4411 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4412 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4413 and is either negative or bigger or equal to type precision
4414 of the first operand.
4415
a859517f
MP
44162012-12-03 Marek Polacek <polacek@redhat.com>
4417
4418 PR c/55570
4419 * c-common.c (check_user_alignment): Swap order of tests,
4420 check TREE_CODE first.
4421
2d7aa578
ESR
44222012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4423
4424 PR c++/52654
4425 * c-common.h (overflow_type): New enum.
4426 (build_userdef_literal): Add overflow_type argument.
4427 (tree_userdef_literal): Add overflow_type.
4428 (USERDEF_LITERAL_OVERFLOW): New access macro.
4429 * c-common.c (build_userdef_literal): Add overflow_type
4430 argument.
4431 * c-lex.c (c_lex_with_flags): Add overflow_type to
4432 build_userdef_literal calls.
4433 (interpret_integer, interpret_float): Add overflow_type argument.
4434
cc3c4f62
RB
44352012-11-28 Richard Biener <rguenther@suse.de>
4436
4437 PR c/35634
4438 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4439 here and use a type with proper overflow behavior for types that would
4440 need to be promoted for the arithmetic.
4441
77bc5132
JJ
44422012-11-23 Jakub Jelinek <jakub@redhat.com>
4443
4444 PR sanitizer/55435
4445 * c-common.c (handle_no_address_safety_analysis_attribute): New
4446 function.
4447 (c_common_attribute_table): Add no_address_safety_analysis.
4448
5dc99c46
SB
44492012-11-16 Simon Baldwin <simonb@google.com>
4450
4451 * c.opt: Add f[no-]canonical-system-headers.
4452 * c-opts.c (c_common_handle_option): Handle
4453 OPT_fcanonical_system_headers.
4454
a4a0016d
ESR
44552012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4456
4457 PR c++/54413
4458 * c-opts.c (c_common_handle_option): Set new flags.
4459 * c.opt: Describe new flags.
4460
7dbb85a7
JM
44612012-11-09 Jason Merrill <jason@redhat.com>
4462
4463 * c.opt (Wabi-tag): New.
4464
ad7bac31
AK
44652012-11-09 Andi Kleen <ak@linux.intel.com>
4466
4467 PR 55139
4468 * c-common.c (get_atomic_generic_size): Mask with
4469 MEMMODEL_MASK
4470
7332899a
MLI
44712012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4472
4473 PR c/53063
4474 * c.opt (Wformat): Make it Alias Wformat=1.
4475 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4476 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4477 LangEnabledBy.
4478 (Wformat=): RejectNegative. Use LangEnabledBy.
4479 (Wnonnull): Use LangEnabledBy.
4480 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4481 * c-format.c (set_Wformat): Delete.
4482 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4483 (maybe_read_dollar_number): Likewise.
4484 (avoid_dollar_number): Likewise.
4485 (finish_dollar_format_checking): Likewise.
4486 (check_format_info): Likewise.
4487 (check_format_info_main): Likewise.
4488 (check_format_types): Likewise.
4489 (format_type_warning): Likewise.
4490 * c-common.c (int): Likewise.
4491 (check_function_sentinel): Likewise.
4492 * c-common.h (warn_format,set_Wformat): Do not declare here.
4493
34a180a6
MLI
44942012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4495
4496 PR c/53063
4497 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4498 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4499 Use LangEnabledBy.
4500 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4501 common.opt.
4502 (Wvariadic-macros): Init(1).
4503 * c-opts.c (c_common_handle_option): Do not handle them
4504 explicitly.
4505 (c_common_post_options): Likewise.
4506 (sanitize_cpp_opts): warn_unused_macros is now
4507 cpp_warn_unused_macros.
4508 (push_command_line_include): Likewise.
4509 * c-common.c (warn_unknown_pragmas): Do not define.
4510 * c-common.h (warn_unknown_pragmas): Do not declare.
4511
3f46d6a5
MLI
45122012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4513
4514 PR c/51294
4515 * c-common.c (conversion_warning): Handle conditional expressions.
4516
880661a4
JW
45172012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4518
4519 PR c++/54930
4520 * c.opt (Wreturn_local_addr): Define new option.
4521
4514a96b
JM
45222012-10-25 Jason Merrill <jason@redhat.com>
4523
f14edc1a
JM
4524 * c.opt (Wvirtual-move-assign): New.
4525
4514a96b
JM
4526 * c.opt (Winherited-variadic-ctor): New.
4527
93100c6b
MG
45282012-10-25 Marc Glisse <marc.glisse@inria.fr>
4529
4530 PR c++/54427
4531 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4532
1efcb8c6
JM
45332012-10-23 Joseph Myers <joseph@codesourcery.com>
4534
4535 * c-common.h (pch_cpp_save_state): Declare.
4536 * c-target.def (c_preinclude): New hook.
4537 * c-opts.c (done_preinclude): New.
4538 (push_command_line_include): Handle default preincluded header.
4539 (cb_file_change): Call pch_cpp_save_state when calling
4540 push_command_line_include.
4541 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4542 (pch_cpp_save_state): New.
4543 (pch_init): Call pch_cpp_save_state conditionally, instead of
4544 calling cpp_save_state.
4545
4a0ae68e
MLI
45462012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4547
4548 PR c/53063
4549 PR c/40989
4550 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4551 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4552 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4553 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4554 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4555 * c-opts.c (c_common_handle_option): Remove explicit handling from
4556 here.
4557 (c_common_post_options): Likewise.
4558
67e4210b
EB
45592012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4560
4561 * c-ada-spec.c (LOCATION_COL): Delete.
4562 (compare_location): New function.
4563 (compare_node): Use it.
4564 (compare_comment): Likewise.
4565
65d4f2cd
MLI
45662012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4567
4568 PR c/53063
4569 PR c/40989
4570 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4571 * c-opts.c (c_common_handle_option): Do not set them here. Add
4572 comment.
4573 (c_common_post_options): Likewise.
4574
909881cb
EB
45752012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4576
4577 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4578 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4579 Remove POINTER_TYPE handling, add large unsigned handling and use
4580 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4581
3a785c97
JJ
45822012-10-12 Jakub Jelinek <jakub@redhat.com>
4583
4584 PR c/54381
4585 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4586 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4587 locs and array of 3 trees instead of just single loc and single
4588 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4589 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4590 For *cmp* builtins that take two sources strings report warnings
4591 about first and second source, not about destination and source.
4592
5e54f81d
MG
45932012-10-12 Marc Glisse <marc.glisse@inria.fr>
4594
4595 PR c++/53055
4596 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4597
f5b02f1e
EB
45982012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4599
4600 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4601 declaring something coming from another file.
4602
b46dbc6c
AC
46032012-10-10 Arnaud Charlet <charlet@adacore.com>
4604
f5b02f1e 4605 PR ada/54845
b46dbc6c
AC
4606 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4607
5d9de0d0
PC
46082012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4609
4610 PR c++/54194
4611 * c-common.c (warn_about_parentheses): Add location_t parameter;
4612 use EXPR_LOC_OR_LOC.
4613 * c-common.h: Update declaration.
4614
a212e43f
MG
46152012-10-09 Marc Glisse <marc.glisse@inria.fr>
4616
4617 PR c++/54427
4618 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4619 more operations. Make error messages optional.
4620 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4621 (scalar_to_vector): Declare.
4622
b1db7f91
JM
46232012-10-08 Jason Merrill <jason@redhat.com>
4624
4625 * c-common.c (c_common_reswords): Add thread_local.
4626
e28d52cf
DS
46272012-10-08 Dodji Seketeli <dodji@redhat.com>
4628
4629 PR c++/53528 C++11 attribute support
4630 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4631 new functions.
4632 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4633 static function.
4634 (handle_aligned_attribute): In choose strictest alignment
4635 among many. Use new check_cxx_fundamental_alignment_constraints.
4636 (handle_transparent_union_attribute): In c++11 attribute syntax,
4637 don't look through typedefs.
4638
3b78de56
AC
46392012-10-04 Arnaud Charlet <charlet@adacore.com>
4640
4641 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4642 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4643 out of dumpfile.h.
4644
6040bb5f
DC
46452012-09-25 Dehao Chen <dehao@google.com>
4646
4647 PR middle-end/54645
3b78de56 4648 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4649 map when read in the pch.
4650
0b07a57e
AC
46512012-09-18 Arnaud Charlet <charlet@adacore.com>
4652
4653 * c-ada-spec.c: Style fixes.
4654
da5182be
TQ
46552012-09-18 Thomas Quinot <quinot@adacore.com>
4656
4657 * c.opt (-fada-spec-parent): Define new command line switch.
4658 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4659 is specified, generate binding spec as a child of the specified unit.
4660
0ccb505d
PC
46612012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4662 Manuel López-Ibáñez <manu@gcc.gnu.org>
4663
4664 PR c++/53210
4665 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4666
c583af79
AC
46672012-08-23 Arnaud Charlet <charlet@adacore.com>
4668
4669 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4670 for pointers, and add missing Convention C pragma.
4671 (print_ada_struct_decl): Add missing aliased keyword.
4672 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4673
1a4049e7
JJ
46742012-08-17 Jakub Jelinek <jakub@redhat.com>
4675
4676 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4677 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4678 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4679 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4680 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4681
70b5e7dc
RG
46822012-08-10 Richard Guenther <rguenther@suse.de>
4683
4684 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4685
f8923f7e
SB
46862012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4687
4688 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4689 instead of separate pp_newline and pp_flush.
4690 (print_c_tree): Likewise.
4691
e45abe1f
RH
46922012-07-26 Richard Henderson <rth@redhat.com>
4693
4694 * c-common.c (handle_hot_attribute): Allow labels.
4695 (handle_cold_attribute): Likewise.
4696
332f1d24
JJ
46972012-07-20 Jakub Jelinek <jakub@redhat.com>
4698
4699 PR c++/28656
4700 * c-common.c (check_function_nonnull): Handle multiple nonnull
4701 attributes properly.
4702
7ee2468b
SB
47032012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4704
4705 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4706 * c-ada-spec.c: Likewise.
4707 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4708
ee7b28eb
SB
47092012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4710
4711 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4712 Remove code conditional on it.
4713
6bdf3519
SB
47142012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4715
4716 * c-gimplify.c: Do not include basic-block.h.
4717 * c-common.c: Do not include linfuncs.h.
4718
532aafad
SB
47192012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4720
4721 * c-common.h: Include tree.h.
4722
8d0d1915
JM
47232012-07-02 Jason Merrill <jason@redhat.com>
4724
4725 PR c++/53524
4726 * c-common.c (get_priority): Call default_conversion.
4727
fbc873ad
UB
47282012-07-01 Uros Bizjak <ubizjak@gmail.com>
4729
4730 * c-pch.c (c_common_write_pch): Remove unused variables.
4731
d4a10d0a
SB
47322012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4733
4734 * cppspec.c: Moved from gcc/ to here.
4735
6f3a2e23
KT
47362012-06-27 Kai Tietz <ktietz@redhat.com>
4737
4738 PR preprocessor/37215
4739 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4740
8ca92d04
SB
47412012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4742
4743 * c-common.h (c_common_print_pch_checksum): Remove.
4744 * c-pch.c: Do not include output.h.
4745 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4746 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4747 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4748 (struct c_pch_header): Remove.
4749 (get_ident): Update gpch version.
4750 (pch_init): Do not print executable_checksum to asm_out_file.
4751 Do not fail if there is no asm_out_file to read back from. Set
4752 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4753 (c_common_write_pch): Verify that nothing was written to asm_out_file
4754 since pch_init was called. Do not write a c_pch_header, and do not
4755 copy from asm_out_file to the PCH.
4756 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4757 the content of asm_out_file from the PCH.
4758 (c_common_print_pch_checksum): Remove.
4759 * c-opts.c (c_common_init): Print out executable_checksum directly.
4760
70f42967
SB
47612012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4762
4763 * c-target.def (objc_declare_unresolved_class_reference,
4764 objc_declare_class_definition): Add new hooks.
4765
a8781821
SB
47662012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4767
4768 * c-lex.c: Do not include output.h.
4769 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4770 Remove uses of ASM_OUTPUT_IDENT.
4771
9e1a8dd1
RR
47722012-06-15 Marc Glisse <marc.glisse@inria.fr>
4773
4774 PR c++/51033
4775 * c-common.h (c_build_vec_perm_expr): Move decl here.
4776 * c-common.c (c_build_vec_perm_expr): Move definition
4777 here.
4778
6f07a821
SB
47792012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4780
4781 * c.opt (fconserve-space): Turn into a no-op.
4782
9faeb493 47832012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4784
4785 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4786 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4787 both the start and end of the function.
4788
a4b7d13c
SB
47892012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4790
4791 * c-common.c: Do not include output.h.
4792 * c-pragma.c: Likewise.
4793
c265f413
SA
47942012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4795
4796 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4797 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4798 (lang_decl_name): Handle namespace decls.
4799
be7a421e
SB
48002012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4801
4802 * c-ada-spec.c: Do not include output.h.
4803 * c-semantics.c: Likewise.
4804
65de6659
JM
48052012-05-29 Joseph Myers <joseph@codesourcery.com>
4806
4807 * c-common.c: Fix typo.
4808
ca5f4331
MM
48092012-05-29 Michael Matz <matz@suse.de>
4810
4811 * c-common.h (c_expand_decl): Remove prototype.
4812
4f7f7aca
MLI
48132012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4814
4815 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4816 * c-opts.c (c_common_handle_option): Remove code handling
4817 warn_missing_braces.
4818
4a792f9b
PC
48192012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4820
4821 PR c++/25137
4822 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4823 -Wmissing_braces.
4824
650dc14a
DS
48252012-05-22 Dodji Seketeli <dodji@redhat.com>
4826
4827 PR c++/53322
4828 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4829
9b095bf1
MLI
48302012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4831
4832 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4833 * c-opts.c (c_common_handle_option): Do not handle explicitly
4834 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4835
0b2c4be5
DS
48362012-05-16 Dodji Seketeli <dodji@redhat.com>
4837
4838 PR preprocessor/7263
4839 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4840 to cpp_classify_number. For diagnostics, use the precise location
4841 instead of the global input_location.
4842
a1bde5af
PC
48432012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4844
d02924ef 4845 PR c++/11856
a1bde5af
PC
4846 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4847
d1ede5f4
BS
48482012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4849
a1bde5af 4850 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4851
f2bc201f
MLI
48522012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4853
4854 PR 53063
4855 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4856 Wreorder): Use LangEnabledBy.
4857 * c-opts.c (c_common_handle_option): Do not enable them
4858 explicitly. Call lang-specific generated functions.
4859 (c_common_post_options): Do not set them here.
4860
95744782
MLI
48612012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4862
4863 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4864 Wmissing-field-initializers,Wmissing-parameter-type,
4865 Wold-style-declaration,Woverride-init): Use EnabledBy.
4866 * c-opts.c (c_common_post_options): Do not set here explicitly.
4867
7d5a5747
MLI
48682012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4869
4870 PR 53063
4871 * c-opts.c (c_common_handle_option): Use handle_generated_option
4872 to enable sub-options.
4873
5a3c9cf2
PC
48742012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4875
4876 PR c++/53158
4877 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4878
3ac8781c
RG
48792012-05-10 Richard Guenther <rguenther@suse.de>
4880
4881 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4882 adjust commentary about TYPE_IS_SIZETYPE types.
4883
1e537948
MLI
48842012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4885
4886 PR c++/53261
4887 * c-common.c (warn_logical_operator): Check that argument of
4888 integer_zerop is not NULL.
4889
f2c4a785
MLI
48902012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4891
4892 PR c/43772
4893 * c-common.c (warn_logical_operator): Do not warn if either side
4894 is already true or false.
4895
50f305ca
MLI
48962012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4897
4898 PR c/51712
4899 * c-common.c (expr_original_type): New.
4900 (shorten_compare): Do not warn for enumeration types.
4901
0c3641b0
MLI
49022012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4903
4904 * c.opt (fpermissive): Add Var(flag_permissive).
4905
7edaa4d2
MG
49062012-04-30 Marc Glisse <marc.glisse@inria.fr>
4907
4908 PR c++/51033
4909 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4910 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4911
b9c8da34
DS
49122012-04-30 Dodji Seketeli <dodji@redhat.com>
4913
4914 Add -Wvarargs option
4915 * c.opt (Wvarargs): Define new option.
4916
e6c69da0
MLI
49172012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4918
4919 * c-common.c (check_function_arguments): Replace
4920 Wmissing-format-attribute with Wsuggest-attribute=format.
4921
90137d8f
MLI
49222012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4923
4924 * c.opt (Wsuggest-attribute=format): New. Alias of
4925 Wmissing-format-attribute.
4926 * c-format.c (decode_format_type): Replace
4927 Wmissing-format-attribute with Wsuggest-attribute=format.
4928 (check_function_format): Likewise.
4929
9faeb493 49302012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4931
4932 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4933 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4934 * c.opt: Add Wliteral-suffix.
4935
c1771a20
MLI
49362012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4937
4938 PR c/44774
4939 * c.opt (Wpedantic): New.
4940 (pedantic): Alias Wpedantic.
4941 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4942 (c_common_post_options): Likewise.
4943 (sanitize_cpp_opts): Likewise.
4944 * c-lex.c (interpret_float): Likewise.
4945 * c-format.c (check_format_types): Likewise.
4946 * c-common.c (pointer_int_sum): Likewise.
4947 (c_sizeof_or_alignof_type): Likewise.
4948 (c_add_case_label): Likewise.
4949 (c_do_switch_warnings): Likewise.
4950 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4951
04b391c1
JM
49522012-04-15 Jason Merrill <jason@redhat.com>
4953
4954 PR c++/52818
4955 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4956 (C_STD_NAME): Distinguish between C++98 and C++11.
4957
ac868f29
EB
49582012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4959
4960 PR target/52624
4961 * c-common.h (uint16_type_node): Rename into...
4962 (c_uint16_type_node): ...this.
4963 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4964 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4965
fd4116f4
MLI
49662012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4967
4968 * c-common.c (warn_if_unused_value): Move definition to here.
4969 * c-common.h (warn_if_unused_value): Move declaration to here.
4970
573ac65e
WB
49712012-03-23 William Bader <williambader@hotmail.com>
4972
4973 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4974
552b8185
JM
49752012-03-20 Jason Merrill <jason@redhat.com>
4976
4977 * c-common.h (enum cxx_dialect): Add cxx1y.
4978 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4979 test.
4980 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4981 * c-opts.c (c_common_post_options): Likewise.
4982 (set_std_cxx1y): New.
4983 (c_common_handle_option): Call it.
4984 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4985
04398fa8
PC
49862012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4987
4988 PR c++/14710
4989 * c.opt ([Wuseless-cast]): Add.
4990
d2a12ae7
RG
49912012-03-16 Richard Guenther <rguenther@suse.de>
4992
4993 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4994
a12bf402
MLI
49952012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4996
4997 PR c++/44783
4998 * c.opt (ftemplate-backtrace-limit) Add.
4999
5c30094f
RO
50002012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5001
5002 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5003 handling.
5004 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5005 (init_pragma): Don't register extern_prefix.
5006
21fa2faf
RG
50072012-03-12 Richard Guenther <rguenther@suse.de>
5008
5009 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5010 (builtin_type_for_size): Likewise.
5011
e3793c6f
JJ
50122012-02-13 Jakub Jelinek <jakub@redhat.com>
5013
5014 PR c++/52215
5015 * c-common.c (sync_resolve_params): Don't decide whether to convert
5016 or not based on TYPE_SIZE comparison, convert whenever arg_type
5017 is unsigned INTEGER_TYPE.
5018
93286335
PC
50192012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5020
5021 PR c/52118
5022 * c.opt ([Wunused-local-typedefs]): Fix description.
5023
7a421706
MS
50242012-01-24 Mike Stump <mikestump@comcast.net>
5025
5026 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5027 exactly.
5028
ba9b1f11
RG
50292012-01-18 Richard Guenther <rguenther@suse.de>
5030
5031 * c-opts.c (c_common_post_options): Reset LTO flags if
5032 we are about to generate a PCH.
5033
465406be
PC
50342012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5035
5036 PR c++/51777
5037 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5038 use pp_unsigned_wide_integer.
5039
aee15221
RG
50402012-01-10 Richard Guenther <rguenther@suse.de>
5041
5042 PR middle-end/51806
5043 * c-opts.c (c_common_handle_option): Move -Werror handling
5044 to language independent code.
5045
5720c0dc
RG
50462012-01-05 Richard Guenther <rguenther@suse.de>
5047
5048 PR middle-end/51764
5049 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5050 from common.opt.
5051
73ac190a
PC
50522011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5053
5054 PR c++/51316
5055 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5056 of array types with an unknown bound.
5057
48b0b196
JM
50582011-12-20 Joseph Myers <joseph@codesourcery.com>
5059
5060 * c-common.c (flag_isoc99): Update comment to refer to C11.
5061 (flag_isoc1x): Change to flag_isoc11.
5062 * c-common.h (flag_isoc99): Update comment to refer to C11.
5063 (flag_isoc1x): Change to flag_isoc11.
5064 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5065 C11.
5066 * c-opts.c (set_std_c1x): Change to set_std_c11.
5067 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5068 Call set_std_c11.
5069 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5070 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5071 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5072 standard.
5073 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5074 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5075 (std=gnu1x): Make alias of std=gnu11.
5076
d58d6eb5
JM
50772011-12-19 Jason Merrill <jason@redhat.com>
5078
5079 PR c++/51228
5080 * c-common.c (handle_transparent_union_attribute): Check the first
5081 field if the type is complete.
5082
b3908fcc
JW
50832011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5084
5085 PR libstdc++/51365
5086 * c-common.c (RID_IS_FINAL): Add.
5087 * c-common.h (RID_IS_FINAL): Add.
5088
fea3ca91
IS
50892011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5090
5091 * c.opt (fgnu-runtime): Provide full description.
5092 (fnext-runtime): Likewise.
5093 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5094
62bad7cd
AM
50952011-11-28 Andrew MacLeod <amacleod@redhat.com>
5096
5097 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5098 predefines in one place. Add LOCK_FREE predefines.
5099 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5100 new func.
5101
c466c4ff
AM
51022011-11-24 Andrew MacLeod <amacleod@redhat.com>
5103
5104 PR c/51256
9faeb493 5105 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5106 conditions
9faeb493
UB
5107 (resolve_overloaded_atomic_exchange,
5108 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5109 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5110 error_mark_node for error conditions.
9faeb493 5111
a5952633
RG
51122011-11-08 Richard Guenther <rguenther@suse.de>
5113
5114 PR middle-end/51010
5115 c-family/
5116
0a35513e
AH
51172011-11-07 Richard Henderson <rth@redhat.com>
5118 Aldy Hernandez <aldyh@redhat.com>
5119 Torvald Riegel <triegel@redhat.com>
5120
5121 Merged from transactional-memory.
5122
5123 * c-common.c (handle_tm_wrap_attribute,
5124 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5125 (struct c_common_reswords): Added __transaction* keywords.
5126 (struct c_common_attribute_table): Added transaction* and tm_regparm
5127 attributes.
5128 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5129 masks.
5130 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5131 find_tm_attribute): Declare.
5132
6d87092d
JM
51332011-11-07 Jason Merrill <jason@redhat.com>
5134
5135 PR c++/35688
5136 * c-common.c, c-common.h: Revert yesterday's changes.
5137
8e7860a1
JM
51382011-11-06 Jason Merrill <jason@redhat.com>
5139
5140 PR c++/35688
5141 * c-common.c (decl_has_visibility_attr): Split out from...
5142 (c_determine_visibility): ...here.
5143 * c-common.h: Declare it.
5144
d19fa6b5
JM
51452011-11-06 Joseph Myers <joseph@codesourcery.com>
5146
5147 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5148 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5149 type.
5150 (check_user_alignment): New. Split out of
5151 handle_aligned_attribute. Disallow integer constants with
5152 noninteger types. Conditionally allow zero.
5153 (handle_aligned_attribute): Use check_user_alignment.
5154 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5155
86951993
AM
51562011-11-06 Andrew MacLeod <amacleod@redhat.com>
5157 Richard Henderson <rth@redhat.com>
5158
5159 Merged from cxx-mem-model.
5160
5161 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5162 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5163 parameters that are the same type size.
5164 (get_atomic_generic_size): New. Find size of generic
5165 atomic function parameters and do typechecking.
5166 (add_atomic_size_parameter): New. Insert size into parameter list.
5167 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5168 either __atomic_exchange_n or external library call.
9faeb493 5169 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5170 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5171 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5172 __atomic_load_n or an external library call.
5173 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5174 __atomic_store_n or an external library call.
5175 (resolve_overloaded_builtin): Handle new __atomic builtins.
5176
cf9e9959
EB
51772011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5178
5179 PR c++/50608
5180 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5181 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5182 <INDIRECT_REF>: Return the argument.
5183 <ARRAY_REF>: Remove special code for negative offset.
5184 Call fold_build_pointer_plus instead of size_binop.
5185 (fold_offsetof): Remove STOP_REF argument and adjust.
5186 * c-common.h (fold_offsetof_1): Declare.
5187 (fold_offsetof): Remove STOP_REF argument.
5188
25339f10
JM
51892011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5190
5191 PR c++/50810
5192 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5193 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5194 Wnarrowing for C++0x and C++98.
5195 * c.opt ([Wnarrowing]): Update.
5196
89401152
PC
51972011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5198
5199 PR c++/44277
5200 * c.opt: Add Wzero-as-null-pointer-constant.
5201
97e3ad20
JM
52022011-10-31 Jason Merrill <jason@redhat.com>
5203
15694fdd
JM
5204 * c.opt (-fdeduce-init-list): Off by default.
5205
97e3ad20
JM
5206 PR c++/50920
5207 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5208 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5209 and -Wc++11-compat.
5210 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5211
fb9120e3
RAV
52122011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5213
5214 PR c++/30066
5215 * c.opt (fvisibility-inlines-hidden): Description change.
5216
3ce4f9e4
ESR
52172011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5218
5219 Implement C++11 user-defined literals.
5220 * c-common.c (build_userdef_literal): New.
5221 * c-common.def: New tree code.
5222 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5223 * c-lex.c (interpret_float): Add suffix parm.
5224 (c_lex_with_flags): Build literal tokens.
5225
5f53c243
PC
52262011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5227
5228 PR c++/50841
5229 Revert:
5230 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5231
5232 PR c++/50810
5233 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5234 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5235 Wnarrowing for C++0x and C++98.
5236 * c.opt ([Wnarrowing]): Update.
5237
263734e1
PC
52382011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5239
5240 PR c++/50810
5241 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5242 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5243 Wnarrowing for C++0x and C++98.
5244 * c.opt ([Wnarrowing]): Update.
5245
d2e312d7
PC
52462011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5247
5248 PR c++/45385
5249 * c-common.c (conversion_warning): Remove code looking for
5250 artificial operands.
5251
d17687f6
DS
52522011-10-18 Dodji Seketeli <dodji@redhat.com>
5253
5254 PR bootstrap/50760
5255 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5256 !NO_IMPLICIT_EXTERN_C.
d17687f6 5257
fc8396e9
PC
52582011-10-17 Michael Spertus <mike_spertus@symantec.com>
5259
5260 * c-common.c (c_common_reswords): Add __bases,
5261 __direct_bases.
5262 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5263
52642011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5265
5266 PR c++/50757
5267 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5268
847e697a
TT
52692011-10-15 Tom Tromey <tromey@redhat.com>
5270 Dodji Seketeli <dodji@redhat.com>
5271
5272 * c.opt (fdebug-cpp): New option.
5273 * c-opts.c (c_common_handle_option): Handle the option.
5274 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5275 output stream in parameter. Factorized from ...
5276 (maybe_print_line): ... this. Dump location debug information when
5277 -fdebug-cpp is in effect.
5278 (print_line_1): New static function. Takes an output stream in
5279 parameter. Factorized from ...
5280 (print_line): ... here. Dump location information when -fdebug-cpp
5281 is in effect.
5282 (scan_translation_unit): Dump location information when
5283 -fdebug-cpp is in effect.
5284
92582b75
TT
52852011-10-15 Tom Tromey <tromey@redhat.com>
5286 Dodji Seketeli <dodji@redhat.com>
5287
5288 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5289 without argument.
5290 * c-opts.c (c_common_handle_option)<case
5291 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5292 cases. Handle -ftrack-macro-expansion with and without argument.
5293
46427374
TT
52942011-10-15 Tom Tromey <tromey@redhat.com>
5295 Dodji Seketeli <dodji@redhat.com>
5296
5297 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5298 (print_line, cb_define, do_line_change): Adjust to avoid touching
5299 the internals of struct line_map. Use the public API instead.
5300 * c-pch.c (c_common_read_pch): Likewise.
5301 * c-lex.c (fe_file_change): Likewise.
5302
fc8396e9
PC
53032011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5304
5305 PR c++/17212
5306 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5307
53082011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5309
5310 PR c++/33067
5311 * c-pretty-print.c (pp_c_floating_constant): Output
5312 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5313
e79983f4
MM
53142011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5315
5316 * c-common.c (def_builtin_1): Delete old interface with two
5317 parallel arrays to hold standard builtin declarations, and replace
5318 it with a function based interface that can support creating
5319 builtins on the fly in the future. Change all uses, and poison
5320 the old names. Make sure 0 is not a legitimate builtin index.
5321 * c-omp.c (c_finish_omp_barrier): Ditto.
5322 (c_finish_omp_taskwait): Ditto.
5323 (c_finish_omp_flush): Ditto.
5324
6637388f
TG
53252011-10-11 Tristan Gingold <gingold@adacore.com>
5326
5327 * c.opt: (fallow-parameterless-variadic-functions): New.
5328
3797cb21
DS
53292011-09-08 Dodji Seketeli <dodji@redhat.com>
5330
5331 PR c++/33255 - Support -Wunused-local-typedefs warning
5332 * c-common.h (struct c_language_function::local_typedefs): New
5333 field.
9faeb493
UB
5334 (record_locally_defined_typedef, maybe_record_typedef_use)
5335 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5336 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5337 (maybe_record_typedef_use)
5338 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5339 * c.opt: Declare new -Wunused-local-typedefs flag.
5340
693ddb1b
EB
53412011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5342
5343 PR middle-end/50266
5344 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5345 computations.
5346
830c740f
RG
53472011-09-05 Richard Guenther <rguenther@suse.de>
5348
5349 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5350 of integer_minus_one_node for empty array upper bounds.
5351
892a371f
DS
53522011-08-28 Dodji Seketeli <dodji@redhat.com>
5353
5354 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5355 it's the first time it's being called on this main TU.
5356
0e3fdb48
RB
53572011-08-24 Richard Guenther <rguenther@suse.de>
5358
5359 PR c/49396
5360 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5361
53622011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5363
5364 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5365 defined in cpp_init_builtins and c_cpp_builtins.
5366
d4a83c10
JM
53672011-08-19 Joseph Myers <joseph@codesourcery.com>
5368
5369 * c-common.c (c_common_reswords): Add __builtin_complex.
5370 * c-common.h (RID_BUILTIN_COMPLEX): New.
5371
bbceee64
JM
53722011-08-18 Joseph Myers <joseph@codesourcery.com>
5373
5374 * c-common.c (c_common_reswords): Add _Noreturn.
5375 (keyword_is_function_specifier): Handle RID_NORETURN.
5376 * c-common.h (RID_NORETURN): New.
5377
0e3a99ae
AS
53782011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5379
5380 * c-common.c (unsafe_conversion_p): New function. Check if it is
5381 unsafe to convert an expression to the type.
5382 (conversion_warning): Adjust, use unsafe_conversion_p.
5383 * c-common.h (unsafe_conversion_p): New function declaration.
5384
20906c66
JJ
53852011-08-02 Jakub Jelinek <jakub@redhat.com>
5386
5387 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5388 (c_finish_omp_taskyield): New prototype.
5389 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5390 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5391 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5392 or RHS1 have side-effects, evaluate those too in the right spot,
5393 if it is a decl and LHS is also a decl, error out if they
5394 aren't the same.
5395 (c_finish_omp_taskyield): New function.
5396 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5397 * c-pragma.c (omp_pragmas): Add taskyield.
5398 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5399 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5400 PRAGMA_OMP_CLAUSE_MERGEABLE.
5401
770e5a2e
DS
54022011-07-25 Dodji Seketeli <dodji@redhat.com>
5403
5404 * c-common.h (set_underlying_type): Remove parm name from
5405 declaration.
5406
1baae426
RG
54072011-07-25 Romain Geissler <romain.geissler@gmail.com>
5408
5409 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5410
fcb21722
JM
54112011-07-22 Jason Merrill <jason@redhat.com>
5412
76f86d00
JM
5413 PR c++/49793
5414 * c.opt (Wnarrowing): New.
5415
3a636414
JM
5416 PR c++/30112
5417 * c-common.h: Declare c_linkage_bindings.
5418 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5419
fcb21722
JM
5420 PR c++/49813
5421 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5422 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5423 as flag_isoc99 for 'restrict'.
5424 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5425
02614448
ILT
54262011-07-21 Ian Lance Taylor <iant@google.com>
5427
5428 PR middle-end/49705
5429 * c-common.c (c_disable_warnings): New static function.
5430 (c_enable_warnings): New static function.
5431 (c_fully_fold_internal): Change local unused_p to bool. Call
5432 c_disable_warnings and c_enable_warnings rather than change
5433 c_inhibit_evaluation_warnings.
5434
34429675
JM
54352011-07-20 Jason Merrill <jason@redhat.com>
5436
5437 PR c++/6709 (DR 743)
5438 PR c++/42603 (DR 950)
5439 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5440 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5441 (CPP_DECLTYPE): New.
5442 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5443
5d49b6a7
RG
54442011-07-19 Richard Guenther <rguenther@suse.de>
5445
5446 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5447 * c-omp.c (c_finish_omp_for): Likewise.
5448
e84a58ff
EB
54492011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5450
5451 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5452 body on the next line.
5453
329af3c7
JM
54542011-07-08 Jason Merrill <jason@redhat.com>
5455
4063e61b
JM
5456 PR c++/45437
5457 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5458
329af3c7
JM
5459 PR c++/49673
5460 * c-common.c (c_apply_type_quals_to_decl): Don't check
5461 TYPE_NEEDS_CONSTRUCTING.
5462
1a072294
RG
54632011-07-06 Richard Guenther <rguenther@suse.de>
5464
5465 * c-common.c (c_common_nodes_and_builtins):
5466 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5467
fce5dddd
RG
54682011-07-05 Richard Guenther <rguenther@suse.de>
5469
5470 * c-common.c (c_common_nodes_and_builtins): Build all common
5471 tree nodes first.
5472
45d439ac
JJ
54732011-06-27 Jakub Jelinek <jakub@redhat.com>
5474
56300785
JJ
5475 * c-common.h (c_tree_chain_next): New static inline function.
5476
45d439ac
JJ
5477 * c-common.c (check_builtin_function_arguments): Handle
5478 BUILT_IN_ASSUME_ALIGNED.
5479
e0a8ecf2
AM
54802011-06-21 Andrew MacLeod <amacleod@redhat.com>
5481
5482 * c-common.c: Add sync_ or SYNC__ to builtin names.
5483 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5484
54852011-06-20 Pierre Vittet <piervit@pvittet.com>
5486
5487 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5488 handler.
5489 (gen_pragma_handler): New union.
5490 (internal_pragma_handler): New type.
5491 (c_register_pragma_with_data)
5492 (c_register_pragma_with_expansion_and_data): New functions.
5493
5494 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5495 (c_register_pragma, c_register_pragma_with_expansion)
5496 (c_invoke_pragma_handler): Changed to work with
5497 internal_pragma_handler.
5498 (c_register_pragma_with_data)
5499 (c_register_pragma_with_expansion_and_data): New functions.
5500
677f3fa8
JM
55012011-06-14 Joseph Myers <joseph@codesourcery.com>
5502
5503 * c-common.c: Include common/common-target.h.
5504 (handle_section_attribute): Use
5505 targetm_common.have_named_sections.
5506 * c-cppbuiltin.c: Include common/common-target.h.
5507 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5508
d7fc8c14
RG
55092011-06-10 Richard Guenther <rguenther@suse.de>
5510
5511 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5512 to print a IDENTIFIER_NODE.
5513
10e48e39
RO
55142011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5515 Joseph Myers <joseph@codesourcery.com>
5516
5517 * c.opt (fbuilding-libgcc): New option.
5518 * c-cppbuiltin.c (c_cpp_builtins): Define
5519 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5520
6976ae51
JM
55212011-06-07 Jason Merrill <jason@redhat.com>
5522
3ff60975
JM
5523 * c-common.c (max_tinst_depth): Lower default to 900.
5524
6976ae51
JM
5525 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5526
009db074
RG
55272011-06-07 Richard Guenther <rguenther@suse.de>
5528
5529 * c-common.c (c_common_nodes_and_builtins): Do not set
5530 size_type_node or call set_sizetype.
5531
b4592b92
DS
55322011-06-07 Dodji Seketeli <dodji@redhat.com>
5533
5534 PR debug/49130
5535 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5536 type when using pointer comparison to compare types.
b4592b92 5537
014ab419
JW
55382011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5539
5540 * c.opt: Add -Wdelete-non-virtual-dtor.
5541 * c-opts.c (c_common_handle_option): Include it in -Wall.
5542
4f60111f
NF
55432011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5544
5545 PR bootstrap/49190
5546
5547 Revert:
5548 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5549
5550 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5551 not tree_common.
5552
4cc4f2f4
JJ
55532011-05-27 Jakub Jelinek <jakub@redhat.com>
5554
5555 PR c++/49165
5556 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5557 C++ don't call c_common_truthvalue_conversion on void type arms.
5558
38e01f9e
NF
55592011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5560
5561 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5562 (stmt_list_stack): Define.
5563 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5564 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5565
92e948a8
NF
55662011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5567
5568 * c-common.c (warning_candidate_p): Check for BLOCKs.
5569
a2fc3e63
NF
55702011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5571
5572 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5573 not tree_common.
5574
0957c029
JJ
55752011-05-25 Jakub Jelinek <jakub@redhat.com>
5576
5577 * c-common.c (def_fn_type): Remove extra va_end.
5578
828fb3ba
JM
55792011-05-23 Jason Merrill <jason@redhat.com>
5580
5581 PR c++/48106
5582 * c-common.c (c_common_get_narrower): New.
5583 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5584
dde05067
NF
55852011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5586
5587 * c-common.h (check_function_arguments): Tweak prototype of
5588 check_function_arguments.
5589 * c-common.c (check_function_arguments): Likewise. Adjust
5590 calls to check_function_nonnull, check_function_format, and
5591 check_function_sentinel.
5592 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5593 separate attributes and typelist arguments. Use
5594 FOREACH_FUNCTION_ARGS to iterate over argument types.
5595
3c0d13bf
PC
55962011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5597
5598 * c-common.c (c_common_reswords): Reorder.
5599 * c-common.h (rid): Likewise.
5600
8242dd04
NF
56012011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5602
5603 * c-common.c (def_fn_type): Don't call build_function_type, call
5604 build_function_type_array or build_varargs_function_type_array
5605 instead.
5606 (c_common_nodes_and_builtins): Likewise.
5607
3d528853
NF
56082011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5609
5610 * c-common.c (c_add_case_label): Omit the loc argument to
5611 build_case_label.
5612 * c-common.h (build_case_label): Remove.
5613 * c-semantics.c (build_case_label): Remove.
5614
a04a722b
JM
56152011-05-05 Joseph Myers <joseph@codesourcery.com>
5616
5617 * c-objc.h (objc_start_method_definition): Update prototype.
5618 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5619
e19a18d4
NF
56202011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5621
5622 * c-common.c (check_main_parameter_types): Reindent. Don't use
5623 TYPE_ARG_TYPES directly.
5624 (handle_nonnull_attribute): Likewise.
5625 (sync_resolve_params): Likewise.
5626 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5627 to check_format_string.
5628 (handle_format_attribute): Likewise.
5629 (check_format_string): Take a function type to examine instead of
5630 a type list. Use a function_arg_iterator to step through argument
5631 types.
5632
c62c040f
RG
56332011-05-04 Richard Guenther <rguenther@suse.de>
5634
5635 * c-common.c (fix_string_type): Use size_int for index type bounds.
5636 (start_fname_decls): Do not pass NULL to build_int_cst.
5637 (c_init_attributes): Likewise.
5638 * c-lex.c (c_lex_with_flags): Likewise.
5639
c12ff9d8
JM
56402011-04-27 Jason Merrill <jason@redhat.com>
5641
5642 * c-common.c (make_tree_vector_from_list): New.
5643 * c-common.h: Declare it.
5644
304dfbe3
RG
56452011-04-26 Richard Guenther <rguenther@suse.de>
5646
5647 PR preprocessor/48248
5648 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5649 for output size with -P.
5650
3c0d13bf
PC
56512011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5652
5653 * c-common.c (struct c_common_resword): Add __underlying_type.
5654 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5655
04695783
JM
56562011-04-20 Jim Meyering <meyering@redhat.com>
5657
5658 * c-format.c (init_dollar_format_checking): Remove useless
5659 if-before-free.
5660
0dc33c3c
NP
56612011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5662
5663 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5664 (objc_detect_field_duplicates): New.
0dc33c3c 5665 * stub-objc.c: Likewise.
3c0d13bf 5666
c59633d9
NP
56672011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5668
5669 * stub-objc.c (objc_declare_protocols): Renamed to
5670 objc_declare_protocol.
5671 * c-objc.h: Likewise.
3c0d13bf 5672
32dabdaf
NP
56732011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5674
5675 * stub-objc.c (objc_declare_class): Updated argument name.
5676
81f653d6
NF
56772011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5678
5679 * c-common.h (c_common_init_ts): Declare.
5680 * c-common.c (c_common_init_ts): Define.
5681
eb345401
NP
56822011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5683
5684 * c-objc.h (objc_build_message_expr): Updated prototype.
5685 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5686
a358e188
MJ
56872011-04-12 Martin Jambor <mjambor@suse.cz>
5688
5689 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5690 of cgraph_node.
5691
e6313a78
RG
56922011-04-11 Richard Guenther <rguenther@suse.de>
5693
5694 * c-common.c (complete_array_type): Build a range type of
5695 proper type.
5696
dcf0c47e
NF
56972011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5698
5699 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5700 (handle_type_generic_attribute): Likewise.
5701
1ee44b26
JM
57022011-04-07 Jason Merrill <jason@redhat.com>
5703
5704 PR c++/48450
5705 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5706 conversion from C++0x scoped enum.
5707
acce4e77
JM
57082011-04-06 Joseph Myers <joseph@codesourcery.com>
5709
5710 * c-target-def.h: New file.
5711 * c-target.def: New file.
5712 * c-target.h: New file.
5713 * c-common.c (targetcm): Don't define here.
5714 * c-common.h (default_handle_c_option): Declare.
5715 * c-format.c: Include c-target.h instead of target.h.
5716 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5717 include tm.h.
5718 (default_handle_c_option): Move from targhooks.c.
5719
e2eefb55
JJ
57202011-03-29 Jakub Jelinek <jakub@redhat.com>
5721
5722 PR preprocessor/48248
5723 * c-ppoutput.c (print): Add src_file field.
5724 (init_pp_output): Initialize it.
5725 (maybe_print_line): Don't optimize by adding up to 8 newlines
5726 if map->to_file and print.src_file are different file.
5727 (print_line): Update print.src_file.
5728
ba78087b
KT
57292011-03-25 Kai Tietz <ktietz@redhat.com>
5730
5731 * c-ada-spec.c (compare_comment): Use filename_cmp
5732 instead of strcmp for filename.
5733
0edf1bb2
JL
57342011-03-25 Jeff Law <law@redhat.com>
5735
adfac8df 5736 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5737
c7dc8804
JM
57382011-03-25 Jason Merrill <jason@redhat.com>
5739
5740 * c.opt: Add -std=c++03.
5741
d1d879b1
EB
57422011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5743
5744 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5745
62d784f7
KT
57462011-03-17 Kai Tietz
5747
5748 PR target/12171
5050afdf
KT
5749 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5750 Display allowed attributes for function pointer types.
5751 (pp_c_attributes_display): New function to display
5752 attributes having affects_type_identity flag set to true.
5753 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5754
62d784f7
KT
5755 * c-common.c (c_common_attribute_table):
5756 Add new element.
5757 (c_common_format_attribute_table): Likewise.
5758
82d37118
JM
57592011-03-18 Jason Merrill <jason@redhat.com>
5760
49a000c3
JM
5761 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5762 * c-common.h: Don't declare it here.
5763 * c-common.c: Or define it here.
5764 * c-opts.c (c_common_handle_option): Or set it here.
5765
82d37118
JM
5766 PR c++/35315
5767 * c-common.c (handle_transparent_union_attribute): Don't
5768 make a duplicate type in C++.
5769
17bc631c
JM
57702011-03-15 Jason Merrill <jason@redhat.com>
5771
5772 * c-common.c (max_constexpr_depth): New.
5773 * c-common.h: Declare it.
5774 * c-opts.c (c_common_handle_option): Set it.
5775 * c.opt (fconstexpr-depth): New option.
5776
1b9b91a6
JM
57772011-03-11 Jason Merrill <jason@redhat.com>
5778
f231b5ff
JM
5779 * c-common.c (attribute_takes_identifier_p): Add missing const.
5780
1b9b91a6
JM
5781 PR c++/46803
5782 * c-common.c (attribute_takes_identifier_p): Assume that an
5783 unknown attribute takes an identifier.
5784
a19e4d44
NF
57852011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5786
5787 PR c/47786
5788 * c-common.c (c_type_hash): Call list_length instead of iterating
5789 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5790
982d62f6
JJ
57912011-02-19 Jakub Jelinek <jakub@redhat.com>
5792
5793 PR c/47809
5794 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5795
0a256240
NP
57962011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5797
5798 * c.opt (fobjc-abi-version=) New.
5799 (fobjc-nilcheck): New.
5800
ba9e6dd5
NF
58012011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5802
5803 PR c++/46890
5804 * c-common.h (keyword_is_decl_specifier): Declare.
5805 * c-common.c (keyword_is_decl_specifier): Define.
5806 (keyword_is_function_specifier): New function.
5807
7273813a
JJ
58082011-01-26 Jakub Jelinek <jakub@redhat.com>
5809
5810 PR c/47473
5811 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5812 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5813 REAL_TYPE.
5814
908ef79b
AC
58152011-01-26 Arnaud Charlet <charlet@adacore.com>
5816
5817 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5818
237e9384
JJ
58192011-01-26 Jakub Jelinek <jakub@redhat.com>
5820
5821 PR pch/47430
5822 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5823 after init_c_lex if pch_file is set.
5824
47ea1edf
DK
58252011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5826
d4dba752 5827 PR c++/43601
47ea1edf
DK
5828 * c.opt (-fkeep-inline-dllexport): New switch.
5829
2aa9c6ae
RG
58302011-01-12 Richard Guenther <rguenther@suse.de>
5831
5832 PR middle-end/32511
5833 * c-common.c (handle_weak_attribute): Warn instead of error
5834 on declaring an inline function weak.
5835
7bd11157
TT
58362011-01-05 Tom Tromey <tromey@redhat.com>
5837
5838 * c-common.h (lvalue_error): Update.
5839 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5840 not error.
5841
0e66e494 58422010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5843
b4f588c4
NP
5844 PR objc/47075
5845 * c-objc.h (objc_finish_message_expr): Added argument to
5846 prototype.
5847
f4da8dce
NF
58482010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5849
5850 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5851 Use prototype_p.
5852
46270f14
NP
58532010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5854
5855 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5856 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5857
4816c593
NF
58582010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5859
5860 * c-common.h (readonly_error): Declare.
5861 * c-common.c (readonly_error): Define.
5862
7a6daeb0
NF
58632010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5864
5865 * c-common.h (invalid_indirection_error): Declare.
5866 * c-common.c (invalid_indirection_error): Define.
5867
892f6119
RG
58682010-12-03 Richard Guenther <rguenther@suse.de>
5869
5870 PR c/46745
5871 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5872 (pp_c_unary_expression): Likewise.
5873 (pp_c_expression): Likewise.
5874
6c39e757
NP
58752010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5876
5877 * c-common.h (objc_finish_function): New.
5878 (objc_non_volatilized_type): Removed.
5879 (objc_type_quals_match): Removed.
5880 * stub-objc.c (objc_finish_function): New.
5881 (objc_non_volatilized_type): Removed.
5882 (objc_type_quals_match): Removed.
9faeb493 5883
7c475d11
JM
58842010-11-30 Joseph Myers <joseph@codesourcery.com>
5885
5886 * c-common.h (parse_optimize_options): Declare.
5887 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5888 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5889
71f3e391
JM
58902010-11-29 Joseph Myers <joseph@codesourcery.com>
5891
5892 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5893 GET_ENVIRONMENT.
5894 * c-pch.c (O_BINARY): Don't define here.
5895 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5896
d5fabb58
JM
58972010-11-25 Joseph Myers <joseph@codesourcery.com>
5898
5899 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5900 targetm.except_unwind_info.
5901
299404a1
JM
59022010-11-23 Joseph Myers <joseph@codesourcery.com>
5903
5904 * c-opts.c (c_common_handle_option): Pass location to
5905 set_struct_debug_option.
5906
c98cd5bf
JM
59072010-11-23 Joseph Myers <joseph@codesourcery.com>
5908
5909 * c-common.c (visibility_options): Move from ../opts.c.
5910 * c-common.h (struct visibility_flags, visibility_options):
5911 Declare here.
5912 * c-opts.c (finish_options): Rename to c_finish_options.
5913 (c_common_init): Update call to finish_options.
5914
a9546771
NP
59152010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5916
5917 PR objc/34033
5918 * c-lex.c (lex_string): Check that each string in an Objective-C
5919 string concat sequence starts with either one or zero '@', and
5920 that there are no spurious '@' signs at the end.
5921
24a57808
JM
59222010-11-20 Joseph Myers <joseph@codesourcery.com>
5923
5924 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5925 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5926 HANDLE_PRAGMA_VISIBILITY.
5927 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5928 HANDLE_PRAGMA_VISIBILITY): Don't define.
5929 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5930
a9aa2c3a
NF
59312010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5932
5933 PR c++/16189
5934 PR c++/36888
5935 PR c++/45331
5936 * c-common.h (keyword_begins_type_specifier): Declare.
5937 (keyword_is_storage_class_specifier): Declare.
5938 (keyword_is_type_qualifier): Declare.
5939 * c-common.c (keyword_begins_type_specifier): New function.
5940 (keyword_is_storage_class_specifier): New function.
5941 (keyword_is_type_qualifier): Declare.
5942
5386338c
JM
59432010-11-19 Joseph Myers <joseph@codesourcery.com>
5944
5945 PR c/46547
5946 * c-common.c (in_late_binary_op): Define.
5947 (c_common_truthvalue_conversion): Check in_late_binary_op before
5948 calling c_save_expr.
5949 * c-common.h (in_late_binary_op): Declare.
5950
69ccdddb
JM
59512010-11-19 Joseph Myers <joseph@codesourcery.com>
5952
5953 * c-opts.c (c_common_handle_option): Update calls to
5954 set_struct_debug_option.
5955
6b192a09
NP
59562010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5957
5958 * c-common.h (objc_declare_protocols): Added additional argument.
5959 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5960
fb52b50a
NF
59612010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5962
5963 PR c/33193
5964 * c-common.h (build_real_imag_expr): Declare.
5965 * c-semantics.c (build_real_imag_expr): Define.
5966
b37421c6
JM
59672010-11-17 Joseph Myers <joseph@codesourcery.com>
5968
5969 * c-opts.c (c_common_parse_file): Take no arguments.
5970 * c-common.h (c_common_parse_file): Update prototype.
5971
07078664
JJ
59722010-11-16 Jakub Jelinek <jakub@redhat.com>
5973
5974 PR c++/46401
5975 * c-common.c (warning_candidate_p): Don't track non-const calls
5976 or STRING_CSTs.
5977
c6a13190
ILT
59782010-11-15 Ian Lance Taylor <iant@google.com>
5979
5980 * c-lex.c (init_c_lex): Set macro debug callbacks if
5981 flag_dump_go_spec is set.
5982
925e8657
NP
59832010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5984
5985 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5986 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5987
bb0a9581
NF
59882010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5989
5990 PR preprocessor/45038
5991 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5992 dialects.
5993
c5fa0890
JM
59942010-11-12 Joseph Myers <joseph@codesourcery.com>
5995
5996 * c-common.h (c_family_lang_mask): Declare.
5997 * c-opts.c (c_family_lang_mask): Make extern.
5998 * c-pragma.c (handle_pragma_diagnostic): Use
5999 control_warning_option.
6000
a4d8c676
JM
60012010-11-12 Joseph Myers <joseph@codesourcery.com>
6002
6003 * c-common.c (parse_optimize_options): Update call to
6004 decode_options.
6005 * c-common.h (c_common_handle_option): Update prototype.
6006 * c-opts.c (c_common_handle_option): Take location_t parameter and
6007 pass it to other functions.
6008
f954bd2c
JM
60092010-11-11 Joseph Myers <joseph@codesourcery.com>
6010
6011 * c-opts.c (warning_as_error_callback): Remove.
6012 (c_common_initialize_diagnostics): Don't call
6013 register_warning_as_error_callback.
6014 (c_common_handle_option): Handle -Werror=normalized= here.
6015
d8a07487
JM
60162010-11-10 Joseph Myers <joseph@codesourcery.com>
6017
6018 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6019 in diagnostic.
6020 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6021 letter.
6022 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6023 Remove trailing '.' from diagnostics.
6024 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6025
d5478783
JM
60262010-11-10 Joseph Myers <joseph@codesourcery.com>
6027
6028 * c-common.c (parse_optimize_options): Pass global_dc to
6029 decode_options.
6030 * c-opts.c (c_common_handle_option): Pass &global_options to
6031 set_Wstrict_aliasing.
6032 * c.opt (v): Don't mark Common or document here.
6033
91ebb981
IS
60342010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6035
6036 PR target/44981
6037 * c-format.c (format_type): New type gcc_objc_string_format_type.
6038 (valid_stringptr_type_p): New.
6039 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6040 (check_format_string): Pass expected type, use
91ebb981
IS
6041 valid_stringptr_type_p (), check that the format string types are
6042 consistent with the format specification.
6043 (decode_format_attr): Warn if NSString is used outside objective-c.
6044 (format_types_orig): Add NSString.
6045 (format_name): New.
6046 (format_flags): New.
6047 (check_format_arg): Handle format strings requiring an external parser.
6048 first_target_format_type: New variable.
6049 (handle_format_attribute): Set up first_target_format_type, pass the
6050 expected format arg string type to check_format_string().
6051 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6052 * stub-objc.c (objc_string_ref_type_p): New.
6053 (objc_check_format_arg): New.
6054
bede2adc
NP
60552010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6056
9faeb493 6057 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6058 * c-common.h (objc_build_class_component_ref): New.
6059 * stub-objc.c (objc_build_class_component_ref): New.
6060
9a179d01
NP
60612010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6062
6063 * c.opt (Wproperty-assign-default): New option.
6064
22d8d616
NP
60652010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6066
6067 Implemented -fobjc-std=objc1 flag.
6068 * c.opt (fobjc-std=objc1): New option.
6069
2debdb4f
NP
60702010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6071
6072 Implemented format and noreturn attributes for Objective-C methods.
6073 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6074 attribute for Objective-C methods.
6075
ec52b111
JM
60762010-10-31 Jason Merrill <jason@redhat.com>
6077
6078 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6079 EXPR_LOC_OR_HERE.
6080
46a88c12
NP
60812010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6082
6083 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6084 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6085 (objc_add_property_declaration): Removed arguments for copies and
6086 ivar.
6087 (objc_build_getter_call): Renamed to
6088 objc_maybe_build_component_ref.
6089 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6090 (objc_is_property_ref): New.
6091 * c-common.c (c_common_reswords): Removed copies and ivar.
6092 * stub-objc.c (objc_add_property_declaration): Removed arguments
6093 for copies and ivar.
6094 (objc_build_getter_call): Renamed to
6095 objc_maybe_build_component_ref.
6096 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6097 (objc_is_property_ref): New.
9faeb493 6098
1e4bf85b
AC
60992010-10-29 Arnaud Charlet <charlet@adacore.com>
6100 Matthew Gingell <gingell@adacore.com>
6101
6102 * c-ada-spec.c (separate_class_package): New function.
6103 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6104 name of their enclosing package.
6105 (print_ada_declaration): Use separate_class_package.
6106
81f0bab2
JM
61072010-10-27 Jason Merrill <jason@redhat.com>
6108
2b08f2c5
JM
6109 * c-common.c (c_common_reswords): Add __is_literal_type.
6110 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6111
81f0bab2
JM
6112 * c-common.c (check_case_value): Remove special C++ code.
6113
200290f2
NP
61142010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6115
6116 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6117 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6118 and RID_LAST_PATTR.
6119 (objc_add_property_declaration): Added additional arguments.
6120 (objc_property_attribute_kind): Removed.
6121 (objc_set_property_attr): Removed.
6122 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6123 copy and nonatomic.
6124 * stub-objc.c (objc_add_property_declaration): Added additional
6125 arguments.
6126 (objc_set_property_attr): Removed.
9faeb493 6127
f614132b
NP
61282010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6129
6130 * c-common.h (objc_add_property_variable): Renamed to
6131 objc_add_property_declaration. Added location argument.
6132 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6133
b8a18805
NP
61342010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6135
6136 * c-common.h (objc_maybe_printable_name): New.
6137 * stub-objc.c (objc_maybe_printable_name): New.
6138
30cd1c5d
AS
61392010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6140 Andrew Pinski <pinskia@gmail.com>
6141
6142 * c-common.h (c_common_mark_addressable_vec): Declare.
6143 * c-common.c (c_common_mark_addressable_vec): New function.
6144
249a82c4
NP
61452010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6146
6147 * c-common.h (objc_set_method_type): Removed.
6148 (objc_add_method_declaration): Added boolean argument.
6149 (objc_start_method_definition): Same change.
6150 (objc_build_method_signature): Same change.
6151 * stub-objc.c (objc_set_method_type): Removed.
6152 (objc_add_method_declaration): Added boolean argument.
6153 (objc_start_method_definition): Same change.
6154 (objc_build_method_signature): Same change.
6155
977e30bc
NP
61562010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6157
6158 * c-common.h (finish_file): Removed.
6159 (objc_write_global_declarations): New.
6160 * c-opts.c (c_common_parse_file): Do not call finish_file.
6161 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6162
da57d1b9
NP
61632010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6164
6165 Implemented parsing @synthesize and @dynamic for
6166 Objective-C/Objective-C++.
6167 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6168 (objc_add_synthesize_declaration): New.
6169 (objc_add_dynamic_declaration): New.
6170 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6171 * stub-objc.c (objc_add_synthesize_declaration): New.
6172 (objc_add_dynamic_declaration): New.
9faeb493 6173
0069111f
MM
61742010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6175
6176 PR target/46041
6177 * c-cppbuiltin.c (mode_has_fma): Move function here from
6178 builtins.c. Don't use the fma optab, instead just use the
6179 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6180 using -save-temps.
6181
e426b47b
NP
61822010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6183
6184 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6185
e426b47b
NP
6186 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
6187
9faeb493 6188 Radar 4330422
e426b47b
NP
6189 * c-common.h (objc_non_volatilized_type): New declaration
6190 * stub-objc.c (objc_non_volatilized_type): New stub.
6191
90fbfdc3
NP
61922010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6193
e426b47b 6194 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
6195
6196 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
6197
9faeb493 6198 Radar 4133425
90fbfdc3 6199 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6200 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6201
c37d8c30
IS
62022010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6203
6204 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6205 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6206 (objc_ivar_visibility_kind): New enum.
6207 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6208 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6209 visibility enum.
6210
1b1562a5
MM
62112010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6212
6213 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6214 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6215 has the appropriate fma builtins.
6216 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6217
668ea4b1
IS
62182010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6219
1b1562a5 6220 merge from FSF apple 'trunk' branch.
668ea4b1 6221 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6222
668ea4b1
IS
6223 Radars 4436866, 4505126, 4506903, 4517826
6224 * c-common.c (c_common_resword): Define @property and its attributes.
6225 * c-common.h: Define property attribute enum entries.
6226 (OBJC_IS_PATTR_KEYWORD): New.
6227 (objc_property_attribute_kind): New enum.
6228 Declare objc_set_property_attr (), objc_add_property_variable (),
6229 objc_build_getter_call () and objc_build_setter_call ().
6230 * stub-objc.c (objc_set_property_attr): New stub.
6231 (objc_add_property_variable): Likewise.
6232 (objc_build_getter_call): Likewise.
6233 (objc_build_setter_call) Likewise.
1b1562a5 6234
a1178b30
IS
62352010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6236
1b1562a5 6237 merge from FSF apple 'trunk' branch.
a1178b30
IS
6238 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
6239
6240 Radar 3803157 (method attributes)
6241 * c-common.c (handle_deprecated_attribute): Recognize
6242 objc methods as valid declarations.
6243 * c-common.h: Declare objc_method_decl ().
1b1562a5 6244 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6245
a75bfaa6
JM
62462010-10-08 Joseph Myers <joseph@codesourcery.com>
6247
6248 * c-common.c (parse_optimize_options): Call
6249 decode_cmdline_options_to_array_default_mask before
6250 decode_options. Update arguments to decode_options.
6251 * c-common.h (c_common_init_options_struct): Declare.
6252 * c-opts.c (c_common_init_options_struct): New. Split out from
6253 c_common_init_options.
6254
f05b9d93
NP
62552010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6256
6257 Implemented fast enumeration for Objective-C.
6258 * c-common.h (objc_finish_foreach_loop): New.
6259 * stub-objc.c (objc_finish_foreach_loop): New.
6260
1ebe4b4f
JM
62612010-10-05 Joseph Myers <joseph@codesourcery.com>
6262
6263 * c-common.h (struct diagnostic_context): Don't declare here.
6264 (c_common_initialize_diagnostics): Declare using
6265 diagnostic_context typedef.
6266 * c-opts.c (c_common_handle_option): Pass global_dc to
6267 handle_generated_option.
6268
d4d24ba4
JM
62692010-10-04 Joseph Myers <joseph@codesourcery.com>
6270
6271 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6272 handle_generated_option.
6273
478a1c5b
ILT
62742010-10-03 Ian Lance Taylor <iant@google.com>
6275
6276 * c.opt (-fplan9-extensions): New option.
6277
82a1c2fe
FXC
62782010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6279
6280 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6281 Remove.
6282 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6283 of duplicating code.
6284
92902b1b
IS
62852010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6286
6287 * c-common.c: Add two new entries for @optional
6288 and @required keywords.
6289
6290 merge from FSF 'apple/trunk' branch.
6291 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
6292
6293 Radar 4386773
6294 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6295 objective-c keywords.
6296 (objc_set_method_opt): New declaration.
6297 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6298
46625112
JM
62992010-09-30 Joseph Myers <joseph@codesourcery.com>
6300
6301 * c-common.c (handle_optimize_attribute): Pass &global_options to
6302 cl_optimization_save and cl_optimization_restore.
6303 * c-opts.c (c_common_handle_option): Pass &global_options to
6304 handle_generated_option.
6305 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6306 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6307 &global_options to cl_optimization_restore.
6308
49b91f05
NP
63092010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6310
6311 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6312 Objective-C/Objective-C++ keywords.
6313
13ed556f 63142010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6315
9faeb493
UB
6316 Merge from 'apple/trunk' branch on FSF servers.
6317
a6341d57
NP
6318 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
6319
6320 Radar 4281748
6321 * c-common.h (objc_check_global_decl): New declaration.
6322 * stub-objc.c (objc_check_global_decl): New stub.
6323
f0036cca
JM
63242010-09-29 Joseph Myers <joseph@codesourcery.com>
6325
6326 * c.opt: Don't use VarExists.
6327
e3339d0f
JM
63282010-09-29 Joseph Myers <joseph@codesourcery.com>
6329
6330 * c-common.c (c_cpp_error): Update names of diagnostic_context
6331 members.
6332 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6333 cl_optimization members.
6334 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6335 sanitize_cpp_opts, finish_options): Update names of cpp_options
6336 members.
6337
1973201f
NP
63382010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6339
6340 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6341 (objc_is_reserved_word): Removed.
6342 * c-common.c: Updated comments.
6343 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6344 objc_is_reserved_word.
6345 * stub-objc.c (objc_is_reserved_word): Removed.
6346
f7e71da5
IS
63472010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6348
9faeb493 6349 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6350 include attributes.
6351 (objc_start_method_definition): Likewise.
6352 (objc_build_keyword_decl): Likewise.
6353 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6354 (objc_start_method_definition): Likewise.
6355 (objc_build_keyword_decl): Likewise.
6356
c165dca7
IS
63572010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6358
6359 * c-common.h (objc_start_class_interface): Adjust prototype.
6360 (objc_start_category_interface): Likewise.
6361 (objc_start_protocol): Likewise.
6362 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6363 (objc_start_class_interface): Likewise.
6364 (objc_start_category_interface): Likewise.
6365
7458026b
ILT
63662010-09-27 Ian Lance Taylor <iant@google.com>
6367
6368 * c-common.c (c_common_attribute_table): Add no_split_stack.
6369 (handle_no_split_stack_attribute): New static function.
6370
b581b85b
NP
63712010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6372
9faeb493 6373 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
6374
6375 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
6376
9faeb493 6377 Radar 4229905
b581b85b
NP
6378 * c-common.h (objc_have_common_type): New declaration.
6379 * stub-objc.c (objc_have_common_type): New stub.
6380
6381 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6382
6383 Radar 4154928
6384 * c-common.h (objc_common_type): New prototype.
9faeb493 6385 * stub-objc.c (objc_common_type): New stub.
b581b85b 6386
46a4da10
JH
63872010-09-24 Jan Hubicka <jh@suse.cz>
6388
6389 * c-common.c (handle_leaf_attribute): New function.
6390 (struct attribute_spec c_common_att): Add leaf.
6391
e200444e
JM
63922010-09-22 Joseph Myers <joseph@codesourcery.com>
6393
6394 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6395 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6396 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6397 -include-barrier, -include-directory, -include-directory=,
6398 -include-directory-after, -include-directory-after=,
6399 -include-prefix, -include-prefix=, -include-with-prefix,
6400 -include-with-prefix=, -include-with-prefix-after,
6401 -include-with-prefix-after=, -include-with-prefix-before,
6402 -include-with-prefix-before=, -no-integrated-cpp,
6403 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6404 -output=, -pedantic, -pedantic-errors, -preprocess,
6405 -print-missing-file-dependencies, -trace-includes, -traditional,
6406 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6407 -user-dependencies, -verbose, -write-dependencies,
6408 -write-user-dependencies, no-integrated-cpp, traditional): New.
6409
29a80ea6
NP
64102010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6411
6412 PR objc/23710
ac1fc2fc
NP
6413 * c-common.h (objc_start_method_definition): Return bool instead
6414 of void.
6415 * stub-objc.c (objc_start_method_definition): Return bool instead
6416 of void.
6417
64182010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6419
6420 PR objc/25965
6421 * c-common.h (objc_get_interface_ivars): New declaration.
6422 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6423
de621752
ILT
64242010-09-15 Ian Lance Taylor <iant@google.com>
6425
6426 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6427 messages. Remove period at end of warning message.
de621752 6428
ba885ec5
NS
64292010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6430
6431 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6432 (handle_alias_attribute): ... here.
6433 (handle_ifunc_attribute): New.
6434
c5ee1358
MM
64352010-09-06 Mark Mitchell <mark@codesourcery.com>
6436
6437 * c-common.h (do_warn_double_promotion): Declare.
6438 * c-common.c (do_warn_double_promotion): Define.
6439
0a0b3574
MM
64402010-09-05 Mark Mitchell <mark@codesourcery.com>
6441
6442 * c.opt (Wdouble-promotion): New.
6443
d1779886
JM
64442010-09-02 Joseph Myers <joseph@codesourcery.com>
6445
6446 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6447 fvtable-thunks, fxref): Mark no longer supported in help text.
6448
2d2bd949
JM
64492010-09-02 Joseph Myers <joseph@codesourcery.com>
6450
6451 * c.opt (Wimport, fall-virtual, falt-external-templates,
6452 fdefault-inline, fenum-int-equiv, fexternal-templates,
6453 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6454 fname-mangling-version-, fnew-abi, fnonnull-objects,
6455 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6456 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6457 applicable.
6458 (fhandle-exceptions): Mark with Alias and Warn.
6459 * c-opts.c (c_common_handle_option): Don't handle options marked
6460 as ignored.
6461
5de8299c
JM
64622010-09-02 Joseph Myers <joseph@codesourcery.com>
6463
6464 * c.opt (Wcomments, Werror-implicit-function-declaration,
6465 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6466 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6467 aliases.
6468 * c-common.c (option_codes): Use OPT_Wcomment instead of
6469 OPT_Wcomments.
6470 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6471 Don't handle options marked as aliases.
6472
0ceb0201
RG
64732010-08-25 Richard Guenther <rguenther@suse.de>
6474
6475 * c-common.c (c_common_get_alias_set): Remove special
6476 handling for pointers.
6477
ac47786e
NF
64782010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6479
6480 * c-common.c: Use FOR_EACH_VEC_ELT.
6481 * c-gimplify.c: Likewise.
6482 * c-pragma.c: Likewise.
6483
c878765b
JM
64842010-08-16 Joseph Myers <joseph@codesourcery.com>
6485
6486 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6487 RejectDriver.
6488 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6489 RejectDriver.
6490 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6491 instead of OPT_MDX and OPT_MMDX.
6492
603349bf
JM
64932010-08-16 Joseph Myers <joseph@codesourcery.com>
6494
6495 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6496
644fa7ac
JM
64972010-08-12 Joseph Myers <joseph@codesourcery.com>
6498
6499 * c.opt (MD, MMD): Change to MDX and MMDX.
6500 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6501
481e1176
JM
65022010-08-11 Joseph Myers <joseph@codesourcery.com>
6503
6504 * c-opts.c (c_common_handle_option): Call handle_generated_option
6505 instead of handle_option.
6506
ac8dc9f7
NF
65072010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6508
6509 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6510 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6511
4f8c876d
NF
65122010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6513
6514 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6515 (pending_redefine_extname): Change type to a VEC.
6516 (add_to_renaming_pragma_list): Update for new type of
6517 pending_redefine_extname.
ac8dc9f7 6518 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6519
3b0c690e
AC
65202010-08-04 Arnaud Charlet <charlet@adacore.com>
6521
6522 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6523 visited.
6524 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6525 decide whether a type has already been declared/seen.
6526 Do not go to the original type.
6527 (dump_nested_types): New parameter forward.
6528 Generate forward declaration if needed and mark type as visited.
6529 (print_ada_declaration): Call dump_nested_types if not already done.
6530 Mark types as visited.
6531
1890bccc
JM
65322010-08-03 Joseph Myers <joseph@codesourcery.com>
6533
6534 * c.opt (-print-pch-checksum): Remove option.
6535 * c-opts.c (c_common_handle_option): Don't handle
6536 OPT_print_pch_checksum.
6537
5f20c657
JM
65382010-07-27 Joseph Myers <joseph@codesourcery.com>
6539
6540 * c-common.h (c_common_handle_option): Update prototype and return
6541 value type.
6542 * c-opts.c (c_common_handle_option): Update prototype and return
6543 value type. Update calls to handle_option and
6544 enable_warning_as_error.
6545
f551f80c
JJ
65462010-07-27 Jakub Jelinek <jakub@redhat.com>
6547
6548 PR c/45079
6549 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6550
61ff2bdc
JM
65512010-07-27 Joseph Myers <joseph@codesourcery.com>
6552
6553 * c-common.h (c_common_missing_argument): Remove.
6554 * c-opts.c (c_common_missing_argument): Remove.
6555 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6556 idirafter, imacros, include, isysroot, isystem, iquote): Add
6557 MissingArgError.
6558 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6559
7a9bf9a4
JM
65602010-07-27 Joseph Myers <joseph@codesourcery.com>
6561
6562 * c-common.h (c_common_option_lang_mask,
6563 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6564 New.
6565 (c_common_init_options): Update prototype.
6566 * c-opts.c (c_common_option_lang_mask): New.
6567 (c_common_initialize_diagnostics): Split out of
6568 c_common_init_options.
6569 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6570 New.
6571 (c_common_init_options): Update prototype. Use decoded options in
6572 search for -lang-asm.
6573
910ad8de
NF
65742010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6575
6576 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6577 * c-format.c: Likewise.
6578
718f9c0f
MLI
65792010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6580
6581 * c-common.h: Include diagnostic-core.h. Error if already
6582 included.
6583 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6584
4d451982
MLI
65852010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6586
adfac8df 6587 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6588 Do not include expr.h
6589 (vector_mode_valid_p): Move here.
6590
119fe915
SB
65912010-06-21 DJ Delorie <dj@redhat.com>
6592
6593 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6594 allow these pragmas anywhere.
6595
65962010-06-14 Jakub Jelinek <jakub@redhat.com>
6597
6598 PR bootstrap/44509
6599 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6600 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6601 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6602 ggc_strdup instead of xstrdup.
6603
66042010-06-10 Jakub Jelinek <jakub@redhat.com>
6605
6606 * c-cppbuiltin.c: Include cpp-id-data.h.
6607 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6608 (lazy_hex_fp_value): New function.
6609 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6610
6662d794
MLI
66112010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6612
6613 * c-gimplify.c: Do not include tree-flow.h
6614
38f8b050
JR
66152010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6616
6617 PR other/44034
6618 * c-common.c: Rename targetm member:
6619 targetm.enum_va_list -> targetm.enum_va_list_p
6620
9589f23e
AS
66212010-06-28 Anatoly Sokolov <aesok@post.ru>
6622
6623 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6624
3b06d379
SB
66252010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6626
6627 * c-cppbuiltin.c: Do not include except.h.
6628
d166d4c3
AK
66292010-06-24 Andi Kleen <ak@linux.intel.com>
6630
9faeb493
UB
6631 * c-common.c (warn_for_omitted_condop): New.
6632 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6633
70cb8be6
JM
66342010-06-21 Joseph Myers <joseph@codesourcery.com>
6635
6636 * c.opt (lang-objc): Remove.
6637 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6638
a4c97feb
JR
66392010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6640
6641 * c-opts.c: Include "tm_p.h".
6642
6e2f1956
JM
66432010-06-20 Joseph Myers <joseph@codesourcery.com>
6644
6645 * c-common.c (parse_optimize_options): Update call to
6646 decode_options.
6647
bc87224e
NF
66482010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6649
6650 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6651 new type of types_used_by_cur_var_decl.
6652
b49cf425
JR
66532010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6654
6655 PR bootstrap/44512
6656 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6657 for C++ standard compliance.
6658
59f9c2ed
JM
66592010-06-16 Jason Merrill <jason@redhat.com>
6660
6661 * c.opt: Add -Wnoexcept.
6662
33766b66
RG
66632010-06-16 Richard Guenther <rguenther@suse.de>
6664
6665 PR c/44555
6666 * c-common.c (c_common_truthvalue_conversion): Remove
6667 premature and wrong optimization concering ADDR_EXPRs.
6668
eff7e30c
AC
66692010-06-15 Arnaud Charlet <charlet@adacore.com>
6670
6671 * c-ada-spec.c (dump_sloc): Remove column info.
6672 (is_simple_enum): New function.
6673 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6674 enum types when relevant.
6675
6312e84d
MLI
66762010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6677
9faeb493 6678 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6679 location.
6680
1cb42611
JM
66812010-06-10 Joseph Myers <joseph@codesourcery.com>
6682
6683 * c-opts.c (c_common_handle_option): Don't handle
6684 OPT_fshow_column.
6685
a9429e29
LB
66862010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6687
6688 * c-pragma.c (push_alignment): Use typed GC allocation.
6689 (handle_pragma_push_options): Likewise.
6690
6691 * c-common.c (parse_optimize_options): Likewise.
6692
6693 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6694 option.
6695
5498f011
JM
66962010-06-07 Joseph Myers <joseph@codesourcery.com>
6697
6698 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6699 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6700 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6701 flag_signed_bitfields, warn_strict_null_sentinel,
6702 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6703 flag_gen_declaration, flag_no_gnu_keywords,
6704 flag_implement_inlines, flag_implicit_templates,
6705 flag_implicit_inline_templates, flag_optional_diags,
6706 flag_elide_constructors, flag_default_inline, flag_rtti,
6707 flag_conserve_space, flag_access_control, flag_check_new,
6708 flag_new_for_scope, flag_weak, flag_working_directory,
6709 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6710 flag_enforce_eh_specs, flag_threadsafe_statics,
6711 flag_pretty_templates): Remove.
6712 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6713 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6714 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6715 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6716 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6717 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6718 flag_no_gnu_keywords, flag_implement_inlines,
6719 flag_implicit_templates, flag_implicit_inline_templates,
6720 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6721 flag_rtti, flag_conserve_space, flag_access_control,
6722 flag_check_new, flag_new_for_scope, flag_weak,
6723 flag_working_directory, flag_use_cxa_atexit,
6724 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6725 flag_threadsafe_statics, flag_pretty_templates,
6726 warn_strict_null_sentinel): Remove.
6727 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6728 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6729 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6730 fimplicit-inline-templates, fimplicit-templates,
6731 flax-vector-conversions, fms-extensions, fnil-receivers,
6732 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6733 frtti, fshort-double, fshort-enums, fshort-wchar,
6734 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6735 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6736 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6737 gen-decls, undef): Use Var.
6738 (fdefault-inline, foptional-diags): Document as doing nothing.
6739 * c-opts.c (c_common_handle_option): Remove cases for options now
6740 using Var. Mark ignored options as such.
6741
39dabefd
SB
67422010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6743
9faeb493 6744 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6745 * c-common.def: Likewise.
6746 * c-common.h: Likewise.
6747 * c-cppbuiltin.c: Likewise.
6748 * c-dump.c: Likewise.
6749 * c-format.c: Likewise.
6750 * c-format.h : Likewise.
6751 * c-gimplify.c: Likewise.
6752 * c-lex.c: Likewise.
6753 * c-omp.c: Likewise.
6754 * c.opt: Likewise.
6755 * c-opts.c: Likewise.
6756 * c-pch.c: Likewise.
6757 * c-ppoutput.c: Likewise.
6758 * c-pragma.c: Likewise.
6759 * c-pragma.h: Likewise.
6760 * c-pretty-print.c: Likewise.
6761 * c-pretty-print.h: Likewise.
6762 * c-semantics.c: Likewise.
6763 * stub-objc.c: Likewise.
6764
6765 * c-common.c: Include gt-c-family-c-common.h.
6766 * c-pragma.c: Include gt-c-family-c-pragma.h.
6767\f
818ab71a 6768Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6769
6770Copying and distribution of this file, with or without modification,
6771are permitted in any medium without royalty provided the copyright
6772notice and this notice are preserved.