]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Skip Wno-frame-address test for avr
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
25ff5dd3
MP
12016-09-05 Marek Polacek <polacek@redhat.com>
2
3 PR c/77423
4 * c-common.c (bool_promoted_to_int_p): New function.
5 (expr_has_boolean_operands_p): New function.
6 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
7 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
8
21234eb5
TV
92016-09-04 Tom de Vries <tom@codesourcery.com>
10
11 revert:
12 2016-08-29 Tom de Vries <tom@codesourcery.com>
13
14 * c-common.c (build_va_arg): Replace first argument type error
15 with assert.
16
9dc5773f
JJ
172016-09-02 Jakub Jelinek <jakub@redhat.com>
18
19 PR c/65467
20 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
21 (c_finish_omp_for): Reject _Atomic qualified iterators.
22
232016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
24
25 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
26 size to guarantee it fits the output of the formatted function
27 regardless of its arguments.
28
295844f6
MP
292016-09-01 Marek Polacek <polacek@redhat.com>
30
31 PR c/7652
32 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
33 FALLTHRU comments.
34
3d06b6f2
MP
352016-08-29 Marek Polacek <polacek@redhat.com>
36
37 PR c/77292
38 * c-common.c (warn_logical_not_parentheses): Don't warn for
39 a comparison or a logical operator.
40
34cedad5
TV
412016-08-29 Tom de Vries <tom@codesourcery.com>
42
43 * c-common.c (build_va_arg): Fix type comparison assert.
44
f162d717
TV
452016-08-29 Tom de Vries <tom@codesourcery.com>
46
47 * c-common.c (build_va_arg): Replace first argument type error
48 with assert.
49
ba9bbd6f
TV
502016-08-29 Tom de Vries <tom@codesourcery.com>
51
52 PR c/77398
53 * c-common.c (build_va_arg): Add first argument error. Build va_arg
54 with error_mark_node as va_list instead of with illegal va_list.
55
ebef225f
MP
562016-08-25 Marek Polacek <polacek@redhat.com>
57 David Malcolm <dmalcolm@redhat.com>
58
59 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
60 * c-common.h (warn_logical_not_parentheses): Update declaration.
61
b00e6e75
MP
622016-08-22 Marek Polacek <polacek@redhat.com>
63
64 PR c++/77321
65 * c-common.c (warn_for_memset): Check type for null.
66
6dc198e3
JM
672016-08-22 Joseph Myers <joseph@codesourcery.com>
68
69 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
70 _FloatNx types for suffixes for built-in functions.
71
c65699ef
JM
722016-08-19 Joseph Myers <joseph@codesourcery.com>
73
74 PR c/32187
75 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
76 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
77 (RID_FLOAT128X): New enum rid values.
78 (CASE_RID_FLOATN_NX): New macro.
79 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
80 keywords.
81 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
82 corresponding complex types.
83 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
84 _FloatNx and corresponding complex types.
85 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
86 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
87 and _FloatNx types for the widest type for determining
88 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
89 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
90 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
91 and _FloatNx types.
92 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
93 constants.
94 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
95 _FloatNx types.
96
cc015f3a
DM
972016-08-18 David Malcolm <dmalcolm@redhat.com>
98
99 * c-opts.c (c_diagnostic_finalizer): Update for change to
100 diagnostic_show_locus.
101
cb18fd07
DM
1022016-08-18 David Malcolm <dmalcolm@redhat.com>
103
104 * c-common.c: Include "spellcheck.h".
105 (cb_get_suggestion): New function.
106 * c-common.h (cb_get_suggestion): New decl.
107 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
108 cb_get_suggestion.
109
a76989dc
MP
1102016-08-18 Marek Polacek <polacek@redhat.com>
111
112 PR c/71514
113 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
114 and pointer-to-VLA.
115
65e736c0
DM
1162016-08-16 David Malcolm <dmalcolm@redhat.com>
117
118 PR c/72857
119 * c-common.c (substring_loc::get_range): Rename to...
120 (substring_loc::get_location): ...this, converting param from a
121 source_range * to a location_t *. Call
122 get_source_location_for_substring rather than
123 get_source_range_for_substring, and pass in m_caret_idx.
124 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
125 (substring_loc::get_range): Replace with...
126 (substring_loc::get_location): ...this.
127 (substring_loc::set_caret_index): New method.
128 (substring_loc): Add field m_caret_idx.
129 * c-format.c (format_warning_va): Update for above changes.
130 Rename local "substring_loc" to "fmt_substring_loc" to avoid
131 clashing with type name.
132 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
133 (check_argument_type): Likewise.
134 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
135 Use a copy when emitting warnings, setting the caret index from TYPE.
136
7e1dde14
EB
1372016-08-16 Eric Botcazou <ebotcazou@adacore.com>
138 Arnaud Charlet <charlet@adacore.com>
139
140 * c-ada-spec.c (dump_number): New function.
141 (handle_escape_character): Likewise.
142 (print_ada_macros): Add handling of constant integers and strings.
143
191816a3
MP
1442016-08-12 Marek Polacek <polacek@redhat.com>
145
146 PR c/7652
147 * c-common.c (scalar_to_vector): Adjust fall through comment.
148 * c-opts.c (c_common_handle_option): Likewise.
149 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
150 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
151 fall through comment.
152 * cilk.c (extract_free_variables): Add FALLTHRU.
153
452df4a4
JM
1542016-08-10 Jason Merrill <jason@redhat.com>
155
156 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
157
f3365c12
JM
1582016-08-09 Jason Merrill <jason@redhat.com>
159
160 * c-common.c (c_common_attribute_table): vector_size affects type
161 identity.
162
f0bc3323
MP
1632016-08-09 Marek Polacek <polacek@redhat.com>
164
165 PR c/7652
166 * c-ada-spec.c (dump_generic_ada_node): Add return.
167
98e5a19a
JM
1682016-08-09 Jason Merrill <jason@redhat.com>
169
170 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
171 C++17 constexpr lambdas.
172
895aa8e1
DM
1732016-08-08 David Malcolm <dmalcolm@redhat.com>
174
175 PR c/64955
176 * c-common.h (selftest::c_format_c_tests): New declaration.
177 (selftest::run_c_tests): New declaration.
178 * c-format.c: Include "selftest.h.
179 (format_warning_va): Add param "corrected_substring" and use
180 it to add a replacement fix-it hint.
181 (format_warning_at_substring): Likewise.
182 (format_warning_at_char): Update for new param of
183 format_warning_va.
184 (argument_parser::check_argument_type): Pass "fki" to
185 check_format_types.
186 (check_format_types): Add param "fki" and pass it to
187 format_type_warning.
188 (deref_n_times): New function.
189 (get_modifier_for_format_len): New function.
190 (selftest::test_get_modifier_for_format_len): New function.
191 (get_format_for_type): New function.
192 (format_type_warning): Add param "fki" and use it to attempt
193 to provide hints for argument types when calling
194 format_warning_at_substring.
195 (selftest::get_info): New function.
196 (selftest::assert_format_for_type_streq): New function.
197 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
198 (selftest::test_get_format_for_type_printf): New function.
199 (selftest::test_get_format_for_type_scanf): New function.
200 (selftest::c_format_c_tests): New function.
201
e52ed3fe
DM
2022016-08-08 David Malcolm <dmalcolm@redhat.com>
203
204 PR c/52952
205 * c-format.c: Include "diagnostic.h".
206 (location_column_from_byte_offset): Delete.
207 (location_from_offset): Delete.
208 (format_warning_va): New function.
209 (format_warning_at_substring): New function.
210 (format_warning_at_char): New function.
211 (check_format_arg): Capture location of format_tree and pass to
212 check_format_info_main.
213 (argument_parser): Add fields "start_of_this_format" and
214 "format_string_cst".
215 (flag_chars_t::validate): Add param "format_string_cst". Convert
216 warning_at call using location_from_offset to call to
217 format_warning_at_char.
218 (argument_parser::argument_parser): Add param "format_string_cst_"
219 and use use it to initialize field "format_string_cst".
220 Initialize new field "start_of_this_format".
221 (argument_parser::read_format_flags): Convert warning_at call
222 using location_from_offset to a call to format_warning_at_char.
223 (argument_parser::read_any_format_left_precision): Likewise.
224 (argument_parser::read_any_format_precision): Likewise.
225 (argument_parser::read_any_other_modifier): Likewise.
226 (argument_parser::find_format_char_info): Likewise, in three places.
227 (argument_parser::parse_any_scan_set): Likewise, in one place.
228 (argument_parser::handle_conversions): Likewise, in two places.
229 (argument_parser::check_argument_type): Add param "fmt_param_loc"
230 and use it to make a substring_loc. Pass the latter to
231 check_format_types.
232 (check_format_info_main): Add params "fmt_param_loc" and
233 "format_string_cst". Convert warning_at calls using
234 location_from_offset to calls to format_warning_at_char. Pass the
235 new params to the arg_parser ctor. Pass "format_string_cst" to
236 flag_chars.validate. Pass "fmt_param_loc" to
237 arg_parser.check_argument_type.
238 (check_format_types): Convert first param from a location_t
239 to a const substring_loc & and rename to "fmt_loc". Attempt
240 to extract the range of the relevant parameter and pass it
241 to format_type_warning.
242 (format_type_warning): Convert first param from a location_t
243 to a const substring_loc & and rename to "fmt_loc". Add
244 params "param_range" and "type". Replace calls to warning_at
245 with calls to format_warning_at_substring.
246
1c4d457e
DM
2472016-08-08 David Malcolm <dmalcolm@redhat.com>
248
249 * c-format.c (class flag_chars_t): New class.
250 (struct length_modifier): New struct.
251 (class argument_parser): New class.
252 (flag_chars_t::flag_chars_t): New ctor.
253 (flag_chars_t::has_char_p): New method.
254 (flag_chars_t::add_char): New method.
255 (flag_chars_t::validate): New method.
256 (flag_chars_t::get_alloc_flag): New method.
257 (flag_chars_t::assignment_suppression_p): New method.
258 (argument_parser::argument_parser): New ctor.
259 (argument_parser::read_any_dollar): New method.
260 (argument_parser::read_format_flags): New method.
261 (argument_parser::read_any_format_width): New method.
262 (argument_parser::read_any_format_left_precision): New method.
263 (argument_parser::read_any_format_precision): New method.
264 (argument_parser::handle_alloc_chars): New method.
265 (argument_parser::read_any_length_modifier): New method.
266 (argument_parser::read_any_other_modifier): New method.
267 (argument_parser::find_format_char_info): New method.
268 (argument_parser::validate_flag_pairs): New method.
269 (argument_parser::give_y2k_warnings): New method.
270 (argument_parser::parse_any_scan_set): New method.
271 (argument_parser::handle_conversions): New method.
272 (argument_parser::check_argument_type): New method.
273 (check_format_info_main): Introduce classes argument_parser
274 and flag_chars_t, moving the code within the loop into methods
275 of these classes. Make various locals "const".
276
88fa5555
DM
2772016-08-05 David Malcolm <dmalcolm@redhat.com>
278
279 * c-common.c: Include "substring-locations.h".
280 (get_cpp_ttype_from_string_type): New function.
281 (g_string_concat_db): New global.
282 (substring_loc::get_range): New method.
283 * c-common.h (g_string_concat_db): New declaration.
284 (class substring_loc): New class.
285 * c-lex.c (lex_string): When concatenating strings, capture the
286 locations of all tokens using a new obstack, and record the
287 concatenation locations within g_string_concat_db.
288 * c-opts.c (c_common_init_options): Construct g_string_concat_db
289 on the ggc-heap.
290
78169471
MP
2912016-07-29 Marek Polacek <polacek@redhat.com>
292
638fc14f
MP
293 PR c/71926
294 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
295 parentheses warning.
296
78169471
MP
297 PR c/71574
298 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
299
1225d6b1
ML
3002016-07-28 Martin Liska <mliska@suse.cz>
301
302 PR gcov-profile/68025
303 * c-common.c (handle_no_profile_instrument_function_attribute):
304
ec1e2a40
BE
3052016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
306
307 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
308 BITS_PER_UNIT_LOG.
309
5ec2cd9f
JM
3102016-07-25 Jason Merrill <jason@redhat.com>
311
312 PR c++/65970
313 * c.opt (fconstexpr-loop-limit): New.
314
9dc5773f 3152016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
316
317 PR c++/71675
318 * c-common.c (resolve_overloaded_builtin): Avoid converting
319 __atomic_compare_exchange_n return type to that of what its
320 first argument points to.
321
e3fe09c1
UB
3222016-07-22 Uros Bizjak <ubizjak@gmail.com>
323
324 * c-common.c: Use HOST_WIDE_INT_M1U instead of
325 ~(unsigned HOST_WIDE_INT) 0.
326
bc91c436
ML
3272016-07-22 Martin Liska <mliska@suse.cz>
328
329 PR gcov-profile/69028
330 PR gcov-profile/62047
331 * cilk.c (create_cilk_helper_decl): Set location of a new decl
332 to the current_function_decl.
333
451dcc66
JM
3342016-07-21 Jason Merrill <jason@redhat.com>
335
336 PR c++/65168
337 * c-common.c (c_common_truthvalue_conversion): Check
338 c_inhibit_evaluation_warnings for warning about address of
339 reference.
340
de6a69ee
DM
3412016-07-20 David Malcolm <dmalcolm@redhat.com>
342
343 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
344 const char *.
345
d022c55a
JM
3462016-07-15 Jason Merrill <jason@redhat.com>
347
348 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
349
ddbbcb19
JJ
3502016-07-15 Jakub Jelinek <jakub@redhat.com>
351
352 PR c/71858
353 * c-common.h (enum lookup_name_fuzzy_kind): Add
354 FUZZY_LOOKUP_FUNCTION_NAME.
355
d0cf395a
JM
3562016-07-08 Jason Merrill <jason@redhat.com>
357
358 P0145: Refining Expression Order for C++.
359 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
360 * c-opts.c: Adjust.
361
98d44e93
MT
3622016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
363
364 PR c++/71214
365 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
366
f9d8d994
TS
3672016-06-29 Thomas Schwinge <thomas@codesourcery.com>
368
369 * c-pragma.h (enum pragma_kind): Rename
370 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
371 users.
372
4aa83879
RB
3732016-06-29 Richard Biener <rguenther@suse.de>
374
375 PR middle-end/71002
376 * c-common.c (c_common_get_alias_set): Remove union type punning case.
377
a25bd9e6
JM
3782016-06-24 Jason Merrill <jason@redhat.com>
379
380 P0145R2: Refining Expression Order for C++.
381 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
382 MODIFY_EXPR.
383
a86451b9
JJ
3842016-06-24 Jakub Jelinek <jakub@redhat.com>
385
386 * c-common.c (check_builtin_function_arguments): Require last
387 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
388 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
389 if the last argument is pointer to enumerated or boolean type.
390
1a4f11c8
DM
3912016-06-22 David Malcolm <dmalcolm@redhat.com>
392
393 PR c/70339
394 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
395 (lookup_name_fuzzy): New prototype.
396
fe55692c
JDA
3972016-06-21 John David Anglin <danglin@gcc.gnu.org>
398
399 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
400
4eb24e01
JM
4012016-06-14 Jason Merrill <jason@redhat.com>
402
403 P0145R2: Refining Expression Order for C++.
404 * c.opt (fargs-in-order): New.
405 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
406
ef7cf206
JJ
4072016-06-13 Jakub Jelinek <jakub@redhat.com>
408
0dda258b
JJ
409 PR sanitizer/71498
410 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
411 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
412
ef7cf206
JJ
413 PR preprocessor/71183
414 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
415 to cb_get_source_date_epoch.
416
50b15873
JJ
4172016-06-10 Jakub Jelinek <jakub@redhat.com>
418
419 PR c/68657
420 * c.opt (Wpsabi): Add Warning flag.
421
4d926e34
MS
4222016-06-10 Martin Sebor <msebor@redhat.com>
423
424 PR c/71392
425 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
426 the nonnull attribute in type-generic builtins.
427
e01b4e16
MS
4282016-06-09 Martin Sebor <msebor@redhat.com>
429
430 PR c/70883
431 * c-common.c (builtin_function_validate_nargs): Make text of error
432 message consistent with others like it.
433
44a845ca
MS
4342016-06-08 Martin Sebor <msebor@redhat.com>
435 Jakub Jelinek <jakub@redhat.com>
436
437 PR c++/70507
438 PR c/68120
439 * c-common.c (check_builtin_function_arguments): Handle
440 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
441
a80a7051
RB
4422016-06-08 Richard Biener <rguenther@suse.de>
443
444 * c-common.c (parse_optimize_options): Improve diagnostic messages.
445
bfd67b47
RB
4462016-06-07 Richard Biener <rguenther@suse.de>
447
448 PR c/61564
449 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
450 options and warn about others.
451
15c98b2e
ES
4522016-06-01 Eduard Sanou <dhole@openmailbox.org>
453
454 * c-common.c (get_source_date_epoch): Rename to
455 cb_get_source_date_epoch.
456 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
457 message when the parsing fails. Use error_at instead of fatal_error.
458 * c-common.h (get_source_date_epoch): Rename to
459 cb_get_source_date_epoch.
460 * c-common.h (cb_get_source_date_epoch): Prototype.
461 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
462 * c-common.h (c_omp_region_type): Remove trailing comma.
463 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
464 * c-lex.c (c_lex_with_flags): Remove initialization of
465 pfile->source_date_epoch.
466
00631022
JJ
4672016-05-30 Jakub Jelinek <jakub@redhat.com>
468
469 PR c++/71349
470 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
471 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
472 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
473 instead of C_OMP_CLAUSE_SPLIT_FOR.
474
f17a223d
RB
4752016-05-24 Richard Biener <rguenther@suse.de>
476
477 PR middle-end/70434
478 PR c/69504
479 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
480 (convert_vector_to_array_for_subscript): ... this.
481 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
482 VIEW_CONVERT_EXPR to an array type. Rename to ...
483 (convert_vector_to_array_for_subscript): ... this.
484
4f2e1536
MP
4852016-05-12 Marek Polacek <polacek@redhat.com>
486
487 PR c/70756
488 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
489 size_in_bytes and pass LOC to it.
490
d6e83a8d
MM
4912016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
492
493 PR c/43651
494 * c.opt (Wduplicate-decl-specifier): New option.
495
5c3a10fb
MP
4962016-05-11 Marek Polacek <polacek@redhat.com>
497
498 PR c++/71024
499 * c-common.c (diagnose_mismatched_attributes): New function.
500 * c-common.h (diagnose_mismatched_attributes): Declare.
501
deef7113
MP
5022016-05-04 Marek Polacek <polacek@redhat.com>
503
504 * c.opt (Wdangling-else): New option.
505
79ce98bc
MP
5062016-05-03 Marek Polacek <polacek@redhat.com>
507
508 PR c/70859
509 * c-common.c (builtin_function_validate_nargs): Add location
510 parameter. Use it.
511 (check_builtin_function_arguments): Add location and arguments
512 parameters. Use them.
513 * c-common.h (check_builtin_function_arguments): Update declaration.
514
381cdae4
RB
5152016-05-03 Richard Biener <rguenther@suse.de>
516
517 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
518 allow call args to gimplify to SSA names.
519
1d793c34
MP
5202016-05-03 Marek Polacek <polacek@redhat.com>
521
522 * c-common.h (enum c_omp_region_type): Remove stray comma.
523
77886428
CP
5242016-05-02 Cesar Philippidis <cesar@codesourcery.com>
525
526 * c-common.h (enum c_omp_region_type): Define.
527
697e0b28
RS
5282016-05-02 Richard Sandiford <richard.sandiford@arm.com>
529
530 * c-common.c (shorten_compare): Use wi::to_wide.
531
e7ff0319
CP
5322016-04-29 Cesar Philippidis <cesar@codesourcery.com>
533
534 PR middle-end/70626
535 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
536 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
537 reduction clauses in acc parallel loops.
538
2fff3db8
MP
5392016-04-29 Marek Polacek <polacek@redhat.com>
540
541 PR c/70852
542 * c-common.c (warn_for_memset): Check domain before accessing it.
543
509063eb
DV
5442016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
545
546 PR/69089
547 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
548 "aligned" attribute.
549
b632761d
JM
5502016-04-28 Jason Merrill <jason@redhat.com>
551
552 * c-lex.c (c_common_has_attribute): Handle nodiscard.
553
174f6622
ES
5542016-04-28 Eduard Sanou <dhole@openmailbox.org>
555 Matthias Klose <doko@debian.org>
556
557 * c-common.c (get_source_date_epoch): New function, gets the environment
558 variable SOURCE_DATE_EPOCH and parses it as long long with error
559 handling.
560 * c-common.h (get_source_date_epoch): Prototype.
561 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
562
6bc2bb18
RB
5632015-04-27 Ryan Burn <contact@rnburn.com>
564
565 PR c++/69024
566 PR c++/68997
567 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
568 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
569 external linkage.
570 (cilk_detect_and_unwrap): Corresponding changes.
571 (extract_free_variables): Don't extract free variables from
572 AGGR_INIT_EXPR slot.
573 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
574 (cilk_recognize_spawn): Likewise.
575
c1e1f433
BS
5762016-04-27 Bernd Schmidt <bschmidt@redhat.com>
577
578 * c.opt (Wmemset-elt-size): New option.
579 * c-common.c (warn_for_memset): New function.
580 * c-common.h (warn_for_memset): Declare.
581
d067e05f
JM
5822016-04-25 Jason Merrill <jason@redhat.com>
583
584 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
585 No longer static.
586 * c-common.h: Declare it.
587 * c-lex.c (c_common_has_attribute): Add maybe_unused.
588
9aa36ae5
JM
5892016-04-22 Jason Merrill <jason@redhat.com>
590
591 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
592
477d4906
IV
5932016-04-20 Ilya Verbin <ilya.verbin@intel.com>
594
595 PR c++/69363
596 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
597 * c-common.h (c_finish_cilk_clauses): Remove declaration.
598
fe37c7af
MM
5992016-04-18 Michael Matz <matz@suse.de>
600
601 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
602 and SET_DECL_ALIGN.
603
23f2660f
EB
6042016-04-17 Eric Botcazou <ebotcazou@adacore.com>
605
606 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
607 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
608 to incomplete types.
609 (dump_nested_type): Remove redundant tests and tidy up.
610 (print_ada_declaration): Also set TREE_VISITED on the declaration of
611 a type which is the typedef of an original type.
612
1e77281b
MP
6132016-04-15 Marek Polacek <polacek@redhat.com>
614
615 PR c/70651
616 * c-common.c (build_va_arg): Change two asserts into errors and return
617 error_mark_node.
618
b3a77f21
MP
6192016-04-13 Marek Polacek <polacek@redhat.com>
620
621 PR c++/70639
622 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
623 for switch statements, too.
624
322b8466
JM
6252016-03-28 Jason Merrill <jason@redhat.com>
626
627 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
628
fbdb6baf
MP
6292016-03-23 Marek Polacek <polacek@redhat.com>
630
631 PR c++/69884
632 * c.opt (Wignored-attributes): New option.
633
5c240f4d
DM
6342016-03-22 David Malcolm <dmalcolm@redhat.com>
635
636 PR c/69993
637 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
638 diagnostic text, reversing the order of the warning and note so
639 that they appear in source order.
640
14ba7b28
MP
6412016-03-17 Marek Polacek <polacek@redhat.com>
642
643 PR c/69407
644 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
645 operations.
646
08a1cadc
JM
6472016-03-14 Jason Merrill <jason@redhat.com>
648
2aaeea19
JM
649 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
650
08a1cadc
JM
651 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
652
c06d25bb
RB
6532016-03-09 Richard Biener <rguenther@suse.de>
654
655 PR c/70143
656 * c-common.c (strict_aliasing_warning): Add back
657 alias_sets_conflict_p check.
658
80aac5c8
JM
6592016-03-08 Jason Merrill <jason@redhat.com>
660
661 * c-opts.c (set_std_cxx1z): Don't enable concepts.
662
64b23c13
DM
6632016-03-04 David Malcolm <dmalcolm@redhat.com>
664
665 PR c/68187
666 * c-indentation.c (get_visual_column): Move code to determine next
667 tab stop to...
668 (next_tab_stop): ...this new function.
669 (line_contains_hash_if): Delete function.
670 (detect_preprocessor_logic): Delete function.
671 (get_first_nws_vis_column): New function.
672 (detect_intervening_unindent): New function.
673 (should_warn_for_misleading_indentation): Replace call to
674 detect_preprocessor_logic with a call to
675 detect_intervening_unindent.
676
729526f5
DM
6772016-03-04 David Malcolm <dmalcolm@redhat.com>
678
679 PR c/68187
680 * c-indentation.c (should_warn_for_misleading_indentation): When
681 suppressing warnings about cases where the guard and body are on
682 the same column, only use the first non-whitespace column in place
683 of the guard token column when dealing with "else" clauses.
684 When rejecting aligned BODY and NEXT, loosen the requirement
685 from equality with the first non-whitespace of guard to simply
686 that they not be indented relative to it.
687
e9a35493
RB
6882016-03-04 Richard Biener <rguenther@suse.de>
689
690 PR c++/70054
691 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
692 instead of alias_sets_conflict_p.
693
1be56bc5
MP
6942016-03-01 Marek Polacek <polacek@redhat.com>
695
696 PR c++/69795
697 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
698 any DECL.
699
35886f0b
MS
7002016-02-22 Martin Sebor <msebor@redhat.com>
701
702 PR middle-end/69780
703 * c-common.c (check_builtin_function_arguments): Validate and
704 reject invalid arguments to __builtin_alloca_with_align.
705
4246c8da
MW
7062016-02-20 Mark Wielaard <mjw@redhat.com>
707
708 PR c/28901
709 * c.opt (Wunused-const-variable): Turn into Alias for...
710 (Wunused-const-variable=): New option.
711
268be88c
BE
7122016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
713
714 PR c++/69865
715 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
716 here...
717 (c_common_init_options): ...to here.
718 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
719
871b3f47
JJ
7202016-02-19 Jakub Jelinek <jakub@redhat.com>
721
722 PR c++/69826
723 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
724 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
725 flag_preprocess_only.
726
bf14eba2
JJ
7272016-02-16 Jakub Jelinek <jakub@redhat.com>
728
729 PR c/69835
730 * c.opt (Wnonnull-compare): Enable for -Wall.
731
ba6b3795
JJ
7322016-02-15 Jakub Jelinek <jakub@redhat.com>
733
734 PR c++/69797
735 * c-common.c (sync_resolve_size): Diagnose too few arguments
736 even when params is non-NULL empty vector.
737
a011cd92
BS
7382016-02-08 Bernd Schmidt <bschmidt@redhat.com>
739
740 PR target/60410
741 * c.opt (fshort-double): Remove.
742
46cb9332
MS
7432016-02-05 Martin Sebor <msebor@redhat.com>
744
745 PR c++/69662
746 * c.opt (Warning options): Update -Wplacement-new to take
747 an optional argument.
748
e1b81f2b
JJ
7492016-02-01 Jakub Jelinek <jakub@redhat.com>
750
751 PR preprocessor/69543
752 PR c/69558
753 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
754 instead of loc to control_warning_option.
755
b6adbb9f
NS
7562016-02-01 Nathan Sidwell <nathan@codesourcery.com>
757
758 * c.opt (fopenacc-dim=): New option.
759
5d70666e
RB
7602016-01-27 Ryan Burn <contact@rnburn.com>
761
762 PR cilkplus/69267
763 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
764 gimplify_arg. Removed superfluous post_p argument.
765 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
766 superfluous post_p argument.
767 * c-gimplify.c (c_gimplify_expr): Likewise.
768
01e1dea3
DM
7692016-01-26 David Malcolm <dmalcolm@redhat.com>
770
771 PR other/69006
772 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
773 pp_newline_and_flush with pp_flush.
774
9f04a53e
MS
7752016-01-20 Martin Sebor <msebor@redhat.com>
776
777 PR c/69405
778 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
779 an incompatible argument when the argument isn't a valid tree node.
780
7f26f7df
JM
7812016-01-18 Jason Merrill <jason@redhat.com>
782
783 PR c++/68767
784 * c-common.c (check_function_arguments_recurse): Fold the whole
785 COND_EXPR, not just the condition.
786
f62bf092
TV
7872016-01-18 Tom de Vries <tom@codesourcery.com>
788
789 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
790 classify as loop clause.
791
e0a575ff
JJ
7922016-01-15 Jakub Jelinek <jakub@redhat.com>
793
794 PR bootstrap/68271
795 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
796 C++ FE no longer has limit on number of pragmas.
797
7982015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
799
800 PR c++/69048
801 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 802 to add missing cleanup point.
b6e3db06 803
c7df95d8
DM
8042016-01-14 David Malcolm <dmalcolm@redhat.com>
805
806 PR c++/68819
807 * c-indentation.c (get_visual_column): Add location_t param.
808 Handle the column number being zero by effectively disabling the
809 warning, with an "inform".
810 (should_warn_for_misleading_indentation): Add location_t argument
811 for all uses of get_visual_column.
812
21efdd80
PP
8132016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
814
815 PR c++/69029
816 * c-indentation.c (should_warn_for_misleading_indentation):
817 Don't warn about do-while statements.
818
7a127fa7
MS
8192016-01-07 Martin Sebor <msebor@redhat.com>
820
821 PR c/68966
822 * c-common.c (sync_resolve_size): Reject first argument when it's
823 a pointer to _Bool.
824
c589e975
DM
8252016-01-05 David Malcolm <dmalcolm@redhat.com>
826
827 PR c/69122
828 * c-indentation.c (get_visual_column): Remove default argument.
829 (should_warn_for_misleading_indentation): For the multiline case,
830 update call to get_visual_column for next_stmt_exploc so that it
831 captures the location of the first non-whitespace character in the
832 relevant line. Don't issue warnings if there is non-whitespace
833 before the next statement.
834
818ab71a
JJ
8352016-01-04 Jakub Jelinek <jakub@redhat.com>
836
837 Update copyright years.
838
745e411d
DM
8392015-12-21 David Malcolm <dmalcolm@redhat.com>
840
841 * c-common.c (binary_op_error): Convert first param from
842 location_t to rich_location * and use it when emitting an error.
843 * c-common.h (binary_op_error): Convert first param from
844 location_t to rich_location *.
845
de67c4c3
DM
8462015-12-16 David Malcolm <dmalcolm@redhat.com>
847
848 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
849 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
850
4a38b02b
IV
8512015-12-15 Ilya Verbin <ilya.verbin@intel.com>
852
853 * c-common.c (c_common_attribute_table): Handle "omp declare target
854 link" attribute.
855
54d62f51
JJ
8562015-12-14 Jakub Jelinek <jakub@redhat.com>
857
858 PR c/68833
859 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
860
8d4227c8
TB
8612014-12-12 Tobias Burnus <burnus@net-b.de>
862
863 PR fortran/68815
864 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
865 specifiers (%d, %i,%u and %c).
866
f6069ccc
DM
8672015-12-10 David Malcolm <dmalcolm@redhat.com>
868
869 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
870
63bbf46d
JJ
8712015-12-08 Jakub Jelinek <jakub@redhat.com>
872
873 PR c/48088
874 PR c/68657
875 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
876 * c-pragma.c (handle_pragma_diagnostic): Adjust
877 control_warning_option caller.
878
f79520bb
DM
8792015-12-07 David Malcolm <dmalcolm@redhat.com>
880
881 * c-common.c (c_cpp_error): Update for change to
882 rich_location::set_range.
883
b3d5bc62
JJ
8842015-12-04 Paolo Bonzini <bonzini@gnu.org>
885
886 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
887 shifting 1 out of the sign bit.
888
8892015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
890
891 * c-common.c (c_common_attribute_table[]): Update max arguments
892 count for "simd" attribute.
893 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
894
6eb4a537
JJ
8952015-12-03 Jakub Jelinek <jakub@redhat.com>
896
897 PR preprocessor/57580
898 * c-ppoutput.c (print): Change printed field to bool.
899 Move src_file last for smaller padding.
900 (init_pp_output): Set print.printed to false instead of 0.
901 (scan_translation_unit): Fix up formatting. Set print.printed
902 to true after printing something other than newline.
903 (scan_translation_unit_trad): Set print.printed to true instead of 1.
904 (maybe_print_line_1): Set print.printed to false instead of 0.
905 (print_line_1): Likewise.
906 (do_line_change): Set print.printed to true instead of 1.
907 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
908 dump_macro): Set print.printed to false after printing newline.
909
4250754e
JM
9102015-12-02 Jason Merrill <jason@redhat.com>
911
f479b43d
JM
912 * c-common.c (fold_for_warn): New.
913 (warn_logical_operator, warn_tautological_cmp)
914 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
915
4250754e
JM
916 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
917 (c_fully_fold_internal, decl_constant_value_for_optimization):
918 Move to c/c-fold.c.
919 * c-common.h: Don't declare decl_constant_value_for_optimization.
920
e9e32ee6
JM
9212015-12-02 Joseph Myers <joseph@codesourcery.com>
922
923 PR c/68162
924 * c-common.h (c_build_qualified_type): Add extra default
925 arguments.
926
37d5ad46
JB
9272015-12-01 Julian Brown <julian@codesourcery.com>
928 Cesar Philippidis <cesar@codesourcery.com>
929 James Norris <James_Norris@mentor.com>
930
931 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
932 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
933 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
934
f07862c7
EB
9352015-11-30 Eric Botcazou <ebotcazou@adacore.com>
936
937 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
938 (decl_sloc_common): Delete and move bulk of processing to...
939 (decl_sloc): ...here.
940 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
941 (dump_ada_double_name): Remove S parameter and compute the suffix.
942 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
943 element type and deal with an anonymous one.
944 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
945 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
946 and remove reference to QUAL_UNION_TYPE.
947 (dump_nested_types): Make 2 passes on the fields and move bulk to...
948 (dump_nested_type): ...here. New function extracted from above.
949 Generate a full declaration for anonymous element type of arrays.
950 (print_ada_declaration): Really skip anonymous declarations. Remove
951 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
952 Clean up processing of declarations of array types and objects.
953 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
954 Remove obsolete code and tidy up.
955
75c8aac3
JH
9562015-11-29 Jan Hubicka <hubicka@ucw.cz>
957
958 PR c/67581
959 * c-common.c (handle_transparent_union_attribute): Update
960 also type variants.
961
b58d3df2
ML
9622015-11-27 Martin Liska <mliska@suse.cz>
963
964 PR c++/68312
965 * array-notation-common.c (cilkplus_extract_an_triplets):
966 Release vector of vectors.
967 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
968
89a01fcf
EB
9692015-11-26 Eric Botcazou <ebotcazou@adacore.com>
970
971 PR c++/68527
972 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
973 (print_ada_struct_decl): Likewise.
974
cc5c5226
IZ
9752015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
976
977 PR c++/68001
978 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
979 * cilk.c (recognize_spawn): Determine location in a more precise
980 way.
981
269adb9d
JM
9822015-11-19 Jason Merrill <jason@redhat.com>
983
984 * c-common.c (shorten_compare): But look through macros from
985 system headers.
986
d0eccfcd
JM
9872015-11-18 Jason Merrill <jason@redhat.com>
988
989 * c-common.c (shorten_compare): Don't -Wtype-limits if the
990 non-constant operand comes from a macro.
991
3e44547c
JM
9922015-11-17 Jason Merrill <jason@redhat.com>
993
994 PR bootstrap/68346
995 * c-common.c (warn_tautological_cmp): Fold before checking for
996 constants.
997
0f62c7a0
MP
9982015-11-16 Marek Polacek <polacek@redhat.com>
999
1000 PR c++/68362
1001 * c-common.c (check_case_bounds): Fold low and high cases.
1002
a868811e
MP
10032015-11-16 Marek Polacek <polacek@redhat.com>
1004
1005 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1006 * c-common.c (c_common_get_alias_set): Likewise.
1007 (handle_visibility_attribute): Likewise.
1008
fff77217
KY
10092015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1010
1011 * c-common.c (handle_simd_attribute): New.
1012 (struct attribute_spec): Add entry for "simd".
1013 (handle_simd_attribute): New.
1014
269e63b7
KT
10152015-11-13 Kai Tietz <ktietz70@googlemail.com>
1016
1017 * c-lex.c (interpret_float): Use fold_convert.
1018
ebedc9a3
DM
10192015-11-13 David Malcolm <dmalcolm@redhat.com>
1020
1021 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1022 and store it on the result.
1023 * c-opts.c (c_common_init_options): Set
1024 global_dc->colorize_source_p.
1025
6e232ba4
JN
10262015-11-12 James Norris <jnorris@codesourcery.com>
1027 Joseph Myers <joseph@codesourcery.com>
1028
1029 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1030 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1031 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1032 PRAGMA_OACC_CLAUSE_LINK.
1033
e78bede6
MP
10342015-11-11 Marek Polacek <polacek@redhat.com>
1035
1036 PR c/68107
1037 PR c++/68266
1038 * c-common.c (valid_array_size_p): New function.
1039 * c-common.h (valid_array_size_p): Declare.
1040
3f8257db 10412015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1042
1043 PR bootstrap/68271
1044 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1045
69f293c9
AM
10462015-11-11 Andrew MacLeod <amacleod@redhat.com>
1047
1048 * array-notation-common.c: Remove unused header files.
1049 * c-ada-spec.c: Likewise.
1050 * c-cilkplus.c: Likewise.
1051 * c-common.c: Likewise.
1052 * c-cppbuiltin.c: Likewise.
1053 * c-dump.c: Likewise.
1054 * c-format.c: Likewise.
1055 * c-gimplify.c: Likewise.
1056 * c-indentation.c: Likewise.
1057 * c-lex.c: Likewise.
1058 * c-omp.c: Likewise.
1059 * c-opts.c: Likewise.
1060 * c-pch.c: Likewise.
1061 * c-ppoutput.c: Likewise.
1062 * c-pragma.c: Likewise.
1063 * c-pretty-print.c: Likewise.
1064 * c-semantics.c: Likewise.
1065 * c-ubsan.c: Likewise.
1066 * cilk.c: Likewise.
1067 * stub-objc.c: Likewise.
1068
3a40d81d
NS
10692015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1070 Cesar Philippidis <cesar@codesourcery.com>
1071 James Norris <jnorris@codesourcery.com>
1072 Julian Brown <julian@codesourcery.com>
1073 Nathan Sidwell <nathan@codesourcery.com>
1074
1075 * c-pragma.c (oacc_pragmas): Add "routine".
1076 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1077
ee45a32d
EB
10782015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1079
1080 * c-common.c (c_common_attributes): Add scalar_storage_order.
1081 (handle_scalar_storage_order_attribute): New function.
1082 * c-pragma.c (global_sso): New variable.
1083 (maybe_apply_pragma_scalar_storage_order): New function.
1084 (handle_pragma_scalar_storage_order): Likewise.
1085 (init_pragma): Register scalar_storage_order.
1086 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1087 * c.opt (Wscalar-storage-order): New warning.
1088 (fsso-struct=): New option.
1089
eb11eb15
MS
10902015-11-08 Martin Sebor <msebor@redhat.com>
1091
1092 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1093
0aad0198
RS
10942015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1095
1096 * c-common.c: Don't undef DEF_BUILTIN.
1097
8a645150
DM
10982015-11-06 David Malcolm <dmalcolm@redhat.com>
1099
1100 * c-common.c (c_cpp_error): Convert parameter from location_t to
1101 rich_location *. Eliminate the "column_override" parameter and
1102 the call to diagnostic_override_column.
1103 Update the "done_lexing" clause to set range 0
1104 on the rich_location, rather than overwriting a location_t.
1105 * c-common.h (c_cpp_error): Convert parameter from location_t to
1106 rich_location *. Eliminate the "column_override" parameter.
1107
7a5e4956
CP
11082015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1109 Thomas Schwinge <thomas@codesourcery.com>
1110 James Norris <jnorris@codesourcery.com>
1111
1112 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1113 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1114 clauses with parallel and kernels and loops.
1115 * c-pragma.h (enum pragma_omp_clause): Add entries for
1116 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1117 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1118 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1119 INDEPENDENT,SEQ}.
1120 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1121
e2f5cc96
MS
11222015-11-05 Martin Sebor <msebor@redhat.com>
1123
1124 PR c++/67942
1125 * c.opt (-Wplacement-new): New option.
1126
e01d41e5
JJ
11272015-11-05 Jakub Jelinek <jakub@redhat.com>
1128
1129 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1130 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1131 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1132 save_expr or create_tmp_var* if TEST is true.
1133 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1134 Don't call add_stmt here.
1135 (struct c_omp_check_loop_iv_data): New type.
1136 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1137 c_omp_check_loop_iv_exprs): New functions.
1138 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1139 distribute.
1140 (c_omp_declare_simd_clauses_to_numbers): Change
1141 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1142 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1143 from numbers to PARM_DECLs.
1144
595278be
MM
11452015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1146
1147 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1148 flag_checking.
1149
3f8257db 11502015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1151
1152 PR c++-common/67882
b3d5bc62
JJ
1153 * c-common.h (fold_offsetof_1): Add argument.
1154 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1155 offsetof expressions that reference elements past the end of
1156 an array.
1157
4bf9e5a8
TS
11582015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1159 Chung-Lin Tang <cltang@codesourcery.com>
1160
1161 * c-pragma.c (oacc_pragmas): Add "atomic".
1162 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1163
3b1661a9
ES
11642015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1165
1166 * c-common.c (handle_target_clones_attribute): New.
1167 (c_common_attribute_table): Add handle_target_clones_attribute.
1168 (handle_always_inline_attribute): Add check on target_clones attribute.
1169 (handle_target_attribute): Ditto.
1170
2adfab87
AM
11712015-10-29 Andrew MacLeod <amacleod@redhat.com>
1172
1173 * array-notation-common.c: Reorder #include's and remove duplicates.
1174 * c-ada-spec.c: Likewise.
1175 * c-cilkplus.c: Likewise.
1176 * c-common.c: Likewise.
1177 * c-cppbuiltin.c: Likewise.
1178 * c-dump.c: Likewise.
1179 * c-format.c: Likewise.
1180 * c-gimplify.c: Likewise.
1181 * c-indentation.c: Likewise.
1182 * c-lex.c: Likewise.
1183 * c-omp.c: Likewise.
1184 * c-opts.c: Likewise.
1185 * c-pch.c: Likewise.
1186 * c-ppoutput.c: Likewise.
1187 * c-pragma.c: Likewise.
1188 * c-pretty-print.c: Likewise.
1189 * c-semantics.c: Likewise.
1190 * c-ubsan.c: Likewise.
1191 * cilk.c: Likewise.
1192 * stub-objc.c: Likewise.
1193
d90ec4f2
JM
11942015-10-28 Jason Merrill <jason@redhat.com>
1195
1196 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1197
88bae6f4
TS
11982015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1199 James Norris <jnorris@codesourcery.com>
1200 Cesar Philippidis <cesar@codesourcery.com>
1201
1202 PR c/64765
1203 PR c/64880
1204 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1205 * c-omp.c (c_oacc_split_loop_clauses): New function.
1206
b1726d6c
MS
12072015-10-21 Martin Sebor <msebor@redhat.com>
1208
1209 PR driver/68043
1210 * c.opt: End each sentence that describes an option with a period.
1211
fa60eeb9
MP
12122015-10-20 Marek Polacek <polacek@redhat.com>
1213
1214 * array-notation-common.c (is_cilkplus_vector_p): Define.
1215 * c-common.h (is_cilkplus_vector_p): Declare.
1216
95979049
MP
12172015-10-20 Marek Polacek <polacek@redhat.com>
1218
1219 * c.opt (std=gnu++11): Do not describe as experimental.
1220 (std=gnu++14): Likewise.
1221
2a9fb712
JM
12222015-10-19 Jason Merrill <jason@redhat.com>
1223
1224 * c-cppbuiltin.c (c_cpp_builtins): Define
1225 __cpp_nontype_template_args.
1226
13b380a3
JM
12272015-10-19 Jason Merrill <jason@redhat.com>
1228
1229 * c-cppbuiltin.c (c_cpp_builtins): Define
1230 __cpp_enumerator_attributes, __cpp_fold_expressions,
1231 __cpp_unicode_characters.
1232
d9a6bd32
JJ
12332015-10-13 Jakub Jelinek <jakub@redhat.com>
1234 Aldy Hernandez <aldyh@redhat.com>
1235
1236 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1237 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1238 (c_define_builtins): Likewise.
1239 * c-common.h (enum c_omp_clause_split): Add
1240 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1241 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1242 (c_finish_omp_for): Add ORIG_DECLV argument.
1243 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1244 201511 instead of 201307.
1245 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1246 OMP_CRITICAL_CLAUSES to it.
1247 (c_finish_omp_ordered): Add CLAUSES argument, set
1248 OMP_ORDERED_CLAUSES to it.
1249 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1250 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1251 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1252 constructs and new OpenMP 4.5 clauses. Clear
1253 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1254 verification code.
1255 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1256 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1257 (enum pragma_omp_clause): Add
1258 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1259 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1260
624d31fe
RS
12612015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1262
1263 * c-lex.c (interpret_float): Use real_equal instead of
1264 REAL_VALUES_EQUAL.
1265
b8fd7909
JM
12662015-10-04 Jason Merrill <jason@redhat.com>
1267
1268 Implement N4514, C++ Extensions for Transactional Memory.
1269 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1270 (c_common_attribute_table): Add transaction_safe_dynamic.
1271 transaction_safe now affects type identity.
1272 (handle_tm_attribute): Handle transaction_safe_dynamic.
1273 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1274 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1275 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1276 (D_TRANSMEM): New.
1277 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1278 * c-pretty-print.c (pp_c_attributes_display): Don't print
1279 transaction_safe in C++.
1280
12651878
MP
12812015-10-02 Marek Polacek <polacek@redhat.com>
1282
1283 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1284
3e3b8d63
MP
12852015-10-02 Marek Polacek <polacek@redhat.com>
1286
1287 PR c/64249
1288 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1289 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1290 * c.opt (Wduplicated-cond): New option.
1291
0d1a8f75
JM
12922015-10-01 Joseph Myers <joseph@codesourcery.com>
1293
1294 * c.opt (std=c11): Do not describe as experimental.
1295 (std=gnu11): Likewise.
1296 (std=iso9899:2011): Likewise.
1297
3e32ee19
NS
12982015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1299
1300 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1301 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1302
974348ee
MP
13032015-09-25 Marek Polacek <polacek@redhat.com>
1304
1305 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1306 (ubsan_instrument_shift): Likewise.
1307
15dbc1a6
MP
13082015-09-25 Marek Polacek <polacek@redhat.com>
1309
1310 PR sanitizer/64906
1311 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1312
6b95d7cc
PP
13132015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1314
1315 * c-indentation.c (should_warn_for_misleading_indentation):
1316 Compare next_stmt_vis_column with guard_line_first_nws instead
1317 of with guard_line_vis_column.
1318
c1822f9c
MLI
13192015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1320
1321 PR c/49654
1322 PR c/49655
1323 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1324 options and options not valid for the current language.
1325
d5398058
PP
13262015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1327
1328 * c-indentation.c (should_warn_for_misleading_indentation):
1329 Float out and consolidate the calls to get_visual_column that
1330 are passed guard_exploc as an argument. Compare
1331 next_stmt_vis_column with guard_line_first_nws instead of with
1332 body_line_first_nws.
1333
6b333269
NS
13342015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1335
1336 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1337 Wnamespaces): New C++ warnings.
1338
a75f1574
JM
13392015-09-22 Jason Merrill <jason@redhat.com>
1340
1341 * c-common.h (abi_compat_version_crosses): New.
1342 (warn_abi_version): Declare.
1343 * c-common.c: Define it.
1344 * c-opts.c (c_common_post_options): Handle it.
1345 flag_abi_compat_version defaults to 8.
1346
bdaaa8b7
VV
13472015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1348
1349 Complete the implementation of N4230, Nested namespace definition.
1350 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1351 __cpp_nested_namespace_definitions.
1352
eaa797e8
MLI
13532015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1354
1355 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1356
c4914de6
MLI
13572015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1358
1359 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1360 when warning.
1361 * c-pragma.h (pragma_lex): Add optional loc argument.
1362
fcb87c50
MM
13632015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1364
1365 * c-format.c (check_format_arg): Adjust to use common block size in all
1366 object pools.
1367
31bdd08a
DM
13682015-09-15 David Malcolm <dmalcolm@redhat.com>
1369
1370 * c-format.c (location_from_offset): Update for change in
1371 signature of location_get_source_line.
1372 * c-indentation.c (get_visual_column): Likewise.
1373 (line_contains_hash_if): Likewise.
1374
aa9f4b4c
MP
13752015-09-14 Marek Polacek <polacek@redhat.com>
1376
1377 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1378 setting various warnings.
1379
aa256c4a
MP
13802015-09-14 Marek Polacek <polacek@redhat.com>
1381
1382 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1383 a negative value.
1384
0f876f22
MW
13852015-09-11 Mark Wielaard <mjw@redhat.com>
1386
1387 PR c/28901
1388 * c.opt (Wunused-variable): Option from common.opt.
1389 (Wunused-const-variable): New option.
1390
273aa49e
PC
13912015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1392
1393 PR c++/53184
1394 * c.opt ([Wsubobject-linkage]): Add.
1395
1807ffc1
MS
13962015-09-03 Martin Sebor <msebor@redhat.com>
1397
1398 PR c/66516
1399 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1400 functions.
1401 * c-common.c (reject_gcc_builtin): Define.
1402
38942840
BI
14032015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1404
1405 PR middle-end/60586
1406 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1407 prototype.
1408 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1409 cilk_gimplify_call_params_in_spawned_fn.
1410 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1411 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1412 unwrapping.
1413
c316b5e4
MP
14142015-08-25 Marek Polacek <polacek@redhat.com>
1415
1416 PR middle-end/67330
1417 * c-common.c (handle_weak_attribute): Don't check whether the
1418 visibility can be changed here.
1419
584a7c46
MLI
14202015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1421
1422 * c-lex.c (c_lex_with_flags): Use explicit locations.
1423
a79683d5
TS
14242015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1425
1426 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1427 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1428
61717a45
FXC
14292015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1430
1431 PR middle-end/36757
1432 * c-common.c (check_builtin_function_arguments): Add check
1433 for BUILT_IN_SIGNBIT argument.
1434
329524f5
PC
14352015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1436
1437 PR c++/67160
1438 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1439 in c++1z mode.
1440
4ee55665
MP
14412015-08-17 Marek Polacek <polacek@redhat.com>
1442
1443 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1444 with whitespaces before qualifier names.
1445
b893e375
MP
14462015-08-12 Marek Polacek <polacek@redhat.com>
1447
1448 PR c++/55095
1449 * c-common.c (maybe_warn_shift_overflow): Properly handle
1450 left-shifting 1 into the sign bit.
1451
c2d89095
MLI
14522015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1453
1454 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1455
971e17ff
AS
14562015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1457 Braden Obrzut <admin@maniacsvault.net>
1458 Jason Merrill <jason@redhat.com>
1459
1460 Add C++ Concepts TS support.
1461 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1462 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1463 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1464 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1465 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1466 * c.opt (fconcepts): New.
1467
b3d5bc62
JJ
14682015-08-02 Martin Sebor <msebor@redhat.com>
1469
1470 * c.opt (-Wframe-address): New warning option.
1471
8ebca419
PP
14722015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1473
1474 * c-indentation.c (should_warn_for_misleading_indentation):
1475 Improve heuristics.
1476
1a1e101f
PP
14772015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1478
1479 * c-indentation.c (get_visual_column): Add parameter first_nws,
1480 use it. Update comment documenting the function.
1481 (is_first_nonwhitespace_on_line): Remove.
1482 (should_warn_for_misleading_indentation): Replace usage of
1483 of is_first_nonwhitespace_on_line with get_visual_column.
1484
992118a1
PP
14852015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1486
1487 * c-indentation.h (struct token_indent_info): Define.
1488 (get_token_indent_info): Define.
1489 (warn_for_misleading_information): Declare.
1490 * c-common.h (warn_for_misleading_information): Remove.
1491 * c-identation.c (warn_for_misleading_indentation):
1492 Change declaration to take three token_indent_infos. Adjust
1493 accordingly.
1494 * c-identation.c (should_warn_for_misleading_indentation):
1495 Likewise. Bail out early if the body is a compound statement.
1496 (guard_tinfo_to_string): Define.
1497
e8fa3817
JM
14982015-07-30 Jason Merrill <jason@redhat.com>
1499
1500 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1501 '*' for reference decay.
1502
173864e8
MP
15032015-07-30 Marek Polacek <polacek@redhat.com>
1504
1505 * c-common.c (warn_tautological_cmp): Bail for float types.
1506
f2afe6dd
MP
15072015-07-27 Marek Polacek <polacek@redhat.com>
1508
1509 PR bootstrap/67030
1510 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1511
05b28fd6
MP
15122015-07-27 Marek Polacek <polacek@redhat.com>
1513
1514 PR c++/66555
1515 PR c/54979
1516 * c-common.c (find_array_ref_with_const_idx_r): New function.
1517 (warn_tautological_cmp): New function.
1518 * c-common.h (warn_tautological_cmp): Declare.
1519 * c.opt (Wtautological-compare): New option.
1520
5a5062b8
MP
15212015-07-23 Marek Polacek <polacek@redhat.com>
1522
1523 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1524 (ubsan_instrument_shift): Likewise.
1525
dc891fe7
MP
15262015-07-23 Marek Polacek <polacek@redhat.com>
1527
1528 PR sanitizer/66908
1529 * c-ubsan.c: Include gimplify.h.
1530 (ubsan_instrument_division): Unshare OP0 and OP1.
1531 (ubsan_instrument_shift): Likewise.
1532
451b5e48
MP
15332015-07-20 Marek Polacek <polacek@redhat.com>
1534 Richard Sandiford <richard.sandiford@arm.com>
1535
1536 PR c++/55095
1537 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1538 Use EXPR_LOC_OR_LOC.
1539 (maybe_warn_shift_overflow): New function.
1540 * c-common.h (maybe_warn_shift_overflow): Declare.
1541 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1542 * c.opt (Wshift-overflow): New option.
1543
fb0b2914
ML
15442015-07-16 Martin Liska <mliska@suse.cz>
1545
1546 * c-format.c (static void check_format_info_main): Use
1547 object_allocator instead of pool_allocator.
1548 (check_format_arg): Likewise.
1549 (check_format_info_main): Likewise.
1550
903f5c23
AM
15512015-07-15 Andrew MacLeod <amacleod@redhat.com>
1552
1553 * c-opts.c: Remove multiline #include comment.
1554
026c3cfd
AH
15552015-07-12 Aldy Hernandez <aldyh@redhat.com>
1556
1557 * c-common.c: Fix double word typos.
1558
bb49ee66
EB
15592015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1560
1561 * c-ada-spec.h (cpp_operation): Revert latest change.
1562 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1563 constructors and destructors.
1564
1916bcb5
AM
15652015-07-09 Andrew MacLeod <amacleod@redhat.com>
1566
1567 * c-common.h: Adjust includes for flags.h changes.
1568 * stub-objc.c: Likewise.
026c3cfd 1569
a9dcd529
EB
15702015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1571
1572 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1573 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1574
b03b462f
JJ
15752015-07-08 Jakub Jelinek <jakub@redhat.com>
1576
1577 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1578 are to be removed, return NULL rather than original clauses list.
1579
c7131fb2
AM
15802015-07-07 Andrew MacLeod <amacleod@redhat.com>
1581
1582 * array-notation-common.c: Adjust includes.
1583 * c-ada-spec.c: Likewise.
1584 * c-cilkplus.c: Likewise.
1585 * c-common.h: Likewise.
1586 * c-cppbuiltin.c: Likewise.
1587 * c-dump.c: Likewise.
1588 * c-format.c: Likewise.
1589 * c-gimplify.c: Likewise.
1590 * c-indentation.c: Likewise.
1591 * c-lex.c: Likewise.
1592 * c-omp.c: Likewise.
1593 * c-opts.c: Likewise.
1594 * c-pch.c: Likewise.
1595 * c-ppoutput.c: Likewise.
1596 * c-pragma.c: Likewise.
1597 * c-pretty-print.c: Likewise.
1598 * c-semantics.c: Likewise.
1599 * c-ubsan.c: Likewise.
1600 * cilk.c: Likewise.
1601 * stub-objc.c: Likewise.
1602
2a7fb83f
EB
16032015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1604
1605 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1606 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1607
a03c9bf1
JM
16082015-07-01 Jason Merrill <jason@redhat.com>
1609
36a85135
JM
1610 * c-common.h (D_CXX11): Rename from D_CXX0X.
1611 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1612 * c-common.c: Adjust.
1613
e7fa68d5
JM
1614 * c-opts.c (c_common_post_options): Default to C++14.
1615
a03c9bf1
JM
1616 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1617
fe95b036
ESR
16182015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1619
1620 Implement N4197 - Adding u8 character literals
b3d5bc62 1621 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1622 CPP_CHAR.
b3d5bc62 1623 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1624 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1625 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1626 and CPP_UTF8CHAR tokens.
1627 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1628
da2e71c9
MLI
16292015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1630
1631 PR fortran/66605
1632 * c-common.c (do_warn_unused_parameter): Move here.
1633 * c-common.h (do_warn_unused_parameter): Declare.
1634
b155cfd9
MP
16352015-06-29 Marek Polacek <polacek@redhat.com>
1636
1637 PR c/66322
1638 * c-common.c (check_case_bounds): Add bool * parameter. Set
1639 OUTSIDE_RANGE_P.
1640 (c_add_case_label): Add bool * parameter. Pass it down to
1641 check_case_bounds.
1642 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1643 warning here.
1644 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1645 declarations.
1646
31521951
MP
16472015-06-27 Marek Polacek <polacek@redhat.com>
1648
1649 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1650 or VECTOR_INTEGER_TYPE_P throughout.
1651 * c-gimplify.c: Likewise.
1652
22d03525
MP
16532015-06-26 Marek Polacek <polacek@redhat.com>
1654
1655 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1656 * c-common.c (c_fully_fold_internal): Likewise.
1657 (c_alignof_expr): Likewise.
1658 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1659 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1660 * cilk.c (create_parm_list): Likewise.
22d03525 1661
af05e6e5
MP
16622015-06-26 Marek Polacek <polacek@redhat.com>
1663
1664 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1665
f0889939
AM
16662015-06-25 Andrew MacLeod <amacleod@redhat.com>
1667
1668 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1669 * c-gimplify.c: Likewise.
1670 * c-pragma.c: Likewise.
1671 * c-ubsan.c: Likewise.
1672 * cilk.c: Likewise.
1673
ca752f39
RS
16742015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1675
1676 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1677 ggc_hasher.
1678
16a16ec7
AM
16792015-06-25 Andrew MacLeod <amacleod@redhat.com>
1680
1681 * cilk.c: Move calls.h after tm.h in the include chain.
1682
0ae9bd27
MP
16832015-06-25 Marek Polacek <polacek@redhat.com>
1684
1685 * array-notation-common.c: Use VAR_P throughout.
1686 * c-ada-spec.c: Likewise.
1687 * c-common.c: Likewise.
1688 * c-format.c: Likewise.
1689 * c-gimplify.c: Likewise.
1690 * c-omp.c: Likewise.
1691 * c-pragma.c: Likewise.
1692 * c-pretty-print.c: Likewise.
1693 * cilk.c: Likewise.
1694
62f9079a
MP
16952015-06-25 Marek Polacek <polacek@redhat.com>
1696
1697 * cilk.c (extract_free_variables): Use is_global_var.
1698
0fa16060
RS
16992015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1700
1701 * c-common.c: Don't include target-def.h.
1702
a68ae2e1
MP
17032015-06-23 Marek Polacek <polacek@redhat.com>
1704
1705 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1706 when comparing INTEGER_CSTs.
1707
c6a2f2d9
PMR
17082015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1709
1710 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1711 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1712 (dump_ada_template): Skip partially specialized types.
1713
6b4db501
MM
17142015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1715
1716 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1717 swapping.
1718
abb226c9
AM
17192015-06-17 Andrew MacLeod <amacleod@redhat.com>
1720
1721 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1722 * c-ada-spec.c: Likewise.
1723 * c-cilkplus.c: Likewise.
1724 * c-common.c: Likewise.
1725 * c-common.h: Likewise.
1726 * c-cppbuiltin.c: Likewise.
1727 * c-dump.c: Likewise.
1728 * c-format.c: Likewise.
1729 * c-gimplify.c: Likewise.
1730 * c-indentation.c: Likewise.
1731 * c-lex.c: Likewise.
1732 * c-omp.c: Likewise.
1733 * c-opts.c: Likewise.
1734 * c-pch.c: Likewise.
1735 * c-ppoutput.c: Likewise.
1736 * c-pragma.c: Likewise.
1737 * c-pretty-print.c: Likewise.
1738 * c-semantics.c: Likewise.
1739 * c-ubsan.c: Likewise.
1740 * cilk.c: Likewise.
1741 * stub-objc.c: Likewise.
1742
076fecad
PP
17432015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1744
1745 PR c++/65168
1746 * c-common.c (c_common_truthvalue_conversion): Warn when
1747 converting an address of a reference to a truth value.
1748
13fdf2e2
AM
17492015-06-08 Andrew MacLeod <amacleod@redhat.com>
1750
1751 * array-notation-common.c : Adjust include files.
1752 * c-ada-spec.c : Likewise.
1753 * c-cilkplus.c : Likewise.
1754 * c-common.c : Likewise.
1755 * c-common.h : Likewise.
1756 * c-cppbuiltin.c : Likewise.
1757 * c-dump.c : Likewise.
1758 * c-format.c : Likewise.
1759 * c-gimplify.c : Likewise.
1760 * c-indentation.c : Likewise.
1761 * c-lex.c : Likewise.
1762 * c-omp.c : Likewise.
1763 * c-opts.c : Likewise.
1764 * c-pch.c : Likewise.
1765 * c-ppoutput.c : Likewise.
1766 * c-pragma.c : Likewise.
1767 * c-pretty-print.c : Likewise.
1768 * c-semantics.c : Likewise.
1769 * c-ubsan.c : Likewise.
1770 * cilk.c : Likewise.
1771 * stub-objc.c : Likewise.
1772
a1661b90
MP
17732015-06-08 Marek Polacek <polacek@redhat.com>
1774
1775 PR c/66415
1776 * c-format.c (location_from_offset): Return LOC if LINE is null.
1777
d7438551
AH
17782015-06-05 Aldy Hernandez <aldyh@redhat.com>
1779
1780 * c-common.h (c_parse_final_cleanups): New prototype.
1781 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1782
b3d5bc62
JJ
17832015-06-04 Sriraman Tallam <tmsriram@google.com>
1784
1785 * c-common.c (noplt): New attribute.
1786 (handle_noplt_attribute): New handler.
1787
ecb9f223
AM
17882015-06-04 Andrew MacLeod <amacleod@redhat.com>
1789
1790 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1791 * c-ada-spec.c: Likewise.
1792 * c-cilkplus.c: Likewise.
1793 * c-common.c: Likewise.
1794 * c-common.h: Likewise.
1795 * c-cppbuiltin.c: Likewise.
1796 * c-dump.c: Likewise.
1797 * c-format.c: Likewise.
1798 * c-gimplify.c: Likewise.
1799 * c-indentation.c: Likewise.
1800 * c-lex.c: Likewise.
1801 * c-omp.c: Likewise.
1802 * c-opts.c: Likewise.
1803 * c-pch.c: Likewise.
1804 * c-ppoutput.c: Likewise.
1805 * c-pragma.c: Likewise.
1806 * c-pretty-print.c: Likewise.
1807 * c-semantics.c: Likewise.
1808 * c-ubsan.c: Likewise.
1809 * cilk.c: Likewise.
1810 * stub-objc.c: Likewise.
1811
6ac48155
DM
18122015-06-02 David Malcolm <dmalcolm@redhat.com>
1813
1814 PR c/66220:
1815 * c-indentation.c (should_warn_for_misleading_indentation): Use
1816 expand_location rather than expand_location_to_spelling_point.
1817 Don't warn if the guarding statement is more indented than the
1818 next/body stmts.
1819
773ce42e
DM
18202015-06-02 David Malcolm <dmalcolm@redhat.com>
1821
1822 * c-indentation.c (warn_for_misleading_indentation): Bail out
1823 immediately if -Wmisleading-indentation isn't enabled.
1824
4fef8379
ML
18252015-06-01 Martin Liska <mliska@suse.cz>
1826
1827 * c-format.c (check_format_arg):Use new type-based pool allocator.
1828 (check_format_info_main) Likewise.
1829
1edfb384
EB
18302015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1831
1832 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1833 (has_nontrivial_methods): Likewise.
1834
9677ef52
MP
18352015-05-25 Marek Polacek <polacek@redhat.com>
1836
1837 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1838
fd5c817a
MP
18392015-05-22 Marek Polacek <polacek@redhat.com>
1840
1841 PR c/47043
1842 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1843
a2f45fe6 18442015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1845
1846 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1847 STACK_GROWS_DOWNWARD.
1848
a2f45fe6 18492015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1850
1851 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1852 STACK_GROWS_DOWNWARD rather than if it is defined.
1853
0fee2ac2 18542015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1855
0fee2ac2
MLI
1856 PR c/52952
1857 * c-format.c (location_column_from_byte_offset): New.
1858 (location_from_offset): New.
1859 (struct format_wanted_type): Add offset_loc field.
1860 (check_format_info): Move handling of location for extra arguments
1861 closer to the point of warning.
1862 (check_format_info_main): Pass the result of location_from_offset
1863 to warning_at.
1864 (format_type_warning): Pass the result of location_from_offset
1865 to warning_at.
1866
cf4ef6f7
MP
18672015-05-20 Marek Polacek <polacek@redhat.com>
1868
1869 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1870
3a65ee74
MP
18712015-05-20 Marek Polacek <polacek@redhat.com>
1872
1873 * c-ada-spec.c (dump_sloc): Use DECL_P.
1874
21b634ae
MP
18752015-05-20 Marek Polacek <polacek@redhat.com>
1876
1877 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1878 * c-common.c: Likewise.
1879
0e50b624
DM
18802015-05-19 David Malcolm <dmalcolm@redhat.com>
1881
1882 * c-common.h (fe_file_change): Strengthen param from
1883 const line_map * to const line_map_ordinary *.
1884 (pp_file_change): Likewise.
1885 * c-lex.c (fe_file_change): Likewise.
1886 (cb_define): Use linemap_check_ordinary when invoking
1887 SOURCE_LINE.
1888 (cb_undef): Likewise.
1889 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1890 invoking cb_file_change.
1891 (c_finish_options): Likewise.
1892 (push_command_line_include): Likewise.
1893 (cb_file_change): Strengthen param "new_map" from
1894 const line_map * to const line_map_ordinary *.
1895 * c-ppoutput.c (cb_define): Likewise for local "map".
1896 (pp_file_change): Likewise for param "map" and local "from".
1897
fab27f52
MM
18982015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1899
1900 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1901
2fe1d762
TV
19022015-05-18 Tom de Vries <tom@codesourcery.com>
1903
1904 * c-common.c (build_va_arg_1): New function.
1905 (build_va_arg): Add address operator to va_list operand if necessary.
1906
7a37fa90
MM
19072015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1908
1909 PR c/48956
1910 * c-common.c (int_safely_convertible_to_real_p): Define.
1911 (unsafe_conversion_p): Check conversions involving complex types.
1912 (conversion_warning): Add new warning message for conversions which
1913 discard imaginary component.
1914 * c-common.h: (enum conversion_safety): Add new enumerator for such
1915 conversions.
1916
3aa3c9fc
MP
19172015-05-14 Marek Polacek <polacek@redhat.com>
1918
1919 PR c/66066
1920 PR c/66127
1921 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1922 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1923 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1924 use it. If FOR_INT_CONST, require that all evaluated operands be
1925 INTEGER_CSTs.
1926
c3388e62
DM
19272015-05-12 David Malcolm <dmalcolm@redhat.com>
1928
1929 * c-common.h (warn_for_misleading_indentation): New prototype.
1930 * c-indentation.c: New file.
1931 * c.opt (Wmisleading-indentation): New option.
1932
c7b38fd5
TV
19332015-05-12 Tom de Vries <tom@codesourcery.com>
1934
1935 PR tree-optimization/66010
1936 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1937
381bf11e
JM
19382015-05-09 Jason Merrill <jason@redhat.com>
1939
edff0c06
JM
1940 * c-opts.c (c_common_post_options): Also clear
1941 cpp_opts->cpp_warn_cxx11_compat.
1942
129211bc
JM
1943 * c-common.h (enum cxx_dialect): Add cxx_unset.
1944 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1945 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1946
381bf11e
JM
1947 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1948 (std=gnu++0x): Mark as Undocumented.
1949 (std=gnu++1y): Add deprecated message.
1950
fe191308
JM
19512015-05-08 Jason Merrill <jason@redhat.com>
1952
765189ff
JM
1953 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1954 * c-opts.c: Adjust.
1955
fe191308
JM
1956 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1957
755e528f
MP
19582015-05-08 Marek Polacek <polacek@redhat.com>
1959
1960 PR c/64918
1961 * c.opt (Woverride-init-side-effects): New option.
1962
0173bd2a
MP
19632015-05-07 Marek Polacek <polacek@redhat.com>
1964
1965 PR c/65179
1966 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1967 negative value.
1968 * c.opt (Wshift-negative-value): New option.
1969 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1970 when -Wextra and C99/C++11 mode.
1971
e0f0d3b9
MP
19722015-05-07 Marek Polacek <polacek@redhat.com>
1973 Martin Uecker <uecker@eecs.berkeley.edu>
1974
1975 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1976 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1977
8243e2a9
JM
19782015-05-05 Jason Merrill <jason@redhat.com>
1979
1980 * c.opt (Wterminate): New.
1981
577cd070
MP
19822015-04-30 Marek Polacek <polacek@redhat.com>
1983
1984 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1985 require that the non-constant be of a boolean type.
1986
0373796b
JT
19872015-04-29 Josh Triplett <josh@joshtriplett.org>
1988
e0f0d3b9
MP
1989 * c-common.c (handle_section_attribute): Refactor to reduce
1990 nesting and distinguish between error cases.
0373796b 1991
716c0ba6
MP
19922015-04-29 Marek Polacek <polacek@redhat.com>
1993
1994 PR c/64610
1995 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1996 with 0/1.
1997
8848828b
JJ
19982015-04-29 Jakub Jelinek <jakub@redhat.com>
1999
2000 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2001 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2002 HOST_BITS_PER_WIDE_INT.
2003
ecd0e562
TV
20042015-04-28 Tom de Vries <tom@codesourcery.com>
2005
2006 PR tree-optimization/65887
2007 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2008
2a877204 20092015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2010 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2011
2012 * c-ada-spec.c (in_function): Delete.
2013 (dump_generic_ada_node): Do not change in_function and remove the
2014 redundant code dealing with it.
2015 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2016 (print_ada_methods): Output the static member functions in a nested
2017 package after the regular methods as well as associated renamings.
2018
4853031e
MP
20192015-04-24 Marek Polacek <polacek@redhat.com>
2020
2021 PR c/65830
2022 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2023 and OPT_Wshift_count_overflow.
2024
8c2b7f79
MP
2025 PR c/63357
2026 * c-common.c (warn_logical_operator): Warn if the operands have the
2027 same expressions.
2028
b8787813
MP
20292015-04-24 Marek Polacek <polacek@redhat.com>
2030
2031 PR c/61534
2032 * c-common.c (warn_logical_operator): Bail if either operand comes
2033 from a macro expansion.
2034
8fba1830
BRF
20352015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2036
2037 PR target/55143
2038 * c-common.c (c_default_pointer_mode): Add definition.
2039 * c-common.h (c_default_pointer_mode): Add declaration.
2040
17958621
JJ
20412015-03-11 Jakub Jelinek <jakub@redhat.com>
2042
2043 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2044 on record_builtin_type argument.
2045
7ccb1a11
JJ
20462015-03-10 Jakub Jelinek <jakub@redhat.com>
2047
2048 PR c/65120
2049 * c-common.c (warn_logical_not_parentheses): Don't warn for
2050 !x == 0 or !x != 0.
2051
04fd785e
MP
20522015-03-07 Marek Polacek <polacek@redhat.com>
2053
2054 PR sanitizer/65280
2055 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2056 before trying to figure out whether we have a flexible array member.
2057
a4e26206
EB
20582015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2059 Jonathan Wakely <jwakely.gcc@gmail.com>
2060
2061 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2062
0d2489f4
EB
20632015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2064
2065 PR ada/65319
2066 * c-ada-spec.c (print_destructor): Remove obsolete code.
2067
83ed54d7
EB
20682015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2069
2070 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2071 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2072 DECL_TEMPLATE_RESULT emulations.
2073 (dump_ada_template)): Add guard for TYPE_METHODS.
2074
7631f0e2
MP
20752015-02-27 Marek Polacek <polacek@redhat.com>
2076
2077 PR c/65040
2078 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2079
d1783ae5
KT
20802015-02-27 Kai Tietz <ktietz@redhat.com>
2081
2082 PR c/35330
2083 * c-pragma.c (handle_pragma_weak): Do not try to create
2084 weak/alias of declarations not being function, or variable
2085 declarations.
2086
56a9f6bc
TS
20872015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2088
2089 PR libgomp/64625
2090 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2091 Remove macros.
2092 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2093
3d5cb23d
MP
20942015-02-16 Marek Polacek <polacek@redhat.com>
2095
2096 PR c/65066
2097 * c-format.c (check_format_types): Handle null param.
2098
fa008882
MP
20992015-02-13 Marek Polacek <polacek@redhat.com>
2100
2101 PR c/65040
2102 * c-format.c (check_format_types): Don't warn about different
2103 signedness if the original value is in the range of WANTED_TYPE.
2104
785f21af
JM
21052015-02-12 Jason Merrill <jason@redhat.com>
2106
2107 PR c++/64956
2108 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2109 to the current highest version.
2110 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2111
4886ec8e
JJ
21122015-02-04 Jakub Jelinek <jakub@redhat.com>
2113
2114 PR c/64824
2115 PR c/64868
2116 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2117 instead of RDIV_EXPR. Use build_binary_op instead of
2118 build2_loc.
2119
40fecdd6
JM
21202015-01-30 Joseph Myers <joseph@codesourcery.com>
2121
2122 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2123 to pass input_location as first argument.
2124
a0c88d06
TV
21252015-01-23 Tom de Vries <tom@codesourcery.com>
2126
2127 PR libgomp/64672
2128 * c.opt (fopenacc): Mark as LTO option.
2129
1506ae0e
TV
21302015-01-23 Tom de Vries <tom@codesourcery.com>
2131
2132 PR libgomp/64707
2133 * c.opt (fopenmp): Mark as LTO option.
2134
31be63ab
JJ
21352015-01-21 Jakub Jelinek <jakub@redhat.com>
2136
2137 PR c/63307
b1726d6c 2138 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2139 (compare_decls): Fix up formatting.
2140
21412015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2142
2143 PR c/63307
2144 * cilk.c: Include vec.h.
2145 (struct cilk_decls): New structure.
2146 (wrapper_parm_cb): Split this function to...
2147 (fill_decls_vec): ...this...
2148 (create_parm_list): ...and this.
2149 (compare_decls): New function.
2150 (for_local_cb): Remove.
2151 (wrapper_local_cb): Ditto.
2152 (build_wrapper_type): For now first traverse and fill vector of
2153 declarations then sort it and then deal with sorted vector.
2154 (cilk_outline): Ditto.
2155 (declare_one_free_variable): Ditto.
2156
6875457f
JM
21572015-01-21 Jason Merrill <jason@redhat.com>
2158
2159 PR c++/64629
2160 * c-format.c (check_format_arg): Call decl_constant_value.
2161
185c9e56
ML
21622015-01-19 Martin Liska <mliska@suse.cz>
2163
2164 * c-common.c (handle_noicf_attribute): New function.
2165
41dbbb37
TS
21662015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2167 Bernd Schmidt <bernds@codesourcery.com>
2168 James Norris <jnorris@codesourcery.com>
2169 Cesar Philippidis <cesar@codesourcery.com>
2170 Ilmir Usmanov <i.usmanov@samsung.com>
2171 Jakub Jelinek <jakub@redhat.com>
2172
2173 * c.opt (fopenacc): New option.
2174 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2175 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2176 New macros.
2177 * c-common.h (c_finish_oacc_wait): New prototype.
2178 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2179 (c_finish_oacc_wait): New function.
2180 * c-pragma.c (oacc_pragmas): New variable.
2181 (c_pp_lookup_pragma, init_pragma): Handle it.
2182 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2183 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2184 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2185 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2186 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2187 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2188 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2189 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2190 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2191 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2192 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2193 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2194 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2195 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2196 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2197 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2198 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2199 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2200 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2201 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2202 PRAGMA_OACC_CLAUSE_WORKER.
2203
3f8257db 22042015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2205
2206 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2207 for the new option fstack-protector_explicit.
2208 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2209 (handle_stack_protect_attribute): New function.
2210
3f8257db 22112015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2212
2213 * c.opt: New option -Warray-bounds=.
2214
adfac8df
JJ
22152015-01-09 Michael Collison <michael.collison@linaro.org>
2216
2217 * array-notation-common.c: Include hash-set.h, machmode.h,
2218 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2219 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2220 * c-ada-spec.c: Ditto.
2221 * c-cilkplus.c: Ditto.
2222 * c-common.c: Include input.h due to flattening of tree.h.
2223 Define macro GCC_C_COMMON_C.
2224 * c-common.h: Flatten tree.h header files into c-common.h.
2225 Remove include of tree-core.h.
2226 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2227 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2228 fold-const.h, wide-int.h, and inchash.h due to
2229 flattening of tree.h.
2230 * c-dump.c: Ditto.
2231 * c-format.c: Flatten tree.h header files into c-common.h.
2232 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2233 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2234 fold-const.h, wide-int.h, and inchash.h due to
2235 flattening of tree.h.
2236 * c-dump.c: Include hash-set.h, machmode.h,
2237 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2238 fold-const.h, wide-int.h, and inchash.h due to
2239 flattening of tree.h.
2240 * c-format.c: Include hash-set.h, machmode.h,
2241 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2242 fold-const.h, wide-int.h, inchash.h and real.h due to
2243 flattening of tree.h.
2244 * c-gimplify.c: Include hash-set.h, machmode.h,
2245 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2246 fold-const.h, wide-int.h, and inchash.h due to
2247 flattening of tree.h.
2248 * cilk.c: Ditto.
2249 * c-lex.c: Ditto.
2250 * c-omp.c: Ditto.
2251 * c-opts.c: Ditto.
2252 * c-pch.c: Ditto.
2253 * c-ppoutput.c: Ditto.
2254 * c-pragma.c: Ditto.
2255 * c-pretty-print.c: Ditto.
2256 * c-semantics.c: Ditto.
2257 * c-ubsan.c: Ditto.
2258 * stub-objc.c: Ditto.
2259
f5481fc4
JM
22602015-01-08 Jason Merrill <jason@redhat.com>
2261
2262 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2263 do_ubsan_in_current_function.
2264 (ubsan_maybe_instrument_reference_or_call): Likewise.
2265 * c-ubsan.h: Declare it.
2266
de35aa66
MS
22672015-01-08 Mike Stump <mikestump@comcast.net>
2268
2269 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2270
4a9a42ab
MP
22712015-01-07 Marek Polacek <polacek@redhat.com>
2272
2273 PR c/64440
2274 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2275 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2276
2f42e5de
TS
22772015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2278
2279 PR c++/31397
2280 * c.opt (Wsuggest-override): New option.
2281
5624e564
JJ
22822015-01-05 Jakub Jelinek <jakub@redhat.com>
2283
2284 Update copyright years.
2285
5bd012f8
MP
22862015-01-05 Marek Polacek <polacek@redhat.com>
2287
2288 PR c/64423
2289 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2290 parameter. Use it.
2291 * c-common.h (warn_array_subscript_with_type_char): Update
2292 declaration.
2293
a7fa8d18
ESR
22942014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2295
2296 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2297 Control macro with flag_sized_deallocation.
2298
3f8257db 22992014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2300
2301 * c.opt (Wdiscarded-array-qualifiers): New option.
2302
1f8d3e84
JJ
23032014-12-19 Jakub Jelinek <jakub@redhat.com>
2304
2305 PR preprocessor/63831
2306 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2307 and __has_cpp_attribute here.
2308 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2309 c_common_has_attribute.
2310 * c-common.h (c_common_has_attribute): New prototype.
2311 * c-lex.c (init_c_lex): Set cb->has_attribute to
2312 c_common_has_attribute instead of cb_has_attribute.
2313 (get_token_no_padding): New function.
2314 (cb_has_attribute): Renamed to ...
2315 (c_common_has_attribute): ... this. No longer static. Use
2316 get_token_no_padding, require ()s, don't build TREE_LIST
2317 unnecessarily, fix up formatting, adjust diagnostics, call
2318 init_attributes.
2319
20b06add
JM
23202014-12-15 Jason Merrill <jason@redhat.com>
2321
2322 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2323 (-Wsized-deallocation): New.
2324 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2325 to on in C++14 and up.
2326
94a073b2
JM
23272014-12-11 Jason Merrill <jason@redhat.com>
2328
acaa5911
JM
2329 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2330
94a073b2
JM
2331 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2332 we aren't complaining about VLAs.
2333
7fb66c15
MP
23342014-12-06 Marek Polacek <polacek@redhat.com>
2335
2336 PR tree-optimization/64183
2337 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2338 shift-expression if it is integer_type_node. Use types_compatible_p.
2339
b731b390
JJ
23402014-11-29 Jakub Jelinek <jakub@redhat.com>
2341
2342 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2343 last argument from create_tmp_var_raw and create_tmp_var calls.
2344 * cilk.c (gimplify_cilk_spawn): Likewise.
2345 * c-omp.c (c_finish_omp_atomic): Likewise.
2346
6a4da643
MP
23472014-11-28 Marek Polacek <polacek@redhat.com>
2348
2349 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2350 instead of unsigned_type_node.
2351
541e35a6
MP
23522014-11-28 Marek Polacek <polacek@redhat.com>
2353
2354 PR c/63862
2355 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2356 to op1_utype.
2357 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2358 expression to unsigned_type_node.
2359
dcc97066
MW
23602014-11-20 Mark Wielaard <mjw@redhat.com>
2361
2362 PR debug/38757
2363 * c-opts.c (set_std_c89): Set lang_hooks.name.
2364 (set_std_c99): Likewise.
2365 (set_std_c11): Likewise.
2366 (set_std_cxx98): Likewise.
2367 (set_std_cxx11): Likewise.
2368 (set_std_cxx14): Likewise.
2369 (set_std_cxx1z): Likewise.
2370
aa7da51a
JJ
23712014-11-21 Jakub Jelinek <jakub@redhat.com>
2372
2373 PR target/63764
2374 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2375 return type to bool.
009a3480 2376 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2377 (convert_vector_to_pointer_for_subscript): Change return type to
2378 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2379 and copy it into a TARGET_EXPR and use that instead of *vecp
2380 directly.
2381
538dd0b7
DM
23822014-11-19 David Malcolm <dmalcolm@redhat.com>
2383
2384 Merger of git branch "gimple-classes-v2-option-3".
2385 * ChangeLog.gimple-classes: New.
2386 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2387 from being just a vec<gimple> to a vec<gbind *>.
2388
c39a5e99
JJ
23892014-11-18 Jakub Jelinek <jakub@redhat.com>
2390
2391 PR sanitizer/63813
2392 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2393 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2394 get_pointer_alignment for non-pointers. Use ptype, or if it is
2395 reference type, corresponding pointer type, as type of kind
2396 argument.
2397 (ubsan_maybe_instrument_reference,
2398 ubsan_maybe_instrument_member_call): Adjust callers.
2399
8537a4a9
MP
24002014-11-15 Marek Polacek <polacek@redhat.com>
2401
2402 PR middle-end/63884
2403 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2404 for NULL fndecl.
2405 (extract_array_notation_exprs): Return for NULL node.
2406
2079956a
JM
24072014-11-12 Joseph Myers <joseph@codesourcery.com>
2408
2409 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2410 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2411
1304953e
JJ
24122014-11-12 Jakub Jelinek <jakub@redhat.com>
2413
2414 PR c/59708
2415 * c-common.c (check_builtin_function_arguments): Handle
2416 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2417
e5e44252
AK
24182014-11-10 Andi Kleen <ak@linux.intel.com>
2419
2420 PR c/60804
2421 * c-common.h (check_no_cilk): Declare.
2422 * cilk.c (get_error_location): New function.
2423 (check_no_cilk): Dito.
2424
e64b984d
AK
24252014-11-10 Andi Kleen <ak@linux.intel.com>
2426
2427 * cilk.c (recognize_spawn): Use expression location
2428 for error message.
2429
13c21655
PC
24302014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2431
2432 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2433
42fd12b1
ESR
24342014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2435
2436 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2437 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2438 (__cpp_range_based_for, __cpp_initializer_lists,
2439 __cpp_delegating_constructors, __cpp_nsdmi,
2440 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2441 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2442 __has_cpp_attribute.
2443 * c-lex.c (cb_has_attribute): New callback CPP function;
2444 (init_c_lex): Set has_attribute callback.
2445
6f450181
RB
24462014-11-04 Richard Biener <rguenther@suse.de>
2447
2448 * c-common.c (shorten_compare): Do not shorten mixed
2449 DFP and non-DFP compares.
2450
26f0e1d6
ESR
24512014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2452
2453 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2454 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2455 Commentary and rearrangement of tests.
2456 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2457 Commentary and rearrangement of tests.
2458 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2459 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2460
ef4bddc2
RS
24612014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2462
2463 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2464 enum from machine_mode.
2465
c582198b
AM
24662014-10-28 Andrew MacLeod <amacleod@redhat.com>
2467
adfac8df
JJ
2468 * c-common.c: Adjust include files.
2469 * c-gimplify.c: Ditto.
2470 * cilk.c: Ditto.
2471 * c-pragma.c: Ditto.
2472 * c-ubsan.c: Ditto.
c582198b 2473
60393bbc
AM
24742014-10-27 Andrew MacLeod <amacleod@redhat.com>
2475
2476 * c-gimplify.c: Adjust include files.
2477
d723bb7c
MLI
24782014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2479
2480 PR c++/53061
2481 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2482 c_common_initialize_diagnostics.
2483 * c-common.h: Likewise.
2484
90f3520e
MP
24852014-10-24 Marek Polacek <polacek@redhat.com>
2486
2487 PR c/56980
2488 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2489 print "struct"/"union"/"enum" for typedefed names.
2490
59d7607a
MP
24912014-10-23 Marek Polacek <polacek@redhat.com>
2492
2493 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2494 in unsigned type.
2495
d95a2703
JJ
24962014-10-22 Jakub Jelinek <jakub@redhat.com>
2497 Yury Gribov <y.gribov@samsung.com>
2498
2499 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2500 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2501 instead of flag_sanitize_recover as bool flag.
2502
8e6ef852
KY
25032014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2504
2505 * cilk.c: Revert previous change.
2506
948cf550
IZ
25072014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2508
2509 PR c/63307
2510 * cilk.c: Include vec.h.
2511 (struct cilk_decls): New structure.
2512 (wrapper_parm_cb): Split this function to...
2513 (fill_decls_vec): ...this...
2514 (create_parm_list): ...and this.
2515 (compare_decls): New function.
2516 (for_local_cb): Remove.
2517 (wrapper_local_cb): Ditto.
2518 (build_wrapper_type): For now first traverse and fill vector of
2519 declarations then sort it and then deal with sorted vector.
2520 (cilk_outline): Ditto.
2521 (declare_one_free_variable): Ditto.
2522
92574c7c
MP
25232014-10-17 Marek Polacek <polacek@redhat.com>
2524
2525 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2526 * c.opt (Wimplicit-int): Initialize to -1.
2527
83685514
AM
25282014-10-16 Andrew MacLeod <amacleod@redhat.com>
2529
2530 * c-pragma.c: Adjust include files.
2531 * c-semantics.c: Likewise.
2532
5b8300ea
DD
25332014-10-16 DJ Delorie <dj@redhat.com>
2534
2535 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2536 multiples of bytes.
2537
5f83e90b
JM
25382014-10-14 Jason Merrill <jason@redhat.com>
2539
2540 PR c++/63455
2541 * c-common.h (CPP_PREPARSED_EXPR): New.
2542 (N_CP_TTYPES): Adjust.
2543
d73326ca
MP
25442014-10-15 Marek Polacek <polacek@redhat.com>
2545
2546 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2547
78a7c317
DD
25482014-10-14 DJ Delorie <dj@redhat.com>
2549
2550 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2551 types, not just __int128.
2552 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2553 types, not just __int128.
2554 (cpp_atomic_builtins): Round pointer sizes up.
2555 (type_suffix): Use type precision, not specific types.
2556 * c-common.c (c_common_reswords): Remove __int128 special case.
2557 (c_common_type_for_size): Check for all __intN types, not just
2558 __int128.
2559 (c_common_type_for_mode): Likewise.
2560 (c_common_signed_or_unsigned_type): Likewise.
2561 (c_build_bitfield_integer_type): Likewise.
2562 (c_common_nodes_and_builtins): Likewise.
2563 (keyword_begins_type_specifier): Likewise.
2564 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2565 __intN variants.
2566
2a22f99c
TS
25672014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2568
2569 * c-common.c: Use hash_table instead of hashtab.
2570
2a8ef767
ESR
25712014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2572
adfac8df 2573 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2574 C++11 section.
2575
3c9aabbd
MG
25762014-10-03 Marc Glisse <marc.glisse@inria.fr>
2577
2578 PR c++/54427
2579 PR c++/57198
2580 PR c++/58845
2581 * c-common.c (warn_logical_operator): Punt for vectors.
2582
a15f7cb8
ESR
25832014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2584
2585 Implement SD-6: SG10 Feature Test Recommendations
2586 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2587 macros and the __has_header macro.
2588
8d0cf15e
JM
25892014-09-30 Jason Merrill <jason@redhat.com>
2590
dd5d5481
JM
2591 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2592 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2593 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2594
b752325e
JM
2595 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2596 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2597
8d0cf15e
JM
2598 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2599 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2600
083e891e
MP
26012014-09-24 Marek Polacek <polacek@redhat.com>
2602
2603 PR c/61405
2604 PR c/53874
2605 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2606
7861b648
AK
26072014-09-23 Andi Kleen <ak@linux.intel.com>
2608
2609 * c-common.c (handle_no_reorder_attribute): New function.
2610 (c_common_attribute_table): Add no_reorder attribute.
2611
9a79452d
JM
26122014-09-22 Joseph Myers <joseph@codesourcery.com>
2613
2614 * c-cppbuiltin.c (c_cpp_builtins): Define
2615 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2616 modes.
2617
dd69f047
JM
26182014-09-18 Joseph Myers <joseph@codesourcery.com>
2619
2620 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2621 for supported floating-point modes.
2622
737a4826
MLI
26232014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2624
2625 * c.opt (Wpsabi): Use LangEnabledBy.
2626 * c-opts.c (c_common_handle_option): Do not handle here.
2627
8cc4b7a2
JM
26282014-09-12 Joseph Myers <joseph@codesourcery.com>
2629
2630 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2631 macros for floating-point modes.
2632
179b5a55
MG
26332014-09-11 Marc Glisse <marc.glisse@inria.fr>
2634
2635 PR target/58757
2636 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2637 __*_DENORM_MIN__ without denormals.
2638
570a11fe
JJ
26392014-09-10 Jakub Jelinek <jakub@redhat.com>
2640
2641 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2642 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2643 ubsan_create_data callers.
2644 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2645 index is constant or BIT_AND_EXPR with constant mask and is
2646 small enough for the bound.
2647 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2648 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2649
b559c810
MLI
26502014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2651
2652 * c.opt: Add CppReason to various flags.
2653 (Wdate-time): Re-sort.
2654 * c-common.c: Include c-common.h earlier.
2655 (struct reason_option_codes_t): Delete.
2656 (c_option_controlling_cpp_error): Prefix global type and struct
2657 with cpp_.
2658
1ef33fd4
MLI
26592014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2660
2661 * c.opt (Wnormalized): New.
2662 (Wnormalized=): Use Enum and Reject Negative.
2663 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2664
66bb34c0
JM
26652014-09-08 Joseph Myers <joseph@codesourcery.com>
2666
2667 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2668 digits of floating-point modes if -fbuilding-libgcc.
2669
53d68b9f
JM
26702014-09-05 Joseph Myers <joseph@codesourcery.com>
2671
2672 * c-cppbuiltin.c (c_cpp_builtins): Also define
2673 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2674 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2675 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2676 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2677 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2678 __LIBGCC_STACK_GROWS_DOWNWARD__,
2679 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2680 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2681 __LIBGCC_DWARF_FRAME_REGISTERS__,
2682 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2683 __LIBGCC_STACK_POINTER_REGNUM__ and
2684 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2685 (builtin_define_with_value): Handle backslash-escaping in string
2686 macro values.
2687
f65586dc
RB
26882014-09-05 Richard Biener <rguenther@suse.de>
2689
2690 PR middle-end/63148
2691 * c-format.c (check_format_arg): Properly handle
2692 effectively signed POINTER_PLUS_EXPR offset.
2693
2b71f4a4
MLI
26942014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2695
2696 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2697 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2698 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2699 and Init.
2700 * c-opts.c (c_common_handle_option): Do not handle here.
2701 (sanitize_cpp_opts): Likewise.
2702 * c-common.c (struct reason_option_codes_t): Handle
2703 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2704
d2e4feca
MP
27052014-09-03 Marek Polacek <polacek@redhat.com>
2706
2707 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2708
9a771876
JJ
27092014-09-02 Jakub Jelinek <jakub@redhat.com>
2710 Balaji V. Iyer <balaji.v.iyer@intel.com>
2711 Igor Zamyatin <igor.zamyatin@intel.com>
2712
2713 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2714 * c-common.c (c_common_reswords): Added _Cilk_for.
2715 * c-common.h (enum rid): Added RID_CILK_FOR.
2716 (cilk_for_number_of_iterations): Add declaration.
2717 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2718 CILK_FOR.
2719 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2720 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2721
81b5d104
MLI
27222014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2723
2724 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2725 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2726 Wundef): Use CPP, Var and Init.
2727 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2728
b753b37b
MLI
27292014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2730
2731 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2732 * c-opts.c (c_common_handle_option): Do not handle here.
2733
028aee17
JM
27342014-08-25 Jason Merrill <jason@redhat.com>
2735
2736 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2737 -std=c++14 and -std=gnu++14, rather than the reverse.
2738 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2739 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2740 * c-common.h (cxx_dialect): Remove cxx1y.
2741
e4276ba5
ESR
27422014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2743
2744 * c-common.h (enum cxx_dialect): Add cxx14.
2745 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2746 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2747 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2748
a545cacd
JM
27492014-08-22 Jason Merrill <jason@redhat.com>
2750
2751 * c.opt (std=gnu++17): Fix alias.
2752
59ea0364
MP
27532014-08-22 Marek Polacek <polacek@redhat.com>
2754
2755 PR c++/62199
2756 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2757 check for vector types. Drop LHS argument.
2758 * c-common.h (warn_logical_not_parentheses): Adjust.
2759
596e808c
MLI
27602014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2761
2762 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2763 (Wmultichar): Likewise.
2764 (Wdate-time): Use C-family languages instead of Common. Use CPP
2765 and Var.
2766 * c-opts.c (c_common_handle_option): Do not handle the above
2767 options here.
2768 (sanitize_cpp_opts): Likewise.
2769
18767f65
MLI
27702014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2771
2772 PR fortran/44054
2773 * c-opts.c: Include tree-diagnostics.h.
2774 (c_diagnostic_finalizer): New.
2775 (c_common_initialize_diagnostics): Use it.
2776
b4413594
MLI
27772014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2778
2779 PR preprocessor/51303
2780 * c-common.c (struct reason_option_codes_t option_codes):
2781 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2782
43f9a13c
MLI
27832014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2784
2785 PR c/60975
2786 PR c/53063
2787 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2788 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2789 (c_common_post_options): Call init_global_opts_from_cpp.
2790 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2791
04159acf
MP
27922014-08-19 Marek Polacek <polacek@redhat.com>
2793
2794 PR c++/62153
2795 * c-common.c (maybe_warn_bool_compare): New function.
2796 * c-common.h (maybe_warn_bool_compare): Declare.
2797 * c.opt (Wbool-compare): New option.
2798
35aff4fb
MP
27992014-08-19 Marek Polacek <polacek@redhat.com>
2800
2801 * c.opt (Wc99-c11-compat): New option.
2802
177cce46
MP
28032014-08-19 Marek Polacek <polacek@redhat.com>
2804
2805 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2806 to warn_c90_c99_compat.
2807 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2808 to -1.
2809
6ae9194f
MLI
28102014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2811 Steven Bosscher <steven@gcc.gnu.org>
2812
2813 PR c/52952
2814 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2815 format_check_results.
2816 (check_function_format): Use true and add comment for boolean
2817 argument.
2818 (finish_dollar_format_checking): Use explicit location when warning.
2819 (check_format_info): Likewise.
2820 (check_format_arg): Set extra_arg_loc and format_string_loc.
2821 (check_format_info_main): Use explicit location when warning.
2822 (check_format_types): Pass explicit location.
2823 (format_type_warning): Likewise.
2824
8e54f6d3
MLI
28252014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2826
2827 PR fortran/44054
2828 * c-format.c: Handle Fortran flags.
2829
cd4e76fc
IZ
28302014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2831
2832 PR other/61962
2833 * array-notation-common.c (find_rank): Added handling for other
2834 types of references.
2835
f3bede71
MP
28362014-08-10 Marek Polacek <polacek@redhat.com>
2837
2838 PR c/51849
2839 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2840 * c.opt (Wc90-c99-compat): Add option.
2841
9f25a338
TS
28422014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2843
2844 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2845
62e4eb35
MP
28462014-08-03 Marek Polacek <polacek@redhat.com>
2847
2848 * c-common.c (check_case_value): Add location_t parameter. Use it.
2849 (c_add_case_label): Pass loc to check_case_value.
2850
b787e7a2
TS
28512014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2852
2853 * cilk.c: Use hash_map instead of pointer_map.
2854
6e2830c3
TS
28552014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2856
2857 * c-gimplify.c: Use hash_set instead of pointer_set.
2858
a7ee52fb
IZ
28592014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2860
2861 PR middle-end/61455
2862 * array-notation-common.c (extract_array_notation_exprs): Handling
2863 of DECL_EXPR added.
2864
944fa280
JJ
28652014-08-01 Jakub Jelinek <jakub@redhat.com>
2866
2867 * c-common.h (min_align_of_type): Removed prototype.
2868 * c-common.c (min_align_of_type): Removed.
2869 * c-ubsan.h (ubsan_maybe_instrument_reference,
2870 ubsan_maybe_instrument_member_call): New prototypes.
2871 * c-ubsan.c: Include stor-layout.h and builtins.h.
2872 (ubsan_maybe_instrument_reference_or_call,
2873 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2874 functions.
2875
b4dfdc11
MG
28762014-07-31 Marc Glisse <marc.glisse@inria.fr>
2877
2878 PR c++/60517
2879 * c.opt (-Wreturn-local-addr): Move to common.opt.
2880
a41844e5
JM
28812014-07-30 Jason Merrill <jason@redhat.com>
2882
2883 PR c++/61659
2884 PR c++/61687
2885 Revert:
2886 * c.opt (-fuse-all-virtuals): New.
2887
976d5a22
TT
28882014-07-30 Tom Tromey <tromey@redhat.com>
2889
2890 PR c/59855
2891 * c.opt (Wdesignated-init): New option.
2892 * c-common.c (c_common_attribute_table): Add "designated_init".
2893 (handle_designated_init): New function.
2894
cdc94aca
MP
28952014-07-24 Marek Polacek <polacek@redhat.com>
2896
2897 PR c/57653
2898 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2899
f41373b6
DS
29002014-07-16 Dodji Seketeli <dodji@redhat.com>
2901
2902 PR preprocessor/60723 - missing system-ness marks for macro tokens
2903 * c-ppoutput.c (struct print::prev_was_system_token): New data
2904 member.
2905 (init_pp_output): Initialize it.
2906 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2907 (do_line_change): Return a flag saying if a line marker was
2908 emitted or not.
2909 (scan_translation_unit): Detect if the system-ness of the token we
2910 are about to emit is different from the one of the previously
2911 emitted token. If so, emit a line marker. Avoid emitting useless
2912 adjacent line markers. Avoid emitting line markers for tokens
2913 originating from the expansion of built-in macros.
2914 (scan_translation_unit_directives_only): Adjust.
2915
4d661eaa
MP
29162014-07-15 Marek Polacek <polacek@redhat.com>
2917
2918 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2919 TYPE_MAX_VALUE is NULL.
2920
b108f48f
JJ
29212014-07-14 Jakub Jelinek <jakub@redhat.com>
2922
2923 PR middle-end/61294
2924 * c.opt (Wmemset-transposed-args): New warning.
2925
c0221884
JM
29262014-07-10 Jason Merrill <jason@redhat.com>
2927
2928 PR c++/61659
2929 PR c++/61687
2930 * c.opt (-fuse-all-virtuals): New.
2931
63dfbb95
RB
29322014-07-09 Richard Biener <rguenther@suse.de>
2933
2934 PR c-family/61741
2935 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2936 using unsigned arithmetic if overflow does not wrap instead of
2937 if overflow is undefined.
2938
773ec47f
MP
29392014-07-06 Marek Polacek <polacek@redhat.com>
2940
2941 PR c/6940
2942 * c.opt (Wsizeof-array-argument): New option.
2943
00a7ba58
JJ
29442014-07-03 Jakub Jelinek <jakub@redhat.com>
2945
b1726d6c 2946 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2947 comments->count <= 1, as comments->entries might be NULL.
2948
52ec0ea3
MP
29492014-07-01 Marek Polacek <polacek@redhat.com>
2950
2951 * c.opt (Wint-conversion): New option.
2952
d5c3d343
MP
29532014-07-01 Marek Polacek <polacek@redhat.com>
2954
2955 PR c/58286
2956 * c.opt (Wincompatible-pointer-types): New option.
2957
6e7ceb17
PC
29582014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2959
2960 PR c++/51400
2961 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2962 Do not discard TYPE_QUALS of type.
2963
da73100b
JM
29642014-06-26 Jason Merrill <jason@redhat.com>
2965
2966 * c-common.h (enum cxx_dialect): Add cxx1z.
2967 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2968 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2969
08eedf75
TJ
29702014-06-26 Teresa Johnson <tejohnson@google.com>
2971
2972 * c-common.h (get_dump_info): Declare.
2973 * c-gimplify.c (c_genericize): Use saved dump files.
2974 * c-opts.c (c_common_parse_file): Begin and end dumps
2975 once around parsing invocation.
2976 (get_dump_info): New function.
2977
7b56b2f8
MP
29782014-06-23 Marek Polacek <polacek@redhat.com>
2979 Andrew MacLeod <amacleod@redhat.com>
2980
2981 PR c/61553
2982 * c-common.c (get_atomic_generic_size): Don't segfault if the
2983 type doesn't have a size.
2984
0e37a2f3
MP
29852014-06-20 Marek Polacek <polacek@redhat.com>
2986
2987 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2988 (ubsan_walk_array_refs_r): New function.
2989 (c_genericize): Instrument array bounds.
2990 * c-ubsan.c: Include "internal-fn.h".
2991 (ubsan_instrument_division): Mark instrumented arrays as having
2992 side effects. Adjust ubsan_type_descriptor call.
2993 (ubsan_instrument_shift): Likewise.
2994 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2995 (ubsan_instrument_bounds): New function.
2996 (ubsan_array_ref_instrumented_p): New function.
2997 (ubsan_maybe_instrument_array_ref): New function.
2998 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2999 (ubsan_array_ref_instrumented_p): Declare.
3000 (ubsan_maybe_instrument_array_ref): Declare.
3001
30022014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3003
3004 PR lto/61123
3005 * c.opt (fshort-enums): Add to LTO.
3006 * c.opt (fshort-wchar): Likewise.
3007
5c3d09f7
MP
30082014-06-16 Marek Polacek <polacek@redhat.com>
3009
3010 PR c/60439
3011 * c.opt (Wswitch-bool): Add Var.
3012
9cf32741
JJ
30132014-06-12 Jakub Jelinek <jakub@redhat.com>
3014
3015 PR middle-end/61486
3016 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3017 #pragma omp target teams or
3018 #pragma omp {,target }teams distribute simd.
3019
62984918
JM
30202014-06-12 Jason Merrill <jason@redhat.com>
3021
3022 * c.opt (Wabi=, fabi-compat-version): New.
3023 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3024 (c_common_post_options): Handle flag_abi_compat_version default.
3025 Disallow -fabi-compat-version=1.
3026 * c-common.h (abi_version_crosses): New.
3027
f961457f
JH
30282014-06-11 Jan Hubicka <hubicka@ucw.cz>
3029
adfac8df 3030 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3031 section names that are no longer trees.
3032
92d28cbb
JJ
30332014-06-10 Jakub Jelinek <jakub@redhat.com>
3034
3035 PR fortran/60928
3036 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3037 (omp_pragmas): ... back here.
3038
742938c9
MP
30392014-06-05 Marek Polacek <polacek@redhat.com>
3040
3041 PR c/49706
3042 * c-common.c (warn_logical_not_parentheses): New function.
3043 * c-common.h (warn_logical_not_parentheses): Declare.
3044 * c.opt (Wlogical-not-parentheses): New option.
3045
9d548dfb
MP
30462014-06-04 Marek Polacek <polacek@redhat.com>
3047
3048 PR c/30020
3049 * c-common.c (check_case_bounds): Add location parameter.
3050 Use it.
3051 (c_add_case_label): Pass loc to check_case_bounds.
3052
fedfecef
MP
30532014-06-03 Marek Polacek <polacek@redhat.com>
3054
3055 PR c/60439
3056 * c.opt (Wswitch-bool): New option.
3057
f6a7cffc
TS
30582014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3059
040d18b6
TS
3060 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3061 Remove prototypes.
3062 (record_types_used_by_current_var_decl): Move prototype to where
3063 it belongs.
3064
f6a7cffc
TS
3065 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3066 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3067 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3068
632f2871
RS
30692014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3070
3071 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3072 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3073 void_zero_node.
3074 * c-pretty-print.c (pp_c_void_constant): New function.
3075 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3076 (c_pretty_printer::expression): Handle VOID_CST.
3077 * cilk.c (extract_free_variables): Likewise.
3078 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3079 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3080
766090c2
TS
30812014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3082
3083 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3084 * c-pragma.c (push_alignment): Adjust.
3085 (handle_pragma_push_options): Likewise.
3086
661a0813
MP
30872014-05-09 Marek Polacek <polacek@redhat.com>
3088
3089 PR c/50459
3090 * c-common.c (check_user_alignment): Return -1 if alignment is error
3091 node.
3092 (handle_aligned_attribute): Don't call default_conversion on
3093 FUNCTION_DECLs.
3094 (handle_vector_size_attribute): Likewise.
3095 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3096 (handle_sentinel_attribute): Call default_conversion and allow even
3097 integral types as an argument.
3098
2793eeab
MP
30992014-05-08 Marek Polacek <polacek@redhat.com>
3100
3101 PR c/61053
3102 * c-common.c (min_align_of_type): New function factored out from...
3103 (c_sizeof_or_alignof_type): ...here.
3104 * c-common.h (min_align_of_type): Declare.
3105
f827930a
MP
31062014-05-08 Marek Polacek <polacek@redhat.com>
3107
3108 PR c/61077
3109 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3110 parameter type of main.
3111
ca49b74e
DD
31122014-05-07 DJ Delorie <dj@redhat.com>
3113
3114 * c-cppbuiltin.c (print_bits_of_hex): New.
3115 (builtin_define_type_minmax): Print values using hex so as not to
3116 require a pre-computed list of string values.
3117
1d60af08
KZ
31182014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3119 Mike Stump <mikestump@comcast.net>
3120 Richard Sandiford <rdsandiford@googlemail.com>
3121
3122 * c-ada-spec.c: Include wide-int.h.
3123 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3124 (dump_generic_ada_node): Use wide-int interfaces.
3125 * c-common.c: Include wide-int-print.h.
3126 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3127 (pointer_int_sum): Use wide-int interfaces.
3128 (c_common_nodes_and_builtins): Use make_int_cst.
3129 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3130 (handle_alloc_size_attribute): Use wide-int interfaces.
3131 (get_nonnull_operand): Likewise.
3132 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3133 * c-lex.c: Include wide-int.h.
3134 (narrowest_unsigned_type): Take a widest_int rather than two
3135 HOST_WIDE_INTs.
3136 (narrowest_signed_type): Likewise.
3137 (interpret_integer): Update accordingly. Use wide-int interfaces.
3138 (lex_charconst): Use wide-int interfaces.
3139 * c-pretty-print.c: Include wide-int.h.
3140 (pp_c_integer_constant): Use wide-int interfaces.
3141 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3142 INT_CST_LT_UNSIGNED.
3143
b15458be
RB
31442014-05-06 Richard Biener <rguenther@suse.de>
3145
3146 * c-opts.c (c_common_post_options): For -freestanding,
3147 -fno-hosted and -fno-builtin disable pattern recognition
3148 if not enabled explicitely.
3149
6577374e
MP
31502014-05-02 Marek Polacek <polacek@redhat.com>
3151
3152 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3153
d00887e8
MP
31542014-05-01 Marek Polacek <polacek@redhat.com>
3155
3156 PR c/43245
3157 * c.opt (Wdiscarded-qualifiers): Add.
3158
f8ed5150
MP
31592014-04-30 Marek Polacek <polacek@redhat.com>
3160
3161 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3162 INT_MIN / -1 sanitization only for integer types.
3163
45484dcf
MP
31642014-04-25 Marek Polacek <polacek@redhat.com>
3165
3166 PR c/18079
3167 * c-common.c (handle_noinline_attribute): Warn if the attribute
3168 conflicts with always_inline attribute.
3169 (handle_always_inline_attribute): Warn if the attribute conflicts
3170 with noinline attribute.
3171
38e514c0
MP
31722014-04-25 Marek Polacek <polacek@redhat.com>
3173
3174 PR c/60156
3175 * c-common.c (check_main_parameter_types): Warn about variadic main.
3176
44875f92
MS
31772014-04-24 Mike Stump <mikestump@comcast.net>
3178
3179 * c.opt (Wshadow-ivar): Default to on.
3180
dcaaa5a0
DP
31812014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3182
3183 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3184
c07d7c02
MP
31852014-04-23 Marek Polacek <polacek@redhat.com>
3186
3187 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3188
1c33c9b7
JJ
31892014-04-22 Jakub Jelinek <jakub@redhat.com>
3190
3191 PR sanitizer/60275
3192 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3193 if flag_sanitize_undefined_trap_on_error.
3194 (ubsan_instrument_division, ubsan_instrument_shift,
3195 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3196 if !flag_sanitize_recover.
3197
793c625f
MG
31982014-04-22 Marc Glisse <marc.glisse@inria.fr>
3199
3200 PR libstdc++/43622
3201 * c-common.c (registered_builtin_types): Make non-static.
3202 * c-common.h (registered_builtin_types): Declare.
3203
b0f1bf36
RB
32042014-04-14 Richard Biener <rguenther@suse.de>
3205 Marc Glisse <marc.glisse@inria.fr>
3206
3207 PR c/60819
3208 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3209 apply may-alias the scalar pointer type when applicable.
3210
3b07fa4a
IZ
32112014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3212
3213 PR middle-end/60467
3214 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3215 as possible argument for Cilk_spawn.
3216
cbbd2b1c
TB
32172014-04-11 Tobias Burnus <burnus@net-b.de>
3218
3219 PR c/60194
3220 * c.opt (Wformat-signedness): Add
3221 * c-format.c(check_format_types): Use it.
3222
6415bd5d
JM
32232014-04-11 Jason Merrill <jason@redhat.com>
3224
3225 PR c++/57926
3226 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3227 default_conversion for an array argument.
3228
6525783a
MP
32292014-04-08 Marek Polacek <polacek@redhat.com>
3230
3231 PR sanitizer/60745
3232 * c-ubsan.c: Include asan.h.
3233 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3234
880a467b
NS
32352014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3236
3237 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3238
7b59ff2d
MP
32392014-04-02 Marek Polacek <polacek@redhat.com>
3240
3241 * c-common.h (c_expand_expr): Remove declaration.
3242
8edbfaa6
JJ
32432014-03-28 Jakub Jelinek <jakub@redhat.com>
3244
3245 PR c++/60689
3246 * c-common.c (add_atomic_size_parameter): When creating new
3247 params vector, push the size argument first.
3248
07d72e1d
JJ
32492014-03-26 Jakub Jelinek <jakub@redhat.com>
3250
3251 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3252 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3253 ubsan_create_data callers.
3254
b35e0fa0
JJ
32552014-03-22 Jakub Jelinek <jakub@redhat.com>
3256
3257 PR debug/60603
3258 * c-opts.c (c_finish_options): Restore cb_file_change call to
3259 <built-in>.
3260
39a1ebb3
JJ
32612014-03-13 Jakub Jelinek <jakub@redhat.com>
3262
3263 PR middle-end/36282
3264 * c-pragma.c (apply_pragma_weak): Only look at
3265 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3266 DECL_ASSEMBLER_NAME_SET_P (decl).
3267 (maybe_apply_pending_pragma_weaks): Exit early if
3268 vec_safe_is_empty (pending_weaks) rather than only when
3269 !pending_weaks.
3270 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3271 set assembler name back to NULL afterwards.
3272
a07f6ed2
JM
32732014-03-11 Jason Merrill <jason@redhat.com>
3274
3275 * c.opt: Add -std=gnu++14.
3276
75b107f5
IB
32772014-03-11 Ian Bolton <ian.bolton@arm.com>
3278
3279 * c-opts.c (c_common_post_options): Don't override
3280 -ffp-contract=fast if unsafe-math-optimizations is on.
3281
f42c637e
PM
32822014-03-08 Paulo Matos <paulo@matos-sorge.com>
3283
3284 * c.opt: Enable LTO FE for fshort-double.
3285
70e24808
JM
32862014-03-07 Jason Merrill <jason@redhat.com>
3287
3288 * c.opt: Add -std=c++14.
3289
3af9c5e9
MP
32902014-03-06 Marek Polacek <polacek@redhat.com>
3291
3292 PR c/60197
3293 * cilk.c (contains_cilk_spawn_stmt): New function.
3294 (contains_cilk_spawn_stmt_walker): Likewise.
3295 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3296 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3297
b3bdf019
JJ
32982014-03-03 Jakub Jelinek <jakub@redhat.com>
3299
3300 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3301 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3302 even when flag_preprocess_only.
3303
ca7e759d
JM
33042014-02-26 Jason Merrill <jason@redhat.com>
3305
3306 PR c++/59231
3307 PR c++/11586
3308 * c-common.c (shorten_compare): Don't check
3309 c_inhibit_evaluation_warnings.
3310
28e41874
JJ
33112014-02-19 Jakub Jelinek <jakub@redhat.com>
3312
cca615af
JJ
3313 PR c/37743
3314 * c-common.c (c_common_nodes_and_builtins): When initializing
3315 c_uint{16,32,64}_type_node, also set corresponding
3316 uint{16,32,64}_type_node to the same value.
3317
28e41874
JJ
3318 PR c++/60267
3319 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3320 for PRAGMA_IVDEP if flag_preprocess_only.
3321
c2bf53a1
JJ
33222014-02-12 Jakub Jelinek <jakub@redhat.com>
3323
3324 PR c/60101
3325 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3326 if false, add ADD itself, rather than vice versa.
3327 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3328 copy. For SAVE_EXPR, only call merge_tlist once.
3329
8fcbce72
JJ
33302014-02-08 Jakub Jelinek <jakub@redhat.com>
3331
3332 PR middle-end/60092
3333 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3334 and tree_to_uhwi.
3335 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3336 functions.
3337 (c_common_attribute_table): Add alloc_align and assume_aligned
3338 attributes.
3339
0a756a3f
MP
33402014-02-06 Marek Polacek <polacek@redhat.com>
3341
3342 PR c/60087
3343 * c-common.c (warn_for_sign_compare): Call warning_at with location
3344 instead of warning.
3345
7ec4847a
MP
33462014-02-05 Marek Polacek <polacek@redhat.com>
3347
3348 PR c/53123
3349 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3350 statement.
3351
66f20604
MP
33522014-02-04 Marek Polacek <polacek@redhat.com>
3353
3354 PR c/60036
3355 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3356 SAVE_EXPR.
3357
5d77fb19
MG
33582014-02-03 Marc Glisse <marc.glisse@inria.fr>
3359
3360 PR c++/53017
3361 PR c++/59211
3362 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3363 handle_vector_size_attribute, handle_nonnull_attribute): Call
3364 default_conversion on the attribute argument.
3365 (handle_nonnull_attribute): Increment the argument number.
3366
81e5eca8
MP
33672014-01-31 Marek Polacek <polacek@redhat.com>
3368
3369 PR c/59963
3370 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3371 build_function_call_vec.
3372 (resolve_overloaded_builtin): Likewise.
3373 * c-common.h (build_function_call_vec): Adjust declaration.
3374
68fca595
MP
33752014-01-30 Marek Polacek <polacek@redhat.com>
3376
3377 PR c/59940
3378 * c-common.h (unsafe_conversion_p): Adjust declaration.
3379 (warnings_for_convert_and_check): Likewise.
3380 (convert_and_check): Likewise.
3381 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3382 expansion_point_location_if_in_system_header on it.
3383 (warnings_for_convert_and_check): Add location parameter. Call
3384 expansion_point_location_if_in_system_header on it. Use it.
3385 (convert_and_check): Add location parameter. Use it.
3386 (conversion_warning): Likewise.
3387 (c_add_case_label): Adjust convert_and_check calls.
3388 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3389
b72271b9
BI
33902014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3391
3392 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3393 flag_cilkplus.
3394 * c-pragma.c (init_pragma): Likewise.
3395 * c.opt: Likewise.
3396
393e8e8b
MP
33972014-01-23 Marek Polacek <polacek@redhat.com>
3398
3399 PR c/59846
3400 * c-common.c (shorten_compare): Add location_t parameter.
3401 * c-common.h (shorten_binary_op): Adjust declaration.
3402
f04dda30
MP
34032014-01-23 Marek Polacek <polacek@redhat.com>
3404
3405 PR c/58346
3406 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3407 * c-common.h: Declare it.
3408
621955cb
EB
34092014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3410
3411 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3412 * c-ada-spec.c (dump_ads): Likewise.
3413 (cpp_check): Likewise.
3414 (dump_ada_specs): Likewise.
3415
34162014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3417
3418 PR c++/49718
3419 * c-common.c (handle_no_instrument_function_attribute): Allow
3420 no_instrument_function attribute in class member
3421 definition/declaration.
3422
241f845a
JJ
34232014-01-15 Jakub Jelinek <jakub@redhat.com>
3424
3425 PR c/58943
3426 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3427 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3428 being COMPOUND_EXPR.
3429 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3430 operand a SAVE_EXPR and second MODIFY_EXPR.
3431
e83b8e2e
JJ
34322014-01-09 Jakub Jelinek <jakub@redhat.com>
3433
3434 PR target/58115
3435 * c-pch.c (c_common_write_pch): Call
3436 prepare_target_option_nodes_for_pch.
3437
23a5b65a
RS
34382014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3439
3440 Update copyright years
3441
f9030485
RS
34422014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3443
3444 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3445 the copyright notice.
3446
f2aa696b
EB
34472013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3448
3449 * c-ada-spec.c (print_constructor): New function.
3450 (print_destructor): Retrieve the origin of the destructor.
3451 (print_ada_declaration): Revamp handling of constructors/destructors.
3452
3f8257db 34532013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3454 Bill Maddox <maddox@google.com>
3455 Jason Merrill <jason@redhat.com>
3456
3457 * c.opt: Add -fdeclone-ctor-dtor.
3458 * c-opts.c (c_common_post_options): Default to on iff -Os.
3459
41958c28
BI
34602013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3461
3462 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3463 attribute.
3464 * c-pragma.h (enum pragma_cilk_clause): Remove.
3465 (enum pragma_omp_clause): Added the following fields:
3466 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3467 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3468 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3469 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3470 PRAGMA_CILK_CLAUSE_UNIFORM.
3471
b1726d6c 3472
12893402
BI
34732013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3474
3475 * cilk.c (cilk_outline): Made this function non-static.
3476 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3477 (create_cilk_wrapper): Added a new parameter: a function pointer.
3478 (c_install_body_w_frame_cleanup): Remove
3479 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3480 * c-common.h (cilk_outline): New prototype.
3481 (gimplify_cilk_spawn): Removed two parameters.
3482 (cilk_install_body_with_frame_cleanup): New prototype.
3483 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3484 CILK_SPAWN_STMT case.
3485
085b42ed
BS
34862013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3487
2ce064c3
BS
3488 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3489
085b42ed
BS
3490 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3491 (int_array_type_node): Remove.
3492 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3493
9e36c9ed
MP
34942013-12-05 Marek Polacek <polacek@redhat.com>
3495
3496 PR c/52023
3497 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3498 [ADJUST_FIELD_ALIGN].
3499
296674db
JM
35002013-12-04 Joseph Myers <joseph@codesourcery.com>
3501
3502 PR c/52023
3503 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3504 and check field alignment if set.
3505 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3506 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3507
b1726d6c 35082013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3509 Marek Polacek <polacek@redhat.com>
3510
3511 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3512 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3513
d7947e19
L
35142013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3515
3516 PR c/59309
3517 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3518 arguments.
3519
fad7652e
JJ
35202013-11-29 Jakub Jelinek <jakub@redhat.com>
3521
3522 PR c/59280
3523 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3524 goto invalid. If it is error_mark_node, don't issue further
3525 diagnostics.
3526
8b5e1202
SO
35272013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3528
3529 * c.opt (Wopenmp-simd): New.
3530
0a508bb6
JJ
35312013-11-22 Jakub Jelinek <jakub@redhat.com>
3532
3533 * c-ubsan.h (ubsan_instrument_return): New prototype.
3534 * c-ubsan.c (ubsan_instrument_return): New function.
3535
2fb9a547
AM
35362013-11-22 Andrew MacLeod <amacleod@redhat.com>
3537
3538 * c-common.c: Add required include files from gimple.h.
3539 * c-gimplify.c: Likewise
3540 * cilk.c: Likewise
3541
8400e75e
DM
35422013-11-22 David Malcolm <dmalcolm@redhat.com>
3543
3544 * c-common.c (unsafe_conversion_p): Remove use of
3545 EXPR_LOC_OR_HERE macro.
3546 (conversion_warning): Likewise.
3547 (warnings_for_convert_and_check): Likewise.
3548 (warn_for_collisions_1): Likewise.
3549 (shorten_compare): Likewise, and remove use of in_system_header
3550 macro, using the location from the former.
3551 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3552 (cb_def_pragma): Remove use of in_system_header macro.
3553 (lex_string): Likewise.
3554 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3555
eb1ce453
KZ
35562013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3557 Mike Stump <mikestump@comcast.net>
3558 Richard Sandiford <rdsandiford@googlemail.com>
3559
3560 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3561 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3562 tree_fits_shwi_p or tree_fits_uhwi_p.
3563 (dump_generic_ada_node): Likewise.
3564 * c-format.c (check_format_arg): Likewise.
3565 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3566
6b3b8c27
KZ
35672013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3568
3569 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3570
49b0aa18
JC
35712013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3572
3573 PR c/53001
3574 * c-common.c (unsafe_conversion_p): Make this function
3575 return an enumeration with more detail.
3576 (conversion_warning): Use the new return type of
3577 unsafe_conversion_p to separately warn either about conversions
3578 that lower floating point number precision or about the other
3579 kinds of conversions.
3580 * c-common.h (enum conversion_safety): New enumeration.
3581 (unsafe_conversion_p): switching return type to
3582 conversion_safety enumeration.
3583 * c.opt: Adding new warning -Wfloat-conversion and
3584 enabling it with -Wconversion.
3585
b826515a
BS
35862013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3587
3588 * c-opts.c: Include plugin.h.
3589 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3590
b9a55b13
MP
35912013-11-19 Marek Polacek <polacek@redhat.com>
3592
3593 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3594 call.
3595 (ubsan_instrument_shift): Likewise.
3596 (ubsan_instrument_vla): Likewise.
3597
7d362f6c
RS
35982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3599
3600 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3601 cast to unsigned type.
3602
386b1f1f
RS
36032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3604
3605 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3606 tree_low_cst.
3607 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3608 rather than tree_low_cst.
3609
ae7e9ddd
RS
36102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3611
3612 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3613 tree_to_uhwi throughout.
3614
9439e9a1
RS
36152013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3616
3617 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3618 tree_low_cst (..., 0) with tree_to_shwi throughout.
3619
cc269bb6
RS
36202013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3621
3622 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3623 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3624
9541ffee
RS
36252013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3626
3627 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3628 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3629
c02065fc
AH
36302013-11-15 Aldy Hernandez <aldyh@redhat.com>
3631
3632 * c-cilkplus.c: New file.
3633 * c-common.c (readonly_error): Add location argument.
3634 * c-common.h (readonly_error): Same.
3635 (c_finish_cilk_clauses): Protoize.
3636 (c_check_cilk_loop): Same.
3637 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3638 Do not fail on error_mark_node.
3639 Abstract increment canonicalization to here...
3640 (c_omp_for_incr_canonicalize_ptr): New.
3641 c-pragma.c (init_pragma): Register "simd" pragma.
3642 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3643 (enum pragma_cilk_clause): New.
3644
9cc65f15
RS
36452013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3646
3647 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3648 wchar_type and host_integerp checks.
3649
18f429e2
AM
36502013-11-14 Andrew MacLeod <amacleod@redhat.com>
3651
3652 * c-common.c: Likewise.
3653 * c-gimplify.c: Likewise.
3654 * cilk.c: Likewise.
3655
d8a2d370
DN
36562013-11-14 Diego Novillo <dnovillo@google.com>
3657
3658 * c-common.c: Include fold-const.h.
3659 Include stor-layout.h.
3660 Include calls.h.
3661 Include stringpool.h.
3662 Include attribs.h.
3663 Include varasm.h.
3664 Include trans-mem.h.
3665 * c-cppbuiltin.c: Include stor-layout.h.
3666 Include stringpool.h.
3667 * c-format.c: Include stringpool.h.
3668 * c-lex.c: Include stringpool.h.
3669 Include stor-layout.h.
3670 * c-pragma.c: Include stringpool.h.
3671 Include attribs.h.
3672 Include varasm.h.
3673 Include gcc-symtab.h.
3674 * c-pretty-print.c: Include stor-layout.h.
3675 Include attribs.h.
3676 * cilk.c: Include stringpool.h.
3677 Include calls.h.
3678
38b7bc7f
JM
36792013-11-13 Joseph Myers <joseph@codesourcery.com>
3680
3681 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3682 * c-common.c (c_common_reswords): Add __auto_type.
3683 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3684
45b0be94
AM
36852013-11-12 Andrew MacLeod <amacleod@redhat.com>
3686
18f429e2
AM
3687 * c-common.c: Include gimplify.h.
3688 * c-gimplify.c: Likewise.
3689 * cilk.c: Likewise.
3690 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3691 * c-ubsan.c: Don't include gimple.h.
45b0be94 3692
582d9b50
JM
36932013-11-12 Joseph Myers <joseph@codesourcery.com>
3694
3695 * c-common.c (c_common_reswords): Add _Thread_local.
3696
6b28e197
JM
36972013-11-09 Joseph Myers <joseph@codesourcery.com>
3698
3699 * c-common.c (atomic_size_supported_p): New function.
3700 (resolve_overloaded_atomic_exchange)
3701 (resolve_overloaded_atomic_compare_exchange)
3702 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3703 Use it instead of comparing size with a local list of sizes.
3704
267bac10
JM
37052013-11-07 Andrew MacLeod <amacleod@redhat.com>
3706 Joseph Myers <joseph@codesourcery.com>
3707
3708 * c-common.h (enum rid): Add RID_ATOMIC.
3709 * c-common.c (c_common_reswords): Add _Atomic.
3710 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3711 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3712 * c-format.c (check_format_types): Check for extra _Atomic
3713 qualifiers in format argument.
3714 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3715 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3716
5157b91e
TB
37172013-11-06 Tobias Burnus <burnus@net-b.de>
3718
3719 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3720
6dbe0958
JM
37212013-11-06 Joseph Myers <joseph@codesourcery.com>
3722
3723 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3724 standards modes.
3725 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3726 to mean lack of IEEE 754 support.
3727
e8ff5196
TB
37282013-11-05 Tobias Burnus <burnus@net-b.de>
3729
3730 * c.opt (-Wdate-time): New option
3731 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3732
254a0760
JM
37332013-11-05 Joseph Myers <joseph@codesourcery.com>
3734
3735 * c-cppbuiltin.c (cpp_iec_559_value): Test
3736 flag_excess_precision_cmdline not flag_excess_precision.
3737
6d7f7e0a
TB
37382013-11-05 Tobias Burnus <burnus@net-b.de>
3739
3740 * c.opt (fopenmp-simd): New option.
3741 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3742 (omp_pragmas): ... this new struct.
3743 (c_pp_lookup_pragma): Also walk omp_pragmas.
3744 (init_pragma): Init pragmas for -fopenmp-simd.
3745
55a7f02f
MP
37462013-11-04 Marek Polacek <polacek@redhat.com>
3747
3748 PR c++/58979
3749 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3750
9193fb05
JM
37512013-11-04 Joseph Myers <joseph@codesourcery.com>
3752
3753 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3754 New functions.
3755 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3756
94159ecf
EB
37572013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3758
3759 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3760 (dump_ada_specs): Adjust prototype of second callback.
3761 * c-ada-spec.c (cpp_check): New global variable.
3762 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3763 (print_generic_ada_decl): Likewise.
3764 (has_static_fields): Change return type to bool and add guard.
3765 (has_nontrivial_methods): New predicate.
3766 (is_tagged_type): Change return type to bool.
3767 (separate_class_package): Call has_nontrivial_methods.
3768 (pp_ada_tree_identifier): Minor tweaks.
3769 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3770 (dump_ada_array_domains): Likewise.
3771 (dump_ada_array_type): Likewise.
3772 (dump_template_types): Remove cpp_check parameter and do not pass it to
3773 dump_generic_ada_node.
3774 (dump_ada_template): Likewise.
3775 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3776 recursively.
3777 (print_ada_methods): Change return type to integer. Remove cpp_check
3778 parameter and do not pass it down.
3779 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3780 dump_generic_ada_node.
3781 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3782 accessing methods.
3783 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3784 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3785 value of print_ada_methods.
3786 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3787 Set cpp_check to it before invoking dump_ada_nodes.
3788 (dump_ada_specs): Likewise.
3789
b906f4ca
MP
37902013-11-03 Marek Polacek <polacek@redhat.com>
3791
3792 * c-ubsan.c: Don't include hash-table.h.
3793 (ubsan_instrument_vla): New function.
3794 * c-ubsan.h: Declare it.
3795
5e20cdc9
DM
37962013-10-31 David Malcolm <dmalcolm@redhat.com>
3797
3798 Automated part of renaming of symtab_node_base to symtab_node.
3799
3800 Patch autogenerated by rename_symtab.py from
3801 https://github.com/davidmalcolm/gcc-refactoring-scripts
3802 revision 58bb219cc090b2f4516a9297d868c245495ee622
3803
3804 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3805 symtab_node_base to symtab_node.
3806
7057e645
ESR
38072013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3808
3809 Implement C++14 digit separators.
3810 * c-lex.c (interpret_float): Remove digit separators from scratch string
3811 before building real literal.
3812
193ea7bc
JJ
38132013-10-30 Jakub Jelinek <jakub@redhat.com>
3814
3815 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3816
939b37da
BI
38172013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3818
3819 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3820 fields.
3821 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3822 enabled.
3823 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3824 (insert_cilk_frame): New prototype.
3825 (cilk_init_builtins): Likewise.
3826 (gimplify_cilk_spawn): Likewise.
3827 (c_cilk_install_body_w_frame_cleanup): Likewise.
3828 (cilk_detect_spawn_and_unwrap): Likewise.
3829 (cilk_set_spawn_marker): Likewise.
3830 (build_cilk_sync): Likewise.
3831 (build_cilk_spawn): Likewise.
3832 * cilk.c: New file.
3833
67348ccc
DM
38342013-10-29 David Malcolm <dmalcolm@redhat.com>
3835
3836 Patch autogenerated by refactor_symtab.py from
3837 https://github.com/davidmalcolm/gcc-refactoring-scripts
3838 revision 58bb219cc090b2f4516a9297d868c245495ee622
3839
3840 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3841 to a true class hierarchy.
3842 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3843
d570872d
RS
38442013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3845
3846 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3847
98906124
JL
38482013-10-26 Jeff Law <law@redhat.com>
3849
adfac8df
JJ
3850 * c-common.c (c_define_builtins): Remove mudflap support.
3851 * c.opt: Ignore and warn for mudflap options.
98906124 3852
d73749df 38532013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3854
3855 PR other/33426
3856 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3857 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3858
3f04b1bb
JM
38592013-10-23 Jason Merrill <jason@redhat.com>
3860
3861 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3862
acf0174b
JJ
38632013-10-11 Jakub Jelinek <jakub@redhat.com>
3864
acd15a28
JJ
3865 * c-common.h (omp_clause_mask::operator !=): New method.
3866 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3867 instead of if (mask & something) tests everywhere.
3868
acf0174b
JJ
3869 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3870 201307 instead of 201107.
3871 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3872 (c_common_attribute_table): Add "omp declare target" and
3873 "omp declare simd" attributes.
3874 (handle_omp_declare_target_attribute,
3875 handle_omp_declare_simd_attribute): New functions.
3876 * c-omp.c: Include c-pragma.h.
3877 (c_finish_omp_taskgroup): New function.
3878 (c_finish_omp_atomic): Add swapped argument, if true,
3879 build the operation first with rhs, lhs arguments and use NOP_EXPR
3880 build_modify_expr.
3881 (c_finish_omp_for): Add code argument, pass it down to make_code.
3882 (c_omp_split_clauses): New function.
3883 (c_split_parallel_clauses): Removed.
3884 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3885 c_omp_declare_simd_clauses_to_decls): New functions.
3886 * c-common.h (omp_clause_mask): New type.
3887 (OMP_CLAUSE_MASK_1): Define.
3888 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3889 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3890 omp_clause_mask::operator |, omp_clause_mask::operator &,
3891 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3892 omp_clause_mask::operator ==): New methods.
3893 (enum c_omp_clause_split): New.
3894 (c_finish_omp_taskgroup): New prototype.
3895 (c_finish_omp_atomic): Add swapped argument.
3896 (c_finish_omp_for): Add code argument.
3897 (c_omp_split_clauses): New prototype.
3898 (c_split_parallel_clauses): Removed.
3899 (c_omp_declare_simd_clauses_to_numbers,
3900 c_omp_declare_simd_clauses_to_decls): New prototypes.
3901 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3902 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3903 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3904 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3905 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3906 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3907 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3908 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3909 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3910 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3911 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3912 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3913 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3914 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3915 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3916 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3917 PRAGMA_OMP_CLAUSE_UNIFORM.
3918
826cacfe
MG
39192013-10-09 Marc Glisse <marc.glisse@inria.fr>
3920
3921 PR tree-optimization/20318
3922 * c-common.c (handle_returns_nonnull_attribute): New function.
3923 (c_common_attribute_table): Add returns_nonnull.
3924
2284b034
MG
39252013-10-03 Marc Glisse <marc.glisse@inria.fr>
3926
3927 PR c++/19476
3928 * c.opt (fcheck-new): Move to common.opt.
3929
b56e9788
MP
39302013-09-25 Marek Polacek <polacek@redhat.com>
3931 Jakub Jelinek <jakub@redhat.com>
3932
3933 PR sanitizer/58413
3934 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3935 an expression if we can prove it is correct.
3936 (ubsan_instrument_division): Likewise. Remove unnecessary
3937 check.
3938
ce6923c5
MP
39392013-09-18 Marek Polacek <polacek@redhat.com>
3940
3941 PR sanitizer/58411
3942 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3943 Declare it.
3944 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3945
fb5610fb
IS
39462013-09-14 Iain Sandoe <iain@codesourcery.com>
3947
3948 PR target/48094
3949 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3950 fobjc-gc, freplace-objc-classes): Accept for LTO.
3951
88b0e79e
JC
39522013-09-13 Jacek Caban <jacek@codeweavers.com>
3953
3954 * c-target.def: New hook
3955
c9b0866a
PC
39562013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3957
3958 PR c++/43452
3959 * c.opt (Wdelete-incomplete): Add.
3960
0af94e6f
JR
39612013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3962
3963 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3964 (vector_types_compatible_elements_p): New function.
3965 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3966 declaration.
3967 (vector_types_compatible_elements_p): Declare.
3968
7c26172c
GDR
39692013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3970
3971 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3972 a virtual member function.
3973 (pp_simple_type_specifier): Remove.
3974 (pp_c_type_specifier): Likewise.
3975 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3976 Rename from pp_c_type_specifier. Adjust.
3977 (c_pretty_printer::c_pretty_printer): Do not assign to
3978 simple_type_specifier.
3979
20059c8b
GDR
39802013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3981
3982 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3983 member function.
3984 (c_pretty_printer::storage_class_specifier): Likewise.
3985 (c_pretty_printer::initializer): Likewise.
3986 (pp_declaration): Remove.
3987 (pp_declaration_specifiers): Likewise.
3988 (pp_abstract_declarator): Likewise.
3989 (pp_declarator): Likewise.
3990 (pp_type_id): Likewise.
3991 (pp_statement): Likewise.
3992 (pp_constant): Likewise.
3993 (pp_id_expression): Likewise.
3994 (pp_primary_expression): Likewise.
3995 (pp_unary_expression): Likewise.
3996 (pp_multiplicative_expression): Likewise.
3997 (pp_conditional_expression): Likewise.
3998 (pp_assignment_expression): Likewise.
3999 (pp_expression): Likewise.
4000 (pp_c_type_id): Likewise.
4001 (pp_c_storage_class_specifier): Likewise.
4002 * c-pretty-print.c (pp_c_type_cast): Tidy.
4003 (pp_c_pointer): Likewise.
4004 (pp_c_type_specifier): Likewise.
4005 (pp_c_parameter_type_list): Likewise.
4006 (pp_c_function_definition): Likewise.
4007 (pp_c_init_declarator): Likewise.
4008 (pp_c_initializer_list): Likewise.
4009 (pp_c_constructor_elts): Likewise.
4010 (c_pretty_printer::direct_abstract_declarator): Likewise.
4011 (c_pretty_printer::declaration_specifiers): Likewise.
4012 (c_pretty_printer::primary_expression): Likewise.
4013 (c_pretty_printer::postfix_expression): Likewise.
4014 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4015 (c_pretty_printer::storage_class_specifier): Rename from
4016 pp_c_storage_class_specifier.
4017 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4018 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4019 storage_class_specifier, initializer, offset_list, flags.
4020
de5a5fa1
MP
40212013-08-30 Marek Polacek <polacek@redhat.com>
4022
4023 * c-ubsan.c: New file.
4024 * c-ubsan.h: New file.
4025
8f0e4d72
GDR
40262013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4027
4028 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4029 member function.
4030 (c_pretty_printer::declaration_specifiers): Likewise.
4031 (c_pretty_printer::declarator): Likewise.
4032 (c_pretty_printer::abstract_declarator): Likewise.
4033 (c_pretty_printer::direct_abstract_declarator): Likewise.
4034 (c_pretty_printer::direct_declarator): Likewise.
4035 (c_pretty_printer::function_specifier): Likewise.
4036 (pp_declaration): Adjust.
4037 (pp_declaration_specifiers): Likewise.
4038 (pp_abstract_declarator): Likewise.
4039 (pp_direct_declarator): Likewise.
4040 (pp_function_specifier): Likewise.
4041 (pp_direct_abstract_declarator): Remove as unused.
4042 (pp_c_declaration): Remove.
4043 (pp_c_declaration_specifiers): Likewise.
4044 (pp_c_declarator): Likewise.
4045 (pp_c_direct_declarator): Likewise.
4046 (pp_c_function_specifier): Likewise.
4047 (pp_c_direct_abstract_declarator): Likewise.
4048 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4049 from pp_c_abstract_declarator. Adjust.
4050 (c_pretty_printer::direct_abstract_declarator): Rename from
4051 pp_c_direct_abstract_declarator. Adjust.
4052 (c_pretty_printer::function_specifier): Rename from
4053 pp_c_function_specifier. Adjust.
4054 (c_pretty_printer::declaration_specifiers): Rename from
4055 pp_c_declaration_specifiers. Adjust.
4056 (c_pretty_printer::direct_declarator): Rename from
4057 pp_c_direct_declarator. Adjust.
4058 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4059 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4060 (c_pretty_printer::c_pretty_printer): Do not assign to
4061 declaration, declaration_specifiers, declarator,
4062 direct_declarator, direct_abstract_declarator, function_specifier.
4063
00d34d3a
GDR
40642013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4065
4066 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4067 virtual member function.
4068 (c_pretty_printer::multiplicative_expression): Likewise.
4069 (c_pretty_printer::conditional_expression): Likewise.
4070 (c_pretty_printer::assignment_expression): Likewise.
4071 (c_pretty_printer::expression): Likewise.
4072 (pp_unary_expression): Adjust.
4073 (pp_multiplicative_expression): Likewise.
4074 (pp_assignment_expression): Likewise.
4075 (pp_conditional_expression): Likewise.
4076 (pp_expression): Likewise.
4077 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4078 from pp_c_unary_expression. Adjust.
4079 (c_pretty_printer::multiplicative_expression): Rename from
4080 pp_c_multiplicative_expression. Adjust.
4081 (c_pretty_printer::conditional_expression): Rename from
4082 pp_c_conditional_expression. Adjust.
4083 (c_pretty_printer::assignment_expression): Rename from
4084 pp_c_assignment_expression. Adjust.
4085 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4086 (c_pretty_printer::c_pretty_printer): Do not assign to
4087 unary_expression, multiplicative_expression,
4088 conditional_expression, expression.
4089
fb22178f
GDR
40902013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4091
4092 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4093 virtual member function.
4094 (pp_postfix_expression): Adjust.
4095 (pp_c_postfix_expression): Remove.
4096 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4097 from pp_c_postfix_expression. Adjust.
4098 (c_pretty_printer::c_pretty_printer): Do not assign to
4099 postfix_expression.
4100
7ecc2600
GDR
41012013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4102
4103 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4104 virtua member function.
4105 (pp_primary_expression): Adjust.
4106 (pp_c_primary_expression): Remove.
4107 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4108 from pp_c_primary_expression. Adjust.
4109 (pp_c_initializer_list): Use pp_primary_expression.
4110 (c_pretty_printer::c_pretty_printer): Do not assign to
4111 primary_expression.
4112
0691175f
GDR
41132013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4114
4115 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4116 * c-pretty-print.c (M_): Remove.
4117 (c_pretty_printer::translate_string): Define.
4118 (pp_c_type_specifier): Use it.
4119 (pp_c_primary_expression): Likewise.
4120 (pp_c_expression): Likewise.
4121
66dfe4c4
GDR
41222013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4123
4124 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4125 virtual function.
4126 (pp_c_id_expression): Remove.
4127 (pp_id_expression): Adjust.
4128 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4129 pp_c_id_expression. Adjust.
4130 (pp_c_postfix_expression): Use pp_id_expression.
4131 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4132
ca43e9d5
GDR
41332013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4134
4135 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4136 member function.
4137 (pp_constant): Adjust.
4138 (pp_c_constant): Remove.
4139 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4140 pp_c_constant. Adjust.
4141 (pp_c_constant)
4142 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4143 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4144
da6ca2b5
GDR
41452013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4146
4147 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4148 (c_pretty_printer::c_pretty_printer): Declare.
4149 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4150 c_pretty_printer_init. Adjust.
4151 (print_c_tree): Do not call c_pretty_printer_init.
4152 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4153
65a372f4
AC
41542013-08-09 Arnaud Charlet <charlet@adacore.com>
4155
4156 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4157
fd9b0f32
PC
41582013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4159
4160 PR c++/58080
4161 * c-common.c (pointer_int_sum): Add bool parameter.
4162 * c-common.h (pointer_int_sum): Adjust declaration.
4163
e0aec1e9
GDR
41642013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4165
4166 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4167 c_pretty_printer variable.
4168
b066401f
GDR
41692013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4170
4171 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4172 (pp_base): Remove.
4173 (pp_c_base): Likewise. Adjust users.
4174 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4175 (pp_c_whitespace): Do not call pp_base.
4176 (pp_c_left_paren): Likewise.
4177 (pp_c_right_paren): Likewise.
4178 (pp_c_left_brace): Likewise.
4179 (pp_c_right_brace): Likewise.
4180 (pp_c_left_bracket): Likewise.
4181 (pp_c_right_bracket): Likewise.
4182 (pp_c_dot): Likewise.
4183 (pp_c_ampersand): Likewise.
4184 (pp_c_star): Likewise.
4185 (pp_c_arrow): Likewise.
4186 (pp_c_semicolon): Likewise.
4187 (pp_c_complement): Likewise.
4188 (pp_c_exclamation): Likewise.
4189 (pp_c_direct_declarator): Likewise.
4190 (pp_c_ws_string): Likewise.
4191 (pp_c_identifier): Likewise.
4192 (pp_c_statement): Likewise.
4193 (print_c_tree): Likewise.
4194
65e5a578
ESR
41952013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4196
4197 PR c++/58072
4198 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4199 provide useful error strings.
4200
137a1a27
GDR
42012013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4202
4203 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4204 printer functions instead of pp_string or operators and punctuators.
4205 (dump_generic_ada_node): Likewise.
4206 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4207 (pp_c_relational_expression): Likewise.
4208 (pp_c_logical_or_expression): Likewise.
4209
07838b13
GDR
42102013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4211
4212 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4213 functions instead of pp_character.
4214 (pp_ada_tree_identifier): Likewise.
4215 (dump_ada_double_name): Likewise.
4216 (dump_ada_function_declaration): Likewise.
4217 (dump_ada_array_domains): Likewise.
4218 (dump_template_types): Likewise.
4219 (dump_generic_ada_node): Likewise.
4220 (print_ada_declaration): Likewise.
4221 (print_ada_struct_decl): Likewise.
4222 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4223
433cc7b0
TT
42242013-07-23 Tom Tromey <tromey@redhat.com>
4225
4226 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4227 * c-common.c (c_common_reswords): Add _Generic.
4228
688010ba
OB
42292013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4230
4231 * c-common.c: Fix typos.
4232 * c-common.h: Likewise.
4233
2a99e5e6
LL
42342013-07-13 Lubos Lunak <l.lunak@suse.cz>
4235
4236 PR c++/55203
4237 * c-common.c (c_common_attribute_table): Add warn_unused.
4238 (handle_warn_unused_attribute): New.
4239
c26302d5
JJ
42402013-07-10 Jakub Jelinek <jakub@redhat.com>
4241
4242 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4243 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4244
dfeadaa0
PC
42452013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4246
4247 PR c++/57869
4248 * c.opt: Add Wconditionally-supported.
4249
6a2fa4b2
GS
42502013-07-08 Graham Stott <graham.stott@btinternet.com>
4251
adfac8df 4252 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4253 unused variables l_length and l_node.
4254
ecdbd01a 42552013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4256
4257 PR c/57821
4258 * c-common.c (complete_array_type): Delay folding first index
4259 like other indices. When folding, check for index overflow.
4260
bedc293e
MG
42612013-06-27 Marc Glisse <marc.glisse@inria.fr>
4262
4263 PR c++/57509
4264 * c-common.h (c_build_vec_perm_expr): New complain argument.
4265 * c-common.c (c_build_vec_perm_expr): Likewise.
4266 Use save_expr also in C++.
4267
604b2bfc
GDR
42682013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4269
4270 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4271 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4272 * c-opts.c (c_common_post_options): Likewise.
4273
dfeadaa0 42742013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4275
4276 * array-notation-common.c (length_mismatch_in_expr): Changed the
4277 parameter type's from a dynamic array to a vec_tree. Also removed
4278 the size parameters.
4279 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4280 the change above.
4281
2ce86d2e
BI
42822013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4283
4284 * c-common.h (struct cilkplus_an_parts): New structure.
4285 (struct cilkplus_an_loop_parts): Likewise.
4286 (cilkplus_extract_an_triplets): New prototype.
4287 (fix_sec_implicit_args): Likewise.
4288 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4289 (fix_sec_implicit_args): Likewise.
604b2bfc 4290
07a6825b
BI
42912013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4292
4293 * array-notation-common.c (find_inv_trees): Removed an unwanted
4294 typecasting.
4295 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4296 enum rid to enum tree_code.
4297
08346abd
JH
42982013-06-11 Jan Hubicka <jh@suse.cz>
4299
4300 * c-common.c (handle_alias_ifunc_attribute): Do not set
4301 DECL_EXTERNAL for weakref variables.
4302 * c-pragma.c (handle_pragma_weak): Make sure aliases
4303 are not declared as external.
4304
d60f1706
BI
43052013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4306
4307 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4308 function from c/c-array-notation.c.
4309 (is_cilkplus_reduce_builtin): Likewise.
4310 (find_rank): Likewise.
4311 (extract_array_notation_exprs): Likewise.
4312 (replace_array_notations): Likewise.
4313 (find_inv_trees): Likewise.
4314 (replace_inv_trees): Likewise.
4315 (contains_array_notation_expr): Likewise.
4316 (find_correct_array_notation_type): Likewise.
4317 * c-common.h (struct inv_list): Moved this struct from the file
4318 c/c-array-notation.c and added a new field called additional tcodes.
4319 (length_mismatch_in_expr_p): New prototype.
4320 (is_cilkplus_reduce_builtin): Likewise.
4321 (find_rank): Likewise.
4322 (extract_array_notation_exprs): Likewise.
4323 (replace_array_notation): Likewise.
4324 (find_inv_trees): Likewise.
4325 (replace_inv_trees): Likewise.
4326 (find_correct_array_notation_type): Likewise.
dfeadaa0 4327
36536d79
BI
43282013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4329
4330 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4331 function array_notation_init_builtins is called.
4332 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4333 * c-common.def (ARRAY_NOTATION_REF): New tree.
4334 * c-common.h (build_array_notation_expr): New function declaration.
4335 (build_array_notation_ref): Likewise.
4336 (extract_sec_implicit_index_arg): New extern declaration.
4337 (is_sec_implicit_index_fn): Likewise.
4338 (ARRAY_NOTATION_CHECK): New define.
4339 (ARRAY_NOTATION_ARRAY): Likewise.
4340 (ARRAY_NOTATION_START): Likewise.
4341 (ARRAY_NOTATION_LENGTH): Likewise.
4342 (ARRAY_NOTATION_STRIDE): Likewise.
4343 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4344 ARRAY_NOTATION_REF.
4345 (pp_c_expression): Likewise.
4346 * c.opt (flag_enable_cilkplus): New flag.
4347 * array-notation-common.c: New file.
4348
f7716d57
JJ
43492013-05-14 Jakub Jelinek <jakub@redhat.com>
4350
4351 PR c++/57274
4352 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4353
a5e0cd1d
MG
43542013-05-10 Marc Glisse <marc.glisse@inria.fr>
4355
4356 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4357 vectors.
4358
f6bc1c4a
HS
43592013-05-07 Han Shen <shenhan@google.com>
4360
4361 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4362
3f12f6e9
SKS
43632013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4364
4365 * c-common.c (check_user_alignment): Emit error for negative values.
4366
61949153
PC
43672013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4368
4369 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4370
e93e18e9
PC
43712013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4372
4373 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4374 __GXX_EXPERIMENTAL_CXX1Y__.
4375
44d90fe1
PC
43762013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4377 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4378
4379 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4380 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4381 to simply use OPT_Wpointer_arith.
4382 (c_sizeof_or_alignof_type): Likewise.
4383
13f39b2e
PC
43842013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4385
4386 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4387
4b84d650
JJ
43882013-04-12 Jakub Jelinek <jakub@redhat.com>
4389
4390 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4391 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4392 specifiers.
4393
fb037b5d
SB
43942013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4395
4396 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4397
4e856798
PC
43982013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4399
4400 * c-common.c (pointer_int_sum): Remove dead code.
4401
4b1baac8
RS
44022013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4403
4404 PR middle-end/56524
4405 * c-common.c (handle_optimize_attribute): Don't call
4406 save_optabs_if_changed.
4407
0b50e654
JJ
44082013-03-05 Jakub Jelinek <jakub@redhat.com>
4409
4410 PR middle-end/56461
4411 * c-pch.c (pch_init): Free target_validity at the end.
4412
48c41403
JJ
44132013-03-04 Jakub Jelinek <jakub@redhat.com>
4414
4415 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4416
e664c61c
KS
44172013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4418 Jakub Jelinek <jakub@redhat.com>
4419
4420 PR sanitizer/56454
4421 * c-common.c (handle_no_sanitize_address_attribute): New function.
4422 (c_common_attribute_table): Add no_sanitize_address attribute.
4423 (handle_no_address_safety_analysis_attribute): Add
4424 no_sanitize_address attribute, not no_address_safety_analysis
4425 attribute.
4426
a475fd3d 44272013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4428
4429 PR target/52555
4430 * c-common.c (handle_optimize_attribute): Call
4431 save_optabs_if_changed.
4432
f6007d99
JJ
44332013-02-18 Jakub Jelinek <jakub@redhat.com>
4434 Steven Bosscher <steven@gcc.gnu.org>
4435
4436 PR pch/54117
4437 * c-opts.c (c_common_post_options): If debug info is enabled
4438 and non-dwarf*, refuse to load PCH files and when writing PCH
4439 file warn.
4440
cf35e2b1
JJ
44412013-02-05 Jakub Jelinek <jakub@redhat.com>
4442
4443 PR middle-end/56167
4444 * c-common.c (handle_error_attribute): Fix condition.
4445
32887460
JJ
44462013-01-30 Jakub Jelinek <jakub@redhat.com>
4447
4448 PR c++/55742
4449 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4450
5af057d8
JM
44512013-01-18 Jason Merrill <jason@redhat.com>
4452
4453 PR target/54908
4454 * c.opt (-fextern-tls-init): New.
4455 * c-opts.c (c_common_post_options): Handle it.
4456
cc83c823
JJ
44572013-01-09 Jakub Jelinek <jakub@redhat.com>
4458
4459 PR c/48418
4460 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4461 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4462 and is either negative or bigger or equal to type precision
4463 of the first operand.
4464
a859517f
MP
44652012-12-03 Marek Polacek <polacek@redhat.com>
4466
4467 PR c/55570
4468 * c-common.c (check_user_alignment): Swap order of tests,
4469 check TREE_CODE first.
4470
2d7aa578
ESR
44712012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4472
4473 PR c++/52654
4474 * c-common.h (overflow_type): New enum.
4475 (build_userdef_literal): Add overflow_type argument.
4476 (tree_userdef_literal): Add overflow_type.
4477 (USERDEF_LITERAL_OVERFLOW): New access macro.
4478 * c-common.c (build_userdef_literal): Add overflow_type
4479 argument.
4480 * c-lex.c (c_lex_with_flags): Add overflow_type to
4481 build_userdef_literal calls.
4482 (interpret_integer, interpret_float): Add overflow_type argument.
4483
cc3c4f62
RB
44842012-11-28 Richard Biener <rguenther@suse.de>
4485
4486 PR c/35634
4487 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4488 here and use a type with proper overflow behavior for types that would
4489 need to be promoted for the arithmetic.
4490
77bc5132
JJ
44912012-11-23 Jakub Jelinek <jakub@redhat.com>
4492
4493 PR sanitizer/55435
4494 * c-common.c (handle_no_address_safety_analysis_attribute): New
4495 function.
4496 (c_common_attribute_table): Add no_address_safety_analysis.
4497
5dc99c46
SB
44982012-11-16 Simon Baldwin <simonb@google.com>
4499
4500 * c.opt: Add f[no-]canonical-system-headers.
4501 * c-opts.c (c_common_handle_option): Handle
4502 OPT_fcanonical_system_headers.
4503
a4a0016d
ESR
45042012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4505
4506 PR c++/54413
4507 * c-opts.c (c_common_handle_option): Set new flags.
4508 * c.opt: Describe new flags.
4509
7dbb85a7
JM
45102012-11-09 Jason Merrill <jason@redhat.com>
4511
4512 * c.opt (Wabi-tag): New.
4513
ad7bac31
AK
45142012-11-09 Andi Kleen <ak@linux.intel.com>
4515
4516 PR 55139
4517 * c-common.c (get_atomic_generic_size): Mask with
4518 MEMMODEL_MASK
4519
7332899a
MLI
45202012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4521
4522 PR c/53063
4523 * c.opt (Wformat): Make it Alias Wformat=1.
4524 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4525 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4526 LangEnabledBy.
4527 (Wformat=): RejectNegative. Use LangEnabledBy.
4528 (Wnonnull): Use LangEnabledBy.
4529 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4530 * c-format.c (set_Wformat): Delete.
4531 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4532 (maybe_read_dollar_number): Likewise.
4533 (avoid_dollar_number): Likewise.
4534 (finish_dollar_format_checking): Likewise.
4535 (check_format_info): Likewise.
4536 (check_format_info_main): Likewise.
4537 (check_format_types): Likewise.
4538 (format_type_warning): Likewise.
4539 * c-common.c (int): Likewise.
4540 (check_function_sentinel): Likewise.
4541 * c-common.h (warn_format,set_Wformat): Do not declare here.
4542
34a180a6
MLI
45432012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4544
4545 PR c/53063
4546 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4547 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4548 Use LangEnabledBy.
4549 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4550 common.opt.
4551 (Wvariadic-macros): Init(1).
4552 * c-opts.c (c_common_handle_option): Do not handle them
4553 explicitly.
4554 (c_common_post_options): Likewise.
4555 (sanitize_cpp_opts): warn_unused_macros is now
4556 cpp_warn_unused_macros.
4557 (push_command_line_include): Likewise.
4558 * c-common.c (warn_unknown_pragmas): Do not define.
4559 * c-common.h (warn_unknown_pragmas): Do not declare.
4560
3f46d6a5
MLI
45612012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4562
4563 PR c/51294
4564 * c-common.c (conversion_warning): Handle conditional expressions.
4565
880661a4
JW
45662012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4567
4568 PR c++/54930
4569 * c.opt (Wreturn_local_addr): Define new option.
4570
4514a96b
JM
45712012-10-25 Jason Merrill <jason@redhat.com>
4572
f14edc1a
JM
4573 * c.opt (Wvirtual-move-assign): New.
4574
4514a96b
JM
4575 * c.opt (Winherited-variadic-ctor): New.
4576
93100c6b
MG
45772012-10-25 Marc Glisse <marc.glisse@inria.fr>
4578
4579 PR c++/54427
4580 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4581
1efcb8c6
JM
45822012-10-23 Joseph Myers <joseph@codesourcery.com>
4583
4584 * c-common.h (pch_cpp_save_state): Declare.
4585 * c-target.def (c_preinclude): New hook.
4586 * c-opts.c (done_preinclude): New.
4587 (push_command_line_include): Handle default preincluded header.
4588 (cb_file_change): Call pch_cpp_save_state when calling
4589 push_command_line_include.
4590 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4591 (pch_cpp_save_state): New.
4592 (pch_init): Call pch_cpp_save_state conditionally, instead of
4593 calling cpp_save_state.
4594
4a0ae68e
MLI
45952012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4596
4597 PR c/53063
4598 PR c/40989
4599 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4600 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4601 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4602 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4603 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4604 * c-opts.c (c_common_handle_option): Remove explicit handling from
4605 here.
4606 (c_common_post_options): Likewise.
4607
67e4210b
EB
46082012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4609
4610 * c-ada-spec.c (LOCATION_COL): Delete.
4611 (compare_location): New function.
4612 (compare_node): Use it.
4613 (compare_comment): Likewise.
4614
65d4f2cd
MLI
46152012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4616
4617 PR c/53063
4618 PR c/40989
4619 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4620 * c-opts.c (c_common_handle_option): Do not set them here. Add
4621 comment.
4622 (c_common_post_options): Likewise.
4623
909881cb
EB
46242012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4625
4626 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4627 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4628 Remove POINTER_TYPE handling, add large unsigned handling and use
4629 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4630
3a785c97
JJ
46312012-10-12 Jakub Jelinek <jakub@redhat.com>
4632
4633 PR c/54381
4634 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4635 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4636 locs and array of 3 trees instead of just single loc and single
4637 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4638 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4639 For *cmp* builtins that take two sources strings report warnings
4640 about first and second source, not about destination and source.
4641
5e54f81d
MG
46422012-10-12 Marc Glisse <marc.glisse@inria.fr>
4643
4644 PR c++/53055
4645 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4646
f5b02f1e
EB
46472012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4648
4649 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4650 declaring something coming from another file.
4651
b46dbc6c
AC
46522012-10-10 Arnaud Charlet <charlet@adacore.com>
4653
f5b02f1e 4654 PR ada/54845
b46dbc6c
AC
4655 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4656
5d9de0d0
PC
46572012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4658
4659 PR c++/54194
4660 * c-common.c (warn_about_parentheses): Add location_t parameter;
4661 use EXPR_LOC_OR_LOC.
4662 * c-common.h: Update declaration.
4663
a212e43f
MG
46642012-10-09 Marc Glisse <marc.glisse@inria.fr>
4665
4666 PR c++/54427
4667 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4668 more operations. Make error messages optional.
4669 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4670 (scalar_to_vector): Declare.
4671
b1db7f91
JM
46722012-10-08 Jason Merrill <jason@redhat.com>
4673
4674 * c-common.c (c_common_reswords): Add thread_local.
4675
e28d52cf
DS
46762012-10-08 Dodji Seketeli <dodji@redhat.com>
4677
4678 PR c++/53528 C++11 attribute support
4679 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4680 new functions.
4681 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4682 static function.
4683 (handle_aligned_attribute): In choose strictest alignment
4684 among many. Use new check_cxx_fundamental_alignment_constraints.
4685 (handle_transparent_union_attribute): In c++11 attribute syntax,
4686 don't look through typedefs.
4687
3b78de56
AC
46882012-10-04 Arnaud Charlet <charlet@adacore.com>
4689
4690 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4691 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4692 out of dumpfile.h.
4693
6040bb5f
DC
46942012-09-25 Dehao Chen <dehao@google.com>
4695
4696 PR middle-end/54645
3b78de56 4697 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4698 map when read in the pch.
4699
3f8257db 47002012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
4701
4702 * c-ada-spec.c: Style fixes.
4703
3f8257db 47042012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
4705
4706 * c.opt (-fada-spec-parent): Define new command line switch.
4707 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4708 is specified, generate binding spec as a child of the specified unit.
4709
0ccb505d
PC
47102012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4711 Manuel López-Ibáñez <manu@gcc.gnu.org>
4712
4713 PR c++/53210
4714 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4715
c583af79
AC
47162012-08-23 Arnaud Charlet <charlet@adacore.com>
4717
4718 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4719 for pointers, and add missing Convention C pragma.
4720 (print_ada_struct_decl): Add missing aliased keyword.
4721 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4722
1a4049e7
JJ
47232012-08-17 Jakub Jelinek <jakub@redhat.com>
4724
4725 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4726 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4727 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4728 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4729 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4730
70b5e7dc
RG
47312012-08-10 Richard Guenther <rguenther@suse.de>
4732
4733 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4734
f8923f7e
SB
47352012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4736
4737 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4738 instead of separate pp_newline and pp_flush.
4739 (print_c_tree): Likewise.
4740
e45abe1f
RH
47412012-07-26 Richard Henderson <rth@redhat.com>
4742
4743 * c-common.c (handle_hot_attribute): Allow labels.
4744 (handle_cold_attribute): Likewise.
4745
332f1d24
JJ
47462012-07-20 Jakub Jelinek <jakub@redhat.com>
4747
4748 PR c++/28656
4749 * c-common.c (check_function_nonnull): Handle multiple nonnull
4750 attributes properly.
4751
7ee2468b
SB
47522012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4753
4754 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4755 * c-ada-spec.c: Likewise.
4756 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4757
ee7b28eb
SB
47582012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4759
4760 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4761 Remove code conditional on it.
4762
6bdf3519
SB
47632012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4764
4765 * c-gimplify.c: Do not include basic-block.h.
4766 * c-common.c: Do not include linfuncs.h.
4767
532aafad
SB
47682012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4769
4770 * c-common.h: Include tree.h.
4771
8d0d1915
JM
47722012-07-02 Jason Merrill <jason@redhat.com>
4773
4774 PR c++/53524
4775 * c-common.c (get_priority): Call default_conversion.
4776
fbc873ad
UB
47772012-07-01 Uros Bizjak <ubizjak@gmail.com>
4778
4779 * c-pch.c (c_common_write_pch): Remove unused variables.
4780
d4a10d0a
SB
47812012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4782
4783 * cppspec.c: Moved from gcc/ to here.
4784
6f3a2e23
KT
47852012-06-27 Kai Tietz <ktietz@redhat.com>
4786
4787 PR preprocessor/37215
4788 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4789
8ca92d04
SB
47902012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4791
4792 * c-common.h (c_common_print_pch_checksum): Remove.
4793 * c-pch.c: Do not include output.h.
4794 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4795 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4796 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4797 (struct c_pch_header): Remove.
4798 (get_ident): Update gpch version.
4799 (pch_init): Do not print executable_checksum to asm_out_file.
4800 Do not fail if there is no asm_out_file to read back from. Set
4801 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4802 (c_common_write_pch): Verify that nothing was written to asm_out_file
4803 since pch_init was called. Do not write a c_pch_header, and do not
4804 copy from asm_out_file to the PCH.
4805 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4806 the content of asm_out_file from the PCH.
4807 (c_common_print_pch_checksum): Remove.
4808 * c-opts.c (c_common_init): Print out executable_checksum directly.
4809
70f42967
SB
48102012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4811
4812 * c-target.def (objc_declare_unresolved_class_reference,
4813 objc_declare_class_definition): Add new hooks.
4814
a8781821
SB
48152012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4816
4817 * c-lex.c: Do not include output.h.
4818 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4819 Remove uses of ASM_OUTPUT_IDENT.
4820
9e1a8dd1
RR
48212012-06-15 Marc Glisse <marc.glisse@inria.fr>
4822
4823 PR c++/51033
4824 * c-common.h (c_build_vec_perm_expr): Move decl here.
4825 * c-common.c (c_build_vec_perm_expr): Move definition
4826 here.
4827
6f07a821
SB
48282012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4829
4830 * c.opt (fconserve-space): Turn into a no-op.
4831
9faeb493 48322012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4833
4834 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4835 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4836 both the start and end of the function.
4837
a4b7d13c
SB
48382012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4839
4840 * c-common.c: Do not include output.h.
4841 * c-pragma.c: Likewise.
4842
c265f413
SA
48432012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4844
4845 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4846 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4847 (lang_decl_name): Handle namespace decls.
4848
be7a421e
SB
48492012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4850
4851 * c-ada-spec.c: Do not include output.h.
4852 * c-semantics.c: Likewise.
4853
65de6659
JM
48542012-05-29 Joseph Myers <joseph@codesourcery.com>
4855
4856 * c-common.c: Fix typo.
4857
ca5f4331
MM
48582012-05-29 Michael Matz <matz@suse.de>
4859
4860 * c-common.h (c_expand_decl): Remove prototype.
4861
4f7f7aca
MLI
48622012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4863
4864 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4865 * c-opts.c (c_common_handle_option): Remove code handling
4866 warn_missing_braces.
4867
4a792f9b
PC
48682012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4869
4870 PR c++/25137
4871 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4872 -Wmissing_braces.
4873
650dc14a
DS
48742012-05-22 Dodji Seketeli <dodji@redhat.com>
4875
4876 PR c++/53322
4877 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4878
9b095bf1
MLI
48792012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4880
4881 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4882 * c-opts.c (c_common_handle_option): Do not handle explicitly
4883 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4884
0b2c4be5
DS
48852012-05-16 Dodji Seketeli <dodji@redhat.com>
4886
4887 PR preprocessor/7263
4888 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4889 to cpp_classify_number. For diagnostics, use the precise location
4890 instead of the global input_location.
4891
a1bde5af
PC
48922012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4893
d02924ef 4894 PR c++/11856
a1bde5af
PC
4895 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4896
d1ede5f4
BS
48972012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4898
a1bde5af 4899 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4900
f2bc201f
MLI
49012012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4902
4903 PR 53063
4904 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4905 Wreorder): Use LangEnabledBy.
4906 * c-opts.c (c_common_handle_option): Do not enable them
4907 explicitly. Call lang-specific generated functions.
4908 (c_common_post_options): Do not set them here.
4909
95744782
MLI
49102012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4911
4912 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4913 Wmissing-field-initializers,Wmissing-parameter-type,
4914 Wold-style-declaration,Woverride-init): Use EnabledBy.
4915 * c-opts.c (c_common_post_options): Do not set here explicitly.
4916
7d5a5747
MLI
49172012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4918
4919 PR 53063
4920 * c-opts.c (c_common_handle_option): Use handle_generated_option
4921 to enable sub-options.
4922
5a3c9cf2
PC
49232012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4924
4925 PR c++/53158
4926 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4927
3ac8781c
RG
49282012-05-10 Richard Guenther <rguenther@suse.de>
4929
4930 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4931 adjust commentary about TYPE_IS_SIZETYPE types.
4932
1e537948
MLI
49332012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4934
4935 PR c++/53261
4936 * c-common.c (warn_logical_operator): Check that argument of
4937 integer_zerop is not NULL.
4938
f2c4a785
MLI
49392012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4940
4941 PR c/43772
4942 * c-common.c (warn_logical_operator): Do not warn if either side
4943 is already true or false.
4944
50f305ca
MLI
49452012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4946
4947 PR c/51712
4948 * c-common.c (expr_original_type): New.
4949 (shorten_compare): Do not warn for enumeration types.
4950
0c3641b0
MLI
49512012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4952
4953 * c.opt (fpermissive): Add Var(flag_permissive).
4954
7edaa4d2
MG
49552012-04-30 Marc Glisse <marc.glisse@inria.fr>
4956
4957 PR c++/51033
4958 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4959 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4960
b9c8da34
DS
49612012-04-30 Dodji Seketeli <dodji@redhat.com>
4962
4963 Add -Wvarargs option
4964 * c.opt (Wvarargs): Define new option.
4965
e6c69da0
MLI
49662012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4967
4968 * c-common.c (check_function_arguments): Replace
4969 Wmissing-format-attribute with Wsuggest-attribute=format.
4970
90137d8f
MLI
49712012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4972
4973 * c.opt (Wsuggest-attribute=format): New. Alias of
4974 Wmissing-format-attribute.
4975 * c-format.c (decode_format_type): Replace
4976 Wmissing-format-attribute with Wsuggest-attribute=format.
4977 (check_function_format): Likewise.
4978
9faeb493 49792012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4980
4981 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4982 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4983 * c.opt: Add Wliteral-suffix.
4984
c1771a20
MLI
49852012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4986
4987 PR c/44774
4988 * c.opt (Wpedantic): New.
4989 (pedantic): Alias Wpedantic.
4990 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4991 (c_common_post_options): Likewise.
4992 (sanitize_cpp_opts): Likewise.
4993 * c-lex.c (interpret_float): Likewise.
4994 * c-format.c (check_format_types): Likewise.
4995 * c-common.c (pointer_int_sum): Likewise.
4996 (c_sizeof_or_alignof_type): Likewise.
4997 (c_add_case_label): Likewise.
4998 (c_do_switch_warnings): Likewise.
4999 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5000
04b391c1
JM
50012012-04-15 Jason Merrill <jason@redhat.com>
5002
5003 PR c++/52818
5004 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5005 (C_STD_NAME): Distinguish between C++98 and C++11.
5006
ac868f29
EB
50072012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5008
5009 PR target/52624
5010 * c-common.h (uint16_type_node): Rename into...
5011 (c_uint16_type_node): ...this.
5012 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5013 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5014
fd4116f4
MLI
50152012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5016
5017 * c-common.c (warn_if_unused_value): Move definition to here.
5018 * c-common.h (warn_if_unused_value): Move declaration to here.
5019
573ac65e
WB
50202012-03-23 William Bader <williambader@hotmail.com>
5021
5022 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5023
552b8185
JM
50242012-03-20 Jason Merrill <jason@redhat.com>
5025
5026 * c-common.h (enum cxx_dialect): Add cxx1y.
5027 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5028 test.
5029 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5030 * c-opts.c (c_common_post_options): Likewise.
5031 (set_std_cxx1y): New.
5032 (c_common_handle_option): Call it.
5033 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5034
04398fa8
PC
50352012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5036
5037 PR c++/14710
5038 * c.opt ([Wuseless-cast]): Add.
5039
d2a12ae7
RG
50402012-03-16 Richard Guenther <rguenther@suse.de>
5041
5042 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5043
a12bf402
MLI
50442012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5045
5046 PR c++/44783
5047 * c.opt (ftemplate-backtrace-limit) Add.
5048
5c30094f
RO
50492012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5050
5051 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5052 handling.
5053 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5054 (init_pragma): Don't register extern_prefix.
5055
21fa2faf
RG
50562012-03-12 Richard Guenther <rguenther@suse.de>
5057
5058 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5059 (builtin_type_for_size): Likewise.
5060
e3793c6f
JJ
50612012-02-13 Jakub Jelinek <jakub@redhat.com>
5062
5063 PR c++/52215
5064 * c-common.c (sync_resolve_params): Don't decide whether to convert
5065 or not based on TYPE_SIZE comparison, convert whenever arg_type
5066 is unsigned INTEGER_TYPE.
5067
93286335
PC
50682012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5069
5070 PR c/52118
5071 * c.opt ([Wunused-local-typedefs]): Fix description.
5072
7a421706
MS
50732012-01-24 Mike Stump <mikestump@comcast.net>
5074
5075 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5076 exactly.
5077
ba9b1f11
RG
50782012-01-18 Richard Guenther <rguenther@suse.de>
5079
5080 * c-opts.c (c_common_post_options): Reset LTO flags if
5081 we are about to generate a PCH.
5082
465406be
PC
50832012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5084
5085 PR c++/51777
5086 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5087 use pp_unsigned_wide_integer.
5088
aee15221
RG
50892012-01-10 Richard Guenther <rguenther@suse.de>
5090
5091 PR middle-end/51806
5092 * c-opts.c (c_common_handle_option): Move -Werror handling
5093 to language independent code.
5094
5720c0dc
RG
50952012-01-05 Richard Guenther <rguenther@suse.de>
5096
5097 PR middle-end/51764
5098 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5099 from common.opt.
5100
73ac190a
PC
51012011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5102
5103 PR c++/51316
5104 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5105 of array types with an unknown bound.
5106
48b0b196
JM
51072011-12-20 Joseph Myers <joseph@codesourcery.com>
5108
5109 * c-common.c (flag_isoc99): Update comment to refer to C11.
5110 (flag_isoc1x): Change to flag_isoc11.
5111 * c-common.h (flag_isoc99): Update comment to refer to C11.
5112 (flag_isoc1x): Change to flag_isoc11.
5113 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5114 C11.
5115 * c-opts.c (set_std_c1x): Change to set_std_c11.
5116 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5117 Call set_std_c11.
5118 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5119 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5120 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5121 standard.
5122 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5123 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5124 (std=gnu1x): Make alias of std=gnu11.
5125
d58d6eb5
JM
51262011-12-19 Jason Merrill <jason@redhat.com>
5127
5128 PR c++/51228
5129 * c-common.c (handle_transparent_union_attribute): Check the first
5130 field if the type is complete.
5131
b3908fcc
JW
51322011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5133
5134 PR libstdc++/51365
5135 * c-common.c (RID_IS_FINAL): Add.
5136 * c-common.h (RID_IS_FINAL): Add.
5137
fea3ca91
IS
51382011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5139
5140 * c.opt (fgnu-runtime): Provide full description.
5141 (fnext-runtime): Likewise.
5142 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5143
62bad7cd
AM
51442011-11-28 Andrew MacLeod <amacleod@redhat.com>
5145
5146 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5147 predefines in one place. Add LOCK_FREE predefines.
5148 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5149 new func.
5150
c466c4ff
AM
51512011-11-24 Andrew MacLeod <amacleod@redhat.com>
5152
5153 PR c/51256
9faeb493 5154 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5155 conditions
9faeb493
UB
5156 (resolve_overloaded_atomic_exchange,
5157 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5158 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5159 error_mark_node for error conditions.
9faeb493 5160
a5952633
RG
51612011-11-08 Richard Guenther <rguenther@suse.de>
5162
5163 PR middle-end/51010
5164 c-family/
5165
0a35513e
AH
51662011-11-07 Richard Henderson <rth@redhat.com>
5167 Aldy Hernandez <aldyh@redhat.com>
5168 Torvald Riegel <triegel@redhat.com>
5169
5170 Merged from transactional-memory.
5171
5172 * c-common.c (handle_tm_wrap_attribute,
5173 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5174 (struct c_common_reswords): Added __transaction* keywords.
5175 (struct c_common_attribute_table): Added transaction* and tm_regparm
5176 attributes.
5177 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5178 masks.
5179 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5180 find_tm_attribute): Declare.
5181
6d87092d
JM
51822011-11-07 Jason Merrill <jason@redhat.com>
5183
5184 PR c++/35688
5185 * c-common.c, c-common.h: Revert yesterday's changes.
5186
8e7860a1
JM
51872011-11-06 Jason Merrill <jason@redhat.com>
5188
5189 PR c++/35688
5190 * c-common.c (decl_has_visibility_attr): Split out from...
5191 (c_determine_visibility): ...here.
5192 * c-common.h: Declare it.
5193
d19fa6b5
JM
51942011-11-06 Joseph Myers <joseph@codesourcery.com>
5195
5196 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5197 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5198 type.
5199 (check_user_alignment): New. Split out of
5200 handle_aligned_attribute. Disallow integer constants with
5201 noninteger types. Conditionally allow zero.
5202 (handle_aligned_attribute): Use check_user_alignment.
5203 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5204
86951993
AM
52052011-11-06 Andrew MacLeod <amacleod@redhat.com>
5206 Richard Henderson <rth@redhat.com>
5207
5208 Merged from cxx-mem-model.
5209
5210 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5211 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5212 parameters that are the same type size.
5213 (get_atomic_generic_size): New. Find size of generic
5214 atomic function parameters and do typechecking.
5215 (add_atomic_size_parameter): New. Insert size into parameter list.
5216 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5217 either __atomic_exchange_n or external library call.
9faeb493 5218 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5219 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5220 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5221 __atomic_load_n or an external library call.
5222 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5223 __atomic_store_n or an external library call.
5224 (resolve_overloaded_builtin): Handle new __atomic builtins.
5225
cf9e9959
EB
52262011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5227
5228 PR c++/50608
5229 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5230 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5231 <INDIRECT_REF>: Return the argument.
5232 <ARRAY_REF>: Remove special code for negative offset.
5233 Call fold_build_pointer_plus instead of size_binop.
5234 (fold_offsetof): Remove STOP_REF argument and adjust.
5235 * c-common.h (fold_offsetof_1): Declare.
5236 (fold_offsetof): Remove STOP_REF argument.
5237
25339f10
JM
52382011-11-02 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
89401152
PC
52462011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5247
5248 PR c++/44277
5249 * c.opt: Add Wzero-as-null-pointer-constant.
5250
97e3ad20
JM
52512011-10-31 Jason Merrill <jason@redhat.com>
5252
15694fdd
JM
5253 * c.opt (-fdeduce-init-list): Off by default.
5254
97e3ad20
JM
5255 PR c++/50920
5256 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5257 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5258 and -Wc++11-compat.
5259 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5260
fb9120e3
RAV
52612011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5262
5263 PR c++/30066
5264 * c.opt (fvisibility-inlines-hidden): Description change.
5265
3ce4f9e4
ESR
52662011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5267
5268 Implement C++11 user-defined literals.
5269 * c-common.c (build_userdef_literal): New.
5270 * c-common.def: New tree code.
5271 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5272 * c-lex.c (interpret_float): Add suffix parm.
5273 (c_lex_with_flags): Build literal tokens.
5274
5f53c243
PC
52752011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5276
5277 PR c++/50841
5278 Revert:
5279 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5280
5281 PR c++/50810
5282 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5283 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5284 Wnarrowing for C++0x and C++98.
5285 * c.opt ([Wnarrowing]): Update.
5286
263734e1
PC
52872011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5288
5289 PR c++/50810
5290 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5291 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5292 Wnarrowing for C++0x and C++98.
5293 * c.opt ([Wnarrowing]): Update.
5294
d2e312d7
PC
52952011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5296
5297 PR c++/45385
5298 * c-common.c (conversion_warning): Remove code looking for
5299 artificial operands.
5300
d17687f6
DS
53012011-10-18 Dodji Seketeli <dodji@redhat.com>
5302
5303 PR bootstrap/50760
5304 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5305 !NO_IMPLICIT_EXTERN_C.
d17687f6 5306
fc8396e9
PC
53072011-10-17 Michael Spertus <mike_spertus@symantec.com>
5308
5309 * c-common.c (c_common_reswords): Add __bases,
5310 __direct_bases.
5311 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5312
53132011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5314
5315 PR c++/50757
5316 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5317
847e697a
TT
53182011-10-15 Tom Tromey <tromey@redhat.com>
5319 Dodji Seketeli <dodji@redhat.com>
5320
5321 * c.opt (fdebug-cpp): New option.
5322 * c-opts.c (c_common_handle_option): Handle the option.
5323 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5324 output stream in parameter. Factorized from ...
5325 (maybe_print_line): ... this. Dump location debug information when
5326 -fdebug-cpp is in effect.
5327 (print_line_1): New static function. Takes an output stream in
5328 parameter. Factorized from ...
5329 (print_line): ... here. Dump location information when -fdebug-cpp
5330 is in effect.
5331 (scan_translation_unit): Dump location information when
5332 -fdebug-cpp is in effect.
5333
92582b75
TT
53342011-10-15 Tom Tromey <tromey@redhat.com>
5335 Dodji Seketeli <dodji@redhat.com>
5336
5337 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5338 without argument.
5339 * c-opts.c (c_common_handle_option)<case
5340 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5341 cases. Handle -ftrack-macro-expansion with and without argument.
5342
46427374
TT
53432011-10-15 Tom Tromey <tromey@redhat.com>
5344 Dodji Seketeli <dodji@redhat.com>
5345
5346 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5347 (print_line, cb_define, do_line_change): Adjust to avoid touching
5348 the internals of struct line_map. Use the public API instead.
5349 * c-pch.c (c_common_read_pch): Likewise.
5350 * c-lex.c (fe_file_change): Likewise.
5351
fc8396e9
PC
53522011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5353
5354 PR c++/17212
5355 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5356
53572011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5358
5359 PR c++/33067
5360 * c-pretty-print.c (pp_c_floating_constant): Output
5361 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5362
e79983f4
MM
53632011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5364
5365 * c-common.c (def_builtin_1): Delete old interface with two
5366 parallel arrays to hold standard builtin declarations, and replace
5367 it with a function based interface that can support creating
5368 builtins on the fly in the future. Change all uses, and poison
5369 the old names. Make sure 0 is not a legitimate builtin index.
5370 * c-omp.c (c_finish_omp_barrier): Ditto.
5371 (c_finish_omp_taskwait): Ditto.
5372 (c_finish_omp_flush): Ditto.
5373
6637388f
TG
53742011-10-11 Tristan Gingold <gingold@adacore.com>
5375
5376 * c.opt: (fallow-parameterless-variadic-functions): New.
5377
3797cb21
DS
53782011-09-08 Dodji Seketeli <dodji@redhat.com>
5379
5380 PR c++/33255 - Support -Wunused-local-typedefs warning
5381 * c-common.h (struct c_language_function::local_typedefs): New
5382 field.
9faeb493
UB
5383 (record_locally_defined_typedef, maybe_record_typedef_use)
5384 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5385 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5386 (maybe_record_typedef_use)
5387 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5388 * c.opt: Declare new -Wunused-local-typedefs flag.
5389
693ddb1b
EB
53902011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5391
5392 PR middle-end/50266
5393 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5394 computations.
5395
830c740f
RG
53962011-09-05 Richard Guenther <rguenther@suse.de>
5397
5398 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5399 of integer_minus_one_node for empty array upper bounds.
5400
892a371f
DS
54012011-08-28 Dodji Seketeli <dodji@redhat.com>
5402
5403 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5404 it's the first time it's being called on this main TU.
5405
0e3fdb48
RB
54062011-08-24 Richard Guenther <rguenther@suse.de>
5407
5408 PR c/49396
5409 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5410
54112011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5412
5413 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5414 defined in cpp_init_builtins and c_cpp_builtins.
5415
d4a83c10
JM
54162011-08-19 Joseph Myers <joseph@codesourcery.com>
5417
5418 * c-common.c (c_common_reswords): Add __builtin_complex.
5419 * c-common.h (RID_BUILTIN_COMPLEX): New.
5420
bbceee64
JM
54212011-08-18 Joseph Myers <joseph@codesourcery.com>
5422
5423 * c-common.c (c_common_reswords): Add _Noreturn.
5424 (keyword_is_function_specifier): Handle RID_NORETURN.
5425 * c-common.h (RID_NORETURN): New.
5426
3f8257db 54272011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5428
5429 * c-common.c (unsafe_conversion_p): New function. Check if it is
5430 unsafe to convert an expression to the type.
5431 (conversion_warning): Adjust, use unsafe_conversion_p.
5432 * c-common.h (unsafe_conversion_p): New function declaration.
5433
20906c66
JJ
54342011-08-02 Jakub Jelinek <jakub@redhat.com>
5435
5436 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5437 (c_finish_omp_taskyield): New prototype.
5438 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5439 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5440 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5441 or RHS1 have side-effects, evaluate those too in the right spot,
5442 if it is a decl and LHS is also a decl, error out if they
5443 aren't the same.
5444 (c_finish_omp_taskyield): New function.
5445 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5446 * c-pragma.c (omp_pragmas): Add taskyield.
5447 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5448 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5449 PRAGMA_OMP_CLAUSE_MERGEABLE.
5450
770e5a2e
DS
54512011-07-25 Dodji Seketeli <dodji@redhat.com>
5452
5453 * c-common.h (set_underlying_type): Remove parm name from
5454 declaration.
5455
1baae426
RG
54562011-07-25 Romain Geissler <romain.geissler@gmail.com>
5457
5458 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5459
fcb21722
JM
54602011-07-22 Jason Merrill <jason@redhat.com>
5461
76f86d00
JM
5462 PR c++/49793
5463 * c.opt (Wnarrowing): New.
5464
3a636414
JM
5465 PR c++/30112
5466 * c-common.h: Declare c_linkage_bindings.
5467 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5468
fcb21722
JM
5469 PR c++/49813
5470 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5471 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5472 as flag_isoc99 for 'restrict'.
5473 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5474
02614448
ILT
54752011-07-21 Ian Lance Taylor <iant@google.com>
5476
5477 PR middle-end/49705
5478 * c-common.c (c_disable_warnings): New static function.
5479 (c_enable_warnings): New static function.
5480 (c_fully_fold_internal): Change local unused_p to bool. Call
5481 c_disable_warnings and c_enable_warnings rather than change
5482 c_inhibit_evaluation_warnings.
5483
34429675
JM
54842011-07-20 Jason Merrill <jason@redhat.com>
5485
5486 PR c++/6709 (DR 743)
5487 PR c++/42603 (DR 950)
5488 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5489 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5490 (CPP_DECLTYPE): New.
5491 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5492
5d49b6a7
RG
54932011-07-19 Richard Guenther <rguenther@suse.de>
5494
5495 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5496 * c-omp.c (c_finish_omp_for): Likewise.
5497
e84a58ff
EB
54982011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5499
5500 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5501 body on the next line.
5502
329af3c7
JM
55032011-07-08 Jason Merrill <jason@redhat.com>
5504
4063e61b
JM
5505 PR c++/45437
5506 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5507
329af3c7
JM
5508 PR c++/49673
5509 * c-common.c (c_apply_type_quals_to_decl): Don't check
5510 TYPE_NEEDS_CONSTRUCTING.
5511
1a072294
RG
55122011-07-06 Richard Guenther <rguenther@suse.de>
5513
5514 * c-common.c (c_common_nodes_and_builtins):
5515 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5516
fce5dddd
RG
55172011-07-05 Richard Guenther <rguenther@suse.de>
5518
5519 * c-common.c (c_common_nodes_and_builtins): Build all common
5520 tree nodes first.
5521
45d439ac
JJ
55222011-06-27 Jakub Jelinek <jakub@redhat.com>
5523
56300785
JJ
5524 * c-common.h (c_tree_chain_next): New static inline function.
5525
45d439ac
JJ
5526 * c-common.c (check_builtin_function_arguments): Handle
5527 BUILT_IN_ASSUME_ALIGNED.
5528
e0a8ecf2
AM
55292011-06-21 Andrew MacLeod <amacleod@redhat.com>
5530
5531 * c-common.c: Add sync_ or SYNC__ to builtin names.
5532 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5533
55342011-06-20 Pierre Vittet <piervit@pvittet.com>
5535
5536 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5537 handler.
5538 (gen_pragma_handler): New union.
5539 (internal_pragma_handler): New type.
5540 (c_register_pragma_with_data)
5541 (c_register_pragma_with_expansion_and_data): New functions.
5542
5543 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5544 (c_register_pragma, c_register_pragma_with_expansion)
5545 (c_invoke_pragma_handler): Changed to work with
5546 internal_pragma_handler.
5547 (c_register_pragma_with_data)
5548 (c_register_pragma_with_expansion_and_data): New functions.
5549
677f3fa8
JM
55502011-06-14 Joseph Myers <joseph@codesourcery.com>
5551
5552 * c-common.c: Include common/common-target.h.
5553 (handle_section_attribute): Use
5554 targetm_common.have_named_sections.
5555 * c-cppbuiltin.c: Include common/common-target.h.
5556 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5557
d7fc8c14
RG
55582011-06-10 Richard Guenther <rguenther@suse.de>
5559
5560 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5561 to print a IDENTIFIER_NODE.
5562
10e48e39
RO
55632011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5564 Joseph Myers <joseph@codesourcery.com>
5565
5566 * c.opt (fbuilding-libgcc): New option.
5567 * c-cppbuiltin.c (c_cpp_builtins): Define
5568 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5569
6976ae51
JM
55702011-06-07 Jason Merrill <jason@redhat.com>
5571
3ff60975
JM
5572 * c-common.c (max_tinst_depth): Lower default to 900.
5573
6976ae51
JM
5574 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5575
009db074
RG
55762011-06-07 Richard Guenther <rguenther@suse.de>
5577
5578 * c-common.c (c_common_nodes_and_builtins): Do not set
5579 size_type_node or call set_sizetype.
5580
b4592b92
DS
55812011-06-07 Dodji Seketeli <dodji@redhat.com>
5582
5583 PR debug/49130
5584 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5585 type when using pointer comparison to compare types.
b4592b92 5586
014ab419
JW
55872011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5588
5589 * c.opt: Add -Wdelete-non-virtual-dtor.
5590 * c-opts.c (c_common_handle_option): Include it in -Wall.
5591
4f60111f
NF
55922011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5593
5594 PR bootstrap/49190
5595
5596 Revert:
5597 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5598
5599 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5600 not tree_common.
5601
4cc4f2f4
JJ
56022011-05-27 Jakub Jelinek <jakub@redhat.com>
5603
5604 PR c++/49165
5605 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5606 C++ don't call c_common_truthvalue_conversion on void type arms.
5607
38e01f9e
NF
56082011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5609
5610 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5611 (stmt_list_stack): Define.
5612 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5613 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5614
92e948a8
NF
56152011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5616
5617 * c-common.c (warning_candidate_p): Check for BLOCKs.
5618
a2fc3e63
NF
56192011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5620
5621 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5622 not tree_common.
5623
0957c029
JJ
56242011-05-25 Jakub Jelinek <jakub@redhat.com>
5625
5626 * c-common.c (def_fn_type): Remove extra va_end.
5627
828fb3ba
JM
56282011-05-23 Jason Merrill <jason@redhat.com>
5629
5630 PR c++/48106
5631 * c-common.c (c_common_get_narrower): New.
5632 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5633
dde05067
NF
56342011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5635
5636 * c-common.h (check_function_arguments): Tweak prototype of
5637 check_function_arguments.
5638 * c-common.c (check_function_arguments): Likewise. Adjust
5639 calls to check_function_nonnull, check_function_format, and
5640 check_function_sentinel.
5641 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5642 separate attributes and typelist arguments. Use
5643 FOREACH_FUNCTION_ARGS to iterate over argument types.
5644
3c0d13bf
PC
56452011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5646
5647 * c-common.c (c_common_reswords): Reorder.
5648 * c-common.h (rid): Likewise.
5649
8242dd04
NF
56502011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5651
5652 * c-common.c (def_fn_type): Don't call build_function_type, call
5653 build_function_type_array or build_varargs_function_type_array
5654 instead.
5655 (c_common_nodes_and_builtins): Likewise.
5656
3d528853
NF
56572011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5658
5659 * c-common.c (c_add_case_label): Omit the loc argument to
5660 build_case_label.
5661 * c-common.h (build_case_label): Remove.
5662 * c-semantics.c (build_case_label): Remove.
5663
a04a722b
JM
56642011-05-05 Joseph Myers <joseph@codesourcery.com>
5665
5666 * c-objc.h (objc_start_method_definition): Update prototype.
5667 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5668
e19a18d4
NF
56692011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5670
5671 * c-common.c (check_main_parameter_types): Reindent. Don't use
5672 TYPE_ARG_TYPES directly.
5673 (handle_nonnull_attribute): Likewise.
5674 (sync_resolve_params): Likewise.
5675 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5676 to check_format_string.
5677 (handle_format_attribute): Likewise.
5678 (check_format_string): Take a function type to examine instead of
5679 a type list. Use a function_arg_iterator to step through argument
5680 types.
5681
c62c040f
RG
56822011-05-04 Richard Guenther <rguenther@suse.de>
5683
5684 * c-common.c (fix_string_type): Use size_int for index type bounds.
5685 (start_fname_decls): Do not pass NULL to build_int_cst.
5686 (c_init_attributes): Likewise.
5687 * c-lex.c (c_lex_with_flags): Likewise.
5688
c12ff9d8
JM
56892011-04-27 Jason Merrill <jason@redhat.com>
5690
5691 * c-common.c (make_tree_vector_from_list): New.
5692 * c-common.h: Declare it.
5693
304dfbe3
RG
56942011-04-26 Richard Guenther <rguenther@suse.de>
5695
5696 PR preprocessor/48248
5697 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5698 for output size with -P.
5699
3c0d13bf
PC
57002011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5701
5702 * c-common.c (struct c_common_resword): Add __underlying_type.
5703 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5704
04695783
JM
57052011-04-20 Jim Meyering <meyering@redhat.com>
5706
5707 * c-format.c (init_dollar_format_checking): Remove useless
5708 if-before-free.
5709
0dc33c3c
NP
57102011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5711
5712 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5713 (objc_detect_field_duplicates): New.
0dc33c3c 5714 * stub-objc.c: Likewise.
3c0d13bf 5715
c59633d9
NP
57162011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5717
5718 * stub-objc.c (objc_declare_protocols): Renamed to
5719 objc_declare_protocol.
5720 * c-objc.h: Likewise.
3c0d13bf 5721
32dabdaf
NP
57222011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5723
5724 * stub-objc.c (objc_declare_class): Updated argument name.
5725
81f653d6
NF
57262011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5727
5728 * c-common.h (c_common_init_ts): Declare.
5729 * c-common.c (c_common_init_ts): Define.
5730
eb345401
NP
57312011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5732
5733 * c-objc.h (objc_build_message_expr): Updated prototype.
5734 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5735
a358e188
MJ
57362011-04-12 Martin Jambor <mjambor@suse.cz>
5737
5738 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5739 of cgraph_node.
5740
e6313a78
RG
57412011-04-11 Richard Guenther <rguenther@suse.de>
5742
5743 * c-common.c (complete_array_type): Build a range type of
5744 proper type.
5745
dcf0c47e
NF
57462011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5747
5748 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5749 (handle_type_generic_attribute): Likewise.
5750
1ee44b26
JM
57512011-04-07 Jason Merrill <jason@redhat.com>
5752
5753 PR c++/48450
5754 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5755 conversion from C++0x scoped enum.
5756
acce4e77
JM
57572011-04-06 Joseph Myers <joseph@codesourcery.com>
5758
5759 * c-target-def.h: New file.
5760 * c-target.def: New file.
5761 * c-target.h: New file.
5762 * c-common.c (targetcm): Don't define here.
5763 * c-common.h (default_handle_c_option): Declare.
5764 * c-format.c: Include c-target.h instead of target.h.
5765 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5766 include tm.h.
5767 (default_handle_c_option): Move from targhooks.c.
5768
e2eefb55
JJ
57692011-03-29 Jakub Jelinek <jakub@redhat.com>
5770
5771 PR preprocessor/48248
5772 * c-ppoutput.c (print): Add src_file field.
5773 (init_pp_output): Initialize it.
5774 (maybe_print_line): Don't optimize by adding up to 8 newlines
5775 if map->to_file and print.src_file are different file.
5776 (print_line): Update print.src_file.
5777
ba78087b
KT
57782011-03-25 Kai Tietz <ktietz@redhat.com>
5779
5780 * c-ada-spec.c (compare_comment): Use filename_cmp
5781 instead of strcmp for filename.
5782
0edf1bb2
JL
57832011-03-25 Jeff Law <law@redhat.com>
5784
adfac8df 5785 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5786
c7dc8804
JM
57872011-03-25 Jason Merrill <jason@redhat.com>
5788
5789 * c.opt: Add -std=c++03.
5790
d1d879b1
EB
57912011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5792
5793 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5794
3f8257db 57952011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
5796
5797 PR target/12171
5050afdf
KT
5798 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5799 Display allowed attributes for function pointer types.
5800 (pp_c_attributes_display): New function to display
5801 attributes having affects_type_identity flag set to true.
5802 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5803
62d784f7
KT
5804 * c-common.c (c_common_attribute_table):
5805 Add new element.
5806 (c_common_format_attribute_table): Likewise.
5807
82d37118
JM
58082011-03-18 Jason Merrill <jason@redhat.com>
5809
49a000c3
JM
5810 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5811 * c-common.h: Don't declare it here.
5812 * c-common.c: Or define it here.
5813 * c-opts.c (c_common_handle_option): Or set it here.
5814
82d37118
JM
5815 PR c++/35315
5816 * c-common.c (handle_transparent_union_attribute): Don't
5817 make a duplicate type in C++.
5818
17bc631c
JM
58192011-03-15 Jason Merrill <jason@redhat.com>
5820
5821 * c-common.c (max_constexpr_depth): New.
5822 * c-common.h: Declare it.
5823 * c-opts.c (c_common_handle_option): Set it.
5824 * c.opt (fconstexpr-depth): New option.
5825
1b9b91a6
JM
58262011-03-11 Jason Merrill <jason@redhat.com>
5827
f231b5ff
JM
5828 * c-common.c (attribute_takes_identifier_p): Add missing const.
5829
1b9b91a6
JM
5830 PR c++/46803
5831 * c-common.c (attribute_takes_identifier_p): Assume that an
5832 unknown attribute takes an identifier.
5833
a19e4d44
NF
58342011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5835
5836 PR c/47786
5837 * c-common.c (c_type_hash): Call list_length instead of iterating
5838 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5839
982d62f6
JJ
58402011-02-19 Jakub Jelinek <jakub@redhat.com>
5841
5842 PR c/47809
5843 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5844
0a256240
NP
58452011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5846
5847 * c.opt (fobjc-abi-version=) New.
5848 (fobjc-nilcheck): New.
5849
ba9e6dd5
NF
58502011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5851
5852 PR c++/46890
5853 * c-common.h (keyword_is_decl_specifier): Declare.
5854 * c-common.c (keyword_is_decl_specifier): Define.
5855 (keyword_is_function_specifier): New function.
5856
7273813a
JJ
58572011-01-26 Jakub Jelinek <jakub@redhat.com>
5858
5859 PR c/47473
5860 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5861 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5862 REAL_TYPE.
5863
908ef79b
AC
58642011-01-26 Arnaud Charlet <charlet@adacore.com>
5865
5866 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5867
237e9384
JJ
58682011-01-26 Jakub Jelinek <jakub@redhat.com>
5869
5870 PR pch/47430
5871 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5872 after init_c_lex if pch_file is set.
5873
47ea1edf
DK
58742011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5875
d4dba752 5876 PR c++/43601
47ea1edf
DK
5877 * c.opt (-fkeep-inline-dllexport): New switch.
5878
2aa9c6ae
RG
58792011-01-12 Richard Guenther <rguenther@suse.de>
5880
5881 PR middle-end/32511
5882 * c-common.c (handle_weak_attribute): Warn instead of error
5883 on declaring an inline function weak.
5884
7bd11157
TT
58852011-01-05 Tom Tromey <tromey@redhat.com>
5886
5887 * c-common.h (lvalue_error): Update.
5888 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5889 not error.
5890
0e66e494 58912010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5892
b4f588c4
NP
5893 PR objc/47075
5894 * c-objc.h (objc_finish_message_expr): Added argument to
5895 prototype.
5896
f4da8dce
NF
58972010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5898
5899 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5900 Use prototype_p.
5901
46270f14
NP
59022010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5903
5904 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5905 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5906
4816c593
NF
59072010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5908
5909 * c-common.h (readonly_error): Declare.
5910 * c-common.c (readonly_error): Define.
5911
7a6daeb0
NF
59122010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5913
5914 * c-common.h (invalid_indirection_error): Declare.
5915 * c-common.c (invalid_indirection_error): Define.
5916
892f6119
RG
59172010-12-03 Richard Guenther <rguenther@suse.de>
5918
5919 PR c/46745
5920 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5921 (pp_c_unary_expression): Likewise.
5922 (pp_c_expression): Likewise.
5923
6c39e757
NP
59242010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5925
5926 * c-common.h (objc_finish_function): New.
5927 (objc_non_volatilized_type): Removed.
5928 (objc_type_quals_match): Removed.
5929 * stub-objc.c (objc_finish_function): New.
5930 (objc_non_volatilized_type): Removed.
5931 (objc_type_quals_match): Removed.
9faeb493 5932
7c475d11
JM
59332010-11-30 Joseph Myers <joseph@codesourcery.com>
5934
5935 * c-common.h (parse_optimize_options): Declare.
5936 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5937 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5938
71f3e391
JM
59392010-11-29 Joseph Myers <joseph@codesourcery.com>
5940
5941 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5942 GET_ENVIRONMENT.
5943 * c-pch.c (O_BINARY): Don't define here.
5944 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5945
d5fabb58
JM
59462010-11-25 Joseph Myers <joseph@codesourcery.com>
5947
5948 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5949 targetm.except_unwind_info.
5950
299404a1
JM
59512010-11-23 Joseph Myers <joseph@codesourcery.com>
5952
5953 * c-opts.c (c_common_handle_option): Pass location to
5954 set_struct_debug_option.
5955
c98cd5bf
JM
59562010-11-23 Joseph Myers <joseph@codesourcery.com>
5957
5958 * c-common.c (visibility_options): Move from ../opts.c.
5959 * c-common.h (struct visibility_flags, visibility_options):
5960 Declare here.
5961 * c-opts.c (finish_options): Rename to c_finish_options.
5962 (c_common_init): Update call to finish_options.
5963
a9546771
NP
59642010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5965
5966 PR objc/34033
5967 * c-lex.c (lex_string): Check that each string in an Objective-C
5968 string concat sequence starts with either one or zero '@', and
5969 that there are no spurious '@' signs at the end.
5970
24a57808
JM
59712010-11-20 Joseph Myers <joseph@codesourcery.com>
5972
5973 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5974 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5975 HANDLE_PRAGMA_VISIBILITY.
5976 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5977 HANDLE_PRAGMA_VISIBILITY): Don't define.
5978 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5979
a9aa2c3a
NF
59802010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5981
5982 PR c++/16189
5983 PR c++/36888
5984 PR c++/45331
5985 * c-common.h (keyword_begins_type_specifier): Declare.
5986 (keyword_is_storage_class_specifier): Declare.
5987 (keyword_is_type_qualifier): Declare.
5988 * c-common.c (keyword_begins_type_specifier): New function.
5989 (keyword_is_storage_class_specifier): New function.
5990 (keyword_is_type_qualifier): Declare.
5991
5386338c
JM
59922010-11-19 Joseph Myers <joseph@codesourcery.com>
5993
5994 PR c/46547
5995 * c-common.c (in_late_binary_op): Define.
5996 (c_common_truthvalue_conversion): Check in_late_binary_op before
5997 calling c_save_expr.
5998 * c-common.h (in_late_binary_op): Declare.
5999
69ccdddb
JM
60002010-11-19 Joseph Myers <joseph@codesourcery.com>
6001
6002 * c-opts.c (c_common_handle_option): Update calls to
6003 set_struct_debug_option.
6004
6b192a09
NP
60052010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6006
6007 * c-common.h (objc_declare_protocols): Added additional argument.
6008 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6009
fb52b50a
NF
60102010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6011
6012 PR c/33193
6013 * c-common.h (build_real_imag_expr): Declare.
6014 * c-semantics.c (build_real_imag_expr): Define.
6015
b37421c6
JM
60162010-11-17 Joseph Myers <joseph@codesourcery.com>
6017
6018 * c-opts.c (c_common_parse_file): Take no arguments.
6019 * c-common.h (c_common_parse_file): Update prototype.
6020
07078664
JJ
60212010-11-16 Jakub Jelinek <jakub@redhat.com>
6022
6023 PR c++/46401
6024 * c-common.c (warning_candidate_p): Don't track non-const calls
6025 or STRING_CSTs.
6026
c6a13190
ILT
60272010-11-15 Ian Lance Taylor <iant@google.com>
6028
6029 * c-lex.c (init_c_lex): Set macro debug callbacks if
6030 flag_dump_go_spec is set.
6031
925e8657
NP
60322010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6033
6034 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6035 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6036
bb0a9581
NF
60372010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6038
6039 PR preprocessor/45038
6040 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6041 dialects.
6042
c5fa0890
JM
60432010-11-12 Joseph Myers <joseph@codesourcery.com>
6044
6045 * c-common.h (c_family_lang_mask): Declare.
6046 * c-opts.c (c_family_lang_mask): Make extern.
6047 * c-pragma.c (handle_pragma_diagnostic): Use
6048 control_warning_option.
6049
a4d8c676
JM
60502010-11-12 Joseph Myers <joseph@codesourcery.com>
6051
6052 * c-common.c (parse_optimize_options): Update call to
6053 decode_options.
6054 * c-common.h (c_common_handle_option): Update prototype.
6055 * c-opts.c (c_common_handle_option): Take location_t parameter and
6056 pass it to other functions.
6057
f954bd2c
JM
60582010-11-11 Joseph Myers <joseph@codesourcery.com>
6059
6060 * c-opts.c (warning_as_error_callback): Remove.
6061 (c_common_initialize_diagnostics): Don't call
6062 register_warning_as_error_callback.
6063 (c_common_handle_option): Handle -Werror=normalized= here.
6064
d8a07487
JM
60652010-11-10 Joseph Myers <joseph@codesourcery.com>
6066
6067 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6068 in diagnostic.
6069 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6070 letter.
6071 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6072 Remove trailing '.' from diagnostics.
6073 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6074
d5478783
JM
60752010-11-10 Joseph Myers <joseph@codesourcery.com>
6076
6077 * c-common.c (parse_optimize_options): Pass global_dc to
6078 decode_options.
6079 * c-opts.c (c_common_handle_option): Pass &global_options to
6080 set_Wstrict_aliasing.
6081 * c.opt (v): Don't mark Common or document here.
6082
91ebb981
IS
60832010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6084
6085 PR target/44981
6086 * c-format.c (format_type): New type gcc_objc_string_format_type.
6087 (valid_stringptr_type_p): New.
6088 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6089 (check_format_string): Pass expected type, use
91ebb981
IS
6090 valid_stringptr_type_p (), check that the format string types are
6091 consistent with the format specification.
6092 (decode_format_attr): Warn if NSString is used outside objective-c.
6093 (format_types_orig): Add NSString.
6094 (format_name): New.
6095 (format_flags): New.
6096 (check_format_arg): Handle format strings requiring an external parser.
6097 first_target_format_type: New variable.
6098 (handle_format_attribute): Set up first_target_format_type, pass the
6099 expected format arg string type to check_format_string().
6100 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6101 * stub-objc.c (objc_string_ref_type_p): New.
6102 (objc_check_format_arg): New.
6103
bede2adc
NP
61042010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6105
9faeb493 6106 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6107 * c-common.h (objc_build_class_component_ref): New.
6108 * stub-objc.c (objc_build_class_component_ref): New.
6109
9a179d01
NP
61102010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6111
6112 * c.opt (Wproperty-assign-default): New option.
6113
22d8d616
NP
61142010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6115
6116 Implemented -fobjc-std=objc1 flag.
6117 * c.opt (fobjc-std=objc1): New option.
6118
2debdb4f
NP
61192010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6120
6121 Implemented format and noreturn attributes for Objective-C methods.
6122 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6123 attribute for Objective-C methods.
6124
ec52b111
JM
61252010-10-31 Jason Merrill <jason@redhat.com>
6126
6127 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6128 EXPR_LOC_OR_HERE.
6129
46a88c12
NP
61302010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6131
6132 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6133 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6134 (objc_add_property_declaration): Removed arguments for copies and
6135 ivar.
6136 (objc_build_getter_call): Renamed to
6137 objc_maybe_build_component_ref.
6138 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6139 (objc_is_property_ref): New.
6140 * c-common.c (c_common_reswords): Removed copies and ivar.
6141 * stub-objc.c (objc_add_property_declaration): Removed arguments
6142 for copies and ivar.
6143 (objc_build_getter_call): Renamed to
6144 objc_maybe_build_component_ref.
6145 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6146 (objc_is_property_ref): New.
9faeb493 6147
1e4bf85b
AC
61482010-10-29 Arnaud Charlet <charlet@adacore.com>
6149 Matthew Gingell <gingell@adacore.com>
6150
6151 * c-ada-spec.c (separate_class_package): New function.
6152 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6153 name of their enclosing package.
6154 (print_ada_declaration): Use separate_class_package.
6155
81f0bab2
JM
61562010-10-27 Jason Merrill <jason@redhat.com>
6157
2b08f2c5
JM
6158 * c-common.c (c_common_reswords): Add __is_literal_type.
6159 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6160
81f0bab2
JM
6161 * c-common.c (check_case_value): Remove special C++ code.
6162
200290f2
NP
61632010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6164
6165 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6166 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6167 and RID_LAST_PATTR.
6168 (objc_add_property_declaration): Added additional arguments.
6169 (objc_property_attribute_kind): Removed.
6170 (objc_set_property_attr): Removed.
6171 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6172 copy and nonatomic.
6173 * stub-objc.c (objc_add_property_declaration): Added additional
6174 arguments.
6175 (objc_set_property_attr): Removed.
9faeb493 6176
f614132b
NP
61772010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6178
6179 * c-common.h (objc_add_property_variable): Renamed to
6180 objc_add_property_declaration. Added location argument.
6181 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6182
b8a18805
NP
61832010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6184
6185 * c-common.h (objc_maybe_printable_name): New.
6186 * stub-objc.c (objc_maybe_printable_name): New.
6187
3f8257db
JJ
61882010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6189 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6190
6191 * c-common.h (c_common_mark_addressable_vec): Declare.
6192 * c-common.c (c_common_mark_addressable_vec): New function.
6193
249a82c4
NP
61942010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6195
6196 * c-common.h (objc_set_method_type): Removed.
6197 (objc_add_method_declaration): Added boolean argument.
6198 (objc_start_method_definition): Same change.
6199 (objc_build_method_signature): Same change.
6200 * stub-objc.c (objc_set_method_type): Removed.
6201 (objc_add_method_declaration): Added boolean argument.
6202 (objc_start_method_definition): Same change.
6203 (objc_build_method_signature): Same change.
6204
977e30bc
NP
62052010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6206
6207 * c-common.h (finish_file): Removed.
6208 (objc_write_global_declarations): New.
6209 * c-opts.c (c_common_parse_file): Do not call finish_file.
6210 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6211
da57d1b9
NP
62122010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6213
6214 Implemented parsing @synthesize and @dynamic for
6215 Objective-C/Objective-C++.
6216 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6217 (objc_add_synthesize_declaration): New.
6218 (objc_add_dynamic_declaration): New.
6219 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6220 * stub-objc.c (objc_add_synthesize_declaration): New.
6221 (objc_add_dynamic_declaration): New.
9faeb493 6222
0069111f
MM
62232010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6224
6225 PR target/46041
6226 * c-cppbuiltin.c (mode_has_fma): Move function here from
6227 builtins.c. Don't use the fma optab, instead just use the
6228 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6229 using -save-temps.
6230
e426b47b
NP
62312010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6232
6233 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6234
3f8257db 6235 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6236
9faeb493 6237 Radar 4330422
e426b47b
NP
6238 * c-common.h (objc_non_volatilized_type): New declaration
6239 * stub-objc.c (objc_non_volatilized_type): New stub.
6240
90fbfdc3
NP
62412010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6242
e426b47b 6243 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6244
3f8257db 6245 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6246
9faeb493 6247 Radar 4133425
90fbfdc3 6248 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6249 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6250
c37d8c30
IS
62512010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6252
6253 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6254 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6255 (objc_ivar_visibility_kind): New enum.
6256 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6257 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6258 visibility enum.
6259
1b1562a5
MM
62602010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6261
6262 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6263 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6264 has the appropriate fma builtins.
6265 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6266
668ea4b1
IS
62672010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6268
1b1562a5 6269 merge from FSF apple 'trunk' branch.
3f8257db 6270 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6271
668ea4b1
IS
6272 Radars 4436866, 4505126, 4506903, 4517826
6273 * c-common.c (c_common_resword): Define @property and its attributes.
6274 * c-common.h: Define property attribute enum entries.
6275 (OBJC_IS_PATTR_KEYWORD): New.
6276 (objc_property_attribute_kind): New enum.
6277 Declare objc_set_property_attr (), objc_add_property_variable (),
6278 objc_build_getter_call () and objc_build_setter_call ().
6279 * stub-objc.c (objc_set_property_attr): New stub.
6280 (objc_add_property_variable): Likewise.
6281 (objc_build_getter_call): Likewise.
6282 (objc_build_setter_call) Likewise.
1b1562a5 6283
a1178b30
IS
62842010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6285
1b1562a5 6286 merge from FSF apple 'trunk' branch.
3f8257db 6287 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6288
6289 Radar 3803157 (method attributes)
6290 * c-common.c (handle_deprecated_attribute): Recognize
6291 objc methods as valid declarations.
6292 * c-common.h: Declare objc_method_decl ().
1b1562a5 6293 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6294
a75bfaa6
JM
62952010-10-08 Joseph Myers <joseph@codesourcery.com>
6296
6297 * c-common.c (parse_optimize_options): Call
6298 decode_cmdline_options_to_array_default_mask before
6299 decode_options. Update arguments to decode_options.
6300 * c-common.h (c_common_init_options_struct): Declare.
6301 * c-opts.c (c_common_init_options_struct): New. Split out from
6302 c_common_init_options.
6303
f05b9d93
NP
63042010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6305
6306 Implemented fast enumeration for Objective-C.
6307 * c-common.h (objc_finish_foreach_loop): New.
6308 * stub-objc.c (objc_finish_foreach_loop): New.
6309
1ebe4b4f
JM
63102010-10-05 Joseph Myers <joseph@codesourcery.com>
6311
6312 * c-common.h (struct diagnostic_context): Don't declare here.
6313 (c_common_initialize_diagnostics): Declare using
6314 diagnostic_context typedef.
6315 * c-opts.c (c_common_handle_option): Pass global_dc to
6316 handle_generated_option.
6317
d4d24ba4
JM
63182010-10-04 Joseph Myers <joseph@codesourcery.com>
6319
6320 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6321 handle_generated_option.
6322
478a1c5b
ILT
63232010-10-03 Ian Lance Taylor <iant@google.com>
6324
6325 * c.opt (-fplan9-extensions): New option.
6326
82a1c2fe
FXC
63272010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6328
6329 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6330 Remove.
6331 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6332 of duplicating code.
6333
92902b1b
IS
63342010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6335
6336 * c-common.c: Add two new entries for @optional
6337 and @required keywords.
6338
6339 merge from FSF 'apple/trunk' branch.
3f8257db 6340 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6341
6342 Radar 4386773
6343 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6344 objective-c keywords.
6345 (objc_set_method_opt): New declaration.
6346 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6347
46625112
JM
63482010-09-30 Joseph Myers <joseph@codesourcery.com>
6349
6350 * c-common.c (handle_optimize_attribute): Pass &global_options to
6351 cl_optimization_save and cl_optimization_restore.
6352 * c-opts.c (c_common_handle_option): Pass &global_options to
6353 handle_generated_option.
6354 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6355 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6356 &global_options to cl_optimization_restore.
6357
49b91f05
NP
63582010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6359
6360 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6361 Objective-C/Objective-C++ keywords.
6362
13ed556f 63632010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6364
9faeb493
UB
6365 Merge from 'apple/trunk' branch on FSF servers.
6366
3f8257db 6367 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6368
6369 Radar 4281748
6370 * c-common.h (objc_check_global_decl): New declaration.
6371 * stub-objc.c (objc_check_global_decl): New stub.
6372
f0036cca
JM
63732010-09-29 Joseph Myers <joseph@codesourcery.com>
6374
6375 * c.opt: Don't use VarExists.
6376
e3339d0f
JM
63772010-09-29 Joseph Myers <joseph@codesourcery.com>
6378
6379 * c-common.c (c_cpp_error): Update names of diagnostic_context
6380 members.
6381 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6382 cl_optimization members.
6383 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6384 sanitize_cpp_opts, finish_options): Update names of cpp_options
6385 members.
6386
1973201f
NP
63872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6388
6389 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6390 (objc_is_reserved_word): Removed.
6391 * c-common.c: Updated comments.
6392 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6393 objc_is_reserved_word.
6394 * stub-objc.c (objc_is_reserved_word): Removed.
6395
f7e71da5
IS
63962010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6397
9faeb493 6398 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6399 include attributes.
6400 (objc_start_method_definition): Likewise.
6401 (objc_build_keyword_decl): Likewise.
6402 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6403 (objc_start_method_definition): Likewise.
6404 (objc_build_keyword_decl): Likewise.
6405
c165dca7
IS
64062010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6407
6408 * c-common.h (objc_start_class_interface): Adjust prototype.
6409 (objc_start_category_interface): Likewise.
6410 (objc_start_protocol): Likewise.
6411 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6412 (objc_start_class_interface): Likewise.
6413 (objc_start_category_interface): Likewise.
6414
7458026b
ILT
64152010-09-27 Ian Lance Taylor <iant@google.com>
6416
6417 * c-common.c (c_common_attribute_table): Add no_split_stack.
6418 (handle_no_split_stack_attribute): New static function.
6419
b581b85b
NP
64202010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6421
9faeb493 6422 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6423
3f8257db 6424 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6425
9faeb493 6426 Radar 4229905
b581b85b
NP
6427 * c-common.h (objc_have_common_type): New declaration.
6428 * stub-objc.c (objc_have_common_type): New stub.
6429
6430 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6431
6432 Radar 4154928
6433 * c-common.h (objc_common_type): New prototype.
9faeb493 6434 * stub-objc.c (objc_common_type): New stub.
b581b85b 6435
46a4da10
JH
64362010-09-24 Jan Hubicka <jh@suse.cz>
6437
6438 * c-common.c (handle_leaf_attribute): New function.
6439 (struct attribute_spec c_common_att): Add leaf.
6440
e200444e
JM
64412010-09-22 Joseph Myers <joseph@codesourcery.com>
6442
6443 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6444 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6445 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6446 -include-barrier, -include-directory, -include-directory=,
6447 -include-directory-after, -include-directory-after=,
6448 -include-prefix, -include-prefix=, -include-with-prefix,
6449 -include-with-prefix=, -include-with-prefix-after,
6450 -include-with-prefix-after=, -include-with-prefix-before,
6451 -include-with-prefix-before=, -no-integrated-cpp,
6452 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6453 -output=, -pedantic, -pedantic-errors, -preprocess,
6454 -print-missing-file-dependencies, -trace-includes, -traditional,
6455 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6456 -user-dependencies, -verbose, -write-dependencies,
6457 -write-user-dependencies, no-integrated-cpp, traditional): New.
6458
29a80ea6
NP
64592010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6460
6461 PR objc/23710
ac1fc2fc
NP
6462 * c-common.h (objc_start_method_definition): Return bool instead
6463 of void.
6464 * stub-objc.c (objc_start_method_definition): Return bool instead
6465 of void.
6466
64672010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6468
6469 PR objc/25965
6470 * c-common.h (objc_get_interface_ivars): New declaration.
6471 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6472
de621752
ILT
64732010-09-15 Ian Lance Taylor <iant@google.com>
6474
6475 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6476 messages. Remove period at end of warning message.
de621752 6477
ba885ec5
NS
64782010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6479
6480 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6481 (handle_alias_attribute): ... here.
6482 (handle_ifunc_attribute): New.
6483
c5ee1358
MM
64842010-09-06 Mark Mitchell <mark@codesourcery.com>
6485
6486 * c-common.h (do_warn_double_promotion): Declare.
6487 * c-common.c (do_warn_double_promotion): Define.
6488
0a0b3574
MM
64892010-09-05 Mark Mitchell <mark@codesourcery.com>
6490
6491 * c.opt (Wdouble-promotion): New.
6492
d1779886
JM
64932010-09-02 Joseph Myers <joseph@codesourcery.com>
6494
6495 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6496 fvtable-thunks, fxref): Mark no longer supported in help text.
6497
2d2bd949
JM
64982010-09-02 Joseph Myers <joseph@codesourcery.com>
6499
6500 * c.opt (Wimport, fall-virtual, falt-external-templates,
6501 fdefault-inline, fenum-int-equiv, fexternal-templates,
6502 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6503 fname-mangling-version-, fnew-abi, fnonnull-objects,
6504 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6505 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6506 applicable.
6507 (fhandle-exceptions): Mark with Alias and Warn.
6508 * c-opts.c (c_common_handle_option): Don't handle options marked
6509 as ignored.
6510
5de8299c
JM
65112010-09-02 Joseph Myers <joseph@codesourcery.com>
6512
6513 * c.opt (Wcomments, Werror-implicit-function-declaration,
6514 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6515 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6516 aliases.
6517 * c-common.c (option_codes): Use OPT_Wcomment instead of
6518 OPT_Wcomments.
6519 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6520 Don't handle options marked as aliases.
6521
0ceb0201
RG
65222010-08-25 Richard Guenther <rguenther@suse.de>
6523
6524 * c-common.c (c_common_get_alias_set): Remove special
6525 handling for pointers.
6526
ac47786e
NF
65272010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6528
6529 * c-common.c: Use FOR_EACH_VEC_ELT.
6530 * c-gimplify.c: Likewise.
6531 * c-pragma.c: Likewise.
6532
c878765b
JM
65332010-08-16 Joseph Myers <joseph@codesourcery.com>
6534
6535 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6536 RejectDriver.
6537 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6538 RejectDriver.
6539 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6540 instead of OPT_MDX and OPT_MMDX.
6541
603349bf
JM
65422010-08-16 Joseph Myers <joseph@codesourcery.com>
6543
6544 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6545
644fa7ac
JM
65462010-08-12 Joseph Myers <joseph@codesourcery.com>
6547
6548 * c.opt (MD, MMD): Change to MDX and MMDX.
6549 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6550
481e1176
JM
65512010-08-11 Joseph Myers <joseph@codesourcery.com>
6552
6553 * c-opts.c (c_common_handle_option): Call handle_generated_option
6554 instead of handle_option.
6555
ac8dc9f7
NF
65562010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6557
6558 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6559 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6560
4f8c876d
NF
65612010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6562
6563 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6564 (pending_redefine_extname): Change type to a VEC.
6565 (add_to_renaming_pragma_list): Update for new type of
6566 pending_redefine_extname.
ac8dc9f7 6567 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6568
3b0c690e
AC
65692010-08-04 Arnaud Charlet <charlet@adacore.com>
6570
6571 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6572 visited.
6573 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6574 decide whether a type has already been declared/seen.
6575 Do not go to the original type.
6576 (dump_nested_types): New parameter forward.
6577 Generate forward declaration if needed and mark type as visited.
6578 (print_ada_declaration): Call dump_nested_types if not already done.
6579 Mark types as visited.
6580
1890bccc
JM
65812010-08-03 Joseph Myers <joseph@codesourcery.com>
6582
6583 * c.opt (-print-pch-checksum): Remove option.
6584 * c-opts.c (c_common_handle_option): Don't handle
6585 OPT_print_pch_checksum.
6586
5f20c657
JM
65872010-07-27 Joseph Myers <joseph@codesourcery.com>
6588
6589 * c-common.h (c_common_handle_option): Update prototype and return
6590 value type.
6591 * c-opts.c (c_common_handle_option): Update prototype and return
6592 value type. Update calls to handle_option and
6593 enable_warning_as_error.
6594
f551f80c
JJ
65952010-07-27 Jakub Jelinek <jakub@redhat.com>
6596
6597 PR c/45079
6598 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6599
61ff2bdc
JM
66002010-07-27 Joseph Myers <joseph@codesourcery.com>
6601
6602 * c-common.h (c_common_missing_argument): Remove.
6603 * c-opts.c (c_common_missing_argument): Remove.
6604 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6605 idirafter, imacros, include, isysroot, isystem, iquote): Add
6606 MissingArgError.
6607 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6608
7a9bf9a4
JM
66092010-07-27 Joseph Myers <joseph@codesourcery.com>
6610
6611 * c-common.h (c_common_option_lang_mask,
6612 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6613 New.
6614 (c_common_init_options): Update prototype.
6615 * c-opts.c (c_common_option_lang_mask): New.
6616 (c_common_initialize_diagnostics): Split out of
6617 c_common_init_options.
6618 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6619 New.
6620 (c_common_init_options): Update prototype. Use decoded options in
6621 search for -lang-asm.
6622
910ad8de
NF
66232010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6624
6625 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6626 * c-format.c: Likewise.
6627
718f9c0f
MLI
66282010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6629
6630 * c-common.h: Include diagnostic-core.h. Error if already
6631 included.
6632 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6633
4d451982
MLI
66342010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6635
adfac8df 6636 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6637 Do not include expr.h
6638 (vector_mode_valid_p): Move here.
6639
119fe915
SB
66402010-06-21 DJ Delorie <dj@redhat.com>
6641
6642 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6643 allow these pragmas anywhere.
6644
66452010-06-14 Jakub Jelinek <jakub@redhat.com>
6646
6647 PR bootstrap/44509
6648 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6649 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6650 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6651 ggc_strdup instead of xstrdup.
6652
66532010-06-10 Jakub Jelinek <jakub@redhat.com>
6654
6655 * c-cppbuiltin.c: Include cpp-id-data.h.
6656 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6657 (lazy_hex_fp_value): New function.
6658 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6659
6662d794
MLI
66602010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6661
6662 * c-gimplify.c: Do not include tree-flow.h
6663
38f8b050
JR
66642010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6665
6666 PR other/44034
6667 * c-common.c: Rename targetm member:
6668 targetm.enum_va_list -> targetm.enum_va_list_p
6669
9589f23e
AS
66702010-06-28 Anatoly Sokolov <aesok@post.ru>
6671
6672 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6673
3b06d379
SB
66742010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6675
6676 * c-cppbuiltin.c: Do not include except.h.
6677
d166d4c3
AK
66782010-06-24 Andi Kleen <ak@linux.intel.com>
6679
9faeb493
UB
6680 * c-common.c (warn_for_omitted_condop): New.
6681 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6682
70cb8be6
JM
66832010-06-21 Joseph Myers <joseph@codesourcery.com>
6684
6685 * c.opt (lang-objc): Remove.
6686 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6687
a4c97feb
JR
66882010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6689
6690 * c-opts.c: Include "tm_p.h".
6691
6e2f1956
JM
66922010-06-20 Joseph Myers <joseph@codesourcery.com>
6693
6694 * c-common.c (parse_optimize_options): Update call to
6695 decode_options.
6696
bc87224e
NF
66972010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6698
6699 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6700 new type of types_used_by_cur_var_decl.
6701
b49cf425
JR
67022010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6703
6704 PR bootstrap/44512
6705 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6706 for C++ standard compliance.
6707
59f9c2ed
JM
67082010-06-16 Jason Merrill <jason@redhat.com>
6709
6710 * c.opt: Add -Wnoexcept.
6711
33766b66
RG
67122010-06-16 Richard Guenther <rguenther@suse.de>
6713
6714 PR c/44555
6715 * c-common.c (c_common_truthvalue_conversion): Remove
6716 premature and wrong optimization concering ADDR_EXPRs.
6717
eff7e30c
AC
67182010-06-15 Arnaud Charlet <charlet@adacore.com>
6719
6720 * c-ada-spec.c (dump_sloc): Remove column info.
6721 (is_simple_enum): New function.
6722 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6723 enum types when relevant.
6724
6312e84d
MLI
67252010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6726
9faeb493 6727 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6728 location.
6729
1cb42611
JM
67302010-06-10 Joseph Myers <joseph@codesourcery.com>
6731
6732 * c-opts.c (c_common_handle_option): Don't handle
6733 OPT_fshow_column.
6734
a9429e29
LB
67352010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6736
6737 * c-pragma.c (push_alignment): Use typed GC allocation.
6738 (handle_pragma_push_options): Likewise.
6739
6740 * c-common.c (parse_optimize_options): Likewise.
6741
6742 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6743 option.
6744
5498f011
JM
67452010-06-07 Joseph Myers <joseph@codesourcery.com>
6746
6747 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6748 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6749 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6750 flag_signed_bitfields, warn_strict_null_sentinel,
6751 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6752 flag_gen_declaration, flag_no_gnu_keywords,
6753 flag_implement_inlines, flag_implicit_templates,
6754 flag_implicit_inline_templates, flag_optional_diags,
6755 flag_elide_constructors, flag_default_inline, flag_rtti,
6756 flag_conserve_space, flag_access_control, flag_check_new,
6757 flag_new_for_scope, flag_weak, flag_working_directory,
6758 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6759 flag_enforce_eh_specs, flag_threadsafe_statics,
6760 flag_pretty_templates): Remove.
6761 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6762 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6763 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6764 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6765 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6766 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6767 flag_no_gnu_keywords, flag_implement_inlines,
6768 flag_implicit_templates, flag_implicit_inline_templates,
6769 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6770 flag_rtti, flag_conserve_space, flag_access_control,
6771 flag_check_new, flag_new_for_scope, flag_weak,
6772 flag_working_directory, flag_use_cxa_atexit,
6773 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6774 flag_threadsafe_statics, flag_pretty_templates,
6775 warn_strict_null_sentinel): Remove.
6776 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6777 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6778 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6779 fimplicit-inline-templates, fimplicit-templates,
6780 flax-vector-conversions, fms-extensions, fnil-receivers,
6781 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6782 frtti, fshort-double, fshort-enums, fshort-wchar,
6783 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6784 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6785 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6786 gen-decls, undef): Use Var.
6787 (fdefault-inline, foptional-diags): Document as doing nothing.
6788 * c-opts.c (c_common_handle_option): Remove cases for options now
6789 using Var. Mark ignored options as such.
6790
39dabefd
SB
67912010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6792
9faeb493 6793 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6794 * c-common.def: Likewise.
6795 * c-common.h: Likewise.
6796 * c-cppbuiltin.c: Likewise.
6797 * c-dump.c: Likewise.
6798 * c-format.c: Likewise.
6799 * c-format.h : Likewise.
6800 * c-gimplify.c: Likewise.
6801 * c-lex.c: Likewise.
6802 * c-omp.c: Likewise.
6803 * c.opt: Likewise.
6804 * c-opts.c: Likewise.
6805 * c-pch.c: Likewise.
6806 * c-ppoutput.c: Likewise.
6807 * c-pragma.c: Likewise.
6808 * c-pragma.h: Likewise.
6809 * c-pretty-print.c: Likewise.
6810 * c-pretty-print.h: Likewise.
6811 * c-semantics.c: Likewise.
6812 * stub-objc.c: Likewise.
6813
6814 * c-common.c: Include gt-c-family-c-common.h.
6815 * c-pragma.c: Include gt-c-family-c-pragma.h.
6816\f
818ab71a 6817Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6818
6819Copying and distribution of this file, with or without modification,
6820are permitted in any medium without royalty provided the copyright
6821notice and this notice are preserved.
This page took 2.301533 seconds and 5 git commands to generate.