]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
i386.c: Add 'U' suffix to processor feature bits to avoid -Wnarrowing warning.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
a42e7952
MS
12016-09-06 Martin Sebor <msebor@redhat.com>
2
3 PR c/77336
4 * c-format.c (check_function_format): Avoid issuing warnings for
5 functions unless they call format functions with non-constant
6 format strings.
7
b772a565
RB
82016-09-06 Richard Biener <rguenther@suse.de>
9
10 PR c/77450
11 * c-common.c (c_common_mark_addressable_vec): Handle
12 COMPOUND_LITERAL_EXPR.
13
25ff5dd3
MP
142016-09-05 Marek Polacek <polacek@redhat.com>
15
16 PR c/77423
17 * c-common.c (bool_promoted_to_int_p): New function.
18 (expr_has_boolean_operands_p): New function.
19 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
20 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
21
21234eb5
TV
222016-09-04 Tom de Vries <tom@codesourcery.com>
23
24 revert:
25 2016-08-29 Tom de Vries <tom@codesourcery.com>
26
27 * c-common.c (build_va_arg): Replace first argument type error
28 with assert.
29
9dc5773f
JJ
302016-09-02 Jakub Jelinek <jakub@redhat.com>
31
32 PR c/65467
33 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
34 (c_finish_omp_for): Reject _Atomic qualified iterators.
35
362016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
37
38 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
39 size to guarantee it fits the output of the formatted function
40 regardless of its arguments.
41
295844f6
MP
422016-09-01 Marek Polacek <polacek@redhat.com>
43
44 PR c/7652
45 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
46 FALLTHRU comments.
47
3d06b6f2
MP
482016-08-29 Marek Polacek <polacek@redhat.com>
49
50 PR c/77292
51 * c-common.c (warn_logical_not_parentheses): Don't warn for
52 a comparison or a logical operator.
53
34cedad5
TV
542016-08-29 Tom de Vries <tom@codesourcery.com>
55
56 * c-common.c (build_va_arg): Fix type comparison assert.
57
f162d717
TV
582016-08-29 Tom de Vries <tom@codesourcery.com>
59
60 * c-common.c (build_va_arg): Replace first argument type error
61 with assert.
62
ba9bbd6f
TV
632016-08-29 Tom de Vries <tom@codesourcery.com>
64
65 PR c/77398
66 * c-common.c (build_va_arg): Add first argument error. Build va_arg
67 with error_mark_node as va_list instead of with illegal va_list.
68
ebef225f
MP
692016-08-25 Marek Polacek <polacek@redhat.com>
70 David Malcolm <dmalcolm@redhat.com>
71
72 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
73 * c-common.h (warn_logical_not_parentheses): Update declaration.
74
b00e6e75
MP
752016-08-22 Marek Polacek <polacek@redhat.com>
76
77 PR c++/77321
78 * c-common.c (warn_for_memset): Check type for null.
79
6dc198e3
JM
802016-08-22 Joseph Myers <joseph@codesourcery.com>
81
82 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
83 _FloatNx types for suffixes for built-in functions.
84
c65699ef
JM
852016-08-19 Joseph Myers <joseph@codesourcery.com>
86
87 PR c/32187
88 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
89 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
90 (RID_FLOAT128X): New enum rid values.
91 (CASE_RID_FLOATN_NX): New macro.
92 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
93 keywords.
94 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
95 corresponding complex types.
96 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
97 _FloatNx and corresponding complex types.
98 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
99 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
100 and _FloatNx types for the widest type for determining
101 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
102 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
103 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
104 and _FloatNx types.
105 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
106 constants.
107 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
108 _FloatNx types.
109
cc015f3a
DM
1102016-08-18 David Malcolm <dmalcolm@redhat.com>
111
112 * c-opts.c (c_diagnostic_finalizer): Update for change to
113 diagnostic_show_locus.
114
cb18fd07
DM
1152016-08-18 David Malcolm <dmalcolm@redhat.com>
116
117 * c-common.c: Include "spellcheck.h".
118 (cb_get_suggestion): New function.
119 * c-common.h (cb_get_suggestion): New decl.
120 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
121 cb_get_suggestion.
122
a76989dc
MP
1232016-08-18 Marek Polacek <polacek@redhat.com>
124
125 PR c/71514
126 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
127 and pointer-to-VLA.
128
65e736c0
DM
1292016-08-16 David Malcolm <dmalcolm@redhat.com>
130
131 PR c/72857
132 * c-common.c (substring_loc::get_range): Rename to...
133 (substring_loc::get_location): ...this, converting param from a
134 source_range * to a location_t *. Call
135 get_source_location_for_substring rather than
136 get_source_range_for_substring, and pass in m_caret_idx.
137 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
138 (substring_loc::get_range): Replace with...
139 (substring_loc::get_location): ...this.
140 (substring_loc::set_caret_index): New method.
141 (substring_loc): Add field m_caret_idx.
142 * c-format.c (format_warning_va): Update for above changes.
143 Rename local "substring_loc" to "fmt_substring_loc" to avoid
144 clashing with type name.
145 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
146 (check_argument_type): Likewise.
147 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
148 Use a copy when emitting warnings, setting the caret index from TYPE.
149
7e1dde14
EB
1502016-08-16 Eric Botcazou <ebotcazou@adacore.com>
151 Arnaud Charlet <charlet@adacore.com>
152
153 * c-ada-spec.c (dump_number): New function.
154 (handle_escape_character): Likewise.
155 (print_ada_macros): Add handling of constant integers and strings.
156
191816a3
MP
1572016-08-12 Marek Polacek <polacek@redhat.com>
158
159 PR c/7652
160 * c-common.c (scalar_to_vector): Adjust fall through comment.
161 * c-opts.c (c_common_handle_option): Likewise.
162 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
163 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
164 fall through comment.
165 * cilk.c (extract_free_variables): Add FALLTHRU.
166
452df4a4
JM
1672016-08-10 Jason Merrill <jason@redhat.com>
168
169 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
170
f3365c12
JM
1712016-08-09 Jason Merrill <jason@redhat.com>
172
173 * c-common.c (c_common_attribute_table): vector_size affects type
174 identity.
175
f0bc3323
MP
1762016-08-09 Marek Polacek <polacek@redhat.com>
177
178 PR c/7652
179 * c-ada-spec.c (dump_generic_ada_node): Add return.
180
98e5a19a
JM
1812016-08-09 Jason Merrill <jason@redhat.com>
182
183 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
184 C++17 constexpr lambdas.
185
895aa8e1
DM
1862016-08-08 David Malcolm <dmalcolm@redhat.com>
187
188 PR c/64955
189 * c-common.h (selftest::c_format_c_tests): New declaration.
190 (selftest::run_c_tests): New declaration.
191 * c-format.c: Include "selftest.h.
192 (format_warning_va): Add param "corrected_substring" and use
193 it to add a replacement fix-it hint.
194 (format_warning_at_substring): Likewise.
195 (format_warning_at_char): Update for new param of
196 format_warning_va.
197 (argument_parser::check_argument_type): Pass "fki" to
198 check_format_types.
199 (check_format_types): Add param "fki" and pass it to
200 format_type_warning.
201 (deref_n_times): New function.
202 (get_modifier_for_format_len): New function.
203 (selftest::test_get_modifier_for_format_len): New function.
204 (get_format_for_type): New function.
205 (format_type_warning): Add param "fki" and use it to attempt
206 to provide hints for argument types when calling
207 format_warning_at_substring.
208 (selftest::get_info): New function.
209 (selftest::assert_format_for_type_streq): New function.
210 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
211 (selftest::test_get_format_for_type_printf): New function.
212 (selftest::test_get_format_for_type_scanf): New function.
213 (selftest::c_format_c_tests): New function.
214
e52ed3fe
DM
2152016-08-08 David Malcolm <dmalcolm@redhat.com>
216
217 PR c/52952
218 * c-format.c: Include "diagnostic.h".
219 (location_column_from_byte_offset): Delete.
220 (location_from_offset): Delete.
221 (format_warning_va): New function.
222 (format_warning_at_substring): New function.
223 (format_warning_at_char): New function.
224 (check_format_arg): Capture location of format_tree and pass to
225 check_format_info_main.
226 (argument_parser): Add fields "start_of_this_format" and
227 "format_string_cst".
228 (flag_chars_t::validate): Add param "format_string_cst". Convert
229 warning_at call using location_from_offset to call to
230 format_warning_at_char.
231 (argument_parser::argument_parser): Add param "format_string_cst_"
232 and use use it to initialize field "format_string_cst".
233 Initialize new field "start_of_this_format".
234 (argument_parser::read_format_flags): Convert warning_at call
235 using location_from_offset to a call to format_warning_at_char.
236 (argument_parser::read_any_format_left_precision): Likewise.
237 (argument_parser::read_any_format_precision): Likewise.
238 (argument_parser::read_any_other_modifier): Likewise.
239 (argument_parser::find_format_char_info): Likewise, in three places.
240 (argument_parser::parse_any_scan_set): Likewise, in one place.
241 (argument_parser::handle_conversions): Likewise, in two places.
242 (argument_parser::check_argument_type): Add param "fmt_param_loc"
243 and use it to make a substring_loc. Pass the latter to
244 check_format_types.
245 (check_format_info_main): Add params "fmt_param_loc" and
246 "format_string_cst". Convert warning_at calls using
247 location_from_offset to calls to format_warning_at_char. Pass the
248 new params to the arg_parser ctor. Pass "format_string_cst" to
249 flag_chars.validate. Pass "fmt_param_loc" to
250 arg_parser.check_argument_type.
251 (check_format_types): Convert first param from a location_t
252 to a const substring_loc & and rename to "fmt_loc". Attempt
253 to extract the range of the relevant parameter and pass it
254 to format_type_warning.
255 (format_type_warning): Convert first param from a location_t
256 to a const substring_loc & and rename to "fmt_loc". Add
257 params "param_range" and "type". Replace calls to warning_at
258 with calls to format_warning_at_substring.
259
1c4d457e
DM
2602016-08-08 David Malcolm <dmalcolm@redhat.com>
261
262 * c-format.c (class flag_chars_t): New class.
263 (struct length_modifier): New struct.
264 (class argument_parser): New class.
265 (flag_chars_t::flag_chars_t): New ctor.
266 (flag_chars_t::has_char_p): New method.
267 (flag_chars_t::add_char): New method.
268 (flag_chars_t::validate): New method.
269 (flag_chars_t::get_alloc_flag): New method.
270 (flag_chars_t::assignment_suppression_p): New method.
271 (argument_parser::argument_parser): New ctor.
272 (argument_parser::read_any_dollar): New method.
273 (argument_parser::read_format_flags): New method.
274 (argument_parser::read_any_format_width): New method.
275 (argument_parser::read_any_format_left_precision): New method.
276 (argument_parser::read_any_format_precision): New method.
277 (argument_parser::handle_alloc_chars): New method.
278 (argument_parser::read_any_length_modifier): New method.
279 (argument_parser::read_any_other_modifier): New method.
280 (argument_parser::find_format_char_info): New method.
281 (argument_parser::validate_flag_pairs): New method.
282 (argument_parser::give_y2k_warnings): New method.
283 (argument_parser::parse_any_scan_set): New method.
284 (argument_parser::handle_conversions): New method.
285 (argument_parser::check_argument_type): New method.
286 (check_format_info_main): Introduce classes argument_parser
287 and flag_chars_t, moving the code within the loop into methods
288 of these classes. Make various locals "const".
289
88fa5555
DM
2902016-08-05 David Malcolm <dmalcolm@redhat.com>
291
292 * c-common.c: Include "substring-locations.h".
293 (get_cpp_ttype_from_string_type): New function.
294 (g_string_concat_db): New global.
295 (substring_loc::get_range): New method.
296 * c-common.h (g_string_concat_db): New declaration.
297 (class substring_loc): New class.
298 * c-lex.c (lex_string): When concatenating strings, capture the
299 locations of all tokens using a new obstack, and record the
300 concatenation locations within g_string_concat_db.
301 * c-opts.c (c_common_init_options): Construct g_string_concat_db
302 on the ggc-heap.
303
78169471
MP
3042016-07-29 Marek Polacek <polacek@redhat.com>
305
638fc14f
MP
306 PR c/71926
307 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
308 parentheses warning.
309
78169471
MP
310 PR c/71574
311 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
312
1225d6b1
ML
3132016-07-28 Martin Liska <mliska@suse.cz>
314
315 PR gcov-profile/68025
316 * c-common.c (handle_no_profile_instrument_function_attribute):
317
ec1e2a40
BE
3182016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
319
320 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
321 BITS_PER_UNIT_LOG.
322
5ec2cd9f
JM
3232016-07-25 Jason Merrill <jason@redhat.com>
324
325 PR c++/65970
326 * c.opt (fconstexpr-loop-limit): New.
327
9dc5773f 3282016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
329
330 PR c++/71675
331 * c-common.c (resolve_overloaded_builtin): Avoid converting
332 __atomic_compare_exchange_n return type to that of what its
333 first argument points to.
334
e3fe09c1
UB
3352016-07-22 Uros Bizjak <ubizjak@gmail.com>
336
337 * c-common.c: Use HOST_WIDE_INT_M1U instead of
338 ~(unsigned HOST_WIDE_INT) 0.
339
bc91c436
ML
3402016-07-22 Martin Liska <mliska@suse.cz>
341
342 PR gcov-profile/69028
343 PR gcov-profile/62047
344 * cilk.c (create_cilk_helper_decl): Set location of a new decl
345 to the current_function_decl.
346
451dcc66
JM
3472016-07-21 Jason Merrill <jason@redhat.com>
348
349 PR c++/65168
350 * c-common.c (c_common_truthvalue_conversion): Check
351 c_inhibit_evaluation_warnings for warning about address of
352 reference.
353
de6a69ee
DM
3542016-07-20 David Malcolm <dmalcolm@redhat.com>
355
356 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
357 const char *.
358
d022c55a
JM
3592016-07-15 Jason Merrill <jason@redhat.com>
360
361 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
362
ddbbcb19
JJ
3632016-07-15 Jakub Jelinek <jakub@redhat.com>
364
365 PR c/71858
366 * c-common.h (enum lookup_name_fuzzy_kind): Add
367 FUZZY_LOOKUP_FUNCTION_NAME.
368
d0cf395a
JM
3692016-07-08 Jason Merrill <jason@redhat.com>
370
371 P0145: Refining Expression Order for C++.
372 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
373 * c-opts.c: Adjust.
374
98d44e93
MT
3752016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
376
377 PR c++/71214
378 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
379
f9d8d994
TS
3802016-06-29 Thomas Schwinge <thomas@codesourcery.com>
381
382 * c-pragma.h (enum pragma_kind): Rename
383 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
384 users.
385
4aa83879
RB
3862016-06-29 Richard Biener <rguenther@suse.de>
387
388 PR middle-end/71002
389 * c-common.c (c_common_get_alias_set): Remove union type punning case.
390
a25bd9e6
JM
3912016-06-24 Jason Merrill <jason@redhat.com>
392
393 P0145R2: Refining Expression Order for C++.
394 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
395 MODIFY_EXPR.
396
a86451b9
JJ
3972016-06-24 Jakub Jelinek <jakub@redhat.com>
398
399 * c-common.c (check_builtin_function_arguments): Require last
400 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
401 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
402 if the last argument is pointer to enumerated or boolean type.
403
1a4f11c8
DM
4042016-06-22 David Malcolm <dmalcolm@redhat.com>
405
406 PR c/70339
407 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
408 (lookup_name_fuzzy): New prototype.
409
fe55692c
JDA
4102016-06-21 John David Anglin <danglin@gcc.gnu.org>
411
412 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
413
4eb24e01
JM
4142016-06-14 Jason Merrill <jason@redhat.com>
415
416 P0145R2: Refining Expression Order for C++.
417 * c.opt (fargs-in-order): New.
418 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
419
ef7cf206
JJ
4202016-06-13 Jakub Jelinek <jakub@redhat.com>
421
0dda258b
JJ
422 PR sanitizer/71498
423 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
424 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
425
ef7cf206
JJ
426 PR preprocessor/71183
427 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
428 to cb_get_source_date_epoch.
429
50b15873
JJ
4302016-06-10 Jakub Jelinek <jakub@redhat.com>
431
432 PR c/68657
433 * c.opt (Wpsabi): Add Warning flag.
434
4d926e34
MS
4352016-06-10 Martin Sebor <msebor@redhat.com>
436
437 PR c/71392
438 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
439 the nonnull attribute in type-generic builtins.
440
e01b4e16
MS
4412016-06-09 Martin Sebor <msebor@redhat.com>
442
443 PR c/70883
444 * c-common.c (builtin_function_validate_nargs): Make text of error
445 message consistent with others like it.
446
44a845ca
MS
4472016-06-08 Martin Sebor <msebor@redhat.com>
448 Jakub Jelinek <jakub@redhat.com>
449
450 PR c++/70507
451 PR c/68120
452 * c-common.c (check_builtin_function_arguments): Handle
453 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
454
a80a7051
RB
4552016-06-08 Richard Biener <rguenther@suse.de>
456
457 * c-common.c (parse_optimize_options): Improve diagnostic messages.
458
bfd67b47
RB
4592016-06-07 Richard Biener <rguenther@suse.de>
460
461 PR c/61564
462 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
463 options and warn about others.
464
15c98b2e
ES
4652016-06-01 Eduard Sanou <dhole@openmailbox.org>
466
467 * c-common.c (get_source_date_epoch): Rename to
468 cb_get_source_date_epoch.
469 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
470 message when the parsing fails. Use error_at instead of fatal_error.
471 * c-common.h (get_source_date_epoch): Rename to
472 cb_get_source_date_epoch.
473 * c-common.h (cb_get_source_date_epoch): Prototype.
474 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
475 * c-common.h (c_omp_region_type): Remove trailing comma.
476 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
477 * c-lex.c (c_lex_with_flags): Remove initialization of
478 pfile->source_date_epoch.
479
00631022
JJ
4802016-05-30 Jakub Jelinek <jakub@redhat.com>
481
482 PR c++/71349
483 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
484 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
485 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
486 instead of C_OMP_CLAUSE_SPLIT_FOR.
487
f17a223d
RB
4882016-05-24 Richard Biener <rguenther@suse.de>
489
490 PR middle-end/70434
491 PR c/69504
492 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
493 (convert_vector_to_array_for_subscript): ... this.
494 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
495 VIEW_CONVERT_EXPR to an array type. Rename to ...
496 (convert_vector_to_array_for_subscript): ... this.
497
4f2e1536
MP
4982016-05-12 Marek Polacek <polacek@redhat.com>
499
500 PR c/70756
501 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
502 size_in_bytes and pass LOC to it.
503
d6e83a8d
MM
5042016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
505
506 PR c/43651
507 * c.opt (Wduplicate-decl-specifier): New option.
508
5c3a10fb
MP
5092016-05-11 Marek Polacek <polacek@redhat.com>
510
511 PR c++/71024
512 * c-common.c (diagnose_mismatched_attributes): New function.
513 * c-common.h (diagnose_mismatched_attributes): Declare.
514
deef7113
MP
5152016-05-04 Marek Polacek <polacek@redhat.com>
516
517 * c.opt (Wdangling-else): New option.
518
79ce98bc
MP
5192016-05-03 Marek Polacek <polacek@redhat.com>
520
521 PR c/70859
522 * c-common.c (builtin_function_validate_nargs): Add location
523 parameter. Use it.
524 (check_builtin_function_arguments): Add location and arguments
525 parameters. Use them.
526 * c-common.h (check_builtin_function_arguments): Update declaration.
527
381cdae4
RB
5282016-05-03 Richard Biener <rguenther@suse.de>
529
530 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
531 allow call args to gimplify to SSA names.
532
1d793c34
MP
5332016-05-03 Marek Polacek <polacek@redhat.com>
534
535 * c-common.h (enum c_omp_region_type): Remove stray comma.
536
77886428
CP
5372016-05-02 Cesar Philippidis <cesar@codesourcery.com>
538
539 * c-common.h (enum c_omp_region_type): Define.
540
697e0b28
RS
5412016-05-02 Richard Sandiford <richard.sandiford@arm.com>
542
543 * c-common.c (shorten_compare): Use wi::to_wide.
544
e7ff0319
CP
5452016-04-29 Cesar Philippidis <cesar@codesourcery.com>
546
547 PR middle-end/70626
548 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
549 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
550 reduction clauses in acc parallel loops.
551
2fff3db8
MP
5522016-04-29 Marek Polacek <polacek@redhat.com>
553
554 PR c/70852
555 * c-common.c (warn_for_memset): Check domain before accessing it.
556
509063eb
DV
5572016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
558
559 PR/69089
560 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
561 "aligned" attribute.
562
b632761d
JM
5632016-04-28 Jason Merrill <jason@redhat.com>
564
565 * c-lex.c (c_common_has_attribute): Handle nodiscard.
566
174f6622
ES
5672016-04-28 Eduard Sanou <dhole@openmailbox.org>
568 Matthias Klose <doko@debian.org>
569
570 * c-common.c (get_source_date_epoch): New function, gets the environment
571 variable SOURCE_DATE_EPOCH and parses it as long long with error
572 handling.
573 * c-common.h (get_source_date_epoch): Prototype.
574 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
575
6bc2bb18
RB
5762015-04-27 Ryan Burn <contact@rnburn.com>
577
578 PR c++/69024
579 PR c++/68997
580 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
581 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
582 external linkage.
583 (cilk_detect_and_unwrap): Corresponding changes.
584 (extract_free_variables): Don't extract free variables from
585 AGGR_INIT_EXPR slot.
586 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
587 (cilk_recognize_spawn): Likewise.
588
c1e1f433
BS
5892016-04-27 Bernd Schmidt <bschmidt@redhat.com>
590
591 * c.opt (Wmemset-elt-size): New option.
592 * c-common.c (warn_for_memset): New function.
593 * c-common.h (warn_for_memset): Declare.
594
d067e05f
JM
5952016-04-25 Jason Merrill <jason@redhat.com>
596
597 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
598 No longer static.
599 * c-common.h: Declare it.
600 * c-lex.c (c_common_has_attribute): Add maybe_unused.
601
9aa36ae5
JM
6022016-04-22 Jason Merrill <jason@redhat.com>
603
604 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
605
477d4906
IV
6062016-04-20 Ilya Verbin <ilya.verbin@intel.com>
607
608 PR c++/69363
609 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
610 * c-common.h (c_finish_cilk_clauses): Remove declaration.
611
fe37c7af
MM
6122016-04-18 Michael Matz <matz@suse.de>
613
614 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
615 and SET_DECL_ALIGN.
616
23f2660f
EB
6172016-04-17 Eric Botcazou <ebotcazou@adacore.com>
618
619 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
620 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
621 to incomplete types.
622 (dump_nested_type): Remove redundant tests and tidy up.
623 (print_ada_declaration): Also set TREE_VISITED on the declaration of
624 a type which is the typedef of an original type.
625
1e77281b
MP
6262016-04-15 Marek Polacek <polacek@redhat.com>
627
628 PR c/70651
629 * c-common.c (build_va_arg): Change two asserts into errors and return
630 error_mark_node.
631
b3a77f21
MP
6322016-04-13 Marek Polacek <polacek@redhat.com>
633
634 PR c++/70639
635 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
636 for switch statements, too.
637
322b8466
JM
6382016-03-28 Jason Merrill <jason@redhat.com>
639
640 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
641
fbdb6baf
MP
6422016-03-23 Marek Polacek <polacek@redhat.com>
643
644 PR c++/69884
645 * c.opt (Wignored-attributes): New option.
646
5c240f4d
DM
6472016-03-22 David Malcolm <dmalcolm@redhat.com>
648
649 PR c/69993
650 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
651 diagnostic text, reversing the order of the warning and note so
652 that they appear in source order.
653
14ba7b28
MP
6542016-03-17 Marek Polacek <polacek@redhat.com>
655
656 PR c/69407
657 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
658 operations.
659
08a1cadc
JM
6602016-03-14 Jason Merrill <jason@redhat.com>
661
2aaeea19
JM
662 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
663
08a1cadc
JM
664 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
665
c06d25bb
RB
6662016-03-09 Richard Biener <rguenther@suse.de>
667
668 PR c/70143
669 * c-common.c (strict_aliasing_warning): Add back
670 alias_sets_conflict_p check.
671
80aac5c8
JM
6722016-03-08 Jason Merrill <jason@redhat.com>
673
674 * c-opts.c (set_std_cxx1z): Don't enable concepts.
675
64b23c13
DM
6762016-03-04 David Malcolm <dmalcolm@redhat.com>
677
678 PR c/68187
679 * c-indentation.c (get_visual_column): Move code to determine next
680 tab stop to...
681 (next_tab_stop): ...this new function.
682 (line_contains_hash_if): Delete function.
683 (detect_preprocessor_logic): Delete function.
684 (get_first_nws_vis_column): New function.
685 (detect_intervening_unindent): New function.
686 (should_warn_for_misleading_indentation): Replace call to
687 detect_preprocessor_logic with a call to
688 detect_intervening_unindent.
689
729526f5
DM
6902016-03-04 David Malcolm <dmalcolm@redhat.com>
691
692 PR c/68187
693 * c-indentation.c (should_warn_for_misleading_indentation): When
694 suppressing warnings about cases where the guard and body are on
695 the same column, only use the first non-whitespace column in place
696 of the guard token column when dealing with "else" clauses.
697 When rejecting aligned BODY and NEXT, loosen the requirement
698 from equality with the first non-whitespace of guard to simply
699 that they not be indented relative to it.
700
e9a35493
RB
7012016-03-04 Richard Biener <rguenther@suse.de>
702
703 PR c++/70054
704 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
705 instead of alias_sets_conflict_p.
706
1be56bc5
MP
7072016-03-01 Marek Polacek <polacek@redhat.com>
708
709 PR c++/69795
710 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
711 any DECL.
712
35886f0b
MS
7132016-02-22 Martin Sebor <msebor@redhat.com>
714
715 PR middle-end/69780
716 * c-common.c (check_builtin_function_arguments): Validate and
717 reject invalid arguments to __builtin_alloca_with_align.
718
4246c8da
MW
7192016-02-20 Mark Wielaard <mjw@redhat.com>
720
721 PR c/28901
722 * c.opt (Wunused-const-variable): Turn into Alias for...
723 (Wunused-const-variable=): New option.
724
268be88c
BE
7252016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
726
727 PR c++/69865
728 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
729 here...
730 (c_common_init_options): ...to here.
731 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
732
871b3f47
JJ
7332016-02-19 Jakub Jelinek <jakub@redhat.com>
734
735 PR c++/69826
736 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
737 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
738 flag_preprocess_only.
739
bf14eba2
JJ
7402016-02-16 Jakub Jelinek <jakub@redhat.com>
741
742 PR c/69835
743 * c.opt (Wnonnull-compare): Enable for -Wall.
744
ba6b3795
JJ
7452016-02-15 Jakub Jelinek <jakub@redhat.com>
746
747 PR c++/69797
748 * c-common.c (sync_resolve_size): Diagnose too few arguments
749 even when params is non-NULL empty vector.
750
a011cd92
BS
7512016-02-08 Bernd Schmidt <bschmidt@redhat.com>
752
753 PR target/60410
754 * c.opt (fshort-double): Remove.
755
46cb9332
MS
7562016-02-05 Martin Sebor <msebor@redhat.com>
757
758 PR c++/69662
759 * c.opt (Warning options): Update -Wplacement-new to take
760 an optional argument.
761
e1b81f2b
JJ
7622016-02-01 Jakub Jelinek <jakub@redhat.com>
763
764 PR preprocessor/69543
765 PR c/69558
766 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
767 instead of loc to control_warning_option.
768
b6adbb9f
NS
7692016-02-01 Nathan Sidwell <nathan@codesourcery.com>
770
771 * c.opt (fopenacc-dim=): New option.
772
5d70666e
RB
7732016-01-27 Ryan Burn <contact@rnburn.com>
774
775 PR cilkplus/69267
776 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
777 gimplify_arg. Removed superfluous post_p argument.
778 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
779 superfluous post_p argument.
780 * c-gimplify.c (c_gimplify_expr): Likewise.
781
01e1dea3
DM
7822016-01-26 David Malcolm <dmalcolm@redhat.com>
783
784 PR other/69006
785 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
786 pp_newline_and_flush with pp_flush.
787
9f04a53e
MS
7882016-01-20 Martin Sebor <msebor@redhat.com>
789
790 PR c/69405
791 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
792 an incompatible argument when the argument isn't a valid tree node.
793
7f26f7df
JM
7942016-01-18 Jason Merrill <jason@redhat.com>
795
796 PR c++/68767
797 * c-common.c (check_function_arguments_recurse): Fold the whole
798 COND_EXPR, not just the condition.
799
f62bf092
TV
8002016-01-18 Tom de Vries <tom@codesourcery.com>
801
802 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
803 classify as loop clause.
804
e0a575ff
JJ
8052016-01-15 Jakub Jelinek <jakub@redhat.com>
806
807 PR bootstrap/68271
808 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
809 C++ FE no longer has limit on number of pragmas.
810
8112015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
812
813 PR c++/69048
814 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 815 to add missing cleanup point.
b6e3db06 816
c7df95d8
DM
8172016-01-14 David Malcolm <dmalcolm@redhat.com>
818
819 PR c++/68819
820 * c-indentation.c (get_visual_column): Add location_t param.
821 Handle the column number being zero by effectively disabling the
822 warning, with an "inform".
823 (should_warn_for_misleading_indentation): Add location_t argument
824 for all uses of get_visual_column.
825
21efdd80
PP
8262016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
827
828 PR c++/69029
829 * c-indentation.c (should_warn_for_misleading_indentation):
830 Don't warn about do-while statements.
831
7a127fa7
MS
8322016-01-07 Martin Sebor <msebor@redhat.com>
833
834 PR c/68966
835 * c-common.c (sync_resolve_size): Reject first argument when it's
836 a pointer to _Bool.
837
c589e975
DM
8382016-01-05 David Malcolm <dmalcolm@redhat.com>
839
840 PR c/69122
841 * c-indentation.c (get_visual_column): Remove default argument.
842 (should_warn_for_misleading_indentation): For the multiline case,
843 update call to get_visual_column for next_stmt_exploc so that it
844 captures the location of the first non-whitespace character in the
845 relevant line. Don't issue warnings if there is non-whitespace
846 before the next statement.
847
818ab71a
JJ
8482016-01-04 Jakub Jelinek <jakub@redhat.com>
849
850 Update copyright years.
851
745e411d
DM
8522015-12-21 David Malcolm <dmalcolm@redhat.com>
853
854 * c-common.c (binary_op_error): Convert first param from
855 location_t to rich_location * and use it when emitting an error.
856 * c-common.h (binary_op_error): Convert first param from
857 location_t to rich_location *.
858
de67c4c3
DM
8592015-12-16 David Malcolm <dmalcolm@redhat.com>
860
861 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
862 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
863
4a38b02b
IV
8642015-12-15 Ilya Verbin <ilya.verbin@intel.com>
865
866 * c-common.c (c_common_attribute_table): Handle "omp declare target
867 link" attribute.
868
54d62f51
JJ
8692015-12-14 Jakub Jelinek <jakub@redhat.com>
870
871 PR c/68833
872 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
873
8d4227c8
TB
8742014-12-12 Tobias Burnus <burnus@net-b.de>
875
876 PR fortran/68815
877 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
878 specifiers (%d, %i,%u and %c).
879
f6069ccc
DM
8802015-12-10 David Malcolm <dmalcolm@redhat.com>
881
882 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
883
63bbf46d
JJ
8842015-12-08 Jakub Jelinek <jakub@redhat.com>
885
886 PR c/48088
887 PR c/68657
888 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
889 * c-pragma.c (handle_pragma_diagnostic): Adjust
890 control_warning_option caller.
891
f79520bb
DM
8922015-12-07 David Malcolm <dmalcolm@redhat.com>
893
894 * c-common.c (c_cpp_error): Update for change to
895 rich_location::set_range.
896
b3d5bc62
JJ
8972015-12-04 Paolo Bonzini <bonzini@gnu.org>
898
899 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
900 shifting 1 out of the sign bit.
901
9022015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
903
904 * c-common.c (c_common_attribute_table[]): Update max arguments
905 count for "simd" attribute.
906 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
907
6eb4a537
JJ
9082015-12-03 Jakub Jelinek <jakub@redhat.com>
909
910 PR preprocessor/57580
911 * c-ppoutput.c (print): Change printed field to bool.
912 Move src_file last for smaller padding.
913 (init_pp_output): Set print.printed to false instead of 0.
914 (scan_translation_unit): Fix up formatting. Set print.printed
915 to true after printing something other than newline.
916 (scan_translation_unit_trad): Set print.printed to true instead of 1.
917 (maybe_print_line_1): Set print.printed to false instead of 0.
918 (print_line_1): Likewise.
919 (do_line_change): Set print.printed to true instead of 1.
920 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
921 dump_macro): Set print.printed to false after printing newline.
922
4250754e
JM
9232015-12-02 Jason Merrill <jason@redhat.com>
924
f479b43d
JM
925 * c-common.c (fold_for_warn): New.
926 (warn_logical_operator, warn_tautological_cmp)
927 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
928
4250754e
JM
929 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
930 (c_fully_fold_internal, decl_constant_value_for_optimization):
931 Move to c/c-fold.c.
932 * c-common.h: Don't declare decl_constant_value_for_optimization.
933
e9e32ee6
JM
9342015-12-02 Joseph Myers <joseph@codesourcery.com>
935
936 PR c/68162
937 * c-common.h (c_build_qualified_type): Add extra default
938 arguments.
939
37d5ad46
JB
9402015-12-01 Julian Brown <julian@codesourcery.com>
941 Cesar Philippidis <cesar@codesourcery.com>
942 James Norris <James_Norris@mentor.com>
943
944 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
945 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
946 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
947
f07862c7
EB
9482015-11-30 Eric Botcazou <ebotcazou@adacore.com>
949
950 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
951 (decl_sloc_common): Delete and move bulk of processing to...
952 (decl_sloc): ...here.
953 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
954 (dump_ada_double_name): Remove S parameter and compute the suffix.
955 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
956 element type and deal with an anonymous one.
957 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
958 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
959 and remove reference to QUAL_UNION_TYPE.
960 (dump_nested_types): Make 2 passes on the fields and move bulk to...
961 (dump_nested_type): ...here. New function extracted from above.
962 Generate a full declaration for anonymous element type of arrays.
963 (print_ada_declaration): Really skip anonymous declarations. Remove
964 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
965 Clean up processing of declarations of array types and objects.
966 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
967 Remove obsolete code and tidy up.
968
75c8aac3
JH
9692015-11-29 Jan Hubicka <hubicka@ucw.cz>
970
971 PR c/67581
972 * c-common.c (handle_transparent_union_attribute): Update
973 also type variants.
974
b58d3df2
ML
9752015-11-27 Martin Liska <mliska@suse.cz>
976
977 PR c++/68312
978 * array-notation-common.c (cilkplus_extract_an_triplets):
979 Release vector of vectors.
980 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
981
89a01fcf
EB
9822015-11-26 Eric Botcazou <ebotcazou@adacore.com>
983
984 PR c++/68527
985 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
986 (print_ada_struct_decl): Likewise.
987
cc5c5226
IZ
9882015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
989
990 PR c++/68001
991 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
992 * cilk.c (recognize_spawn): Determine location in a more precise
993 way.
994
269adb9d
JM
9952015-11-19 Jason Merrill <jason@redhat.com>
996
997 * c-common.c (shorten_compare): But look through macros from
998 system headers.
999
d0eccfcd
JM
10002015-11-18 Jason Merrill <jason@redhat.com>
1001
1002 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1003 non-constant operand comes from a macro.
1004
3e44547c
JM
10052015-11-17 Jason Merrill <jason@redhat.com>
1006
1007 PR bootstrap/68346
1008 * c-common.c (warn_tautological_cmp): Fold before checking for
1009 constants.
1010
0f62c7a0
MP
10112015-11-16 Marek Polacek <polacek@redhat.com>
1012
1013 PR c++/68362
1014 * c-common.c (check_case_bounds): Fold low and high cases.
1015
a868811e
MP
10162015-11-16 Marek Polacek <polacek@redhat.com>
1017
1018 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1019 * c-common.c (c_common_get_alias_set): Likewise.
1020 (handle_visibility_attribute): Likewise.
1021
fff77217
KY
10222015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1023
1024 * c-common.c (handle_simd_attribute): New.
1025 (struct attribute_spec): Add entry for "simd".
1026 (handle_simd_attribute): New.
1027
269e63b7
KT
10282015-11-13 Kai Tietz <ktietz70@googlemail.com>
1029
1030 * c-lex.c (interpret_float): Use fold_convert.
1031
ebedc9a3
DM
10322015-11-13 David Malcolm <dmalcolm@redhat.com>
1033
1034 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1035 and store it on the result.
1036 * c-opts.c (c_common_init_options): Set
1037 global_dc->colorize_source_p.
1038
6e232ba4
JN
10392015-11-12 James Norris <jnorris@codesourcery.com>
1040 Joseph Myers <joseph@codesourcery.com>
1041
1042 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1043 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1044 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1045 PRAGMA_OACC_CLAUSE_LINK.
1046
e78bede6
MP
10472015-11-11 Marek Polacek <polacek@redhat.com>
1048
1049 PR c/68107
1050 PR c++/68266
1051 * c-common.c (valid_array_size_p): New function.
1052 * c-common.h (valid_array_size_p): Declare.
1053
3f8257db 10542015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1055
1056 PR bootstrap/68271
1057 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1058
69f293c9
AM
10592015-11-11 Andrew MacLeod <amacleod@redhat.com>
1060
1061 * array-notation-common.c: Remove unused header files.
1062 * c-ada-spec.c: Likewise.
1063 * c-cilkplus.c: Likewise.
1064 * c-common.c: Likewise.
1065 * c-cppbuiltin.c: Likewise.
1066 * c-dump.c: Likewise.
1067 * c-format.c: Likewise.
1068 * c-gimplify.c: Likewise.
1069 * c-indentation.c: Likewise.
1070 * c-lex.c: Likewise.
1071 * c-omp.c: Likewise.
1072 * c-opts.c: Likewise.
1073 * c-pch.c: Likewise.
1074 * c-ppoutput.c: Likewise.
1075 * c-pragma.c: Likewise.
1076 * c-pretty-print.c: Likewise.
1077 * c-semantics.c: Likewise.
1078 * c-ubsan.c: Likewise.
1079 * cilk.c: Likewise.
1080 * stub-objc.c: Likewise.
1081
3a40d81d
NS
10822015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1083 Cesar Philippidis <cesar@codesourcery.com>
1084 James Norris <jnorris@codesourcery.com>
1085 Julian Brown <julian@codesourcery.com>
1086 Nathan Sidwell <nathan@codesourcery.com>
1087
1088 * c-pragma.c (oacc_pragmas): Add "routine".
1089 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1090
ee45a32d
EB
10912015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1092
1093 * c-common.c (c_common_attributes): Add scalar_storage_order.
1094 (handle_scalar_storage_order_attribute): New function.
1095 * c-pragma.c (global_sso): New variable.
1096 (maybe_apply_pragma_scalar_storage_order): New function.
1097 (handle_pragma_scalar_storage_order): Likewise.
1098 (init_pragma): Register scalar_storage_order.
1099 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1100 * c.opt (Wscalar-storage-order): New warning.
1101 (fsso-struct=): New option.
1102
eb11eb15
MS
11032015-11-08 Martin Sebor <msebor@redhat.com>
1104
1105 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1106
0aad0198
RS
11072015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1108
1109 * c-common.c: Don't undef DEF_BUILTIN.
1110
8a645150
DM
11112015-11-06 David Malcolm <dmalcolm@redhat.com>
1112
1113 * c-common.c (c_cpp_error): Convert parameter from location_t to
1114 rich_location *. Eliminate the "column_override" parameter and
1115 the call to diagnostic_override_column.
1116 Update the "done_lexing" clause to set range 0
1117 on the rich_location, rather than overwriting a location_t.
1118 * c-common.h (c_cpp_error): Convert parameter from location_t to
1119 rich_location *. Eliminate the "column_override" parameter.
1120
7a5e4956
CP
11212015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1122 Thomas Schwinge <thomas@codesourcery.com>
1123 James Norris <jnorris@codesourcery.com>
1124
1125 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1126 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1127 clauses with parallel and kernels and loops.
1128 * c-pragma.h (enum pragma_omp_clause): Add entries for
1129 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1130 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1131 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1132 INDEPENDENT,SEQ}.
1133 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1134
e2f5cc96
MS
11352015-11-05 Martin Sebor <msebor@redhat.com>
1136
1137 PR c++/67942
1138 * c.opt (-Wplacement-new): New option.
1139
e01d41e5
JJ
11402015-11-05 Jakub Jelinek <jakub@redhat.com>
1141
1142 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1143 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1144 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1145 save_expr or create_tmp_var* if TEST is true.
1146 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1147 Don't call add_stmt here.
1148 (struct c_omp_check_loop_iv_data): New type.
1149 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1150 c_omp_check_loop_iv_exprs): New functions.
1151 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1152 distribute.
1153 (c_omp_declare_simd_clauses_to_numbers): Change
1154 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1155 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1156 from numbers to PARM_DECLs.
1157
595278be
MM
11582015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1159
1160 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1161 flag_checking.
1162
3f8257db 11632015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1164
1165 PR c++-common/67882
b3d5bc62
JJ
1166 * c-common.h (fold_offsetof_1): Add argument.
1167 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1168 offsetof expressions that reference elements past the end of
1169 an array.
1170
4bf9e5a8
TS
11712015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1172 Chung-Lin Tang <cltang@codesourcery.com>
1173
1174 * c-pragma.c (oacc_pragmas): Add "atomic".
1175 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1176
3b1661a9
ES
11772015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1178
1179 * c-common.c (handle_target_clones_attribute): New.
1180 (c_common_attribute_table): Add handle_target_clones_attribute.
1181 (handle_always_inline_attribute): Add check on target_clones attribute.
1182 (handle_target_attribute): Ditto.
1183
2adfab87
AM
11842015-10-29 Andrew MacLeod <amacleod@redhat.com>
1185
1186 * array-notation-common.c: Reorder #include's and remove duplicates.
1187 * c-ada-spec.c: Likewise.
1188 * c-cilkplus.c: Likewise.
1189 * c-common.c: Likewise.
1190 * c-cppbuiltin.c: Likewise.
1191 * c-dump.c: Likewise.
1192 * c-format.c: Likewise.
1193 * c-gimplify.c: Likewise.
1194 * c-indentation.c: Likewise.
1195 * c-lex.c: Likewise.
1196 * c-omp.c: Likewise.
1197 * c-opts.c: Likewise.
1198 * c-pch.c: Likewise.
1199 * c-ppoutput.c: Likewise.
1200 * c-pragma.c: Likewise.
1201 * c-pretty-print.c: Likewise.
1202 * c-semantics.c: Likewise.
1203 * c-ubsan.c: Likewise.
1204 * cilk.c: Likewise.
1205 * stub-objc.c: Likewise.
1206
d90ec4f2
JM
12072015-10-28 Jason Merrill <jason@redhat.com>
1208
1209 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1210
88bae6f4
TS
12112015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1212 James Norris <jnorris@codesourcery.com>
1213 Cesar Philippidis <cesar@codesourcery.com>
1214
1215 PR c/64765
1216 PR c/64880
1217 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1218 * c-omp.c (c_oacc_split_loop_clauses): New function.
1219
b1726d6c
MS
12202015-10-21 Martin Sebor <msebor@redhat.com>
1221
1222 PR driver/68043
1223 * c.opt: End each sentence that describes an option with a period.
1224
fa60eeb9
MP
12252015-10-20 Marek Polacek <polacek@redhat.com>
1226
1227 * array-notation-common.c (is_cilkplus_vector_p): Define.
1228 * c-common.h (is_cilkplus_vector_p): Declare.
1229
95979049
MP
12302015-10-20 Marek Polacek <polacek@redhat.com>
1231
1232 * c.opt (std=gnu++11): Do not describe as experimental.
1233 (std=gnu++14): Likewise.
1234
2a9fb712
JM
12352015-10-19 Jason Merrill <jason@redhat.com>
1236
1237 * c-cppbuiltin.c (c_cpp_builtins): Define
1238 __cpp_nontype_template_args.
1239
13b380a3
JM
12402015-10-19 Jason Merrill <jason@redhat.com>
1241
1242 * c-cppbuiltin.c (c_cpp_builtins): Define
1243 __cpp_enumerator_attributes, __cpp_fold_expressions,
1244 __cpp_unicode_characters.
1245
d9a6bd32
JJ
12462015-10-13 Jakub Jelinek <jakub@redhat.com>
1247 Aldy Hernandez <aldyh@redhat.com>
1248
1249 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1250 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1251 (c_define_builtins): Likewise.
1252 * c-common.h (enum c_omp_clause_split): Add
1253 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1254 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1255 (c_finish_omp_for): Add ORIG_DECLV argument.
1256 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1257 201511 instead of 201307.
1258 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1259 OMP_CRITICAL_CLAUSES to it.
1260 (c_finish_omp_ordered): Add CLAUSES argument, set
1261 OMP_ORDERED_CLAUSES to it.
1262 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1263 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1264 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1265 constructs and new OpenMP 4.5 clauses. Clear
1266 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1267 verification code.
1268 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1269 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1270 (enum pragma_omp_clause): Add
1271 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1272 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1273
624d31fe
RS
12742015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1275
1276 * c-lex.c (interpret_float): Use real_equal instead of
1277 REAL_VALUES_EQUAL.
1278
b8fd7909
JM
12792015-10-04 Jason Merrill <jason@redhat.com>
1280
1281 Implement N4514, C++ Extensions for Transactional Memory.
1282 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1283 (c_common_attribute_table): Add transaction_safe_dynamic.
1284 transaction_safe now affects type identity.
1285 (handle_tm_attribute): Handle transaction_safe_dynamic.
1286 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1287 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1288 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1289 (D_TRANSMEM): New.
1290 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1291 * c-pretty-print.c (pp_c_attributes_display): Don't print
1292 transaction_safe in C++.
1293
12651878
MP
12942015-10-02 Marek Polacek <polacek@redhat.com>
1295
1296 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1297
3e3b8d63
MP
12982015-10-02 Marek Polacek <polacek@redhat.com>
1299
1300 PR c/64249
1301 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1302 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1303 * c.opt (Wduplicated-cond): New option.
1304
0d1a8f75
JM
13052015-10-01 Joseph Myers <joseph@codesourcery.com>
1306
1307 * c.opt (std=c11): Do not describe as experimental.
1308 (std=gnu11): Likewise.
1309 (std=iso9899:2011): Likewise.
1310
3e32ee19
NS
13112015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1312
1313 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1314 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1315
974348ee
MP
13162015-09-25 Marek Polacek <polacek@redhat.com>
1317
1318 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1319 (ubsan_instrument_shift): Likewise.
1320
15dbc1a6
MP
13212015-09-25 Marek Polacek <polacek@redhat.com>
1322
1323 PR sanitizer/64906
1324 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1325
6b95d7cc
PP
13262015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1327
1328 * c-indentation.c (should_warn_for_misleading_indentation):
1329 Compare next_stmt_vis_column with guard_line_first_nws instead
1330 of with guard_line_vis_column.
1331
c1822f9c
MLI
13322015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1333
1334 PR c/49654
1335 PR c/49655
1336 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1337 options and options not valid for the current language.
1338
d5398058
PP
13392015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1340
1341 * c-indentation.c (should_warn_for_misleading_indentation):
1342 Float out and consolidate the calls to get_visual_column that
1343 are passed guard_exploc as an argument. Compare
1344 next_stmt_vis_column with guard_line_first_nws instead of with
1345 body_line_first_nws.
1346
6b333269
NS
13472015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1348
1349 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1350 Wnamespaces): New C++ warnings.
1351
a75f1574
JM
13522015-09-22 Jason Merrill <jason@redhat.com>
1353
1354 * c-common.h (abi_compat_version_crosses): New.
1355 (warn_abi_version): Declare.
1356 * c-common.c: Define it.
1357 * c-opts.c (c_common_post_options): Handle it.
1358 flag_abi_compat_version defaults to 8.
1359
bdaaa8b7
VV
13602015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1361
1362 Complete the implementation of N4230, Nested namespace definition.
1363 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1364 __cpp_nested_namespace_definitions.
1365
eaa797e8
MLI
13662015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1367
1368 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1369
c4914de6
MLI
13702015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1371
1372 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1373 when warning.
1374 * c-pragma.h (pragma_lex): Add optional loc argument.
1375
fcb87c50
MM
13762015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1377
1378 * c-format.c (check_format_arg): Adjust to use common block size in all
1379 object pools.
1380
31bdd08a
DM
13812015-09-15 David Malcolm <dmalcolm@redhat.com>
1382
1383 * c-format.c (location_from_offset): Update for change in
1384 signature of location_get_source_line.
1385 * c-indentation.c (get_visual_column): Likewise.
1386 (line_contains_hash_if): Likewise.
1387
aa9f4b4c
MP
13882015-09-14 Marek Polacek <polacek@redhat.com>
1389
1390 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1391 setting various warnings.
1392
aa256c4a
MP
13932015-09-14 Marek Polacek <polacek@redhat.com>
1394
1395 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1396 a negative value.
1397
0f876f22
MW
13982015-09-11 Mark Wielaard <mjw@redhat.com>
1399
1400 PR c/28901
1401 * c.opt (Wunused-variable): Option from common.opt.
1402 (Wunused-const-variable): New option.
1403
273aa49e
PC
14042015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1405
1406 PR c++/53184
1407 * c.opt ([Wsubobject-linkage]): Add.
1408
1807ffc1
MS
14092015-09-03 Martin Sebor <msebor@redhat.com>
1410
1411 PR c/66516
1412 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1413 functions.
1414 * c-common.c (reject_gcc_builtin): Define.
1415
38942840
BI
14162015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1417
1418 PR middle-end/60586
1419 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1420 prototype.
1421 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1422 cilk_gimplify_call_params_in_spawned_fn.
1423 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1424 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1425 unwrapping.
1426
c316b5e4
MP
14272015-08-25 Marek Polacek <polacek@redhat.com>
1428
1429 PR middle-end/67330
1430 * c-common.c (handle_weak_attribute): Don't check whether the
1431 visibility can be changed here.
1432
584a7c46
MLI
14332015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1434
1435 * c-lex.c (c_lex_with_flags): Use explicit locations.
1436
a79683d5
TS
14372015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1438
1439 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1440 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1441
61717a45
FXC
14422015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1443
1444 PR middle-end/36757
1445 * c-common.c (check_builtin_function_arguments): Add check
1446 for BUILT_IN_SIGNBIT argument.
1447
329524f5
PC
14482015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1449
1450 PR c++/67160
1451 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1452 in c++1z mode.
1453
4ee55665
MP
14542015-08-17 Marek Polacek <polacek@redhat.com>
1455
1456 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1457 with whitespaces before qualifier names.
1458
b893e375
MP
14592015-08-12 Marek Polacek <polacek@redhat.com>
1460
1461 PR c++/55095
1462 * c-common.c (maybe_warn_shift_overflow): Properly handle
1463 left-shifting 1 into the sign bit.
1464
c2d89095
MLI
14652015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1466
1467 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1468
971e17ff
AS
14692015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1470 Braden Obrzut <admin@maniacsvault.net>
1471 Jason Merrill <jason@redhat.com>
1472
1473 Add C++ Concepts TS support.
1474 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1475 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1476 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1477 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1478 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1479 * c.opt (fconcepts): New.
1480
b3d5bc62
JJ
14812015-08-02 Martin Sebor <msebor@redhat.com>
1482
1483 * c.opt (-Wframe-address): New warning option.
1484
8ebca419
PP
14852015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1486
1487 * c-indentation.c (should_warn_for_misleading_indentation):
1488 Improve heuristics.
1489
1a1e101f
PP
14902015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1491
1492 * c-indentation.c (get_visual_column): Add parameter first_nws,
1493 use it. Update comment documenting the function.
1494 (is_first_nonwhitespace_on_line): Remove.
1495 (should_warn_for_misleading_indentation): Replace usage of
1496 of is_first_nonwhitespace_on_line with get_visual_column.
1497
992118a1
PP
14982015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1499
1500 * c-indentation.h (struct token_indent_info): Define.
1501 (get_token_indent_info): Define.
1502 (warn_for_misleading_information): Declare.
1503 * c-common.h (warn_for_misleading_information): Remove.
1504 * c-identation.c (warn_for_misleading_indentation):
1505 Change declaration to take three token_indent_infos. Adjust
1506 accordingly.
1507 * c-identation.c (should_warn_for_misleading_indentation):
1508 Likewise. Bail out early if the body is a compound statement.
1509 (guard_tinfo_to_string): Define.
1510
e8fa3817
JM
15112015-07-30 Jason Merrill <jason@redhat.com>
1512
1513 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1514 '*' for reference decay.
1515
173864e8
MP
15162015-07-30 Marek Polacek <polacek@redhat.com>
1517
1518 * c-common.c (warn_tautological_cmp): Bail for float types.
1519
f2afe6dd
MP
15202015-07-27 Marek Polacek <polacek@redhat.com>
1521
1522 PR bootstrap/67030
1523 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1524
05b28fd6
MP
15252015-07-27 Marek Polacek <polacek@redhat.com>
1526
1527 PR c++/66555
1528 PR c/54979
1529 * c-common.c (find_array_ref_with_const_idx_r): New function.
1530 (warn_tautological_cmp): New function.
1531 * c-common.h (warn_tautological_cmp): Declare.
1532 * c.opt (Wtautological-compare): New option.
1533
5a5062b8
MP
15342015-07-23 Marek Polacek <polacek@redhat.com>
1535
1536 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1537 (ubsan_instrument_shift): Likewise.
1538
dc891fe7
MP
15392015-07-23 Marek Polacek <polacek@redhat.com>
1540
1541 PR sanitizer/66908
1542 * c-ubsan.c: Include gimplify.h.
1543 (ubsan_instrument_division): Unshare OP0 and OP1.
1544 (ubsan_instrument_shift): Likewise.
1545
451b5e48
MP
15462015-07-20 Marek Polacek <polacek@redhat.com>
1547 Richard Sandiford <richard.sandiford@arm.com>
1548
1549 PR c++/55095
1550 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1551 Use EXPR_LOC_OR_LOC.
1552 (maybe_warn_shift_overflow): New function.
1553 * c-common.h (maybe_warn_shift_overflow): Declare.
1554 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1555 * c.opt (Wshift-overflow): New option.
1556
fb0b2914
ML
15572015-07-16 Martin Liska <mliska@suse.cz>
1558
1559 * c-format.c (static void check_format_info_main): Use
1560 object_allocator instead of pool_allocator.
1561 (check_format_arg): Likewise.
1562 (check_format_info_main): Likewise.
1563
903f5c23
AM
15642015-07-15 Andrew MacLeod <amacleod@redhat.com>
1565
1566 * c-opts.c: Remove multiline #include comment.
1567
026c3cfd
AH
15682015-07-12 Aldy Hernandez <aldyh@redhat.com>
1569
1570 * c-common.c: Fix double word typos.
1571
bb49ee66
EB
15722015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1573
1574 * c-ada-spec.h (cpp_operation): Revert latest change.
1575 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1576 constructors and destructors.
1577
1916bcb5
AM
15782015-07-09 Andrew MacLeod <amacleod@redhat.com>
1579
1580 * c-common.h: Adjust includes for flags.h changes.
1581 * stub-objc.c: Likewise.
026c3cfd 1582
a9dcd529
EB
15832015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1584
1585 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1586 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1587
b03b462f
JJ
15882015-07-08 Jakub Jelinek <jakub@redhat.com>
1589
1590 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1591 are to be removed, return NULL rather than original clauses list.
1592
c7131fb2
AM
15932015-07-07 Andrew MacLeod <amacleod@redhat.com>
1594
1595 * array-notation-common.c: Adjust includes.
1596 * c-ada-spec.c: Likewise.
1597 * c-cilkplus.c: Likewise.
1598 * c-common.h: Likewise.
1599 * c-cppbuiltin.c: Likewise.
1600 * c-dump.c: Likewise.
1601 * c-format.c: Likewise.
1602 * c-gimplify.c: Likewise.
1603 * c-indentation.c: Likewise.
1604 * c-lex.c: Likewise.
1605 * c-omp.c: Likewise.
1606 * c-opts.c: Likewise.
1607 * c-pch.c: Likewise.
1608 * c-ppoutput.c: Likewise.
1609 * c-pragma.c: Likewise.
1610 * c-pretty-print.c: Likewise.
1611 * c-semantics.c: Likewise.
1612 * c-ubsan.c: Likewise.
1613 * cilk.c: Likewise.
1614 * stub-objc.c: Likewise.
1615
2a7fb83f
EB
16162015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1617
1618 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1619 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1620
a03c9bf1
JM
16212015-07-01 Jason Merrill <jason@redhat.com>
1622
36a85135
JM
1623 * c-common.h (D_CXX11): Rename from D_CXX0X.
1624 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1625 * c-common.c: Adjust.
1626
e7fa68d5
JM
1627 * c-opts.c (c_common_post_options): Default to C++14.
1628
a03c9bf1
JM
1629 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1630
fe95b036
ESR
16312015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1632
1633 Implement N4197 - Adding u8 character literals
b3d5bc62 1634 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1635 CPP_CHAR.
b3d5bc62 1636 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1637 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1638 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1639 and CPP_UTF8CHAR tokens.
1640 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1641
da2e71c9
MLI
16422015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1643
1644 PR fortran/66605
1645 * c-common.c (do_warn_unused_parameter): Move here.
1646 * c-common.h (do_warn_unused_parameter): Declare.
1647
b155cfd9
MP
16482015-06-29 Marek Polacek <polacek@redhat.com>
1649
1650 PR c/66322
1651 * c-common.c (check_case_bounds): Add bool * parameter. Set
1652 OUTSIDE_RANGE_P.
1653 (c_add_case_label): Add bool * parameter. Pass it down to
1654 check_case_bounds.
1655 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1656 warning here.
1657 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1658 declarations.
1659
31521951
MP
16602015-06-27 Marek Polacek <polacek@redhat.com>
1661
1662 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1663 or VECTOR_INTEGER_TYPE_P throughout.
1664 * c-gimplify.c: Likewise.
1665
22d03525
MP
16662015-06-26 Marek Polacek <polacek@redhat.com>
1667
1668 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1669 * c-common.c (c_fully_fold_internal): Likewise.
1670 (c_alignof_expr): Likewise.
1671 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1672 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1673 * cilk.c (create_parm_list): Likewise.
22d03525 1674
af05e6e5
MP
16752015-06-26 Marek Polacek <polacek@redhat.com>
1676
1677 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1678
f0889939
AM
16792015-06-25 Andrew MacLeod <amacleod@redhat.com>
1680
1681 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1682 * c-gimplify.c: Likewise.
1683 * c-pragma.c: Likewise.
1684 * c-ubsan.c: Likewise.
1685 * cilk.c: Likewise.
1686
ca752f39
RS
16872015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1688
1689 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1690 ggc_hasher.
1691
16a16ec7
AM
16922015-06-25 Andrew MacLeod <amacleod@redhat.com>
1693
1694 * cilk.c: Move calls.h after tm.h in the include chain.
1695
0ae9bd27
MP
16962015-06-25 Marek Polacek <polacek@redhat.com>
1697
1698 * array-notation-common.c: Use VAR_P throughout.
1699 * c-ada-spec.c: Likewise.
1700 * c-common.c: Likewise.
1701 * c-format.c: Likewise.
1702 * c-gimplify.c: Likewise.
1703 * c-omp.c: Likewise.
1704 * c-pragma.c: Likewise.
1705 * c-pretty-print.c: Likewise.
1706 * cilk.c: Likewise.
1707
62f9079a
MP
17082015-06-25 Marek Polacek <polacek@redhat.com>
1709
1710 * cilk.c (extract_free_variables): Use is_global_var.
1711
0fa16060
RS
17122015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1713
1714 * c-common.c: Don't include target-def.h.
1715
a68ae2e1
MP
17162015-06-23 Marek Polacek <polacek@redhat.com>
1717
1718 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1719 when comparing INTEGER_CSTs.
1720
c6a2f2d9
PMR
17212015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1722
1723 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1724 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1725 (dump_ada_template): Skip partially specialized types.
1726
6b4db501
MM
17272015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1728
1729 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1730 swapping.
1731
abb226c9
AM
17322015-06-17 Andrew MacLeod <amacleod@redhat.com>
1733
1734 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1735 * c-ada-spec.c: Likewise.
1736 * c-cilkplus.c: Likewise.
1737 * c-common.c: Likewise.
1738 * c-common.h: Likewise.
1739 * c-cppbuiltin.c: Likewise.
1740 * c-dump.c: Likewise.
1741 * c-format.c: Likewise.
1742 * c-gimplify.c: Likewise.
1743 * c-indentation.c: Likewise.
1744 * c-lex.c: Likewise.
1745 * c-omp.c: Likewise.
1746 * c-opts.c: Likewise.
1747 * c-pch.c: Likewise.
1748 * c-ppoutput.c: Likewise.
1749 * c-pragma.c: Likewise.
1750 * c-pretty-print.c: Likewise.
1751 * c-semantics.c: Likewise.
1752 * c-ubsan.c: Likewise.
1753 * cilk.c: Likewise.
1754 * stub-objc.c: Likewise.
1755
076fecad
PP
17562015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1757
1758 PR c++/65168
1759 * c-common.c (c_common_truthvalue_conversion): Warn when
1760 converting an address of a reference to a truth value.
1761
13fdf2e2
AM
17622015-06-08 Andrew MacLeod <amacleod@redhat.com>
1763
1764 * array-notation-common.c : Adjust include files.
1765 * c-ada-spec.c : Likewise.
1766 * c-cilkplus.c : Likewise.
1767 * c-common.c : Likewise.
1768 * c-common.h : Likewise.
1769 * c-cppbuiltin.c : Likewise.
1770 * c-dump.c : Likewise.
1771 * c-format.c : Likewise.
1772 * c-gimplify.c : Likewise.
1773 * c-indentation.c : Likewise.
1774 * c-lex.c : Likewise.
1775 * c-omp.c : Likewise.
1776 * c-opts.c : Likewise.
1777 * c-pch.c : Likewise.
1778 * c-ppoutput.c : Likewise.
1779 * c-pragma.c : Likewise.
1780 * c-pretty-print.c : Likewise.
1781 * c-semantics.c : Likewise.
1782 * c-ubsan.c : Likewise.
1783 * cilk.c : Likewise.
1784 * stub-objc.c : Likewise.
1785
a1661b90
MP
17862015-06-08 Marek Polacek <polacek@redhat.com>
1787
1788 PR c/66415
1789 * c-format.c (location_from_offset): Return LOC if LINE is null.
1790
d7438551
AH
17912015-06-05 Aldy Hernandez <aldyh@redhat.com>
1792
1793 * c-common.h (c_parse_final_cleanups): New prototype.
1794 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1795
b3d5bc62
JJ
17962015-06-04 Sriraman Tallam <tmsriram@google.com>
1797
1798 * c-common.c (noplt): New attribute.
1799 (handle_noplt_attribute): New handler.
1800
ecb9f223
AM
18012015-06-04 Andrew MacLeod <amacleod@redhat.com>
1802
1803 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1804 * c-ada-spec.c: Likewise.
1805 * c-cilkplus.c: Likewise.
1806 * c-common.c: Likewise.
1807 * c-common.h: Likewise.
1808 * c-cppbuiltin.c: Likewise.
1809 * c-dump.c: Likewise.
1810 * c-format.c: Likewise.
1811 * c-gimplify.c: Likewise.
1812 * c-indentation.c: Likewise.
1813 * c-lex.c: Likewise.
1814 * c-omp.c: Likewise.
1815 * c-opts.c: Likewise.
1816 * c-pch.c: Likewise.
1817 * c-ppoutput.c: Likewise.
1818 * c-pragma.c: Likewise.
1819 * c-pretty-print.c: Likewise.
1820 * c-semantics.c: Likewise.
1821 * c-ubsan.c: Likewise.
1822 * cilk.c: Likewise.
1823 * stub-objc.c: Likewise.
1824
6ac48155
DM
18252015-06-02 David Malcolm <dmalcolm@redhat.com>
1826
1827 PR c/66220:
1828 * c-indentation.c (should_warn_for_misleading_indentation): Use
1829 expand_location rather than expand_location_to_spelling_point.
1830 Don't warn if the guarding statement is more indented than the
1831 next/body stmts.
1832
773ce42e
DM
18332015-06-02 David Malcolm <dmalcolm@redhat.com>
1834
1835 * c-indentation.c (warn_for_misleading_indentation): Bail out
1836 immediately if -Wmisleading-indentation isn't enabled.
1837
4fef8379
ML
18382015-06-01 Martin Liska <mliska@suse.cz>
1839
1840 * c-format.c (check_format_arg):Use new type-based pool allocator.
1841 (check_format_info_main) Likewise.
1842
1edfb384
EB
18432015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1844
1845 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1846 (has_nontrivial_methods): Likewise.
1847
9677ef52
MP
18482015-05-25 Marek Polacek <polacek@redhat.com>
1849
1850 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1851
fd5c817a
MP
18522015-05-22 Marek Polacek <polacek@redhat.com>
1853
1854 PR c/47043
1855 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1856
a2f45fe6 18572015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1858
1859 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1860 STACK_GROWS_DOWNWARD.
1861
a2f45fe6 18622015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1863
1864 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1865 STACK_GROWS_DOWNWARD rather than if it is defined.
1866
0fee2ac2 18672015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1868
0fee2ac2
MLI
1869 PR c/52952
1870 * c-format.c (location_column_from_byte_offset): New.
1871 (location_from_offset): New.
1872 (struct format_wanted_type): Add offset_loc field.
1873 (check_format_info): Move handling of location for extra arguments
1874 closer to the point of warning.
1875 (check_format_info_main): Pass the result of location_from_offset
1876 to warning_at.
1877 (format_type_warning): Pass the result of location_from_offset
1878 to warning_at.
1879
cf4ef6f7
MP
18802015-05-20 Marek Polacek <polacek@redhat.com>
1881
1882 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1883
3a65ee74
MP
18842015-05-20 Marek Polacek <polacek@redhat.com>
1885
1886 * c-ada-spec.c (dump_sloc): Use DECL_P.
1887
21b634ae
MP
18882015-05-20 Marek Polacek <polacek@redhat.com>
1889
1890 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1891 * c-common.c: Likewise.
1892
0e50b624
DM
18932015-05-19 David Malcolm <dmalcolm@redhat.com>
1894
1895 * c-common.h (fe_file_change): Strengthen param from
1896 const line_map * to const line_map_ordinary *.
1897 (pp_file_change): Likewise.
1898 * c-lex.c (fe_file_change): Likewise.
1899 (cb_define): Use linemap_check_ordinary when invoking
1900 SOURCE_LINE.
1901 (cb_undef): Likewise.
1902 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1903 invoking cb_file_change.
1904 (c_finish_options): Likewise.
1905 (push_command_line_include): Likewise.
1906 (cb_file_change): Strengthen param "new_map" from
1907 const line_map * to const line_map_ordinary *.
1908 * c-ppoutput.c (cb_define): Likewise for local "map".
1909 (pp_file_change): Likewise for param "map" and local "from".
1910
fab27f52
MM
19112015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1912
1913 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1914
2fe1d762
TV
19152015-05-18 Tom de Vries <tom@codesourcery.com>
1916
1917 * c-common.c (build_va_arg_1): New function.
1918 (build_va_arg): Add address operator to va_list operand if necessary.
1919
7a37fa90
MM
19202015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1921
1922 PR c/48956
1923 * c-common.c (int_safely_convertible_to_real_p): Define.
1924 (unsafe_conversion_p): Check conversions involving complex types.
1925 (conversion_warning): Add new warning message for conversions which
1926 discard imaginary component.
1927 * c-common.h: (enum conversion_safety): Add new enumerator for such
1928 conversions.
1929
3aa3c9fc
MP
19302015-05-14 Marek Polacek <polacek@redhat.com>
1931
1932 PR c/66066
1933 PR c/66127
1934 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1935 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1936 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1937 use it. If FOR_INT_CONST, require that all evaluated operands be
1938 INTEGER_CSTs.
1939
c3388e62
DM
19402015-05-12 David Malcolm <dmalcolm@redhat.com>
1941
1942 * c-common.h (warn_for_misleading_indentation): New prototype.
1943 * c-indentation.c: New file.
1944 * c.opt (Wmisleading-indentation): New option.
1945
c7b38fd5
TV
19462015-05-12 Tom de Vries <tom@codesourcery.com>
1947
1948 PR tree-optimization/66010
1949 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1950
381bf11e
JM
19512015-05-09 Jason Merrill <jason@redhat.com>
1952
edff0c06
JM
1953 * c-opts.c (c_common_post_options): Also clear
1954 cpp_opts->cpp_warn_cxx11_compat.
1955
129211bc
JM
1956 * c-common.h (enum cxx_dialect): Add cxx_unset.
1957 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1958 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1959
381bf11e
JM
1960 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1961 (std=gnu++0x): Mark as Undocumented.
1962 (std=gnu++1y): Add deprecated message.
1963
fe191308
JM
19642015-05-08 Jason Merrill <jason@redhat.com>
1965
765189ff
JM
1966 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1967 * c-opts.c: Adjust.
1968
fe191308
JM
1969 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1970
755e528f
MP
19712015-05-08 Marek Polacek <polacek@redhat.com>
1972
1973 PR c/64918
1974 * c.opt (Woverride-init-side-effects): New option.
1975
0173bd2a
MP
19762015-05-07 Marek Polacek <polacek@redhat.com>
1977
1978 PR c/65179
1979 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1980 negative value.
1981 * c.opt (Wshift-negative-value): New option.
1982 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1983 when -Wextra and C99/C++11 mode.
1984
e0f0d3b9
MP
19852015-05-07 Marek Polacek <polacek@redhat.com>
1986 Martin Uecker <uecker@eecs.berkeley.edu>
1987
1988 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1989 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1990
8243e2a9
JM
19912015-05-05 Jason Merrill <jason@redhat.com>
1992
1993 * c.opt (Wterminate): New.
1994
577cd070
MP
19952015-04-30 Marek Polacek <polacek@redhat.com>
1996
1997 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1998 require that the non-constant be of a boolean type.
1999
0373796b
JT
20002015-04-29 Josh Triplett <josh@joshtriplett.org>
2001
e0f0d3b9
MP
2002 * c-common.c (handle_section_attribute): Refactor to reduce
2003 nesting and distinguish between error cases.
0373796b 2004
716c0ba6
MP
20052015-04-29 Marek Polacek <polacek@redhat.com>
2006
2007 PR c/64610
2008 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2009 with 0/1.
2010
8848828b
JJ
20112015-04-29 Jakub Jelinek <jakub@redhat.com>
2012
2013 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2014 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2015 HOST_BITS_PER_WIDE_INT.
2016
ecd0e562
TV
20172015-04-28 Tom de Vries <tom@codesourcery.com>
2018
2019 PR tree-optimization/65887
2020 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2021
2a877204 20222015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2023 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2024
2025 * c-ada-spec.c (in_function): Delete.
2026 (dump_generic_ada_node): Do not change in_function and remove the
2027 redundant code dealing with it.
2028 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2029 (print_ada_methods): Output the static member functions in a nested
2030 package after the regular methods as well as associated renamings.
2031
4853031e
MP
20322015-04-24 Marek Polacek <polacek@redhat.com>
2033
2034 PR c/65830
2035 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2036 and OPT_Wshift_count_overflow.
2037
8c2b7f79
MP
2038 PR c/63357
2039 * c-common.c (warn_logical_operator): Warn if the operands have the
2040 same expressions.
2041
b8787813
MP
20422015-04-24 Marek Polacek <polacek@redhat.com>
2043
2044 PR c/61534
2045 * c-common.c (warn_logical_operator): Bail if either operand comes
2046 from a macro expansion.
2047
8fba1830
BRF
20482015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2049
2050 PR target/55143
2051 * c-common.c (c_default_pointer_mode): Add definition.
2052 * c-common.h (c_default_pointer_mode): Add declaration.
2053
17958621
JJ
20542015-03-11 Jakub Jelinek <jakub@redhat.com>
2055
2056 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2057 on record_builtin_type argument.
2058
7ccb1a11
JJ
20592015-03-10 Jakub Jelinek <jakub@redhat.com>
2060
2061 PR c/65120
2062 * c-common.c (warn_logical_not_parentheses): Don't warn for
2063 !x == 0 or !x != 0.
2064
04fd785e
MP
20652015-03-07 Marek Polacek <polacek@redhat.com>
2066
2067 PR sanitizer/65280
2068 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2069 before trying to figure out whether we have a flexible array member.
2070
a4e26206
EB
20712015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2072 Jonathan Wakely <jwakely.gcc@gmail.com>
2073
2074 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2075
0d2489f4
EB
20762015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2077
2078 PR ada/65319
2079 * c-ada-spec.c (print_destructor): Remove obsolete code.
2080
83ed54d7
EB
20812015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2082
2083 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2084 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2085 DECL_TEMPLATE_RESULT emulations.
2086 (dump_ada_template)): Add guard for TYPE_METHODS.
2087
7631f0e2
MP
20882015-02-27 Marek Polacek <polacek@redhat.com>
2089
2090 PR c/65040
2091 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2092
d1783ae5
KT
20932015-02-27 Kai Tietz <ktietz@redhat.com>
2094
2095 PR c/35330
2096 * c-pragma.c (handle_pragma_weak): Do not try to create
2097 weak/alias of declarations not being function, or variable
2098 declarations.
2099
56a9f6bc
TS
21002015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2101
2102 PR libgomp/64625
2103 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2104 Remove macros.
2105 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2106
3d5cb23d
MP
21072015-02-16 Marek Polacek <polacek@redhat.com>
2108
2109 PR c/65066
2110 * c-format.c (check_format_types): Handle null param.
2111
fa008882
MP
21122015-02-13 Marek Polacek <polacek@redhat.com>
2113
2114 PR c/65040
2115 * c-format.c (check_format_types): Don't warn about different
2116 signedness if the original value is in the range of WANTED_TYPE.
2117
785f21af
JM
21182015-02-12 Jason Merrill <jason@redhat.com>
2119
2120 PR c++/64956
2121 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2122 to the current highest version.
2123 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2124
4886ec8e
JJ
21252015-02-04 Jakub Jelinek <jakub@redhat.com>
2126
2127 PR c/64824
2128 PR c/64868
2129 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2130 instead of RDIV_EXPR. Use build_binary_op instead of
2131 build2_loc.
2132
40fecdd6
JM
21332015-01-30 Joseph Myers <joseph@codesourcery.com>
2134
2135 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2136 to pass input_location as first argument.
2137
a0c88d06
TV
21382015-01-23 Tom de Vries <tom@codesourcery.com>
2139
2140 PR libgomp/64672
2141 * c.opt (fopenacc): Mark as LTO option.
2142
1506ae0e
TV
21432015-01-23 Tom de Vries <tom@codesourcery.com>
2144
2145 PR libgomp/64707
2146 * c.opt (fopenmp): Mark as LTO option.
2147
31be63ab
JJ
21482015-01-21 Jakub Jelinek <jakub@redhat.com>
2149
2150 PR c/63307
b1726d6c 2151 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2152 (compare_decls): Fix up formatting.
2153
21542015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2155
2156 PR c/63307
2157 * cilk.c: Include vec.h.
2158 (struct cilk_decls): New structure.
2159 (wrapper_parm_cb): Split this function to...
2160 (fill_decls_vec): ...this...
2161 (create_parm_list): ...and this.
2162 (compare_decls): New function.
2163 (for_local_cb): Remove.
2164 (wrapper_local_cb): Ditto.
2165 (build_wrapper_type): For now first traverse and fill vector of
2166 declarations then sort it and then deal with sorted vector.
2167 (cilk_outline): Ditto.
2168 (declare_one_free_variable): Ditto.
2169
6875457f
JM
21702015-01-21 Jason Merrill <jason@redhat.com>
2171
2172 PR c++/64629
2173 * c-format.c (check_format_arg): Call decl_constant_value.
2174
185c9e56
ML
21752015-01-19 Martin Liska <mliska@suse.cz>
2176
2177 * c-common.c (handle_noicf_attribute): New function.
2178
41dbbb37
TS
21792015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2180 Bernd Schmidt <bernds@codesourcery.com>
2181 James Norris <jnorris@codesourcery.com>
2182 Cesar Philippidis <cesar@codesourcery.com>
2183 Ilmir Usmanov <i.usmanov@samsung.com>
2184 Jakub Jelinek <jakub@redhat.com>
2185
2186 * c.opt (fopenacc): New option.
2187 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2188 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2189 New macros.
2190 * c-common.h (c_finish_oacc_wait): New prototype.
2191 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2192 (c_finish_oacc_wait): New function.
2193 * c-pragma.c (oacc_pragmas): New variable.
2194 (c_pp_lookup_pragma, init_pragma): Handle it.
2195 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2196 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2197 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2198 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2199 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2200 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2201 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2202 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2203 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2204 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2205 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2206 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2207 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2208 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2209 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2210 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2211 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2212 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2213 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2214 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2215 PRAGMA_OACC_CLAUSE_WORKER.
2216
3f8257db 22172015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2218
2219 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2220 for the new option fstack-protector_explicit.
2221 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2222 (handle_stack_protect_attribute): New function.
2223
3f8257db 22242015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2225
2226 * c.opt: New option -Warray-bounds=.
2227
adfac8df
JJ
22282015-01-09 Michael Collison <michael.collison@linaro.org>
2229
2230 * array-notation-common.c: Include hash-set.h, machmode.h,
2231 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2232 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2233 * c-ada-spec.c: Ditto.
2234 * c-cilkplus.c: Ditto.
2235 * c-common.c: Include input.h due to flattening of tree.h.
2236 Define macro GCC_C_COMMON_C.
2237 * c-common.h: Flatten tree.h header files into c-common.h.
2238 Remove include of tree-core.h.
2239 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2240 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2241 fold-const.h, wide-int.h, and inchash.h due to
2242 flattening of tree.h.
2243 * c-dump.c: Ditto.
2244 * c-format.c: Flatten tree.h header files into c-common.h.
2245 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2246 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2247 fold-const.h, wide-int.h, and inchash.h due to
2248 flattening of tree.h.
2249 * c-dump.c: Include hash-set.h, machmode.h,
2250 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2251 fold-const.h, wide-int.h, and inchash.h due to
2252 flattening of tree.h.
2253 * c-format.c: Include hash-set.h, machmode.h,
2254 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2255 fold-const.h, wide-int.h, inchash.h and real.h due to
2256 flattening of tree.h.
2257 * c-gimplify.c: Include hash-set.h, machmode.h,
2258 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2259 fold-const.h, wide-int.h, and inchash.h due to
2260 flattening of tree.h.
2261 * cilk.c: Ditto.
2262 * c-lex.c: Ditto.
2263 * c-omp.c: Ditto.
2264 * c-opts.c: Ditto.
2265 * c-pch.c: Ditto.
2266 * c-ppoutput.c: Ditto.
2267 * c-pragma.c: Ditto.
2268 * c-pretty-print.c: Ditto.
2269 * c-semantics.c: Ditto.
2270 * c-ubsan.c: Ditto.
2271 * stub-objc.c: Ditto.
2272
f5481fc4
JM
22732015-01-08 Jason Merrill <jason@redhat.com>
2274
2275 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2276 do_ubsan_in_current_function.
2277 (ubsan_maybe_instrument_reference_or_call): Likewise.
2278 * c-ubsan.h: Declare it.
2279
de35aa66
MS
22802015-01-08 Mike Stump <mikestump@comcast.net>
2281
2282 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2283
4a9a42ab
MP
22842015-01-07 Marek Polacek <polacek@redhat.com>
2285
2286 PR c/64440
2287 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2288 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2289
2f42e5de
TS
22902015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2291
2292 PR c++/31397
2293 * c.opt (Wsuggest-override): New option.
2294
5624e564
JJ
22952015-01-05 Jakub Jelinek <jakub@redhat.com>
2296
2297 Update copyright years.
2298
5bd012f8
MP
22992015-01-05 Marek Polacek <polacek@redhat.com>
2300
2301 PR c/64423
2302 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2303 parameter. Use it.
2304 * c-common.h (warn_array_subscript_with_type_char): Update
2305 declaration.
2306
a7fa8d18
ESR
23072014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2308
2309 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2310 Control macro with flag_sized_deallocation.
2311
3f8257db 23122014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2313
2314 * c.opt (Wdiscarded-array-qualifiers): New option.
2315
1f8d3e84
JJ
23162014-12-19 Jakub Jelinek <jakub@redhat.com>
2317
2318 PR preprocessor/63831
2319 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2320 and __has_cpp_attribute here.
2321 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2322 c_common_has_attribute.
2323 * c-common.h (c_common_has_attribute): New prototype.
2324 * c-lex.c (init_c_lex): Set cb->has_attribute to
2325 c_common_has_attribute instead of cb_has_attribute.
2326 (get_token_no_padding): New function.
2327 (cb_has_attribute): Renamed to ...
2328 (c_common_has_attribute): ... this. No longer static. Use
2329 get_token_no_padding, require ()s, don't build TREE_LIST
2330 unnecessarily, fix up formatting, adjust diagnostics, call
2331 init_attributes.
2332
20b06add
JM
23332014-12-15 Jason Merrill <jason@redhat.com>
2334
2335 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2336 (-Wsized-deallocation): New.
2337 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2338 to on in C++14 and up.
2339
94a073b2
JM
23402014-12-11 Jason Merrill <jason@redhat.com>
2341
acaa5911
JM
2342 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2343
94a073b2
JM
2344 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2345 we aren't complaining about VLAs.
2346
7fb66c15
MP
23472014-12-06 Marek Polacek <polacek@redhat.com>
2348
2349 PR tree-optimization/64183
2350 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2351 shift-expression if it is integer_type_node. Use types_compatible_p.
2352
b731b390
JJ
23532014-11-29 Jakub Jelinek <jakub@redhat.com>
2354
2355 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2356 last argument from create_tmp_var_raw and create_tmp_var calls.
2357 * cilk.c (gimplify_cilk_spawn): Likewise.
2358 * c-omp.c (c_finish_omp_atomic): Likewise.
2359
6a4da643
MP
23602014-11-28 Marek Polacek <polacek@redhat.com>
2361
2362 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2363 instead of unsigned_type_node.
2364
541e35a6
MP
23652014-11-28 Marek Polacek <polacek@redhat.com>
2366
2367 PR c/63862
2368 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2369 to op1_utype.
2370 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2371 expression to unsigned_type_node.
2372
dcc97066
MW
23732014-11-20 Mark Wielaard <mjw@redhat.com>
2374
2375 PR debug/38757
2376 * c-opts.c (set_std_c89): Set lang_hooks.name.
2377 (set_std_c99): Likewise.
2378 (set_std_c11): Likewise.
2379 (set_std_cxx98): Likewise.
2380 (set_std_cxx11): Likewise.
2381 (set_std_cxx14): Likewise.
2382 (set_std_cxx1z): Likewise.
2383
aa7da51a
JJ
23842014-11-21 Jakub Jelinek <jakub@redhat.com>
2385
2386 PR target/63764
2387 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2388 return type to bool.
009a3480 2389 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2390 (convert_vector_to_pointer_for_subscript): Change return type to
2391 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2392 and copy it into a TARGET_EXPR and use that instead of *vecp
2393 directly.
2394
538dd0b7
DM
23952014-11-19 David Malcolm <dmalcolm@redhat.com>
2396
2397 Merger of git branch "gimple-classes-v2-option-3".
2398 * ChangeLog.gimple-classes: New.
2399 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2400 from being just a vec<gimple> to a vec<gbind *>.
2401
c39a5e99
JJ
24022014-11-18 Jakub Jelinek <jakub@redhat.com>
2403
2404 PR sanitizer/63813
2405 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2406 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2407 get_pointer_alignment for non-pointers. Use ptype, or if it is
2408 reference type, corresponding pointer type, as type of kind
2409 argument.
2410 (ubsan_maybe_instrument_reference,
2411 ubsan_maybe_instrument_member_call): Adjust callers.
2412
8537a4a9
MP
24132014-11-15 Marek Polacek <polacek@redhat.com>
2414
2415 PR middle-end/63884
2416 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2417 for NULL fndecl.
2418 (extract_array_notation_exprs): Return for NULL node.
2419
2079956a
JM
24202014-11-12 Joseph Myers <joseph@codesourcery.com>
2421
2422 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2423 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2424
1304953e
JJ
24252014-11-12 Jakub Jelinek <jakub@redhat.com>
2426
2427 PR c/59708
2428 * c-common.c (check_builtin_function_arguments): Handle
2429 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2430
e5e44252
AK
24312014-11-10 Andi Kleen <ak@linux.intel.com>
2432
2433 PR c/60804
2434 * c-common.h (check_no_cilk): Declare.
2435 * cilk.c (get_error_location): New function.
2436 (check_no_cilk): Dito.
2437
e64b984d
AK
24382014-11-10 Andi Kleen <ak@linux.intel.com>
2439
2440 * cilk.c (recognize_spawn): Use expression location
2441 for error message.
2442
13c21655
PC
24432014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2444
2445 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2446
42fd12b1
ESR
24472014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2448
2449 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2450 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2451 (__cpp_range_based_for, __cpp_initializer_lists,
2452 __cpp_delegating_constructors, __cpp_nsdmi,
2453 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2454 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2455 __has_cpp_attribute.
2456 * c-lex.c (cb_has_attribute): New callback CPP function;
2457 (init_c_lex): Set has_attribute callback.
2458
6f450181
RB
24592014-11-04 Richard Biener <rguenther@suse.de>
2460
2461 * c-common.c (shorten_compare): Do not shorten mixed
2462 DFP and non-DFP compares.
2463
26f0e1d6
ESR
24642014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2465
2466 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2467 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2468 Commentary and rearrangement of tests.
2469 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2470 Commentary and rearrangement of tests.
2471 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2472 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2473
ef4bddc2
RS
24742014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2475
2476 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2477 enum from machine_mode.
2478
c582198b
AM
24792014-10-28 Andrew MacLeod <amacleod@redhat.com>
2480
adfac8df
JJ
2481 * c-common.c: Adjust include files.
2482 * c-gimplify.c: Ditto.
2483 * cilk.c: Ditto.
2484 * c-pragma.c: Ditto.
2485 * c-ubsan.c: Ditto.
c582198b 2486
60393bbc
AM
24872014-10-27 Andrew MacLeod <amacleod@redhat.com>
2488
2489 * c-gimplify.c: Adjust include files.
2490
d723bb7c
MLI
24912014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2492
2493 PR c++/53061
2494 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2495 c_common_initialize_diagnostics.
2496 * c-common.h: Likewise.
2497
90f3520e
MP
24982014-10-24 Marek Polacek <polacek@redhat.com>
2499
2500 PR c/56980
2501 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2502 print "struct"/"union"/"enum" for typedefed names.
2503
59d7607a
MP
25042014-10-23 Marek Polacek <polacek@redhat.com>
2505
2506 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2507 in unsigned type.
2508
d95a2703
JJ
25092014-10-22 Jakub Jelinek <jakub@redhat.com>
2510 Yury Gribov <y.gribov@samsung.com>
2511
2512 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2513 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2514 instead of flag_sanitize_recover as bool flag.
2515
8e6ef852
KY
25162014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2517
2518 * cilk.c: Revert previous change.
2519
948cf550
IZ
25202014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2521
2522 PR c/63307
2523 * cilk.c: Include vec.h.
2524 (struct cilk_decls): New structure.
2525 (wrapper_parm_cb): Split this function to...
2526 (fill_decls_vec): ...this...
2527 (create_parm_list): ...and this.
2528 (compare_decls): New function.
2529 (for_local_cb): Remove.
2530 (wrapper_local_cb): Ditto.
2531 (build_wrapper_type): For now first traverse and fill vector of
2532 declarations then sort it and then deal with sorted vector.
2533 (cilk_outline): Ditto.
2534 (declare_one_free_variable): Ditto.
2535
92574c7c
MP
25362014-10-17 Marek Polacek <polacek@redhat.com>
2537
2538 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2539 * c.opt (Wimplicit-int): Initialize to -1.
2540
83685514
AM
25412014-10-16 Andrew MacLeod <amacleod@redhat.com>
2542
2543 * c-pragma.c: Adjust include files.
2544 * c-semantics.c: Likewise.
2545
5b8300ea
DD
25462014-10-16 DJ Delorie <dj@redhat.com>
2547
2548 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2549 multiples of bytes.
2550
5f83e90b
JM
25512014-10-14 Jason Merrill <jason@redhat.com>
2552
2553 PR c++/63455
2554 * c-common.h (CPP_PREPARSED_EXPR): New.
2555 (N_CP_TTYPES): Adjust.
2556
d73326ca
MP
25572014-10-15 Marek Polacek <polacek@redhat.com>
2558
2559 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2560
78a7c317
DD
25612014-10-14 DJ Delorie <dj@redhat.com>
2562
2563 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2564 types, not just __int128.
2565 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2566 types, not just __int128.
2567 (cpp_atomic_builtins): Round pointer sizes up.
2568 (type_suffix): Use type precision, not specific types.
2569 * c-common.c (c_common_reswords): Remove __int128 special case.
2570 (c_common_type_for_size): Check for all __intN types, not just
2571 __int128.
2572 (c_common_type_for_mode): Likewise.
2573 (c_common_signed_or_unsigned_type): Likewise.
2574 (c_build_bitfield_integer_type): Likewise.
2575 (c_common_nodes_and_builtins): Likewise.
2576 (keyword_begins_type_specifier): Likewise.
2577 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2578 __intN variants.
2579
2a22f99c
TS
25802014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2581
2582 * c-common.c: Use hash_table instead of hashtab.
2583
2a8ef767
ESR
25842014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2585
adfac8df 2586 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2587 C++11 section.
2588
3c9aabbd
MG
25892014-10-03 Marc Glisse <marc.glisse@inria.fr>
2590
2591 PR c++/54427
2592 PR c++/57198
2593 PR c++/58845
2594 * c-common.c (warn_logical_operator): Punt for vectors.
2595
a15f7cb8
ESR
25962014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2597
2598 Implement SD-6: SG10 Feature Test Recommendations
2599 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2600 macros and the __has_header macro.
2601
8d0cf15e
JM
26022014-09-30 Jason Merrill <jason@redhat.com>
2603
dd5d5481
JM
2604 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2605 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2606 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2607
b752325e
JM
2608 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2609 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2610
8d0cf15e
JM
2611 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2612 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2613
083e891e
MP
26142014-09-24 Marek Polacek <polacek@redhat.com>
2615
2616 PR c/61405
2617 PR c/53874
2618 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2619
7861b648
AK
26202014-09-23 Andi Kleen <ak@linux.intel.com>
2621
2622 * c-common.c (handle_no_reorder_attribute): New function.
2623 (c_common_attribute_table): Add no_reorder attribute.
2624
9a79452d
JM
26252014-09-22 Joseph Myers <joseph@codesourcery.com>
2626
2627 * c-cppbuiltin.c (c_cpp_builtins): Define
2628 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2629 modes.
2630
dd69f047
JM
26312014-09-18 Joseph Myers <joseph@codesourcery.com>
2632
2633 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2634 for supported floating-point modes.
2635
737a4826
MLI
26362014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2637
2638 * c.opt (Wpsabi): Use LangEnabledBy.
2639 * c-opts.c (c_common_handle_option): Do not handle here.
2640
8cc4b7a2
JM
26412014-09-12 Joseph Myers <joseph@codesourcery.com>
2642
2643 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2644 macros for floating-point modes.
2645
179b5a55
MG
26462014-09-11 Marc Glisse <marc.glisse@inria.fr>
2647
2648 PR target/58757
2649 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2650 __*_DENORM_MIN__ without denormals.
2651
570a11fe
JJ
26522014-09-10 Jakub Jelinek <jakub@redhat.com>
2653
2654 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2655 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2656 ubsan_create_data callers.
2657 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2658 index is constant or BIT_AND_EXPR with constant mask and is
2659 small enough for the bound.
2660 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2661 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2662
b559c810
MLI
26632014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2664
2665 * c.opt: Add CppReason to various flags.
2666 (Wdate-time): Re-sort.
2667 * c-common.c: Include c-common.h earlier.
2668 (struct reason_option_codes_t): Delete.
2669 (c_option_controlling_cpp_error): Prefix global type and struct
2670 with cpp_.
2671
1ef33fd4
MLI
26722014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2673
2674 * c.opt (Wnormalized): New.
2675 (Wnormalized=): Use Enum and Reject Negative.
2676 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2677
66bb34c0
JM
26782014-09-08 Joseph Myers <joseph@codesourcery.com>
2679
2680 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2681 digits of floating-point modes if -fbuilding-libgcc.
2682
53d68b9f
JM
26832014-09-05 Joseph Myers <joseph@codesourcery.com>
2684
2685 * c-cppbuiltin.c (c_cpp_builtins): Also define
2686 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2687 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2688 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2689 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2690 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2691 __LIBGCC_STACK_GROWS_DOWNWARD__,
2692 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2693 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2694 __LIBGCC_DWARF_FRAME_REGISTERS__,
2695 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2696 __LIBGCC_STACK_POINTER_REGNUM__ and
2697 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2698 (builtin_define_with_value): Handle backslash-escaping in string
2699 macro values.
2700
f65586dc
RB
27012014-09-05 Richard Biener <rguenther@suse.de>
2702
2703 PR middle-end/63148
2704 * c-format.c (check_format_arg): Properly handle
2705 effectively signed POINTER_PLUS_EXPR offset.
2706
2b71f4a4
MLI
27072014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2708
2709 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2710 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2711 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2712 and Init.
2713 * c-opts.c (c_common_handle_option): Do not handle here.
2714 (sanitize_cpp_opts): Likewise.
2715 * c-common.c (struct reason_option_codes_t): Handle
2716 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2717
d2e4feca
MP
27182014-09-03 Marek Polacek <polacek@redhat.com>
2719
2720 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2721
9a771876
JJ
27222014-09-02 Jakub Jelinek <jakub@redhat.com>
2723 Balaji V. Iyer <balaji.v.iyer@intel.com>
2724 Igor Zamyatin <igor.zamyatin@intel.com>
2725
2726 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2727 * c-common.c (c_common_reswords): Added _Cilk_for.
2728 * c-common.h (enum rid): Added RID_CILK_FOR.
2729 (cilk_for_number_of_iterations): Add declaration.
2730 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2731 CILK_FOR.
2732 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2733 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2734
81b5d104
MLI
27352014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2736
2737 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2738 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2739 Wundef): Use CPP, Var and Init.
2740 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2741
b753b37b
MLI
27422014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2743
2744 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2745 * c-opts.c (c_common_handle_option): Do not handle here.
2746
028aee17
JM
27472014-08-25 Jason Merrill <jason@redhat.com>
2748
2749 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2750 -std=c++14 and -std=gnu++14, rather than the reverse.
2751 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2752 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2753 * c-common.h (cxx_dialect): Remove cxx1y.
2754
e4276ba5
ESR
27552014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2756
2757 * c-common.h (enum cxx_dialect): Add cxx14.
2758 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2759 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2760 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2761
a545cacd
JM
27622014-08-22 Jason Merrill <jason@redhat.com>
2763
2764 * c.opt (std=gnu++17): Fix alias.
2765
59ea0364
MP
27662014-08-22 Marek Polacek <polacek@redhat.com>
2767
2768 PR c++/62199
2769 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2770 check for vector types. Drop LHS argument.
2771 * c-common.h (warn_logical_not_parentheses): Adjust.
2772
596e808c
MLI
27732014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2774
2775 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2776 (Wmultichar): Likewise.
2777 (Wdate-time): Use C-family languages instead of Common. Use CPP
2778 and Var.
2779 * c-opts.c (c_common_handle_option): Do not handle the above
2780 options here.
2781 (sanitize_cpp_opts): Likewise.
2782
18767f65
MLI
27832014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2784
2785 PR fortran/44054
2786 * c-opts.c: Include tree-diagnostics.h.
2787 (c_diagnostic_finalizer): New.
2788 (c_common_initialize_diagnostics): Use it.
2789
b4413594
MLI
27902014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2791
2792 PR preprocessor/51303
2793 * c-common.c (struct reason_option_codes_t option_codes):
2794 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2795
43f9a13c
MLI
27962014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2797
2798 PR c/60975
2799 PR c/53063
2800 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2801 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2802 (c_common_post_options): Call init_global_opts_from_cpp.
2803 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2804
04159acf
MP
28052014-08-19 Marek Polacek <polacek@redhat.com>
2806
2807 PR c++/62153
2808 * c-common.c (maybe_warn_bool_compare): New function.
2809 * c-common.h (maybe_warn_bool_compare): Declare.
2810 * c.opt (Wbool-compare): New option.
2811
35aff4fb
MP
28122014-08-19 Marek Polacek <polacek@redhat.com>
2813
2814 * c.opt (Wc99-c11-compat): New option.
2815
177cce46
MP
28162014-08-19 Marek Polacek <polacek@redhat.com>
2817
2818 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2819 to warn_c90_c99_compat.
2820 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2821 to -1.
2822
6ae9194f
MLI
28232014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2824 Steven Bosscher <steven@gcc.gnu.org>
2825
2826 PR c/52952
2827 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2828 format_check_results.
2829 (check_function_format): Use true and add comment for boolean
2830 argument.
2831 (finish_dollar_format_checking): Use explicit location when warning.
2832 (check_format_info): Likewise.
2833 (check_format_arg): Set extra_arg_loc and format_string_loc.
2834 (check_format_info_main): Use explicit location when warning.
2835 (check_format_types): Pass explicit location.
2836 (format_type_warning): Likewise.
2837
8e54f6d3
MLI
28382014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2839
2840 PR fortran/44054
2841 * c-format.c: Handle Fortran flags.
2842
cd4e76fc
IZ
28432014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2844
2845 PR other/61962
2846 * array-notation-common.c (find_rank): Added handling for other
2847 types of references.
2848
f3bede71
MP
28492014-08-10 Marek Polacek <polacek@redhat.com>
2850
2851 PR c/51849
2852 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2853 * c.opt (Wc90-c99-compat): Add option.
2854
9f25a338
TS
28552014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2856
2857 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2858
62e4eb35
MP
28592014-08-03 Marek Polacek <polacek@redhat.com>
2860
2861 * c-common.c (check_case_value): Add location_t parameter. Use it.
2862 (c_add_case_label): Pass loc to check_case_value.
2863
b787e7a2
TS
28642014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2865
2866 * cilk.c: Use hash_map instead of pointer_map.
2867
6e2830c3
TS
28682014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2869
2870 * c-gimplify.c: Use hash_set instead of pointer_set.
2871
a7ee52fb
IZ
28722014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2873
2874 PR middle-end/61455
2875 * array-notation-common.c (extract_array_notation_exprs): Handling
2876 of DECL_EXPR added.
2877
944fa280
JJ
28782014-08-01 Jakub Jelinek <jakub@redhat.com>
2879
2880 * c-common.h (min_align_of_type): Removed prototype.
2881 * c-common.c (min_align_of_type): Removed.
2882 * c-ubsan.h (ubsan_maybe_instrument_reference,
2883 ubsan_maybe_instrument_member_call): New prototypes.
2884 * c-ubsan.c: Include stor-layout.h and builtins.h.
2885 (ubsan_maybe_instrument_reference_or_call,
2886 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2887 functions.
2888
b4dfdc11
MG
28892014-07-31 Marc Glisse <marc.glisse@inria.fr>
2890
2891 PR c++/60517
2892 * c.opt (-Wreturn-local-addr): Move to common.opt.
2893
a41844e5
JM
28942014-07-30 Jason Merrill <jason@redhat.com>
2895
2896 PR c++/61659
2897 PR c++/61687
2898 Revert:
2899 * c.opt (-fuse-all-virtuals): New.
2900
976d5a22
TT
29012014-07-30 Tom Tromey <tromey@redhat.com>
2902
2903 PR c/59855
2904 * c.opt (Wdesignated-init): New option.
2905 * c-common.c (c_common_attribute_table): Add "designated_init".
2906 (handle_designated_init): New function.
2907
cdc94aca
MP
29082014-07-24 Marek Polacek <polacek@redhat.com>
2909
2910 PR c/57653
2911 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2912
f41373b6
DS
29132014-07-16 Dodji Seketeli <dodji@redhat.com>
2914
2915 PR preprocessor/60723 - missing system-ness marks for macro tokens
2916 * c-ppoutput.c (struct print::prev_was_system_token): New data
2917 member.
2918 (init_pp_output): Initialize it.
2919 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2920 (do_line_change): Return a flag saying if a line marker was
2921 emitted or not.
2922 (scan_translation_unit): Detect if the system-ness of the token we
2923 are about to emit is different from the one of the previously
2924 emitted token. If so, emit a line marker. Avoid emitting useless
2925 adjacent line markers. Avoid emitting line markers for tokens
2926 originating from the expansion of built-in macros.
2927 (scan_translation_unit_directives_only): Adjust.
2928
4d661eaa
MP
29292014-07-15 Marek Polacek <polacek@redhat.com>
2930
2931 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2932 TYPE_MAX_VALUE is NULL.
2933
b108f48f
JJ
29342014-07-14 Jakub Jelinek <jakub@redhat.com>
2935
2936 PR middle-end/61294
2937 * c.opt (Wmemset-transposed-args): New warning.
2938
c0221884
JM
29392014-07-10 Jason Merrill <jason@redhat.com>
2940
2941 PR c++/61659
2942 PR c++/61687
2943 * c.opt (-fuse-all-virtuals): New.
2944
63dfbb95
RB
29452014-07-09 Richard Biener <rguenther@suse.de>
2946
2947 PR c-family/61741
2948 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2949 using unsigned arithmetic if overflow does not wrap instead of
2950 if overflow is undefined.
2951
773ec47f
MP
29522014-07-06 Marek Polacek <polacek@redhat.com>
2953
2954 PR c/6940
2955 * c.opt (Wsizeof-array-argument): New option.
2956
00a7ba58
JJ
29572014-07-03 Jakub Jelinek <jakub@redhat.com>
2958
b1726d6c 2959 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2960 comments->count <= 1, as comments->entries might be NULL.
2961
52ec0ea3
MP
29622014-07-01 Marek Polacek <polacek@redhat.com>
2963
2964 * c.opt (Wint-conversion): New option.
2965
d5c3d343
MP
29662014-07-01 Marek Polacek <polacek@redhat.com>
2967
2968 PR c/58286
2969 * c.opt (Wincompatible-pointer-types): New option.
2970
6e7ceb17
PC
29712014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2972
2973 PR c++/51400
2974 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2975 Do not discard TYPE_QUALS of type.
2976
da73100b
JM
29772014-06-26 Jason Merrill <jason@redhat.com>
2978
2979 * c-common.h (enum cxx_dialect): Add cxx1z.
2980 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2981 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2982
08eedf75
TJ
29832014-06-26 Teresa Johnson <tejohnson@google.com>
2984
2985 * c-common.h (get_dump_info): Declare.
2986 * c-gimplify.c (c_genericize): Use saved dump files.
2987 * c-opts.c (c_common_parse_file): Begin and end dumps
2988 once around parsing invocation.
2989 (get_dump_info): New function.
2990
7b56b2f8
MP
29912014-06-23 Marek Polacek <polacek@redhat.com>
2992 Andrew MacLeod <amacleod@redhat.com>
2993
2994 PR c/61553
2995 * c-common.c (get_atomic_generic_size): Don't segfault if the
2996 type doesn't have a size.
2997
0e37a2f3
MP
29982014-06-20 Marek Polacek <polacek@redhat.com>
2999
3000 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3001 (ubsan_walk_array_refs_r): New function.
3002 (c_genericize): Instrument array bounds.
3003 * c-ubsan.c: Include "internal-fn.h".
3004 (ubsan_instrument_division): Mark instrumented arrays as having
3005 side effects. Adjust ubsan_type_descriptor call.
3006 (ubsan_instrument_shift): Likewise.
3007 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3008 (ubsan_instrument_bounds): New function.
3009 (ubsan_array_ref_instrumented_p): New function.
3010 (ubsan_maybe_instrument_array_ref): New function.
3011 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3012 (ubsan_array_ref_instrumented_p): Declare.
3013 (ubsan_maybe_instrument_array_ref): Declare.
3014
30152014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3016
3017 PR lto/61123
3018 * c.opt (fshort-enums): Add to LTO.
3019 * c.opt (fshort-wchar): Likewise.
3020
5c3d09f7
MP
30212014-06-16 Marek Polacek <polacek@redhat.com>
3022
3023 PR c/60439
3024 * c.opt (Wswitch-bool): Add Var.
3025
9cf32741
JJ
30262014-06-12 Jakub Jelinek <jakub@redhat.com>
3027
3028 PR middle-end/61486
3029 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3030 #pragma omp target teams or
3031 #pragma omp {,target }teams distribute simd.
3032
62984918
JM
30332014-06-12 Jason Merrill <jason@redhat.com>
3034
3035 * c.opt (Wabi=, fabi-compat-version): New.
3036 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3037 (c_common_post_options): Handle flag_abi_compat_version default.
3038 Disallow -fabi-compat-version=1.
3039 * c-common.h (abi_version_crosses): New.
3040
f961457f
JH
30412014-06-11 Jan Hubicka <hubicka@ucw.cz>
3042
adfac8df 3043 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3044 section names that are no longer trees.
3045
92d28cbb
JJ
30462014-06-10 Jakub Jelinek <jakub@redhat.com>
3047
3048 PR fortran/60928
3049 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3050 (omp_pragmas): ... back here.
3051
742938c9
MP
30522014-06-05 Marek Polacek <polacek@redhat.com>
3053
3054 PR c/49706
3055 * c-common.c (warn_logical_not_parentheses): New function.
3056 * c-common.h (warn_logical_not_parentheses): Declare.
3057 * c.opt (Wlogical-not-parentheses): New option.
3058
9d548dfb
MP
30592014-06-04 Marek Polacek <polacek@redhat.com>
3060
3061 PR c/30020
3062 * c-common.c (check_case_bounds): Add location parameter.
3063 Use it.
3064 (c_add_case_label): Pass loc to check_case_bounds.
3065
fedfecef
MP
30662014-06-03 Marek Polacek <polacek@redhat.com>
3067
3068 PR c/60439
3069 * c.opt (Wswitch-bool): New option.
3070
f6a7cffc
TS
30712014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3072
040d18b6
TS
3073 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3074 Remove prototypes.
3075 (record_types_used_by_current_var_decl): Move prototype to where
3076 it belongs.
3077
f6a7cffc
TS
3078 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3079 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3080 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3081
632f2871
RS
30822014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3083
3084 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3085 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3086 void_zero_node.
3087 * c-pretty-print.c (pp_c_void_constant): New function.
3088 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3089 (c_pretty_printer::expression): Handle VOID_CST.
3090 * cilk.c (extract_free_variables): Likewise.
3091 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3092 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3093
766090c2
TS
30942014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3095
3096 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3097 * c-pragma.c (push_alignment): Adjust.
3098 (handle_pragma_push_options): Likewise.
3099
661a0813
MP
31002014-05-09 Marek Polacek <polacek@redhat.com>
3101
3102 PR c/50459
3103 * c-common.c (check_user_alignment): Return -1 if alignment is error
3104 node.
3105 (handle_aligned_attribute): Don't call default_conversion on
3106 FUNCTION_DECLs.
3107 (handle_vector_size_attribute): Likewise.
3108 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3109 (handle_sentinel_attribute): Call default_conversion and allow even
3110 integral types as an argument.
3111
2793eeab
MP
31122014-05-08 Marek Polacek <polacek@redhat.com>
3113
3114 PR c/61053
3115 * c-common.c (min_align_of_type): New function factored out from...
3116 (c_sizeof_or_alignof_type): ...here.
3117 * c-common.h (min_align_of_type): Declare.
3118
f827930a
MP
31192014-05-08 Marek Polacek <polacek@redhat.com>
3120
3121 PR c/61077
3122 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3123 parameter type of main.
3124
ca49b74e
DD
31252014-05-07 DJ Delorie <dj@redhat.com>
3126
3127 * c-cppbuiltin.c (print_bits_of_hex): New.
3128 (builtin_define_type_minmax): Print values using hex so as not to
3129 require a pre-computed list of string values.
3130
1d60af08
KZ
31312014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3132 Mike Stump <mikestump@comcast.net>
3133 Richard Sandiford <rdsandiford@googlemail.com>
3134
3135 * c-ada-spec.c: Include wide-int.h.
3136 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3137 (dump_generic_ada_node): Use wide-int interfaces.
3138 * c-common.c: Include wide-int-print.h.
3139 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3140 (pointer_int_sum): Use wide-int interfaces.
3141 (c_common_nodes_and_builtins): Use make_int_cst.
3142 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3143 (handle_alloc_size_attribute): Use wide-int interfaces.
3144 (get_nonnull_operand): Likewise.
3145 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3146 * c-lex.c: Include wide-int.h.
3147 (narrowest_unsigned_type): Take a widest_int rather than two
3148 HOST_WIDE_INTs.
3149 (narrowest_signed_type): Likewise.
3150 (interpret_integer): Update accordingly. Use wide-int interfaces.
3151 (lex_charconst): Use wide-int interfaces.
3152 * c-pretty-print.c: Include wide-int.h.
3153 (pp_c_integer_constant): Use wide-int interfaces.
3154 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3155 INT_CST_LT_UNSIGNED.
3156
b15458be
RB
31572014-05-06 Richard Biener <rguenther@suse.de>
3158
3159 * c-opts.c (c_common_post_options): For -freestanding,
3160 -fno-hosted and -fno-builtin disable pattern recognition
3161 if not enabled explicitely.
3162
6577374e
MP
31632014-05-02 Marek Polacek <polacek@redhat.com>
3164
3165 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3166
d00887e8
MP
31672014-05-01 Marek Polacek <polacek@redhat.com>
3168
3169 PR c/43245
3170 * c.opt (Wdiscarded-qualifiers): Add.
3171
f8ed5150
MP
31722014-04-30 Marek Polacek <polacek@redhat.com>
3173
3174 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3175 INT_MIN / -1 sanitization only for integer types.
3176
45484dcf
MP
31772014-04-25 Marek Polacek <polacek@redhat.com>
3178
3179 PR c/18079
3180 * c-common.c (handle_noinline_attribute): Warn if the attribute
3181 conflicts with always_inline attribute.
3182 (handle_always_inline_attribute): Warn if the attribute conflicts
3183 with noinline attribute.
3184
38e514c0
MP
31852014-04-25 Marek Polacek <polacek@redhat.com>
3186
3187 PR c/60156
3188 * c-common.c (check_main_parameter_types): Warn about variadic main.
3189
44875f92
MS
31902014-04-24 Mike Stump <mikestump@comcast.net>
3191
3192 * c.opt (Wshadow-ivar): Default to on.
3193
dcaaa5a0
DP
31942014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3195
3196 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3197
c07d7c02
MP
31982014-04-23 Marek Polacek <polacek@redhat.com>
3199
3200 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3201
1c33c9b7
JJ
32022014-04-22 Jakub Jelinek <jakub@redhat.com>
3203
3204 PR sanitizer/60275
3205 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3206 if flag_sanitize_undefined_trap_on_error.
3207 (ubsan_instrument_division, ubsan_instrument_shift,
3208 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3209 if !flag_sanitize_recover.
3210
793c625f
MG
32112014-04-22 Marc Glisse <marc.glisse@inria.fr>
3212
3213 PR libstdc++/43622
3214 * c-common.c (registered_builtin_types): Make non-static.
3215 * c-common.h (registered_builtin_types): Declare.
3216
b0f1bf36
RB
32172014-04-14 Richard Biener <rguenther@suse.de>
3218 Marc Glisse <marc.glisse@inria.fr>
3219
3220 PR c/60819
3221 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3222 apply may-alias the scalar pointer type when applicable.
3223
3b07fa4a
IZ
32242014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3225
3226 PR middle-end/60467
3227 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3228 as possible argument for Cilk_spawn.
3229
cbbd2b1c
TB
32302014-04-11 Tobias Burnus <burnus@net-b.de>
3231
3232 PR c/60194
3233 * c.opt (Wformat-signedness): Add
3234 * c-format.c(check_format_types): Use it.
3235
6415bd5d
JM
32362014-04-11 Jason Merrill <jason@redhat.com>
3237
3238 PR c++/57926
3239 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3240 default_conversion for an array argument.
3241
6525783a
MP
32422014-04-08 Marek Polacek <polacek@redhat.com>
3243
3244 PR sanitizer/60745
3245 * c-ubsan.c: Include asan.h.
3246 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3247
880a467b
NS
32482014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3249
3250 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3251
7b59ff2d
MP
32522014-04-02 Marek Polacek <polacek@redhat.com>
3253
3254 * c-common.h (c_expand_expr): Remove declaration.
3255
8edbfaa6
JJ
32562014-03-28 Jakub Jelinek <jakub@redhat.com>
3257
3258 PR c++/60689
3259 * c-common.c (add_atomic_size_parameter): When creating new
3260 params vector, push the size argument first.
3261
07d72e1d
JJ
32622014-03-26 Jakub Jelinek <jakub@redhat.com>
3263
3264 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3265 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3266 ubsan_create_data callers.
3267
b35e0fa0
JJ
32682014-03-22 Jakub Jelinek <jakub@redhat.com>
3269
3270 PR debug/60603
3271 * c-opts.c (c_finish_options): Restore cb_file_change call to
3272 <built-in>.
3273
39a1ebb3
JJ
32742014-03-13 Jakub Jelinek <jakub@redhat.com>
3275
3276 PR middle-end/36282
3277 * c-pragma.c (apply_pragma_weak): Only look at
3278 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3279 DECL_ASSEMBLER_NAME_SET_P (decl).
3280 (maybe_apply_pending_pragma_weaks): Exit early if
3281 vec_safe_is_empty (pending_weaks) rather than only when
3282 !pending_weaks.
3283 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3284 set assembler name back to NULL afterwards.
3285
a07f6ed2
JM
32862014-03-11 Jason Merrill <jason@redhat.com>
3287
3288 * c.opt: Add -std=gnu++14.
3289
75b107f5
IB
32902014-03-11 Ian Bolton <ian.bolton@arm.com>
3291
3292 * c-opts.c (c_common_post_options): Don't override
3293 -ffp-contract=fast if unsafe-math-optimizations is on.
3294
f42c637e
PM
32952014-03-08 Paulo Matos <paulo@matos-sorge.com>
3296
3297 * c.opt: Enable LTO FE for fshort-double.
3298
70e24808
JM
32992014-03-07 Jason Merrill <jason@redhat.com>
3300
3301 * c.opt: Add -std=c++14.
3302
3af9c5e9
MP
33032014-03-06 Marek Polacek <polacek@redhat.com>
3304
3305 PR c/60197
3306 * cilk.c (contains_cilk_spawn_stmt): New function.
3307 (contains_cilk_spawn_stmt_walker): Likewise.
3308 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3309 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3310
b3bdf019
JJ
33112014-03-03 Jakub Jelinek <jakub@redhat.com>
3312
3313 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3314 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3315 even when flag_preprocess_only.
3316
ca7e759d
JM
33172014-02-26 Jason Merrill <jason@redhat.com>
3318
3319 PR c++/59231
3320 PR c++/11586
3321 * c-common.c (shorten_compare): Don't check
3322 c_inhibit_evaluation_warnings.
3323
28e41874
JJ
33242014-02-19 Jakub Jelinek <jakub@redhat.com>
3325
cca615af
JJ
3326 PR c/37743
3327 * c-common.c (c_common_nodes_and_builtins): When initializing
3328 c_uint{16,32,64}_type_node, also set corresponding
3329 uint{16,32,64}_type_node to the same value.
3330
28e41874
JJ
3331 PR c++/60267
3332 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3333 for PRAGMA_IVDEP if flag_preprocess_only.
3334
c2bf53a1
JJ
33352014-02-12 Jakub Jelinek <jakub@redhat.com>
3336
3337 PR c/60101
3338 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3339 if false, add ADD itself, rather than vice versa.
3340 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3341 copy. For SAVE_EXPR, only call merge_tlist once.
3342
8fcbce72
JJ
33432014-02-08 Jakub Jelinek <jakub@redhat.com>
3344
3345 PR middle-end/60092
3346 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3347 and tree_to_uhwi.
3348 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3349 functions.
3350 (c_common_attribute_table): Add alloc_align and assume_aligned
3351 attributes.
3352
0a756a3f
MP
33532014-02-06 Marek Polacek <polacek@redhat.com>
3354
3355 PR c/60087
3356 * c-common.c (warn_for_sign_compare): Call warning_at with location
3357 instead of warning.
3358
7ec4847a
MP
33592014-02-05 Marek Polacek <polacek@redhat.com>
3360
3361 PR c/53123
3362 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3363 statement.
3364
66f20604
MP
33652014-02-04 Marek Polacek <polacek@redhat.com>
3366
3367 PR c/60036
3368 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3369 SAVE_EXPR.
3370
5d77fb19
MG
33712014-02-03 Marc Glisse <marc.glisse@inria.fr>
3372
3373 PR c++/53017
3374 PR c++/59211
3375 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3376 handle_vector_size_attribute, handle_nonnull_attribute): Call
3377 default_conversion on the attribute argument.
3378 (handle_nonnull_attribute): Increment the argument number.
3379
81e5eca8
MP
33802014-01-31 Marek Polacek <polacek@redhat.com>
3381
3382 PR c/59963
3383 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3384 build_function_call_vec.
3385 (resolve_overloaded_builtin): Likewise.
3386 * c-common.h (build_function_call_vec): Adjust declaration.
3387
68fca595
MP
33882014-01-30 Marek Polacek <polacek@redhat.com>
3389
3390 PR c/59940
3391 * c-common.h (unsafe_conversion_p): Adjust declaration.
3392 (warnings_for_convert_and_check): Likewise.
3393 (convert_and_check): Likewise.
3394 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3395 expansion_point_location_if_in_system_header on it.
3396 (warnings_for_convert_and_check): Add location parameter. Call
3397 expansion_point_location_if_in_system_header on it. Use it.
3398 (convert_and_check): Add location parameter. Use it.
3399 (conversion_warning): Likewise.
3400 (c_add_case_label): Adjust convert_and_check calls.
3401 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3402
b72271b9
BI
34032014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3404
3405 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3406 flag_cilkplus.
3407 * c-pragma.c (init_pragma): Likewise.
3408 * c.opt: Likewise.
3409
393e8e8b
MP
34102014-01-23 Marek Polacek <polacek@redhat.com>
3411
3412 PR c/59846
3413 * c-common.c (shorten_compare): Add location_t parameter.
3414 * c-common.h (shorten_binary_op): Adjust declaration.
3415
f04dda30
MP
34162014-01-23 Marek Polacek <polacek@redhat.com>
3417
3418 PR c/58346
3419 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3420 * c-common.h: Declare it.
3421
621955cb
EB
34222014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3423
3424 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3425 * c-ada-spec.c (dump_ads): Likewise.
3426 (cpp_check): Likewise.
3427 (dump_ada_specs): Likewise.
3428
34292014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3430
3431 PR c++/49718
3432 * c-common.c (handle_no_instrument_function_attribute): Allow
3433 no_instrument_function attribute in class member
3434 definition/declaration.
3435
241f845a
JJ
34362014-01-15 Jakub Jelinek <jakub@redhat.com>
3437
3438 PR c/58943
3439 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3440 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3441 being COMPOUND_EXPR.
3442 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3443 operand a SAVE_EXPR and second MODIFY_EXPR.
3444
e83b8e2e
JJ
34452014-01-09 Jakub Jelinek <jakub@redhat.com>
3446
3447 PR target/58115
3448 * c-pch.c (c_common_write_pch): Call
3449 prepare_target_option_nodes_for_pch.
3450
23a5b65a
RS
34512014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3452
3453 Update copyright years
3454
f9030485
RS
34552014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3456
3457 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3458 the copyright notice.
3459
f2aa696b
EB
34602013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3461
3462 * c-ada-spec.c (print_constructor): New function.
3463 (print_destructor): Retrieve the origin of the destructor.
3464 (print_ada_declaration): Revamp handling of constructors/destructors.
3465
3f8257db 34662013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3467 Bill Maddox <maddox@google.com>
3468 Jason Merrill <jason@redhat.com>
3469
3470 * c.opt: Add -fdeclone-ctor-dtor.
3471 * c-opts.c (c_common_post_options): Default to on iff -Os.
3472
41958c28
BI
34732013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3474
3475 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3476 attribute.
3477 * c-pragma.h (enum pragma_cilk_clause): Remove.
3478 (enum pragma_omp_clause): Added the following fields:
3479 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3480 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3481 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3482 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3483 PRAGMA_CILK_CLAUSE_UNIFORM.
3484
b1726d6c 3485
12893402
BI
34862013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3487
3488 * cilk.c (cilk_outline): Made this function non-static.
3489 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3490 (create_cilk_wrapper): Added a new parameter: a function pointer.
3491 (c_install_body_w_frame_cleanup): Remove
3492 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3493 * c-common.h (cilk_outline): New prototype.
3494 (gimplify_cilk_spawn): Removed two parameters.
3495 (cilk_install_body_with_frame_cleanup): New prototype.
3496 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3497 CILK_SPAWN_STMT case.
3498
085b42ed
BS
34992013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3500
2ce064c3
BS
3501 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3502
085b42ed
BS
3503 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3504 (int_array_type_node): Remove.
3505 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3506
9e36c9ed
MP
35072013-12-05 Marek Polacek <polacek@redhat.com>
3508
3509 PR c/52023
3510 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3511 [ADJUST_FIELD_ALIGN].
3512
296674db
JM
35132013-12-04 Joseph Myers <joseph@codesourcery.com>
3514
3515 PR c/52023
3516 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3517 and check field alignment if set.
3518 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3519 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3520
b1726d6c 35212013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3522 Marek Polacek <polacek@redhat.com>
3523
3524 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3525 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3526
d7947e19
L
35272013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3528
3529 PR c/59309
3530 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3531 arguments.
3532
fad7652e
JJ
35332013-11-29 Jakub Jelinek <jakub@redhat.com>
3534
3535 PR c/59280
3536 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3537 goto invalid. If it is error_mark_node, don't issue further
3538 diagnostics.
3539
8b5e1202
SO
35402013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3541
3542 * c.opt (Wopenmp-simd): New.
3543
0a508bb6
JJ
35442013-11-22 Jakub Jelinek <jakub@redhat.com>
3545
3546 * c-ubsan.h (ubsan_instrument_return): New prototype.
3547 * c-ubsan.c (ubsan_instrument_return): New function.
3548
2fb9a547
AM
35492013-11-22 Andrew MacLeod <amacleod@redhat.com>
3550
3551 * c-common.c: Add required include files from gimple.h.
3552 * c-gimplify.c: Likewise
3553 * cilk.c: Likewise
3554
8400e75e
DM
35552013-11-22 David Malcolm <dmalcolm@redhat.com>
3556
3557 * c-common.c (unsafe_conversion_p): Remove use of
3558 EXPR_LOC_OR_HERE macro.
3559 (conversion_warning): Likewise.
3560 (warnings_for_convert_and_check): Likewise.
3561 (warn_for_collisions_1): Likewise.
3562 (shorten_compare): Likewise, and remove use of in_system_header
3563 macro, using the location from the former.
3564 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3565 (cb_def_pragma): Remove use of in_system_header macro.
3566 (lex_string): Likewise.
3567 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3568
eb1ce453
KZ
35692013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3570 Mike Stump <mikestump@comcast.net>
3571 Richard Sandiford <rdsandiford@googlemail.com>
3572
3573 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3574 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3575 tree_fits_shwi_p or tree_fits_uhwi_p.
3576 (dump_generic_ada_node): Likewise.
3577 * c-format.c (check_format_arg): Likewise.
3578 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3579
6b3b8c27
KZ
35802013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3581
3582 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3583
49b0aa18
JC
35842013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3585
3586 PR c/53001
3587 * c-common.c (unsafe_conversion_p): Make this function
3588 return an enumeration with more detail.
3589 (conversion_warning): Use the new return type of
3590 unsafe_conversion_p to separately warn either about conversions
3591 that lower floating point number precision or about the other
3592 kinds of conversions.
3593 * c-common.h (enum conversion_safety): New enumeration.
3594 (unsafe_conversion_p): switching return type to
3595 conversion_safety enumeration.
3596 * c.opt: Adding new warning -Wfloat-conversion and
3597 enabling it with -Wconversion.
3598
b826515a
BS
35992013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3600
3601 * c-opts.c: Include plugin.h.
3602 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3603
b9a55b13
MP
36042013-11-19 Marek Polacek <polacek@redhat.com>
3605
3606 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3607 call.
3608 (ubsan_instrument_shift): Likewise.
3609 (ubsan_instrument_vla): Likewise.
3610
7d362f6c
RS
36112013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3612
3613 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3614 cast to unsigned type.
3615
386b1f1f
RS
36162013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3617
3618 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3619 tree_low_cst.
3620 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3621 rather than tree_low_cst.
3622
ae7e9ddd
RS
36232013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3624
3625 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3626 tree_to_uhwi throughout.
3627
9439e9a1
RS
36282013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3629
3630 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3631 tree_low_cst (..., 0) with tree_to_shwi throughout.
3632
cc269bb6
RS
36332013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3634
3635 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3636 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3637
9541ffee
RS
36382013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3639
3640 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3641 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3642
c02065fc
AH
36432013-11-15 Aldy Hernandez <aldyh@redhat.com>
3644
3645 * c-cilkplus.c: New file.
3646 * c-common.c (readonly_error): Add location argument.
3647 * c-common.h (readonly_error): Same.
3648 (c_finish_cilk_clauses): Protoize.
3649 (c_check_cilk_loop): Same.
3650 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3651 Do not fail on error_mark_node.
3652 Abstract increment canonicalization to here...
3653 (c_omp_for_incr_canonicalize_ptr): New.
3654 c-pragma.c (init_pragma): Register "simd" pragma.
3655 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3656 (enum pragma_cilk_clause): New.
3657
9cc65f15
RS
36582013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3659
3660 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3661 wchar_type and host_integerp checks.
3662
18f429e2
AM
36632013-11-14 Andrew MacLeod <amacleod@redhat.com>
3664
3665 * c-common.c: Likewise.
3666 * c-gimplify.c: Likewise.
3667 * cilk.c: Likewise.
3668
d8a2d370
DN
36692013-11-14 Diego Novillo <dnovillo@google.com>
3670
3671 * c-common.c: Include fold-const.h.
3672 Include stor-layout.h.
3673 Include calls.h.
3674 Include stringpool.h.
3675 Include attribs.h.
3676 Include varasm.h.
3677 Include trans-mem.h.
3678 * c-cppbuiltin.c: Include stor-layout.h.
3679 Include stringpool.h.
3680 * c-format.c: Include stringpool.h.
3681 * c-lex.c: Include stringpool.h.
3682 Include stor-layout.h.
3683 * c-pragma.c: Include stringpool.h.
3684 Include attribs.h.
3685 Include varasm.h.
3686 Include gcc-symtab.h.
3687 * c-pretty-print.c: Include stor-layout.h.
3688 Include attribs.h.
3689 * cilk.c: Include stringpool.h.
3690 Include calls.h.
3691
38b7bc7f
JM
36922013-11-13 Joseph Myers <joseph@codesourcery.com>
3693
3694 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3695 * c-common.c (c_common_reswords): Add __auto_type.
3696 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3697
45b0be94
AM
36982013-11-12 Andrew MacLeod <amacleod@redhat.com>
3699
18f429e2
AM
3700 * c-common.c: Include gimplify.h.
3701 * c-gimplify.c: Likewise.
3702 * cilk.c: Likewise.
3703 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3704 * c-ubsan.c: Don't include gimple.h.
45b0be94 3705
582d9b50
JM
37062013-11-12 Joseph Myers <joseph@codesourcery.com>
3707
3708 * c-common.c (c_common_reswords): Add _Thread_local.
3709
6b28e197
JM
37102013-11-09 Joseph Myers <joseph@codesourcery.com>
3711
3712 * c-common.c (atomic_size_supported_p): New function.
3713 (resolve_overloaded_atomic_exchange)
3714 (resolve_overloaded_atomic_compare_exchange)
3715 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3716 Use it instead of comparing size with a local list of sizes.
3717
267bac10
JM
37182013-11-07 Andrew MacLeod <amacleod@redhat.com>
3719 Joseph Myers <joseph@codesourcery.com>
3720
3721 * c-common.h (enum rid): Add RID_ATOMIC.
3722 * c-common.c (c_common_reswords): Add _Atomic.
3723 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3724 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3725 * c-format.c (check_format_types): Check for extra _Atomic
3726 qualifiers in format argument.
3727 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3728 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3729
5157b91e
TB
37302013-11-06 Tobias Burnus <burnus@net-b.de>
3731
3732 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3733
6dbe0958
JM
37342013-11-06 Joseph Myers <joseph@codesourcery.com>
3735
3736 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3737 standards modes.
3738 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3739 to mean lack of IEEE 754 support.
3740
e8ff5196
TB
37412013-11-05 Tobias Burnus <burnus@net-b.de>
3742
3743 * c.opt (-Wdate-time): New option
3744 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3745
254a0760
JM
37462013-11-05 Joseph Myers <joseph@codesourcery.com>
3747
3748 * c-cppbuiltin.c (cpp_iec_559_value): Test
3749 flag_excess_precision_cmdline not flag_excess_precision.
3750
6d7f7e0a
TB
37512013-11-05 Tobias Burnus <burnus@net-b.de>
3752
3753 * c.opt (fopenmp-simd): New option.
3754 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3755 (omp_pragmas): ... this new struct.
3756 (c_pp_lookup_pragma): Also walk omp_pragmas.
3757 (init_pragma): Init pragmas for -fopenmp-simd.
3758
55a7f02f
MP
37592013-11-04 Marek Polacek <polacek@redhat.com>
3760
3761 PR c++/58979
3762 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3763
9193fb05
JM
37642013-11-04 Joseph Myers <joseph@codesourcery.com>
3765
3766 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3767 New functions.
3768 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3769
94159ecf
EB
37702013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3771
3772 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3773 (dump_ada_specs): Adjust prototype of second callback.
3774 * c-ada-spec.c (cpp_check): New global variable.
3775 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3776 (print_generic_ada_decl): Likewise.
3777 (has_static_fields): Change return type to bool and add guard.
3778 (has_nontrivial_methods): New predicate.
3779 (is_tagged_type): Change return type to bool.
3780 (separate_class_package): Call has_nontrivial_methods.
3781 (pp_ada_tree_identifier): Minor tweaks.
3782 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3783 (dump_ada_array_domains): Likewise.
3784 (dump_ada_array_type): Likewise.
3785 (dump_template_types): Remove cpp_check parameter and do not pass it to
3786 dump_generic_ada_node.
3787 (dump_ada_template): Likewise.
3788 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3789 recursively.
3790 (print_ada_methods): Change return type to integer. Remove cpp_check
3791 parameter and do not pass it down.
3792 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3793 dump_generic_ada_node.
3794 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3795 accessing methods.
3796 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3797 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3798 value of print_ada_methods.
3799 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3800 Set cpp_check to it before invoking dump_ada_nodes.
3801 (dump_ada_specs): Likewise.
3802
b906f4ca
MP
38032013-11-03 Marek Polacek <polacek@redhat.com>
3804
3805 * c-ubsan.c: Don't include hash-table.h.
3806 (ubsan_instrument_vla): New function.
3807 * c-ubsan.h: Declare it.
3808
5e20cdc9
DM
38092013-10-31 David Malcolm <dmalcolm@redhat.com>
3810
3811 Automated part of renaming of symtab_node_base to symtab_node.
3812
3813 Patch autogenerated by rename_symtab.py from
3814 https://github.com/davidmalcolm/gcc-refactoring-scripts
3815 revision 58bb219cc090b2f4516a9297d868c245495ee622
3816
3817 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3818 symtab_node_base to symtab_node.
3819
7057e645
ESR
38202013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3821
3822 Implement C++14 digit separators.
3823 * c-lex.c (interpret_float): Remove digit separators from scratch string
3824 before building real literal.
3825
193ea7bc
JJ
38262013-10-30 Jakub Jelinek <jakub@redhat.com>
3827
3828 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3829
939b37da
BI
38302013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3831
3832 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3833 fields.
3834 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3835 enabled.
3836 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3837 (insert_cilk_frame): New prototype.
3838 (cilk_init_builtins): Likewise.
3839 (gimplify_cilk_spawn): Likewise.
3840 (c_cilk_install_body_w_frame_cleanup): Likewise.
3841 (cilk_detect_spawn_and_unwrap): Likewise.
3842 (cilk_set_spawn_marker): Likewise.
3843 (build_cilk_sync): Likewise.
3844 (build_cilk_spawn): Likewise.
3845 * cilk.c: New file.
3846
67348ccc
DM
38472013-10-29 David Malcolm <dmalcolm@redhat.com>
3848
3849 Patch autogenerated by refactor_symtab.py from
3850 https://github.com/davidmalcolm/gcc-refactoring-scripts
3851 revision 58bb219cc090b2f4516a9297d868c245495ee622
3852
3853 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3854 to a true class hierarchy.
3855 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3856
d570872d
RS
38572013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3858
3859 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3860
98906124
JL
38612013-10-26 Jeff Law <law@redhat.com>
3862
adfac8df
JJ
3863 * c-common.c (c_define_builtins): Remove mudflap support.
3864 * c.opt: Ignore and warn for mudflap options.
98906124 3865
d73749df 38662013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3867
3868 PR other/33426
3869 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3870 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3871
3f04b1bb
JM
38722013-10-23 Jason Merrill <jason@redhat.com>
3873
3874 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3875
acf0174b
JJ
38762013-10-11 Jakub Jelinek <jakub@redhat.com>
3877
acd15a28
JJ
3878 * c-common.h (omp_clause_mask::operator !=): New method.
3879 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3880 instead of if (mask & something) tests everywhere.
3881
acf0174b
JJ
3882 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3883 201307 instead of 201107.
3884 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3885 (c_common_attribute_table): Add "omp declare target" and
3886 "omp declare simd" attributes.
3887 (handle_omp_declare_target_attribute,
3888 handle_omp_declare_simd_attribute): New functions.
3889 * c-omp.c: Include c-pragma.h.
3890 (c_finish_omp_taskgroup): New function.
3891 (c_finish_omp_atomic): Add swapped argument, if true,
3892 build the operation first with rhs, lhs arguments and use NOP_EXPR
3893 build_modify_expr.
3894 (c_finish_omp_for): Add code argument, pass it down to make_code.
3895 (c_omp_split_clauses): New function.
3896 (c_split_parallel_clauses): Removed.
3897 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3898 c_omp_declare_simd_clauses_to_decls): New functions.
3899 * c-common.h (omp_clause_mask): New type.
3900 (OMP_CLAUSE_MASK_1): Define.
3901 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3902 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3903 omp_clause_mask::operator |, omp_clause_mask::operator &,
3904 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3905 omp_clause_mask::operator ==): New methods.
3906 (enum c_omp_clause_split): New.
3907 (c_finish_omp_taskgroup): New prototype.
3908 (c_finish_omp_atomic): Add swapped argument.
3909 (c_finish_omp_for): Add code argument.
3910 (c_omp_split_clauses): New prototype.
3911 (c_split_parallel_clauses): Removed.
3912 (c_omp_declare_simd_clauses_to_numbers,
3913 c_omp_declare_simd_clauses_to_decls): New prototypes.
3914 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3915 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3916 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3917 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3918 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3919 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3920 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3921 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3922 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3923 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3924 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3925 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3926 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3927 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3928 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3929 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3930 PRAGMA_OMP_CLAUSE_UNIFORM.
3931
826cacfe
MG
39322013-10-09 Marc Glisse <marc.glisse@inria.fr>
3933
3934 PR tree-optimization/20318
3935 * c-common.c (handle_returns_nonnull_attribute): New function.
3936 (c_common_attribute_table): Add returns_nonnull.
3937
2284b034
MG
39382013-10-03 Marc Glisse <marc.glisse@inria.fr>
3939
3940 PR c++/19476
3941 * c.opt (fcheck-new): Move to common.opt.
3942
b56e9788
MP
39432013-09-25 Marek Polacek <polacek@redhat.com>
3944 Jakub Jelinek <jakub@redhat.com>
3945
3946 PR sanitizer/58413
3947 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3948 an expression if we can prove it is correct.
3949 (ubsan_instrument_division): Likewise. Remove unnecessary
3950 check.
3951
ce6923c5
MP
39522013-09-18 Marek Polacek <polacek@redhat.com>
3953
3954 PR sanitizer/58411
3955 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3956 Declare it.
3957 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3958
fb5610fb
IS
39592013-09-14 Iain Sandoe <iain@codesourcery.com>
3960
3961 PR target/48094
3962 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3963 fobjc-gc, freplace-objc-classes): Accept for LTO.
3964
88b0e79e
JC
39652013-09-13 Jacek Caban <jacek@codeweavers.com>
3966
3967 * c-target.def: New hook
3968
c9b0866a
PC
39692013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3970
3971 PR c++/43452
3972 * c.opt (Wdelete-incomplete): Add.
3973
0af94e6f
JR
39742013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3975
3976 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3977 (vector_types_compatible_elements_p): New function.
3978 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3979 declaration.
3980 (vector_types_compatible_elements_p): Declare.
3981
7c26172c
GDR
39822013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3983
3984 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3985 a virtual member function.
3986 (pp_simple_type_specifier): Remove.
3987 (pp_c_type_specifier): Likewise.
3988 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3989 Rename from pp_c_type_specifier. Adjust.
3990 (c_pretty_printer::c_pretty_printer): Do not assign to
3991 simple_type_specifier.
3992
20059c8b
GDR
39932013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3994
3995 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3996 member function.
3997 (c_pretty_printer::storage_class_specifier): Likewise.
3998 (c_pretty_printer::initializer): Likewise.
3999 (pp_declaration): Remove.
4000 (pp_declaration_specifiers): Likewise.
4001 (pp_abstract_declarator): Likewise.
4002 (pp_declarator): Likewise.
4003 (pp_type_id): Likewise.
4004 (pp_statement): Likewise.
4005 (pp_constant): Likewise.
4006 (pp_id_expression): Likewise.
4007 (pp_primary_expression): Likewise.
4008 (pp_unary_expression): Likewise.
4009 (pp_multiplicative_expression): Likewise.
4010 (pp_conditional_expression): Likewise.
4011 (pp_assignment_expression): Likewise.
4012 (pp_expression): Likewise.
4013 (pp_c_type_id): Likewise.
4014 (pp_c_storage_class_specifier): Likewise.
4015 * c-pretty-print.c (pp_c_type_cast): Tidy.
4016 (pp_c_pointer): Likewise.
4017 (pp_c_type_specifier): Likewise.
4018 (pp_c_parameter_type_list): Likewise.
4019 (pp_c_function_definition): Likewise.
4020 (pp_c_init_declarator): Likewise.
4021 (pp_c_initializer_list): Likewise.
4022 (pp_c_constructor_elts): Likewise.
4023 (c_pretty_printer::direct_abstract_declarator): Likewise.
4024 (c_pretty_printer::declaration_specifiers): Likewise.
4025 (c_pretty_printer::primary_expression): Likewise.
4026 (c_pretty_printer::postfix_expression): Likewise.
4027 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4028 (c_pretty_printer::storage_class_specifier): Rename from
4029 pp_c_storage_class_specifier.
4030 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4031 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4032 storage_class_specifier, initializer, offset_list, flags.
4033
de5a5fa1
MP
40342013-08-30 Marek Polacek <polacek@redhat.com>
4035
4036 * c-ubsan.c: New file.
4037 * c-ubsan.h: New file.
4038
8f0e4d72
GDR
40392013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4040
4041 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4042 member function.
4043 (c_pretty_printer::declaration_specifiers): Likewise.
4044 (c_pretty_printer::declarator): Likewise.
4045 (c_pretty_printer::abstract_declarator): Likewise.
4046 (c_pretty_printer::direct_abstract_declarator): Likewise.
4047 (c_pretty_printer::direct_declarator): Likewise.
4048 (c_pretty_printer::function_specifier): Likewise.
4049 (pp_declaration): Adjust.
4050 (pp_declaration_specifiers): Likewise.
4051 (pp_abstract_declarator): Likewise.
4052 (pp_direct_declarator): Likewise.
4053 (pp_function_specifier): Likewise.
4054 (pp_direct_abstract_declarator): Remove as unused.
4055 (pp_c_declaration): Remove.
4056 (pp_c_declaration_specifiers): Likewise.
4057 (pp_c_declarator): Likewise.
4058 (pp_c_direct_declarator): Likewise.
4059 (pp_c_function_specifier): Likewise.
4060 (pp_c_direct_abstract_declarator): Likewise.
4061 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4062 from pp_c_abstract_declarator. Adjust.
4063 (c_pretty_printer::direct_abstract_declarator): Rename from
4064 pp_c_direct_abstract_declarator. Adjust.
4065 (c_pretty_printer::function_specifier): Rename from
4066 pp_c_function_specifier. Adjust.
4067 (c_pretty_printer::declaration_specifiers): Rename from
4068 pp_c_declaration_specifiers. Adjust.
4069 (c_pretty_printer::direct_declarator): Rename from
4070 pp_c_direct_declarator. Adjust.
4071 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4072 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4073 (c_pretty_printer::c_pretty_printer): Do not assign to
4074 declaration, declaration_specifiers, declarator,
4075 direct_declarator, direct_abstract_declarator, function_specifier.
4076
00d34d3a
GDR
40772013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4078
4079 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4080 virtual member function.
4081 (c_pretty_printer::multiplicative_expression): Likewise.
4082 (c_pretty_printer::conditional_expression): Likewise.
4083 (c_pretty_printer::assignment_expression): Likewise.
4084 (c_pretty_printer::expression): Likewise.
4085 (pp_unary_expression): Adjust.
4086 (pp_multiplicative_expression): Likewise.
4087 (pp_assignment_expression): Likewise.
4088 (pp_conditional_expression): Likewise.
4089 (pp_expression): Likewise.
4090 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4091 from pp_c_unary_expression. Adjust.
4092 (c_pretty_printer::multiplicative_expression): Rename from
4093 pp_c_multiplicative_expression. Adjust.
4094 (c_pretty_printer::conditional_expression): Rename from
4095 pp_c_conditional_expression. Adjust.
4096 (c_pretty_printer::assignment_expression): Rename from
4097 pp_c_assignment_expression. Adjust.
4098 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4099 (c_pretty_printer::c_pretty_printer): Do not assign to
4100 unary_expression, multiplicative_expression,
4101 conditional_expression, expression.
4102
fb22178f
GDR
41032013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4104
4105 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4106 virtual member function.
4107 (pp_postfix_expression): Adjust.
4108 (pp_c_postfix_expression): Remove.
4109 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4110 from pp_c_postfix_expression. Adjust.
4111 (c_pretty_printer::c_pretty_printer): Do not assign to
4112 postfix_expression.
4113
7ecc2600
GDR
41142013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4115
4116 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4117 virtua member function.
4118 (pp_primary_expression): Adjust.
4119 (pp_c_primary_expression): Remove.
4120 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4121 from pp_c_primary_expression. Adjust.
4122 (pp_c_initializer_list): Use pp_primary_expression.
4123 (c_pretty_printer::c_pretty_printer): Do not assign to
4124 primary_expression.
4125
0691175f
GDR
41262013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4127
4128 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4129 * c-pretty-print.c (M_): Remove.
4130 (c_pretty_printer::translate_string): Define.
4131 (pp_c_type_specifier): Use it.
4132 (pp_c_primary_expression): Likewise.
4133 (pp_c_expression): Likewise.
4134
66dfe4c4
GDR
41352013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4136
4137 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4138 virtual function.
4139 (pp_c_id_expression): Remove.
4140 (pp_id_expression): Adjust.
4141 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4142 pp_c_id_expression. Adjust.
4143 (pp_c_postfix_expression): Use pp_id_expression.
4144 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4145
ca43e9d5
GDR
41462013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4147
4148 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4149 member function.
4150 (pp_constant): Adjust.
4151 (pp_c_constant): Remove.
4152 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4153 pp_c_constant. Adjust.
4154 (pp_c_constant)
4155 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4156 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4157
da6ca2b5
GDR
41582013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4159
4160 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4161 (c_pretty_printer::c_pretty_printer): Declare.
4162 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4163 c_pretty_printer_init. Adjust.
4164 (print_c_tree): Do not call c_pretty_printer_init.
4165 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4166
65a372f4
AC
41672013-08-09 Arnaud Charlet <charlet@adacore.com>
4168
4169 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4170
fd9b0f32
PC
41712013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4172
4173 PR c++/58080
4174 * c-common.c (pointer_int_sum): Add bool parameter.
4175 * c-common.h (pointer_int_sum): Adjust declaration.
4176
e0aec1e9
GDR
41772013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4178
4179 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4180 c_pretty_printer variable.
4181
b066401f
GDR
41822013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4183
4184 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4185 (pp_base): Remove.
4186 (pp_c_base): Likewise. Adjust users.
4187 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4188 (pp_c_whitespace): Do not call pp_base.
4189 (pp_c_left_paren): Likewise.
4190 (pp_c_right_paren): Likewise.
4191 (pp_c_left_brace): Likewise.
4192 (pp_c_right_brace): Likewise.
4193 (pp_c_left_bracket): Likewise.
4194 (pp_c_right_bracket): Likewise.
4195 (pp_c_dot): Likewise.
4196 (pp_c_ampersand): Likewise.
4197 (pp_c_star): Likewise.
4198 (pp_c_arrow): Likewise.
4199 (pp_c_semicolon): Likewise.
4200 (pp_c_complement): Likewise.
4201 (pp_c_exclamation): Likewise.
4202 (pp_c_direct_declarator): Likewise.
4203 (pp_c_ws_string): Likewise.
4204 (pp_c_identifier): Likewise.
4205 (pp_c_statement): Likewise.
4206 (print_c_tree): Likewise.
4207
65e5a578
ESR
42082013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4209
4210 PR c++/58072
4211 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4212 provide useful error strings.
4213
137a1a27
GDR
42142013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4215
4216 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4217 printer functions instead of pp_string or operators and punctuators.
4218 (dump_generic_ada_node): Likewise.
4219 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4220 (pp_c_relational_expression): Likewise.
4221 (pp_c_logical_or_expression): Likewise.
4222
07838b13
GDR
42232013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4224
4225 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4226 functions instead of pp_character.
4227 (pp_ada_tree_identifier): Likewise.
4228 (dump_ada_double_name): Likewise.
4229 (dump_ada_function_declaration): Likewise.
4230 (dump_ada_array_domains): Likewise.
4231 (dump_template_types): Likewise.
4232 (dump_generic_ada_node): Likewise.
4233 (print_ada_declaration): Likewise.
4234 (print_ada_struct_decl): Likewise.
4235 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4236
433cc7b0
TT
42372013-07-23 Tom Tromey <tromey@redhat.com>
4238
4239 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4240 * c-common.c (c_common_reswords): Add _Generic.
4241
688010ba
OB
42422013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4243
4244 * c-common.c: Fix typos.
4245 * c-common.h: Likewise.
4246
2a99e5e6
LL
42472013-07-13 Lubos Lunak <l.lunak@suse.cz>
4248
4249 PR c++/55203
4250 * c-common.c (c_common_attribute_table): Add warn_unused.
4251 (handle_warn_unused_attribute): New.
4252
c26302d5
JJ
42532013-07-10 Jakub Jelinek <jakub@redhat.com>
4254
4255 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4256 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4257
dfeadaa0
PC
42582013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4259
4260 PR c++/57869
4261 * c.opt: Add Wconditionally-supported.
4262
6a2fa4b2
GS
42632013-07-08 Graham Stott <graham.stott@btinternet.com>
4264
adfac8df 4265 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4266 unused variables l_length and l_node.
4267
ecdbd01a 42682013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4269
4270 PR c/57821
4271 * c-common.c (complete_array_type): Delay folding first index
4272 like other indices. When folding, check for index overflow.
4273
bedc293e
MG
42742013-06-27 Marc Glisse <marc.glisse@inria.fr>
4275
4276 PR c++/57509
4277 * c-common.h (c_build_vec_perm_expr): New complain argument.
4278 * c-common.c (c_build_vec_perm_expr): Likewise.
4279 Use save_expr also in C++.
4280
604b2bfc
GDR
42812013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4282
4283 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4284 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4285 * c-opts.c (c_common_post_options): Likewise.
4286
dfeadaa0 42872013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4288
4289 * array-notation-common.c (length_mismatch_in_expr): Changed the
4290 parameter type's from a dynamic array to a vec_tree. Also removed
4291 the size parameters.
4292 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4293 the change above.
4294
2ce86d2e
BI
42952013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4296
4297 * c-common.h (struct cilkplus_an_parts): New structure.
4298 (struct cilkplus_an_loop_parts): Likewise.
4299 (cilkplus_extract_an_triplets): New prototype.
4300 (fix_sec_implicit_args): Likewise.
4301 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4302 (fix_sec_implicit_args): Likewise.
604b2bfc 4303
07a6825b
BI
43042013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4305
4306 * array-notation-common.c (find_inv_trees): Removed an unwanted
4307 typecasting.
4308 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4309 enum rid to enum tree_code.
4310
08346abd
JH
43112013-06-11 Jan Hubicka <jh@suse.cz>
4312
4313 * c-common.c (handle_alias_ifunc_attribute): Do not set
4314 DECL_EXTERNAL for weakref variables.
4315 * c-pragma.c (handle_pragma_weak): Make sure aliases
4316 are not declared as external.
4317
d60f1706
BI
43182013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4319
4320 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4321 function from c/c-array-notation.c.
4322 (is_cilkplus_reduce_builtin): Likewise.
4323 (find_rank): Likewise.
4324 (extract_array_notation_exprs): Likewise.
4325 (replace_array_notations): Likewise.
4326 (find_inv_trees): Likewise.
4327 (replace_inv_trees): Likewise.
4328 (contains_array_notation_expr): Likewise.
4329 (find_correct_array_notation_type): Likewise.
4330 * c-common.h (struct inv_list): Moved this struct from the file
4331 c/c-array-notation.c and added a new field called additional tcodes.
4332 (length_mismatch_in_expr_p): New prototype.
4333 (is_cilkplus_reduce_builtin): Likewise.
4334 (find_rank): Likewise.
4335 (extract_array_notation_exprs): Likewise.
4336 (replace_array_notation): Likewise.
4337 (find_inv_trees): Likewise.
4338 (replace_inv_trees): Likewise.
4339 (find_correct_array_notation_type): Likewise.
dfeadaa0 4340
36536d79
BI
43412013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4342
4343 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4344 function array_notation_init_builtins is called.
4345 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4346 * c-common.def (ARRAY_NOTATION_REF): New tree.
4347 * c-common.h (build_array_notation_expr): New function declaration.
4348 (build_array_notation_ref): Likewise.
4349 (extract_sec_implicit_index_arg): New extern declaration.
4350 (is_sec_implicit_index_fn): Likewise.
4351 (ARRAY_NOTATION_CHECK): New define.
4352 (ARRAY_NOTATION_ARRAY): Likewise.
4353 (ARRAY_NOTATION_START): Likewise.
4354 (ARRAY_NOTATION_LENGTH): Likewise.
4355 (ARRAY_NOTATION_STRIDE): Likewise.
4356 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4357 ARRAY_NOTATION_REF.
4358 (pp_c_expression): Likewise.
4359 * c.opt (flag_enable_cilkplus): New flag.
4360 * array-notation-common.c: New file.
4361
f7716d57
JJ
43622013-05-14 Jakub Jelinek <jakub@redhat.com>
4363
4364 PR c++/57274
4365 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4366
a5e0cd1d
MG
43672013-05-10 Marc Glisse <marc.glisse@inria.fr>
4368
4369 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4370 vectors.
4371
f6bc1c4a
HS
43722013-05-07 Han Shen <shenhan@google.com>
4373
4374 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4375
3f12f6e9
SKS
43762013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4377
4378 * c-common.c (check_user_alignment): Emit error for negative values.
4379
61949153
PC
43802013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4381
4382 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4383
e93e18e9
PC
43842013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4385
4386 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4387 __GXX_EXPERIMENTAL_CXX1Y__.
4388
44d90fe1
PC
43892013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4390 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4391
4392 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4393 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4394 to simply use OPT_Wpointer_arith.
4395 (c_sizeof_or_alignof_type): Likewise.
4396
13f39b2e
PC
43972013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4398
4399 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4400
4b84d650
JJ
44012013-04-12 Jakub Jelinek <jakub@redhat.com>
4402
4403 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4404 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4405 specifiers.
4406
fb037b5d
SB
44072013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4408
4409 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4410
4e856798
PC
44112013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4412
4413 * c-common.c (pointer_int_sum): Remove dead code.
4414
4b1baac8
RS
44152013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4416
4417 PR middle-end/56524
4418 * c-common.c (handle_optimize_attribute): Don't call
4419 save_optabs_if_changed.
4420
0b50e654
JJ
44212013-03-05 Jakub Jelinek <jakub@redhat.com>
4422
4423 PR middle-end/56461
4424 * c-pch.c (pch_init): Free target_validity at the end.
4425
48c41403
JJ
44262013-03-04 Jakub Jelinek <jakub@redhat.com>
4427
4428 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4429
e664c61c
KS
44302013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4431 Jakub Jelinek <jakub@redhat.com>
4432
4433 PR sanitizer/56454
4434 * c-common.c (handle_no_sanitize_address_attribute): New function.
4435 (c_common_attribute_table): Add no_sanitize_address attribute.
4436 (handle_no_address_safety_analysis_attribute): Add
4437 no_sanitize_address attribute, not no_address_safety_analysis
4438 attribute.
4439
a475fd3d 44402013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4441
4442 PR target/52555
4443 * c-common.c (handle_optimize_attribute): Call
4444 save_optabs_if_changed.
4445
f6007d99
JJ
44462013-02-18 Jakub Jelinek <jakub@redhat.com>
4447 Steven Bosscher <steven@gcc.gnu.org>
4448
4449 PR pch/54117
4450 * c-opts.c (c_common_post_options): If debug info is enabled
4451 and non-dwarf*, refuse to load PCH files and when writing PCH
4452 file warn.
4453
cf35e2b1
JJ
44542013-02-05 Jakub Jelinek <jakub@redhat.com>
4455
4456 PR middle-end/56167
4457 * c-common.c (handle_error_attribute): Fix condition.
4458
32887460
JJ
44592013-01-30 Jakub Jelinek <jakub@redhat.com>
4460
4461 PR c++/55742
4462 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4463
5af057d8
JM
44642013-01-18 Jason Merrill <jason@redhat.com>
4465
4466 PR target/54908
4467 * c.opt (-fextern-tls-init): New.
4468 * c-opts.c (c_common_post_options): Handle it.
4469
cc83c823
JJ
44702013-01-09 Jakub Jelinek <jakub@redhat.com>
4471
4472 PR c/48418
4473 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4474 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4475 and is either negative or bigger or equal to type precision
4476 of the first operand.
4477
a859517f
MP
44782012-12-03 Marek Polacek <polacek@redhat.com>
4479
4480 PR c/55570
4481 * c-common.c (check_user_alignment): Swap order of tests,
4482 check TREE_CODE first.
4483
2d7aa578
ESR
44842012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4485
4486 PR c++/52654
4487 * c-common.h (overflow_type): New enum.
4488 (build_userdef_literal): Add overflow_type argument.
4489 (tree_userdef_literal): Add overflow_type.
4490 (USERDEF_LITERAL_OVERFLOW): New access macro.
4491 * c-common.c (build_userdef_literal): Add overflow_type
4492 argument.
4493 * c-lex.c (c_lex_with_flags): Add overflow_type to
4494 build_userdef_literal calls.
4495 (interpret_integer, interpret_float): Add overflow_type argument.
4496
cc3c4f62
RB
44972012-11-28 Richard Biener <rguenther@suse.de>
4498
4499 PR c/35634
4500 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4501 here and use a type with proper overflow behavior for types that would
4502 need to be promoted for the arithmetic.
4503
77bc5132
JJ
45042012-11-23 Jakub Jelinek <jakub@redhat.com>
4505
4506 PR sanitizer/55435
4507 * c-common.c (handle_no_address_safety_analysis_attribute): New
4508 function.
4509 (c_common_attribute_table): Add no_address_safety_analysis.
4510
5dc99c46
SB
45112012-11-16 Simon Baldwin <simonb@google.com>
4512
4513 * c.opt: Add f[no-]canonical-system-headers.
4514 * c-opts.c (c_common_handle_option): Handle
4515 OPT_fcanonical_system_headers.
4516
a4a0016d
ESR
45172012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4518
4519 PR c++/54413
4520 * c-opts.c (c_common_handle_option): Set new flags.
4521 * c.opt: Describe new flags.
4522
7dbb85a7
JM
45232012-11-09 Jason Merrill <jason@redhat.com>
4524
4525 * c.opt (Wabi-tag): New.
4526
ad7bac31
AK
45272012-11-09 Andi Kleen <ak@linux.intel.com>
4528
4529 PR 55139
4530 * c-common.c (get_atomic_generic_size): Mask with
4531 MEMMODEL_MASK
4532
7332899a
MLI
45332012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4534
4535 PR c/53063
4536 * c.opt (Wformat): Make it Alias Wformat=1.
4537 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4538 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4539 LangEnabledBy.
4540 (Wformat=): RejectNegative. Use LangEnabledBy.
4541 (Wnonnull): Use LangEnabledBy.
4542 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4543 * c-format.c (set_Wformat): Delete.
4544 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4545 (maybe_read_dollar_number): Likewise.
4546 (avoid_dollar_number): Likewise.
4547 (finish_dollar_format_checking): Likewise.
4548 (check_format_info): Likewise.
4549 (check_format_info_main): Likewise.
4550 (check_format_types): Likewise.
4551 (format_type_warning): Likewise.
4552 * c-common.c (int): Likewise.
4553 (check_function_sentinel): Likewise.
4554 * c-common.h (warn_format,set_Wformat): Do not declare here.
4555
34a180a6
MLI
45562012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4557
4558 PR c/53063
4559 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4560 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4561 Use LangEnabledBy.
4562 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4563 common.opt.
4564 (Wvariadic-macros): Init(1).
4565 * c-opts.c (c_common_handle_option): Do not handle them
4566 explicitly.
4567 (c_common_post_options): Likewise.
4568 (sanitize_cpp_opts): warn_unused_macros is now
4569 cpp_warn_unused_macros.
4570 (push_command_line_include): Likewise.
4571 * c-common.c (warn_unknown_pragmas): Do not define.
4572 * c-common.h (warn_unknown_pragmas): Do not declare.
4573
3f46d6a5
MLI
45742012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4575
4576 PR c/51294
4577 * c-common.c (conversion_warning): Handle conditional expressions.
4578
880661a4
JW
45792012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4580
4581 PR c++/54930
4582 * c.opt (Wreturn_local_addr): Define new option.
4583
4514a96b
JM
45842012-10-25 Jason Merrill <jason@redhat.com>
4585
f14edc1a
JM
4586 * c.opt (Wvirtual-move-assign): New.
4587
4514a96b
JM
4588 * c.opt (Winherited-variadic-ctor): New.
4589
93100c6b
MG
45902012-10-25 Marc Glisse <marc.glisse@inria.fr>
4591
4592 PR c++/54427
4593 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4594
1efcb8c6
JM
45952012-10-23 Joseph Myers <joseph@codesourcery.com>
4596
4597 * c-common.h (pch_cpp_save_state): Declare.
4598 * c-target.def (c_preinclude): New hook.
4599 * c-opts.c (done_preinclude): New.
4600 (push_command_line_include): Handle default preincluded header.
4601 (cb_file_change): Call pch_cpp_save_state when calling
4602 push_command_line_include.
4603 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4604 (pch_cpp_save_state): New.
4605 (pch_init): Call pch_cpp_save_state conditionally, instead of
4606 calling cpp_save_state.
4607
4a0ae68e
MLI
46082012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4609
4610 PR c/53063
4611 PR c/40989
4612 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4613 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4614 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4615 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4616 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4617 * c-opts.c (c_common_handle_option): Remove explicit handling from
4618 here.
4619 (c_common_post_options): Likewise.
4620
67e4210b
EB
46212012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4622
4623 * c-ada-spec.c (LOCATION_COL): Delete.
4624 (compare_location): New function.
4625 (compare_node): Use it.
4626 (compare_comment): Likewise.
4627
65d4f2cd
MLI
46282012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4629
4630 PR c/53063
4631 PR c/40989
4632 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4633 * c-opts.c (c_common_handle_option): Do not set them here. Add
4634 comment.
4635 (c_common_post_options): Likewise.
4636
909881cb
EB
46372012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4638
4639 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4640 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4641 Remove POINTER_TYPE handling, add large unsigned handling and use
4642 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4643
3a785c97
JJ
46442012-10-12 Jakub Jelinek <jakub@redhat.com>
4645
4646 PR c/54381
4647 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4648 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4649 locs and array of 3 trees instead of just single loc and single
4650 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4651 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4652 For *cmp* builtins that take two sources strings report warnings
4653 about first and second source, not about destination and source.
4654
5e54f81d
MG
46552012-10-12 Marc Glisse <marc.glisse@inria.fr>
4656
4657 PR c++/53055
4658 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4659
f5b02f1e
EB
46602012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4661
4662 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4663 declaring something coming from another file.
4664
b46dbc6c
AC
46652012-10-10 Arnaud Charlet <charlet@adacore.com>
4666
f5b02f1e 4667 PR ada/54845
b46dbc6c
AC
4668 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4669
5d9de0d0
PC
46702012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4671
4672 PR c++/54194
4673 * c-common.c (warn_about_parentheses): Add location_t parameter;
4674 use EXPR_LOC_OR_LOC.
4675 * c-common.h: Update declaration.
4676
a212e43f
MG
46772012-10-09 Marc Glisse <marc.glisse@inria.fr>
4678
4679 PR c++/54427
4680 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4681 more operations. Make error messages optional.
4682 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4683 (scalar_to_vector): Declare.
4684
b1db7f91
JM
46852012-10-08 Jason Merrill <jason@redhat.com>
4686
4687 * c-common.c (c_common_reswords): Add thread_local.
4688
e28d52cf
DS
46892012-10-08 Dodji Seketeli <dodji@redhat.com>
4690
4691 PR c++/53528 C++11 attribute support
4692 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4693 new functions.
4694 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4695 static function.
4696 (handle_aligned_attribute): In choose strictest alignment
4697 among many. Use new check_cxx_fundamental_alignment_constraints.
4698 (handle_transparent_union_attribute): In c++11 attribute syntax,
4699 don't look through typedefs.
4700
3b78de56
AC
47012012-10-04 Arnaud Charlet <charlet@adacore.com>
4702
4703 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4704 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4705 out of dumpfile.h.
4706
6040bb5f
DC
47072012-09-25 Dehao Chen <dehao@google.com>
4708
4709 PR middle-end/54645
3b78de56 4710 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4711 map when read in the pch.
4712
3f8257db 47132012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
4714
4715 * c-ada-spec.c: Style fixes.
4716
3f8257db 47172012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
4718
4719 * c.opt (-fada-spec-parent): Define new command line switch.
4720 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4721 is specified, generate binding spec as a child of the specified unit.
4722
0ccb505d
PC
47232012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4724 Manuel López-Ibáñez <manu@gcc.gnu.org>
4725
4726 PR c++/53210
4727 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4728
c583af79
AC
47292012-08-23 Arnaud Charlet <charlet@adacore.com>
4730
4731 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4732 for pointers, and add missing Convention C pragma.
4733 (print_ada_struct_decl): Add missing aliased keyword.
4734 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4735
1a4049e7
JJ
47362012-08-17 Jakub Jelinek <jakub@redhat.com>
4737
4738 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4739 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4740 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4741 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4742 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4743
70b5e7dc
RG
47442012-08-10 Richard Guenther <rguenther@suse.de>
4745
4746 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4747
f8923f7e
SB
47482012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4749
4750 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4751 instead of separate pp_newline and pp_flush.
4752 (print_c_tree): Likewise.
4753
e45abe1f
RH
47542012-07-26 Richard Henderson <rth@redhat.com>
4755
4756 * c-common.c (handle_hot_attribute): Allow labels.
4757 (handle_cold_attribute): Likewise.
4758
332f1d24
JJ
47592012-07-20 Jakub Jelinek <jakub@redhat.com>
4760
4761 PR c++/28656
4762 * c-common.c (check_function_nonnull): Handle multiple nonnull
4763 attributes properly.
4764
7ee2468b
SB
47652012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4766
4767 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4768 * c-ada-spec.c: Likewise.
4769 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4770
ee7b28eb
SB
47712012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4772
4773 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4774 Remove code conditional on it.
4775
6bdf3519
SB
47762012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4777
4778 * c-gimplify.c: Do not include basic-block.h.
4779 * c-common.c: Do not include linfuncs.h.
4780
532aafad
SB
47812012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4782
4783 * c-common.h: Include tree.h.
4784
8d0d1915
JM
47852012-07-02 Jason Merrill <jason@redhat.com>
4786
4787 PR c++/53524
4788 * c-common.c (get_priority): Call default_conversion.
4789
fbc873ad
UB
47902012-07-01 Uros Bizjak <ubizjak@gmail.com>
4791
4792 * c-pch.c (c_common_write_pch): Remove unused variables.
4793
d4a10d0a
SB
47942012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4795
4796 * cppspec.c: Moved from gcc/ to here.
4797
6f3a2e23
KT
47982012-06-27 Kai Tietz <ktietz@redhat.com>
4799
4800 PR preprocessor/37215
4801 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4802
8ca92d04
SB
48032012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4804
4805 * c-common.h (c_common_print_pch_checksum): Remove.
4806 * c-pch.c: Do not include output.h.
4807 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4808 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4809 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4810 (struct c_pch_header): Remove.
4811 (get_ident): Update gpch version.
4812 (pch_init): Do not print executable_checksum to asm_out_file.
4813 Do not fail if there is no asm_out_file to read back from. Set
4814 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4815 (c_common_write_pch): Verify that nothing was written to asm_out_file
4816 since pch_init was called. Do not write a c_pch_header, and do not
4817 copy from asm_out_file to the PCH.
4818 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4819 the content of asm_out_file from the PCH.
4820 (c_common_print_pch_checksum): Remove.
4821 * c-opts.c (c_common_init): Print out executable_checksum directly.
4822
70f42967
SB
48232012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4824
4825 * c-target.def (objc_declare_unresolved_class_reference,
4826 objc_declare_class_definition): Add new hooks.
4827
a8781821
SB
48282012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4829
4830 * c-lex.c: Do not include output.h.
4831 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4832 Remove uses of ASM_OUTPUT_IDENT.
4833
9e1a8dd1
RR
48342012-06-15 Marc Glisse <marc.glisse@inria.fr>
4835
4836 PR c++/51033
4837 * c-common.h (c_build_vec_perm_expr): Move decl here.
4838 * c-common.c (c_build_vec_perm_expr): Move definition
4839 here.
4840
6f07a821
SB
48412012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4842
4843 * c.opt (fconserve-space): Turn into a no-op.
4844
9faeb493 48452012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4846
4847 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4848 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4849 both the start and end of the function.
4850
a4b7d13c
SB
48512012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4852
4853 * c-common.c: Do not include output.h.
4854 * c-pragma.c: Likewise.
4855
c265f413
SA
48562012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4857
4858 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4859 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4860 (lang_decl_name): Handle namespace decls.
4861
be7a421e
SB
48622012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4863
4864 * c-ada-spec.c: Do not include output.h.
4865 * c-semantics.c: Likewise.
4866
65de6659
JM
48672012-05-29 Joseph Myers <joseph@codesourcery.com>
4868
4869 * c-common.c: Fix typo.
4870
ca5f4331
MM
48712012-05-29 Michael Matz <matz@suse.de>
4872
4873 * c-common.h (c_expand_decl): Remove prototype.
4874
4f7f7aca
MLI
48752012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4876
4877 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4878 * c-opts.c (c_common_handle_option): Remove code handling
4879 warn_missing_braces.
4880
4a792f9b
PC
48812012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4882
4883 PR c++/25137
4884 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4885 -Wmissing_braces.
4886
650dc14a
DS
48872012-05-22 Dodji Seketeli <dodji@redhat.com>
4888
4889 PR c++/53322
4890 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4891
9b095bf1
MLI
48922012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4893
4894 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4895 * c-opts.c (c_common_handle_option): Do not handle explicitly
4896 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4897
0b2c4be5
DS
48982012-05-16 Dodji Seketeli <dodji@redhat.com>
4899
4900 PR preprocessor/7263
4901 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4902 to cpp_classify_number. For diagnostics, use the precise location
4903 instead of the global input_location.
4904
a1bde5af
PC
49052012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4906
d02924ef 4907 PR c++/11856
a1bde5af
PC
4908 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4909
d1ede5f4
BS
49102012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4911
a1bde5af 4912 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4913
f2bc201f
MLI
49142012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4915
4916 PR 53063
4917 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4918 Wreorder): Use LangEnabledBy.
4919 * c-opts.c (c_common_handle_option): Do not enable them
4920 explicitly. Call lang-specific generated functions.
4921 (c_common_post_options): Do not set them here.
4922
95744782
MLI
49232012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4924
4925 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4926 Wmissing-field-initializers,Wmissing-parameter-type,
4927 Wold-style-declaration,Woverride-init): Use EnabledBy.
4928 * c-opts.c (c_common_post_options): Do not set here explicitly.
4929
7d5a5747
MLI
49302012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4931
4932 PR 53063
4933 * c-opts.c (c_common_handle_option): Use handle_generated_option
4934 to enable sub-options.
4935
5a3c9cf2
PC
49362012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4937
4938 PR c++/53158
4939 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4940
3ac8781c
RG
49412012-05-10 Richard Guenther <rguenther@suse.de>
4942
4943 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4944 adjust commentary about TYPE_IS_SIZETYPE types.
4945
1e537948
MLI
49462012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4947
4948 PR c++/53261
4949 * c-common.c (warn_logical_operator): Check that argument of
4950 integer_zerop is not NULL.
4951
f2c4a785
MLI
49522012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4953
4954 PR c/43772
4955 * c-common.c (warn_logical_operator): Do not warn if either side
4956 is already true or false.
4957
50f305ca
MLI
49582012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4959
4960 PR c/51712
4961 * c-common.c (expr_original_type): New.
4962 (shorten_compare): Do not warn for enumeration types.
4963
0c3641b0
MLI
49642012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4965
4966 * c.opt (fpermissive): Add Var(flag_permissive).
4967
7edaa4d2
MG
49682012-04-30 Marc Glisse <marc.glisse@inria.fr>
4969
4970 PR c++/51033
4971 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4972 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4973
b9c8da34
DS
49742012-04-30 Dodji Seketeli <dodji@redhat.com>
4975
4976 Add -Wvarargs option
4977 * c.opt (Wvarargs): Define new option.
4978
e6c69da0
MLI
49792012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4980
4981 * c-common.c (check_function_arguments): Replace
4982 Wmissing-format-attribute with Wsuggest-attribute=format.
4983
90137d8f
MLI
49842012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4985
4986 * c.opt (Wsuggest-attribute=format): New. Alias of
4987 Wmissing-format-attribute.
4988 * c-format.c (decode_format_type): Replace
4989 Wmissing-format-attribute with Wsuggest-attribute=format.
4990 (check_function_format): Likewise.
4991
9faeb493 49922012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4993
4994 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4995 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4996 * c.opt: Add Wliteral-suffix.
4997
c1771a20
MLI
49982012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4999
5000 PR c/44774
5001 * c.opt (Wpedantic): New.
5002 (pedantic): Alias Wpedantic.
5003 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5004 (c_common_post_options): Likewise.
5005 (sanitize_cpp_opts): Likewise.
5006 * c-lex.c (interpret_float): Likewise.
5007 * c-format.c (check_format_types): Likewise.
5008 * c-common.c (pointer_int_sum): Likewise.
5009 (c_sizeof_or_alignof_type): Likewise.
5010 (c_add_case_label): Likewise.
5011 (c_do_switch_warnings): Likewise.
5012 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5013
04b391c1
JM
50142012-04-15 Jason Merrill <jason@redhat.com>
5015
5016 PR c++/52818
5017 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5018 (C_STD_NAME): Distinguish between C++98 and C++11.
5019
ac868f29
EB
50202012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5021
5022 PR target/52624
5023 * c-common.h (uint16_type_node): Rename into...
5024 (c_uint16_type_node): ...this.
5025 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5026 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5027
fd4116f4
MLI
50282012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5029
5030 * c-common.c (warn_if_unused_value): Move definition to here.
5031 * c-common.h (warn_if_unused_value): Move declaration to here.
5032
573ac65e
WB
50332012-03-23 William Bader <williambader@hotmail.com>
5034
5035 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5036
552b8185
JM
50372012-03-20 Jason Merrill <jason@redhat.com>
5038
5039 * c-common.h (enum cxx_dialect): Add cxx1y.
5040 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5041 test.
5042 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5043 * c-opts.c (c_common_post_options): Likewise.
5044 (set_std_cxx1y): New.
5045 (c_common_handle_option): Call it.
5046 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5047
04398fa8
PC
50482012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5049
5050 PR c++/14710
5051 * c.opt ([Wuseless-cast]): Add.
5052
d2a12ae7
RG
50532012-03-16 Richard Guenther <rguenther@suse.de>
5054
5055 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5056
a12bf402
MLI
50572012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5058
5059 PR c++/44783
5060 * c.opt (ftemplate-backtrace-limit) Add.
5061
5c30094f
RO
50622012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5063
5064 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5065 handling.
5066 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5067 (init_pragma): Don't register extern_prefix.
5068
21fa2faf
RG
50692012-03-12 Richard Guenther <rguenther@suse.de>
5070
5071 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5072 (builtin_type_for_size): Likewise.
5073
e3793c6f
JJ
50742012-02-13 Jakub Jelinek <jakub@redhat.com>
5075
5076 PR c++/52215
5077 * c-common.c (sync_resolve_params): Don't decide whether to convert
5078 or not based on TYPE_SIZE comparison, convert whenever arg_type
5079 is unsigned INTEGER_TYPE.
5080
93286335
PC
50812012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5082
5083 PR c/52118
5084 * c.opt ([Wunused-local-typedefs]): Fix description.
5085
7a421706
MS
50862012-01-24 Mike Stump <mikestump@comcast.net>
5087
5088 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5089 exactly.
5090
ba9b1f11
RG
50912012-01-18 Richard Guenther <rguenther@suse.de>
5092
5093 * c-opts.c (c_common_post_options): Reset LTO flags if
5094 we are about to generate a PCH.
5095
465406be
PC
50962012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5097
5098 PR c++/51777
5099 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5100 use pp_unsigned_wide_integer.
5101
aee15221
RG
51022012-01-10 Richard Guenther <rguenther@suse.de>
5103
5104 PR middle-end/51806
5105 * c-opts.c (c_common_handle_option): Move -Werror handling
5106 to language independent code.
5107
5720c0dc
RG
51082012-01-05 Richard Guenther <rguenther@suse.de>
5109
5110 PR middle-end/51764
5111 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5112 from common.opt.
5113
73ac190a
PC
51142011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5115
5116 PR c++/51316
5117 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5118 of array types with an unknown bound.
5119
48b0b196
JM
51202011-12-20 Joseph Myers <joseph@codesourcery.com>
5121
5122 * c-common.c (flag_isoc99): Update comment to refer to C11.
5123 (flag_isoc1x): Change to flag_isoc11.
5124 * c-common.h (flag_isoc99): Update comment to refer to C11.
5125 (flag_isoc1x): Change to flag_isoc11.
5126 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5127 C11.
5128 * c-opts.c (set_std_c1x): Change to set_std_c11.
5129 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5130 Call set_std_c11.
5131 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5132 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5133 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5134 standard.
5135 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5136 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5137 (std=gnu1x): Make alias of std=gnu11.
5138
d58d6eb5
JM
51392011-12-19 Jason Merrill <jason@redhat.com>
5140
5141 PR c++/51228
5142 * c-common.c (handle_transparent_union_attribute): Check the first
5143 field if the type is complete.
5144
b3908fcc
JW
51452011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5146
5147 PR libstdc++/51365
5148 * c-common.c (RID_IS_FINAL): Add.
5149 * c-common.h (RID_IS_FINAL): Add.
5150
fea3ca91
IS
51512011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5152
5153 * c.opt (fgnu-runtime): Provide full description.
5154 (fnext-runtime): Likewise.
5155 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5156
62bad7cd
AM
51572011-11-28 Andrew MacLeod <amacleod@redhat.com>
5158
5159 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5160 predefines in one place. Add LOCK_FREE predefines.
5161 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5162 new func.
5163
c466c4ff
AM
51642011-11-24 Andrew MacLeod <amacleod@redhat.com>
5165
5166 PR c/51256
9faeb493 5167 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5168 conditions
9faeb493
UB
5169 (resolve_overloaded_atomic_exchange,
5170 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5171 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5172 error_mark_node for error conditions.
9faeb493 5173
a5952633
RG
51742011-11-08 Richard Guenther <rguenther@suse.de>
5175
5176 PR middle-end/51010
5177 c-family/
5178
0a35513e
AH
51792011-11-07 Richard Henderson <rth@redhat.com>
5180 Aldy Hernandez <aldyh@redhat.com>
5181 Torvald Riegel <triegel@redhat.com>
5182
5183 Merged from transactional-memory.
5184
5185 * c-common.c (handle_tm_wrap_attribute,
5186 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5187 (struct c_common_reswords): Added __transaction* keywords.
5188 (struct c_common_attribute_table): Added transaction* and tm_regparm
5189 attributes.
5190 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5191 masks.
5192 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5193 find_tm_attribute): Declare.
5194
6d87092d
JM
51952011-11-07 Jason Merrill <jason@redhat.com>
5196
5197 PR c++/35688
5198 * c-common.c, c-common.h: Revert yesterday's changes.
5199
8e7860a1
JM
52002011-11-06 Jason Merrill <jason@redhat.com>
5201
5202 PR c++/35688
5203 * c-common.c (decl_has_visibility_attr): Split out from...
5204 (c_determine_visibility): ...here.
5205 * c-common.h: Declare it.
5206
d19fa6b5
JM
52072011-11-06 Joseph Myers <joseph@codesourcery.com>
5208
5209 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5210 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5211 type.
5212 (check_user_alignment): New. Split out of
5213 handle_aligned_attribute. Disallow integer constants with
5214 noninteger types. Conditionally allow zero.
5215 (handle_aligned_attribute): Use check_user_alignment.
5216 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5217
86951993
AM
52182011-11-06 Andrew MacLeod <amacleod@redhat.com>
5219 Richard Henderson <rth@redhat.com>
5220
5221 Merged from cxx-mem-model.
5222
5223 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5224 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5225 parameters that are the same type size.
5226 (get_atomic_generic_size): New. Find size of generic
5227 atomic function parameters and do typechecking.
5228 (add_atomic_size_parameter): New. Insert size into parameter list.
5229 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5230 either __atomic_exchange_n or external library call.
9faeb493 5231 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5232 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5233 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5234 __atomic_load_n or an external library call.
5235 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5236 __atomic_store_n or an external library call.
5237 (resolve_overloaded_builtin): Handle new __atomic builtins.
5238
cf9e9959
EB
52392011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5240
5241 PR c++/50608
5242 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5243 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5244 <INDIRECT_REF>: Return the argument.
5245 <ARRAY_REF>: Remove special code for negative offset.
5246 Call fold_build_pointer_plus instead of size_binop.
5247 (fold_offsetof): Remove STOP_REF argument and adjust.
5248 * c-common.h (fold_offsetof_1): Declare.
5249 (fold_offsetof): Remove STOP_REF argument.
5250
25339f10
JM
52512011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5252
5253 PR c++/50810
5254 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5255 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5256 Wnarrowing for C++0x and C++98.
5257 * c.opt ([Wnarrowing]): Update.
5258
89401152
PC
52592011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5260
5261 PR c++/44277
5262 * c.opt: Add Wzero-as-null-pointer-constant.
5263
97e3ad20
JM
52642011-10-31 Jason Merrill <jason@redhat.com>
5265
15694fdd
JM
5266 * c.opt (-fdeduce-init-list): Off by default.
5267
97e3ad20
JM
5268 PR c++/50920
5269 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5270 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5271 and -Wc++11-compat.
5272 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5273
fb9120e3
RAV
52742011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5275
5276 PR c++/30066
5277 * c.opt (fvisibility-inlines-hidden): Description change.
5278
3ce4f9e4
ESR
52792011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5280
5281 Implement C++11 user-defined literals.
5282 * c-common.c (build_userdef_literal): New.
5283 * c-common.def: New tree code.
5284 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5285 * c-lex.c (interpret_float): Add suffix parm.
5286 (c_lex_with_flags): Build literal tokens.
5287
5f53c243
PC
52882011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5289
5290 PR c++/50841
5291 Revert:
5292 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5293
5294 PR c++/50810
5295 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5296 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5297 Wnarrowing for C++0x and C++98.
5298 * c.opt ([Wnarrowing]): Update.
5299
263734e1
PC
53002011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5301
5302 PR c++/50810
5303 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5304 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5305 Wnarrowing for C++0x and C++98.
5306 * c.opt ([Wnarrowing]): Update.
5307
d2e312d7
PC
53082011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5309
5310 PR c++/45385
5311 * c-common.c (conversion_warning): Remove code looking for
5312 artificial operands.
5313
d17687f6
DS
53142011-10-18 Dodji Seketeli <dodji@redhat.com>
5315
5316 PR bootstrap/50760
5317 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5318 !NO_IMPLICIT_EXTERN_C.
d17687f6 5319
fc8396e9
PC
53202011-10-17 Michael Spertus <mike_spertus@symantec.com>
5321
5322 * c-common.c (c_common_reswords): Add __bases,
5323 __direct_bases.
5324 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5325
53262011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5327
5328 PR c++/50757
5329 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5330
847e697a
TT
53312011-10-15 Tom Tromey <tromey@redhat.com>
5332 Dodji Seketeli <dodji@redhat.com>
5333
5334 * c.opt (fdebug-cpp): New option.
5335 * c-opts.c (c_common_handle_option): Handle the option.
5336 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5337 output stream in parameter. Factorized from ...
5338 (maybe_print_line): ... this. Dump location debug information when
5339 -fdebug-cpp is in effect.
5340 (print_line_1): New static function. Takes an output stream in
5341 parameter. Factorized from ...
5342 (print_line): ... here. Dump location information when -fdebug-cpp
5343 is in effect.
5344 (scan_translation_unit): Dump location information when
5345 -fdebug-cpp is in effect.
5346
92582b75
TT
53472011-10-15 Tom Tromey <tromey@redhat.com>
5348 Dodji Seketeli <dodji@redhat.com>
5349
5350 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5351 without argument.
5352 * c-opts.c (c_common_handle_option)<case
5353 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5354 cases. Handle -ftrack-macro-expansion with and without argument.
5355
46427374
TT
53562011-10-15 Tom Tromey <tromey@redhat.com>
5357 Dodji Seketeli <dodji@redhat.com>
5358
5359 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5360 (print_line, cb_define, do_line_change): Adjust to avoid touching
5361 the internals of struct line_map. Use the public API instead.
5362 * c-pch.c (c_common_read_pch): Likewise.
5363 * c-lex.c (fe_file_change): Likewise.
5364
fc8396e9
PC
53652011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5366
5367 PR c++/17212
5368 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5369
53702011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5371
5372 PR c++/33067
5373 * c-pretty-print.c (pp_c_floating_constant): Output
5374 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5375
e79983f4
MM
53762011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5377
5378 * c-common.c (def_builtin_1): Delete old interface with two
5379 parallel arrays to hold standard builtin declarations, and replace
5380 it with a function based interface that can support creating
5381 builtins on the fly in the future. Change all uses, and poison
5382 the old names. Make sure 0 is not a legitimate builtin index.
5383 * c-omp.c (c_finish_omp_barrier): Ditto.
5384 (c_finish_omp_taskwait): Ditto.
5385 (c_finish_omp_flush): Ditto.
5386
6637388f
TG
53872011-10-11 Tristan Gingold <gingold@adacore.com>
5388
5389 * c.opt: (fallow-parameterless-variadic-functions): New.
5390
3797cb21
DS
53912011-09-08 Dodji Seketeli <dodji@redhat.com>
5392
5393 PR c++/33255 - Support -Wunused-local-typedefs warning
5394 * c-common.h (struct c_language_function::local_typedefs): New
5395 field.
9faeb493
UB
5396 (record_locally_defined_typedef, maybe_record_typedef_use)
5397 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5398 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5399 (maybe_record_typedef_use)
5400 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5401 * c.opt: Declare new -Wunused-local-typedefs flag.
5402
693ddb1b
EB
54032011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5404
5405 PR middle-end/50266
5406 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5407 computations.
5408
830c740f
RG
54092011-09-05 Richard Guenther <rguenther@suse.de>
5410
5411 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5412 of integer_minus_one_node for empty array upper bounds.
5413
892a371f
DS
54142011-08-28 Dodji Seketeli <dodji@redhat.com>
5415
5416 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5417 it's the first time it's being called on this main TU.
5418
0e3fdb48
RB
54192011-08-24 Richard Guenther <rguenther@suse.de>
5420
5421 PR c/49396
5422 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5423
54242011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5425
5426 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5427 defined in cpp_init_builtins and c_cpp_builtins.
5428
d4a83c10
JM
54292011-08-19 Joseph Myers <joseph@codesourcery.com>
5430
5431 * c-common.c (c_common_reswords): Add __builtin_complex.
5432 * c-common.h (RID_BUILTIN_COMPLEX): New.
5433
bbceee64
JM
54342011-08-18 Joseph Myers <joseph@codesourcery.com>
5435
5436 * c-common.c (c_common_reswords): Add _Noreturn.
5437 (keyword_is_function_specifier): Handle RID_NORETURN.
5438 * c-common.h (RID_NORETURN): New.
5439
3f8257db 54402011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5441
5442 * c-common.c (unsafe_conversion_p): New function. Check if it is
5443 unsafe to convert an expression to the type.
5444 (conversion_warning): Adjust, use unsafe_conversion_p.
5445 * c-common.h (unsafe_conversion_p): New function declaration.
5446
20906c66
JJ
54472011-08-02 Jakub Jelinek <jakub@redhat.com>
5448
5449 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5450 (c_finish_omp_taskyield): New prototype.
5451 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5452 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5453 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5454 or RHS1 have side-effects, evaluate those too in the right spot,
5455 if it is a decl and LHS is also a decl, error out if they
5456 aren't the same.
5457 (c_finish_omp_taskyield): New function.
5458 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5459 * c-pragma.c (omp_pragmas): Add taskyield.
5460 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5461 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5462 PRAGMA_OMP_CLAUSE_MERGEABLE.
5463
770e5a2e
DS
54642011-07-25 Dodji Seketeli <dodji@redhat.com>
5465
5466 * c-common.h (set_underlying_type): Remove parm name from
5467 declaration.
5468
1baae426
RG
54692011-07-25 Romain Geissler <romain.geissler@gmail.com>
5470
5471 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5472
fcb21722
JM
54732011-07-22 Jason Merrill <jason@redhat.com>
5474
76f86d00
JM
5475 PR c++/49793
5476 * c.opt (Wnarrowing): New.
5477
3a636414
JM
5478 PR c++/30112
5479 * c-common.h: Declare c_linkage_bindings.
5480 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5481
fcb21722
JM
5482 PR c++/49813
5483 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5484 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5485 as flag_isoc99 for 'restrict'.
5486 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5487
02614448
ILT
54882011-07-21 Ian Lance Taylor <iant@google.com>
5489
5490 PR middle-end/49705
5491 * c-common.c (c_disable_warnings): New static function.
5492 (c_enable_warnings): New static function.
5493 (c_fully_fold_internal): Change local unused_p to bool. Call
5494 c_disable_warnings and c_enable_warnings rather than change
5495 c_inhibit_evaluation_warnings.
5496
34429675
JM
54972011-07-20 Jason Merrill <jason@redhat.com>
5498
5499 PR c++/6709 (DR 743)
5500 PR c++/42603 (DR 950)
5501 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5502 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5503 (CPP_DECLTYPE): New.
5504 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5505
5d49b6a7
RG
55062011-07-19 Richard Guenther <rguenther@suse.de>
5507
5508 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5509 * c-omp.c (c_finish_omp_for): Likewise.
5510
e84a58ff
EB
55112011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5512
5513 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5514 body on the next line.
5515
329af3c7
JM
55162011-07-08 Jason Merrill <jason@redhat.com>
5517
4063e61b
JM
5518 PR c++/45437
5519 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5520
329af3c7
JM
5521 PR c++/49673
5522 * c-common.c (c_apply_type_quals_to_decl): Don't check
5523 TYPE_NEEDS_CONSTRUCTING.
5524
1a072294
RG
55252011-07-06 Richard Guenther <rguenther@suse.de>
5526
5527 * c-common.c (c_common_nodes_and_builtins):
5528 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5529
fce5dddd
RG
55302011-07-05 Richard Guenther <rguenther@suse.de>
5531
5532 * c-common.c (c_common_nodes_and_builtins): Build all common
5533 tree nodes first.
5534
45d439ac
JJ
55352011-06-27 Jakub Jelinek <jakub@redhat.com>
5536
56300785
JJ
5537 * c-common.h (c_tree_chain_next): New static inline function.
5538
45d439ac
JJ
5539 * c-common.c (check_builtin_function_arguments): Handle
5540 BUILT_IN_ASSUME_ALIGNED.
5541
e0a8ecf2
AM
55422011-06-21 Andrew MacLeod <amacleod@redhat.com>
5543
5544 * c-common.c: Add sync_ or SYNC__ to builtin names.
5545 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5546
55472011-06-20 Pierre Vittet <piervit@pvittet.com>
5548
5549 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5550 handler.
5551 (gen_pragma_handler): New union.
5552 (internal_pragma_handler): New type.
5553 (c_register_pragma_with_data)
5554 (c_register_pragma_with_expansion_and_data): New functions.
5555
5556 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5557 (c_register_pragma, c_register_pragma_with_expansion)
5558 (c_invoke_pragma_handler): Changed to work with
5559 internal_pragma_handler.
5560 (c_register_pragma_with_data)
5561 (c_register_pragma_with_expansion_and_data): New functions.
5562
677f3fa8
JM
55632011-06-14 Joseph Myers <joseph@codesourcery.com>
5564
5565 * c-common.c: Include common/common-target.h.
5566 (handle_section_attribute): Use
5567 targetm_common.have_named_sections.
5568 * c-cppbuiltin.c: Include common/common-target.h.
5569 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5570
d7fc8c14
RG
55712011-06-10 Richard Guenther <rguenther@suse.de>
5572
5573 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5574 to print a IDENTIFIER_NODE.
5575
10e48e39
RO
55762011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5577 Joseph Myers <joseph@codesourcery.com>
5578
5579 * c.opt (fbuilding-libgcc): New option.
5580 * c-cppbuiltin.c (c_cpp_builtins): Define
5581 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5582
6976ae51
JM
55832011-06-07 Jason Merrill <jason@redhat.com>
5584
3ff60975
JM
5585 * c-common.c (max_tinst_depth): Lower default to 900.
5586
6976ae51
JM
5587 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5588
009db074
RG
55892011-06-07 Richard Guenther <rguenther@suse.de>
5590
5591 * c-common.c (c_common_nodes_and_builtins): Do not set
5592 size_type_node or call set_sizetype.
5593
b4592b92
DS
55942011-06-07 Dodji Seketeli <dodji@redhat.com>
5595
5596 PR debug/49130
5597 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5598 type when using pointer comparison to compare types.
b4592b92 5599
014ab419
JW
56002011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5601
5602 * c.opt: Add -Wdelete-non-virtual-dtor.
5603 * c-opts.c (c_common_handle_option): Include it in -Wall.
5604
4f60111f
NF
56052011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5606
5607 PR bootstrap/49190
5608
5609 Revert:
5610 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5611
5612 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5613 not tree_common.
5614
4cc4f2f4
JJ
56152011-05-27 Jakub Jelinek <jakub@redhat.com>
5616
5617 PR c++/49165
5618 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5619 C++ don't call c_common_truthvalue_conversion on void type arms.
5620
38e01f9e
NF
56212011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5622
5623 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5624 (stmt_list_stack): Define.
5625 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5626 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5627
92e948a8
NF
56282011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5629
5630 * c-common.c (warning_candidate_p): Check for BLOCKs.
5631
a2fc3e63
NF
56322011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5633
5634 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5635 not tree_common.
5636
0957c029
JJ
56372011-05-25 Jakub Jelinek <jakub@redhat.com>
5638
5639 * c-common.c (def_fn_type): Remove extra va_end.
5640
828fb3ba
JM
56412011-05-23 Jason Merrill <jason@redhat.com>
5642
5643 PR c++/48106
5644 * c-common.c (c_common_get_narrower): New.
5645 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5646
dde05067
NF
56472011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5648
5649 * c-common.h (check_function_arguments): Tweak prototype of
5650 check_function_arguments.
5651 * c-common.c (check_function_arguments): Likewise. Adjust
5652 calls to check_function_nonnull, check_function_format, and
5653 check_function_sentinel.
5654 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5655 separate attributes and typelist arguments. Use
5656 FOREACH_FUNCTION_ARGS to iterate over argument types.
5657
3c0d13bf
PC
56582011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5659
5660 * c-common.c (c_common_reswords): Reorder.
5661 * c-common.h (rid): Likewise.
5662
8242dd04
NF
56632011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5664
5665 * c-common.c (def_fn_type): Don't call build_function_type, call
5666 build_function_type_array or build_varargs_function_type_array
5667 instead.
5668 (c_common_nodes_and_builtins): Likewise.
5669
3d528853
NF
56702011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5671
5672 * c-common.c (c_add_case_label): Omit the loc argument to
5673 build_case_label.
5674 * c-common.h (build_case_label): Remove.
5675 * c-semantics.c (build_case_label): Remove.
5676
a04a722b
JM
56772011-05-05 Joseph Myers <joseph@codesourcery.com>
5678
5679 * c-objc.h (objc_start_method_definition): Update prototype.
5680 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5681
e19a18d4
NF
56822011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5683
5684 * c-common.c (check_main_parameter_types): Reindent. Don't use
5685 TYPE_ARG_TYPES directly.
5686 (handle_nonnull_attribute): Likewise.
5687 (sync_resolve_params): Likewise.
5688 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5689 to check_format_string.
5690 (handle_format_attribute): Likewise.
5691 (check_format_string): Take a function type to examine instead of
5692 a type list. Use a function_arg_iterator to step through argument
5693 types.
5694
c62c040f
RG
56952011-05-04 Richard Guenther <rguenther@suse.de>
5696
5697 * c-common.c (fix_string_type): Use size_int for index type bounds.
5698 (start_fname_decls): Do not pass NULL to build_int_cst.
5699 (c_init_attributes): Likewise.
5700 * c-lex.c (c_lex_with_flags): Likewise.
5701
c12ff9d8
JM
57022011-04-27 Jason Merrill <jason@redhat.com>
5703
5704 * c-common.c (make_tree_vector_from_list): New.
5705 * c-common.h: Declare it.
5706
304dfbe3
RG
57072011-04-26 Richard Guenther <rguenther@suse.de>
5708
5709 PR preprocessor/48248
5710 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5711 for output size with -P.
5712
3c0d13bf
PC
57132011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5714
5715 * c-common.c (struct c_common_resword): Add __underlying_type.
5716 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5717
04695783
JM
57182011-04-20 Jim Meyering <meyering@redhat.com>
5719
5720 * c-format.c (init_dollar_format_checking): Remove useless
5721 if-before-free.
5722
0dc33c3c
NP
57232011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5724
5725 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5726 (objc_detect_field_duplicates): New.
0dc33c3c 5727 * stub-objc.c: Likewise.
3c0d13bf 5728
c59633d9
NP
57292011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5730
5731 * stub-objc.c (objc_declare_protocols): Renamed to
5732 objc_declare_protocol.
5733 * c-objc.h: Likewise.
3c0d13bf 5734
32dabdaf
NP
57352011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5736
5737 * stub-objc.c (objc_declare_class): Updated argument name.
5738
81f653d6
NF
57392011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5740
5741 * c-common.h (c_common_init_ts): Declare.
5742 * c-common.c (c_common_init_ts): Define.
5743
eb345401
NP
57442011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5745
5746 * c-objc.h (objc_build_message_expr): Updated prototype.
5747 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5748
a358e188
MJ
57492011-04-12 Martin Jambor <mjambor@suse.cz>
5750
5751 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5752 of cgraph_node.
5753
e6313a78
RG
57542011-04-11 Richard Guenther <rguenther@suse.de>
5755
5756 * c-common.c (complete_array_type): Build a range type of
5757 proper type.
5758
dcf0c47e
NF
57592011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5760
5761 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5762 (handle_type_generic_attribute): Likewise.
5763
1ee44b26
JM
57642011-04-07 Jason Merrill <jason@redhat.com>
5765
5766 PR c++/48450
5767 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5768 conversion from C++0x scoped enum.
5769
acce4e77
JM
57702011-04-06 Joseph Myers <joseph@codesourcery.com>
5771
5772 * c-target-def.h: New file.
5773 * c-target.def: New file.
5774 * c-target.h: New file.
5775 * c-common.c (targetcm): Don't define here.
5776 * c-common.h (default_handle_c_option): Declare.
5777 * c-format.c: Include c-target.h instead of target.h.
5778 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5779 include tm.h.
5780 (default_handle_c_option): Move from targhooks.c.
5781
e2eefb55
JJ
57822011-03-29 Jakub Jelinek <jakub@redhat.com>
5783
5784 PR preprocessor/48248
5785 * c-ppoutput.c (print): Add src_file field.
5786 (init_pp_output): Initialize it.
5787 (maybe_print_line): Don't optimize by adding up to 8 newlines
5788 if map->to_file and print.src_file are different file.
5789 (print_line): Update print.src_file.
5790
ba78087b
KT
57912011-03-25 Kai Tietz <ktietz@redhat.com>
5792
5793 * c-ada-spec.c (compare_comment): Use filename_cmp
5794 instead of strcmp for filename.
5795
0edf1bb2
JL
57962011-03-25 Jeff Law <law@redhat.com>
5797
adfac8df 5798 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5799
c7dc8804
JM
58002011-03-25 Jason Merrill <jason@redhat.com>
5801
5802 * c.opt: Add -std=c++03.
5803
d1d879b1
EB
58042011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5805
5806 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5807
3f8257db 58082011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
5809
5810 PR target/12171
5050afdf
KT
5811 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5812 Display allowed attributes for function pointer types.
5813 (pp_c_attributes_display): New function to display
5814 attributes having affects_type_identity flag set to true.
5815 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5816
62d784f7
KT
5817 * c-common.c (c_common_attribute_table):
5818 Add new element.
5819 (c_common_format_attribute_table): Likewise.
5820
82d37118
JM
58212011-03-18 Jason Merrill <jason@redhat.com>
5822
49a000c3
JM
5823 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5824 * c-common.h: Don't declare it here.
5825 * c-common.c: Or define it here.
5826 * c-opts.c (c_common_handle_option): Or set it here.
5827
82d37118
JM
5828 PR c++/35315
5829 * c-common.c (handle_transparent_union_attribute): Don't
5830 make a duplicate type in C++.
5831
17bc631c
JM
58322011-03-15 Jason Merrill <jason@redhat.com>
5833
5834 * c-common.c (max_constexpr_depth): New.
5835 * c-common.h: Declare it.
5836 * c-opts.c (c_common_handle_option): Set it.
5837 * c.opt (fconstexpr-depth): New option.
5838
1b9b91a6
JM
58392011-03-11 Jason Merrill <jason@redhat.com>
5840
f231b5ff
JM
5841 * c-common.c (attribute_takes_identifier_p): Add missing const.
5842
1b9b91a6
JM
5843 PR c++/46803
5844 * c-common.c (attribute_takes_identifier_p): Assume that an
5845 unknown attribute takes an identifier.
5846
a19e4d44
NF
58472011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5848
5849 PR c/47786
5850 * c-common.c (c_type_hash): Call list_length instead of iterating
5851 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5852
982d62f6
JJ
58532011-02-19 Jakub Jelinek <jakub@redhat.com>
5854
5855 PR c/47809
5856 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5857
0a256240
NP
58582011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5859
5860 * c.opt (fobjc-abi-version=) New.
5861 (fobjc-nilcheck): New.
5862
ba9e6dd5
NF
58632011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5864
5865 PR c++/46890
5866 * c-common.h (keyword_is_decl_specifier): Declare.
5867 * c-common.c (keyword_is_decl_specifier): Define.
5868 (keyword_is_function_specifier): New function.
5869
7273813a
JJ
58702011-01-26 Jakub Jelinek <jakub@redhat.com>
5871
5872 PR c/47473
5873 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5874 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5875 REAL_TYPE.
5876
908ef79b
AC
58772011-01-26 Arnaud Charlet <charlet@adacore.com>
5878
5879 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5880
237e9384
JJ
58812011-01-26 Jakub Jelinek <jakub@redhat.com>
5882
5883 PR pch/47430
5884 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5885 after init_c_lex if pch_file is set.
5886
47ea1edf
DK
58872011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5888
d4dba752 5889 PR c++/43601
47ea1edf
DK
5890 * c.opt (-fkeep-inline-dllexport): New switch.
5891
2aa9c6ae
RG
58922011-01-12 Richard Guenther <rguenther@suse.de>
5893
5894 PR middle-end/32511
5895 * c-common.c (handle_weak_attribute): Warn instead of error
5896 on declaring an inline function weak.
5897
7bd11157
TT
58982011-01-05 Tom Tromey <tromey@redhat.com>
5899
5900 * c-common.h (lvalue_error): Update.
5901 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5902 not error.
5903
0e66e494 59042010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5905
b4f588c4
NP
5906 PR objc/47075
5907 * c-objc.h (objc_finish_message_expr): Added argument to
5908 prototype.
5909
f4da8dce
NF
59102010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5911
5912 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5913 Use prototype_p.
5914
46270f14
NP
59152010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5916
5917 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5918 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5919
4816c593
NF
59202010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5921
5922 * c-common.h (readonly_error): Declare.
5923 * c-common.c (readonly_error): Define.
5924
7a6daeb0
NF
59252010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5926
5927 * c-common.h (invalid_indirection_error): Declare.
5928 * c-common.c (invalid_indirection_error): Define.
5929
892f6119
RG
59302010-12-03 Richard Guenther <rguenther@suse.de>
5931
5932 PR c/46745
5933 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5934 (pp_c_unary_expression): Likewise.
5935 (pp_c_expression): Likewise.
5936
6c39e757
NP
59372010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5938
5939 * c-common.h (objc_finish_function): New.
5940 (objc_non_volatilized_type): Removed.
5941 (objc_type_quals_match): Removed.
5942 * stub-objc.c (objc_finish_function): New.
5943 (objc_non_volatilized_type): Removed.
5944 (objc_type_quals_match): Removed.
9faeb493 5945
7c475d11
JM
59462010-11-30 Joseph Myers <joseph@codesourcery.com>
5947
5948 * c-common.h (parse_optimize_options): Declare.
5949 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5950 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5951
71f3e391
JM
59522010-11-29 Joseph Myers <joseph@codesourcery.com>
5953
5954 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5955 GET_ENVIRONMENT.
5956 * c-pch.c (O_BINARY): Don't define here.
5957 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5958
d5fabb58
JM
59592010-11-25 Joseph Myers <joseph@codesourcery.com>
5960
5961 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5962 targetm.except_unwind_info.
5963
299404a1
JM
59642010-11-23 Joseph Myers <joseph@codesourcery.com>
5965
5966 * c-opts.c (c_common_handle_option): Pass location to
5967 set_struct_debug_option.
5968
c98cd5bf
JM
59692010-11-23 Joseph Myers <joseph@codesourcery.com>
5970
5971 * c-common.c (visibility_options): Move from ../opts.c.
5972 * c-common.h (struct visibility_flags, visibility_options):
5973 Declare here.
5974 * c-opts.c (finish_options): Rename to c_finish_options.
5975 (c_common_init): Update call to finish_options.
5976
a9546771
NP
59772010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5978
5979 PR objc/34033
5980 * c-lex.c (lex_string): Check that each string in an Objective-C
5981 string concat sequence starts with either one or zero '@', and
5982 that there are no spurious '@' signs at the end.
5983
24a57808
JM
59842010-11-20 Joseph Myers <joseph@codesourcery.com>
5985
5986 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5987 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5988 HANDLE_PRAGMA_VISIBILITY.
5989 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5990 HANDLE_PRAGMA_VISIBILITY): Don't define.
5991 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5992
a9aa2c3a
NF
59932010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5994
5995 PR c++/16189
5996 PR c++/36888
5997 PR c++/45331
5998 * c-common.h (keyword_begins_type_specifier): Declare.
5999 (keyword_is_storage_class_specifier): Declare.
6000 (keyword_is_type_qualifier): Declare.
6001 * c-common.c (keyword_begins_type_specifier): New function.
6002 (keyword_is_storage_class_specifier): New function.
6003 (keyword_is_type_qualifier): Declare.
6004
5386338c
JM
60052010-11-19 Joseph Myers <joseph@codesourcery.com>
6006
6007 PR c/46547
6008 * c-common.c (in_late_binary_op): Define.
6009 (c_common_truthvalue_conversion): Check in_late_binary_op before
6010 calling c_save_expr.
6011 * c-common.h (in_late_binary_op): Declare.
6012
69ccdddb
JM
60132010-11-19 Joseph Myers <joseph@codesourcery.com>
6014
6015 * c-opts.c (c_common_handle_option): Update calls to
6016 set_struct_debug_option.
6017
6b192a09
NP
60182010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6019
6020 * c-common.h (objc_declare_protocols): Added additional argument.
6021 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6022
fb52b50a
NF
60232010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6024
6025 PR c/33193
6026 * c-common.h (build_real_imag_expr): Declare.
6027 * c-semantics.c (build_real_imag_expr): Define.
6028
b37421c6
JM
60292010-11-17 Joseph Myers <joseph@codesourcery.com>
6030
6031 * c-opts.c (c_common_parse_file): Take no arguments.
6032 * c-common.h (c_common_parse_file): Update prototype.
6033
07078664
JJ
60342010-11-16 Jakub Jelinek <jakub@redhat.com>
6035
6036 PR c++/46401
6037 * c-common.c (warning_candidate_p): Don't track non-const calls
6038 or STRING_CSTs.
6039
c6a13190
ILT
60402010-11-15 Ian Lance Taylor <iant@google.com>
6041
6042 * c-lex.c (init_c_lex): Set macro debug callbacks if
6043 flag_dump_go_spec is set.
6044
925e8657
NP
60452010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6046
6047 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6048 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6049
bb0a9581
NF
60502010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6051
6052 PR preprocessor/45038
6053 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6054 dialects.
6055
c5fa0890
JM
60562010-11-12 Joseph Myers <joseph@codesourcery.com>
6057
6058 * c-common.h (c_family_lang_mask): Declare.
6059 * c-opts.c (c_family_lang_mask): Make extern.
6060 * c-pragma.c (handle_pragma_diagnostic): Use
6061 control_warning_option.
6062
a4d8c676
JM
60632010-11-12 Joseph Myers <joseph@codesourcery.com>
6064
6065 * c-common.c (parse_optimize_options): Update call to
6066 decode_options.
6067 * c-common.h (c_common_handle_option): Update prototype.
6068 * c-opts.c (c_common_handle_option): Take location_t parameter and
6069 pass it to other functions.
6070
f954bd2c
JM
60712010-11-11 Joseph Myers <joseph@codesourcery.com>
6072
6073 * c-opts.c (warning_as_error_callback): Remove.
6074 (c_common_initialize_diagnostics): Don't call
6075 register_warning_as_error_callback.
6076 (c_common_handle_option): Handle -Werror=normalized= here.
6077
d8a07487
JM
60782010-11-10 Joseph Myers <joseph@codesourcery.com>
6079
6080 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6081 in diagnostic.
6082 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6083 letter.
6084 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6085 Remove trailing '.' from diagnostics.
6086 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6087
d5478783
JM
60882010-11-10 Joseph Myers <joseph@codesourcery.com>
6089
6090 * c-common.c (parse_optimize_options): Pass global_dc to
6091 decode_options.
6092 * c-opts.c (c_common_handle_option): Pass &global_options to
6093 set_Wstrict_aliasing.
6094 * c.opt (v): Don't mark Common or document here.
6095
91ebb981
IS
60962010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6097
6098 PR target/44981
6099 * c-format.c (format_type): New type gcc_objc_string_format_type.
6100 (valid_stringptr_type_p): New.
6101 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6102 (check_format_string): Pass expected type, use
91ebb981
IS
6103 valid_stringptr_type_p (), check that the format string types are
6104 consistent with the format specification.
6105 (decode_format_attr): Warn if NSString is used outside objective-c.
6106 (format_types_orig): Add NSString.
6107 (format_name): New.
6108 (format_flags): New.
6109 (check_format_arg): Handle format strings requiring an external parser.
6110 first_target_format_type: New variable.
6111 (handle_format_attribute): Set up first_target_format_type, pass the
6112 expected format arg string type to check_format_string().
6113 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6114 * stub-objc.c (objc_string_ref_type_p): New.
6115 (objc_check_format_arg): New.
6116
bede2adc
NP
61172010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6118
9faeb493 6119 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6120 * c-common.h (objc_build_class_component_ref): New.
6121 * stub-objc.c (objc_build_class_component_ref): New.
6122
9a179d01
NP
61232010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6124
6125 * c.opt (Wproperty-assign-default): New option.
6126
22d8d616
NP
61272010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6128
6129 Implemented -fobjc-std=objc1 flag.
6130 * c.opt (fobjc-std=objc1): New option.
6131
2debdb4f
NP
61322010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6133
6134 Implemented format and noreturn attributes for Objective-C methods.
6135 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6136 attribute for Objective-C methods.
6137
ec52b111
JM
61382010-10-31 Jason Merrill <jason@redhat.com>
6139
6140 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6141 EXPR_LOC_OR_HERE.
6142
46a88c12
NP
61432010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6144
6145 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6146 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6147 (objc_add_property_declaration): Removed arguments for copies and
6148 ivar.
6149 (objc_build_getter_call): Renamed to
6150 objc_maybe_build_component_ref.
6151 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6152 (objc_is_property_ref): New.
6153 * c-common.c (c_common_reswords): Removed copies and ivar.
6154 * stub-objc.c (objc_add_property_declaration): Removed arguments
6155 for copies and ivar.
6156 (objc_build_getter_call): Renamed to
6157 objc_maybe_build_component_ref.
6158 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6159 (objc_is_property_ref): New.
9faeb493 6160
1e4bf85b
AC
61612010-10-29 Arnaud Charlet <charlet@adacore.com>
6162 Matthew Gingell <gingell@adacore.com>
6163
6164 * c-ada-spec.c (separate_class_package): New function.
6165 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6166 name of their enclosing package.
6167 (print_ada_declaration): Use separate_class_package.
6168
81f0bab2
JM
61692010-10-27 Jason Merrill <jason@redhat.com>
6170
2b08f2c5
JM
6171 * c-common.c (c_common_reswords): Add __is_literal_type.
6172 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6173
81f0bab2
JM
6174 * c-common.c (check_case_value): Remove special C++ code.
6175
200290f2
NP
61762010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6177
6178 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6179 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6180 and RID_LAST_PATTR.
6181 (objc_add_property_declaration): Added additional arguments.
6182 (objc_property_attribute_kind): Removed.
6183 (objc_set_property_attr): Removed.
6184 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6185 copy and nonatomic.
6186 * stub-objc.c (objc_add_property_declaration): Added additional
6187 arguments.
6188 (objc_set_property_attr): Removed.
9faeb493 6189
f614132b
NP
61902010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6191
6192 * c-common.h (objc_add_property_variable): Renamed to
6193 objc_add_property_declaration. Added location argument.
6194 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6195
b8a18805
NP
61962010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6197
6198 * c-common.h (objc_maybe_printable_name): New.
6199 * stub-objc.c (objc_maybe_printable_name): New.
6200
3f8257db
JJ
62012010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6202 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6203
6204 * c-common.h (c_common_mark_addressable_vec): Declare.
6205 * c-common.c (c_common_mark_addressable_vec): New function.
6206
249a82c4
NP
62072010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6208
6209 * c-common.h (objc_set_method_type): Removed.
6210 (objc_add_method_declaration): Added boolean argument.
6211 (objc_start_method_definition): Same change.
6212 (objc_build_method_signature): Same change.
6213 * stub-objc.c (objc_set_method_type): Removed.
6214 (objc_add_method_declaration): Added boolean argument.
6215 (objc_start_method_definition): Same change.
6216 (objc_build_method_signature): Same change.
6217
977e30bc
NP
62182010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6219
6220 * c-common.h (finish_file): Removed.
6221 (objc_write_global_declarations): New.
6222 * c-opts.c (c_common_parse_file): Do not call finish_file.
6223 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6224
da57d1b9
NP
62252010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6226
6227 Implemented parsing @synthesize and @dynamic for
6228 Objective-C/Objective-C++.
6229 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6230 (objc_add_synthesize_declaration): New.
6231 (objc_add_dynamic_declaration): New.
6232 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6233 * stub-objc.c (objc_add_synthesize_declaration): New.
6234 (objc_add_dynamic_declaration): New.
9faeb493 6235
0069111f
MM
62362010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6237
6238 PR target/46041
6239 * c-cppbuiltin.c (mode_has_fma): Move function here from
6240 builtins.c. Don't use the fma optab, instead just use the
6241 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6242 using -save-temps.
6243
e426b47b
NP
62442010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6245
6246 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6247
3f8257db 6248 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6249
9faeb493 6250 Radar 4330422
e426b47b
NP
6251 * c-common.h (objc_non_volatilized_type): New declaration
6252 * stub-objc.c (objc_non_volatilized_type): New stub.
6253
90fbfdc3
NP
62542010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6255
e426b47b 6256 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6257
3f8257db 6258 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6259
9faeb493 6260 Radar 4133425
90fbfdc3 6261 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6262 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6263
c37d8c30
IS
62642010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6265
6266 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6267 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6268 (objc_ivar_visibility_kind): New enum.
6269 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6270 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6271 visibility enum.
6272
1b1562a5
MM
62732010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6274
6275 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6276 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6277 has the appropriate fma builtins.
6278 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6279
668ea4b1
IS
62802010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6281
1b1562a5 6282 merge from FSF apple 'trunk' branch.
3f8257db 6283 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6284
668ea4b1
IS
6285 Radars 4436866, 4505126, 4506903, 4517826
6286 * c-common.c (c_common_resword): Define @property and its attributes.
6287 * c-common.h: Define property attribute enum entries.
6288 (OBJC_IS_PATTR_KEYWORD): New.
6289 (objc_property_attribute_kind): New enum.
6290 Declare objc_set_property_attr (), objc_add_property_variable (),
6291 objc_build_getter_call () and objc_build_setter_call ().
6292 * stub-objc.c (objc_set_property_attr): New stub.
6293 (objc_add_property_variable): Likewise.
6294 (objc_build_getter_call): Likewise.
6295 (objc_build_setter_call) Likewise.
1b1562a5 6296
a1178b30
IS
62972010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6298
1b1562a5 6299 merge from FSF apple 'trunk' branch.
3f8257db 6300 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6301
6302 Radar 3803157 (method attributes)
6303 * c-common.c (handle_deprecated_attribute): Recognize
6304 objc methods as valid declarations.
6305 * c-common.h: Declare objc_method_decl ().
1b1562a5 6306 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6307
a75bfaa6
JM
63082010-10-08 Joseph Myers <joseph@codesourcery.com>
6309
6310 * c-common.c (parse_optimize_options): Call
6311 decode_cmdline_options_to_array_default_mask before
6312 decode_options. Update arguments to decode_options.
6313 * c-common.h (c_common_init_options_struct): Declare.
6314 * c-opts.c (c_common_init_options_struct): New. Split out from
6315 c_common_init_options.
6316
f05b9d93
NP
63172010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6318
6319 Implemented fast enumeration for Objective-C.
6320 * c-common.h (objc_finish_foreach_loop): New.
6321 * stub-objc.c (objc_finish_foreach_loop): New.
6322
1ebe4b4f
JM
63232010-10-05 Joseph Myers <joseph@codesourcery.com>
6324
6325 * c-common.h (struct diagnostic_context): Don't declare here.
6326 (c_common_initialize_diagnostics): Declare using
6327 diagnostic_context typedef.
6328 * c-opts.c (c_common_handle_option): Pass global_dc to
6329 handle_generated_option.
6330
d4d24ba4
JM
63312010-10-04 Joseph Myers <joseph@codesourcery.com>
6332
6333 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6334 handle_generated_option.
6335
478a1c5b
ILT
63362010-10-03 Ian Lance Taylor <iant@google.com>
6337
6338 * c.opt (-fplan9-extensions): New option.
6339
82a1c2fe
FXC
63402010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6341
6342 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6343 Remove.
6344 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6345 of duplicating code.
6346
92902b1b
IS
63472010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6348
6349 * c-common.c: Add two new entries for @optional
6350 and @required keywords.
6351
6352 merge from FSF 'apple/trunk' branch.
3f8257db 6353 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6354
6355 Radar 4386773
6356 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6357 objective-c keywords.
6358 (objc_set_method_opt): New declaration.
6359 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6360
46625112
JM
63612010-09-30 Joseph Myers <joseph@codesourcery.com>
6362
6363 * c-common.c (handle_optimize_attribute): Pass &global_options to
6364 cl_optimization_save and cl_optimization_restore.
6365 * c-opts.c (c_common_handle_option): Pass &global_options to
6366 handle_generated_option.
6367 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6368 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6369 &global_options to cl_optimization_restore.
6370
49b91f05
NP
63712010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6372
6373 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6374 Objective-C/Objective-C++ keywords.
6375
13ed556f 63762010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6377
9faeb493
UB
6378 Merge from 'apple/trunk' branch on FSF servers.
6379
3f8257db 6380 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6381
6382 Radar 4281748
6383 * c-common.h (objc_check_global_decl): New declaration.
6384 * stub-objc.c (objc_check_global_decl): New stub.
6385
f0036cca
JM
63862010-09-29 Joseph Myers <joseph@codesourcery.com>
6387
6388 * c.opt: Don't use VarExists.
6389
e3339d0f
JM
63902010-09-29 Joseph Myers <joseph@codesourcery.com>
6391
6392 * c-common.c (c_cpp_error): Update names of diagnostic_context
6393 members.
6394 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6395 cl_optimization members.
6396 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6397 sanitize_cpp_opts, finish_options): Update names of cpp_options
6398 members.
6399
1973201f
NP
64002010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6401
6402 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6403 (objc_is_reserved_word): Removed.
6404 * c-common.c: Updated comments.
6405 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6406 objc_is_reserved_word.
6407 * stub-objc.c (objc_is_reserved_word): Removed.
6408
f7e71da5
IS
64092010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6410
9faeb493 6411 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6412 include attributes.
6413 (objc_start_method_definition): Likewise.
6414 (objc_build_keyword_decl): Likewise.
6415 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6416 (objc_start_method_definition): Likewise.
6417 (objc_build_keyword_decl): Likewise.
6418
c165dca7
IS
64192010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6420
6421 * c-common.h (objc_start_class_interface): Adjust prototype.
6422 (objc_start_category_interface): Likewise.
6423 (objc_start_protocol): Likewise.
6424 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6425 (objc_start_class_interface): Likewise.
6426 (objc_start_category_interface): Likewise.
6427
7458026b
ILT
64282010-09-27 Ian Lance Taylor <iant@google.com>
6429
6430 * c-common.c (c_common_attribute_table): Add no_split_stack.
6431 (handle_no_split_stack_attribute): New static function.
6432
b581b85b
NP
64332010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6434
9faeb493 6435 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6436
3f8257db 6437 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6438
9faeb493 6439 Radar 4229905
b581b85b
NP
6440 * c-common.h (objc_have_common_type): New declaration.
6441 * stub-objc.c (objc_have_common_type): New stub.
6442
6443 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6444
6445 Radar 4154928
6446 * c-common.h (objc_common_type): New prototype.
9faeb493 6447 * stub-objc.c (objc_common_type): New stub.
b581b85b 6448
46a4da10
JH
64492010-09-24 Jan Hubicka <jh@suse.cz>
6450
6451 * c-common.c (handle_leaf_attribute): New function.
6452 (struct attribute_spec c_common_att): Add leaf.
6453
e200444e
JM
64542010-09-22 Joseph Myers <joseph@codesourcery.com>
6455
6456 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6457 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6458 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6459 -include-barrier, -include-directory, -include-directory=,
6460 -include-directory-after, -include-directory-after=,
6461 -include-prefix, -include-prefix=, -include-with-prefix,
6462 -include-with-prefix=, -include-with-prefix-after,
6463 -include-with-prefix-after=, -include-with-prefix-before,
6464 -include-with-prefix-before=, -no-integrated-cpp,
6465 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6466 -output=, -pedantic, -pedantic-errors, -preprocess,
6467 -print-missing-file-dependencies, -trace-includes, -traditional,
6468 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6469 -user-dependencies, -verbose, -write-dependencies,
6470 -write-user-dependencies, no-integrated-cpp, traditional): New.
6471
29a80ea6
NP
64722010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6473
6474 PR objc/23710
ac1fc2fc
NP
6475 * c-common.h (objc_start_method_definition): Return bool instead
6476 of void.
6477 * stub-objc.c (objc_start_method_definition): Return bool instead
6478 of void.
6479
64802010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6481
6482 PR objc/25965
6483 * c-common.h (objc_get_interface_ivars): New declaration.
6484 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6485
de621752
ILT
64862010-09-15 Ian Lance Taylor <iant@google.com>
6487
6488 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6489 messages. Remove period at end of warning message.
de621752 6490
ba885ec5
NS
64912010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6492
6493 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6494 (handle_alias_attribute): ... here.
6495 (handle_ifunc_attribute): New.
6496
c5ee1358
MM
64972010-09-06 Mark Mitchell <mark@codesourcery.com>
6498
6499 * c-common.h (do_warn_double_promotion): Declare.
6500 * c-common.c (do_warn_double_promotion): Define.
6501
0a0b3574
MM
65022010-09-05 Mark Mitchell <mark@codesourcery.com>
6503
6504 * c.opt (Wdouble-promotion): New.
6505
d1779886
JM
65062010-09-02 Joseph Myers <joseph@codesourcery.com>
6507
6508 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6509 fvtable-thunks, fxref): Mark no longer supported in help text.
6510
2d2bd949
JM
65112010-09-02 Joseph Myers <joseph@codesourcery.com>
6512
6513 * c.opt (Wimport, fall-virtual, falt-external-templates,
6514 fdefault-inline, fenum-int-equiv, fexternal-templates,
6515 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6516 fname-mangling-version-, fnew-abi, fnonnull-objects,
6517 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6518 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6519 applicable.
6520 (fhandle-exceptions): Mark with Alias and Warn.
6521 * c-opts.c (c_common_handle_option): Don't handle options marked
6522 as ignored.
6523
5de8299c
JM
65242010-09-02 Joseph Myers <joseph@codesourcery.com>
6525
6526 * c.opt (Wcomments, Werror-implicit-function-declaration,
6527 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6528 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6529 aliases.
6530 * c-common.c (option_codes): Use OPT_Wcomment instead of
6531 OPT_Wcomments.
6532 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6533 Don't handle options marked as aliases.
6534
0ceb0201
RG
65352010-08-25 Richard Guenther <rguenther@suse.de>
6536
6537 * c-common.c (c_common_get_alias_set): Remove special
6538 handling for pointers.
6539
ac47786e
NF
65402010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6541
6542 * c-common.c: Use FOR_EACH_VEC_ELT.
6543 * c-gimplify.c: Likewise.
6544 * c-pragma.c: Likewise.
6545
c878765b
JM
65462010-08-16 Joseph Myers <joseph@codesourcery.com>
6547
6548 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6549 RejectDriver.
6550 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6551 RejectDriver.
6552 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6553 instead of OPT_MDX and OPT_MMDX.
6554
603349bf
JM
65552010-08-16 Joseph Myers <joseph@codesourcery.com>
6556
6557 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6558
644fa7ac
JM
65592010-08-12 Joseph Myers <joseph@codesourcery.com>
6560
6561 * c.opt (MD, MMD): Change to MDX and MMDX.
6562 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6563
481e1176
JM
65642010-08-11 Joseph Myers <joseph@codesourcery.com>
6565
6566 * c-opts.c (c_common_handle_option): Call handle_generated_option
6567 instead of handle_option.
6568
ac8dc9f7
NF
65692010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6570
6571 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6572 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6573
4f8c876d
NF
65742010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6575
6576 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6577 (pending_redefine_extname): Change type to a VEC.
6578 (add_to_renaming_pragma_list): Update for new type of
6579 pending_redefine_extname.
ac8dc9f7 6580 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6581
3b0c690e
AC
65822010-08-04 Arnaud Charlet <charlet@adacore.com>
6583
6584 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6585 visited.
6586 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6587 decide whether a type has already been declared/seen.
6588 Do not go to the original type.
6589 (dump_nested_types): New parameter forward.
6590 Generate forward declaration if needed and mark type as visited.
6591 (print_ada_declaration): Call dump_nested_types if not already done.
6592 Mark types as visited.
6593
1890bccc
JM
65942010-08-03 Joseph Myers <joseph@codesourcery.com>
6595
6596 * c.opt (-print-pch-checksum): Remove option.
6597 * c-opts.c (c_common_handle_option): Don't handle
6598 OPT_print_pch_checksum.
6599
5f20c657
JM
66002010-07-27 Joseph Myers <joseph@codesourcery.com>
6601
6602 * c-common.h (c_common_handle_option): Update prototype and return
6603 value type.
6604 * c-opts.c (c_common_handle_option): Update prototype and return
6605 value type. Update calls to handle_option and
6606 enable_warning_as_error.
6607
f551f80c
JJ
66082010-07-27 Jakub Jelinek <jakub@redhat.com>
6609
6610 PR c/45079
6611 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6612
61ff2bdc
JM
66132010-07-27 Joseph Myers <joseph@codesourcery.com>
6614
6615 * c-common.h (c_common_missing_argument): Remove.
6616 * c-opts.c (c_common_missing_argument): Remove.
6617 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6618 idirafter, imacros, include, isysroot, isystem, iquote): Add
6619 MissingArgError.
6620 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6621
7a9bf9a4
JM
66222010-07-27 Joseph Myers <joseph@codesourcery.com>
6623
6624 * c-common.h (c_common_option_lang_mask,
6625 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6626 New.
6627 (c_common_init_options): Update prototype.
6628 * c-opts.c (c_common_option_lang_mask): New.
6629 (c_common_initialize_diagnostics): Split out of
6630 c_common_init_options.
6631 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6632 New.
6633 (c_common_init_options): Update prototype. Use decoded options in
6634 search for -lang-asm.
6635
910ad8de
NF
66362010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6637
6638 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6639 * c-format.c: Likewise.
6640
718f9c0f
MLI
66412010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6642
6643 * c-common.h: Include diagnostic-core.h. Error if already
6644 included.
6645 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6646
4d451982
MLI
66472010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6648
adfac8df 6649 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6650 Do not include expr.h
6651 (vector_mode_valid_p): Move here.
6652
119fe915
SB
66532010-06-21 DJ Delorie <dj@redhat.com>
6654
6655 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6656 allow these pragmas anywhere.
6657
66582010-06-14 Jakub Jelinek <jakub@redhat.com>
6659
6660 PR bootstrap/44509
6661 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6662 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6663 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6664 ggc_strdup instead of xstrdup.
6665
66662010-06-10 Jakub Jelinek <jakub@redhat.com>
6667
6668 * c-cppbuiltin.c: Include cpp-id-data.h.
6669 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6670 (lazy_hex_fp_value): New function.
6671 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6672
6662d794
MLI
66732010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6674
6675 * c-gimplify.c: Do not include tree-flow.h
6676
38f8b050
JR
66772010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6678
6679 PR other/44034
6680 * c-common.c: Rename targetm member:
6681 targetm.enum_va_list -> targetm.enum_va_list_p
6682
9589f23e
AS
66832010-06-28 Anatoly Sokolov <aesok@post.ru>
6684
6685 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6686
3b06d379
SB
66872010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6688
6689 * c-cppbuiltin.c: Do not include except.h.
6690
d166d4c3
AK
66912010-06-24 Andi Kleen <ak@linux.intel.com>
6692
9faeb493
UB
6693 * c-common.c (warn_for_omitted_condop): New.
6694 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6695
70cb8be6
JM
66962010-06-21 Joseph Myers <joseph@codesourcery.com>
6697
6698 * c.opt (lang-objc): Remove.
6699 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6700
a4c97feb
JR
67012010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6702
6703 * c-opts.c: Include "tm_p.h".
6704
6e2f1956
JM
67052010-06-20 Joseph Myers <joseph@codesourcery.com>
6706
6707 * c-common.c (parse_optimize_options): Update call to
6708 decode_options.
6709
bc87224e
NF
67102010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6711
6712 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6713 new type of types_used_by_cur_var_decl.
6714
b49cf425
JR
67152010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6716
6717 PR bootstrap/44512
6718 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6719 for C++ standard compliance.
6720
59f9c2ed
JM
67212010-06-16 Jason Merrill <jason@redhat.com>
6722
6723 * c.opt: Add -Wnoexcept.
6724
33766b66
RG
67252010-06-16 Richard Guenther <rguenther@suse.de>
6726
6727 PR c/44555
6728 * c-common.c (c_common_truthvalue_conversion): Remove
6729 premature and wrong optimization concering ADDR_EXPRs.
6730
eff7e30c
AC
67312010-06-15 Arnaud Charlet <charlet@adacore.com>
6732
6733 * c-ada-spec.c (dump_sloc): Remove column info.
6734 (is_simple_enum): New function.
6735 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6736 enum types when relevant.
6737
6312e84d
MLI
67382010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6739
9faeb493 6740 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6741 location.
6742
1cb42611
JM
67432010-06-10 Joseph Myers <joseph@codesourcery.com>
6744
6745 * c-opts.c (c_common_handle_option): Don't handle
6746 OPT_fshow_column.
6747
a9429e29
LB
67482010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6749
6750 * c-pragma.c (push_alignment): Use typed GC allocation.
6751 (handle_pragma_push_options): Likewise.
6752
6753 * c-common.c (parse_optimize_options): Likewise.
6754
6755 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6756 option.
6757
5498f011
JM
67582010-06-07 Joseph Myers <joseph@codesourcery.com>
6759
6760 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6761 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6762 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6763 flag_signed_bitfields, warn_strict_null_sentinel,
6764 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6765 flag_gen_declaration, flag_no_gnu_keywords,
6766 flag_implement_inlines, flag_implicit_templates,
6767 flag_implicit_inline_templates, flag_optional_diags,
6768 flag_elide_constructors, flag_default_inline, flag_rtti,
6769 flag_conserve_space, flag_access_control, flag_check_new,
6770 flag_new_for_scope, flag_weak, flag_working_directory,
6771 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6772 flag_enforce_eh_specs, flag_threadsafe_statics,
6773 flag_pretty_templates): Remove.
6774 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6775 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6776 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6777 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6778 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6779 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6780 flag_no_gnu_keywords, flag_implement_inlines,
6781 flag_implicit_templates, flag_implicit_inline_templates,
6782 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6783 flag_rtti, flag_conserve_space, flag_access_control,
6784 flag_check_new, flag_new_for_scope, flag_weak,
6785 flag_working_directory, flag_use_cxa_atexit,
6786 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6787 flag_threadsafe_statics, flag_pretty_templates,
6788 warn_strict_null_sentinel): Remove.
6789 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6790 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6791 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6792 fimplicit-inline-templates, fimplicit-templates,
6793 flax-vector-conversions, fms-extensions, fnil-receivers,
6794 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6795 frtti, fshort-double, fshort-enums, fshort-wchar,
6796 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6797 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6798 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6799 gen-decls, undef): Use Var.
6800 (fdefault-inline, foptional-diags): Document as doing nothing.
6801 * c-opts.c (c_common_handle_option): Remove cases for options now
6802 using Var. Mark ignored options as such.
6803
39dabefd
SB
68042010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6805
9faeb493 6806 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6807 * c-common.def: Likewise.
6808 * c-common.h: Likewise.
6809 * c-cppbuiltin.c: Likewise.
6810 * c-dump.c: Likewise.
6811 * c-format.c: Likewise.
6812 * c-format.h : Likewise.
6813 * c-gimplify.c: Likewise.
6814 * c-lex.c: Likewise.
6815 * c-omp.c: Likewise.
6816 * c.opt: Likewise.
6817 * c-opts.c: Likewise.
6818 * c-pch.c: Likewise.
6819 * c-ppoutput.c: Likewise.
6820 * c-pragma.c: Likewise.
6821 * c-pragma.h: Likewise.
6822 * c-pretty-print.c: Likewise.
6823 * c-pretty-print.h: Likewise.
6824 * c-semantics.c: Likewise.
6825 * stub-objc.c: Likewise.
6826
6827 * c-common.c: Include gt-c-family-c-common.h.
6828 * c-pragma.c: Include gt-c-family-c-pragma.h.
6829\f
818ab71a 6830Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6831
6832Copying and distribution of this file, with or without modification,
6833are permitted in any medium without royalty provided the copyright
6834notice and this notice are preserved.