]> gcc.gnu.org Git - gcc.git/blob - gcc/c-family/ChangeLog
Replace error_at with assert in build_va_arg
[gcc.git] / gcc / c-family / ChangeLog
1 2016-08-29 Tom de Vries <tom@codesourcery.com>
2
3 * c-common.c (build_va_arg): Replace first argument type error
4 with assert.
5
6 2016-08-29 Tom de Vries <tom@codesourcery.com>
7
8 PR c/77398
9 * c-common.c (build_va_arg): Add first argument error. Build va_arg
10 with error_mark_node as va_list instead of with illegal va_list.
11
12 2016-08-25 Marek Polacek <polacek@redhat.com>
13 David Malcolm <dmalcolm@redhat.com>
14
15 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
16 * c-common.h (warn_logical_not_parentheses): Update declaration.
17
18 2016-08-22 Marek Polacek <polacek@redhat.com>
19
20 PR c++/77321
21 * c-common.c (warn_for_memset): Check type for null.
22
23 2016-08-22 Joseph Myers <joseph@codesourcery.com>
24
25 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
26 _FloatNx types for suffixes for built-in functions.
27
28 2016-08-19 Joseph Myers <joseph@codesourcery.com>
29
30 PR c/32187
31 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
32 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
33 (RID_FLOAT128X): New enum rid values.
34 (CASE_RID_FLOATN_NX): New macro.
35 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
36 keywords.
37 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
38 corresponding complex types.
39 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
40 _FloatNx and corresponding complex types.
41 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
42 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
43 and _FloatNx types for the widest type for determining
44 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
45 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
46 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
47 and _FloatNx types.
48 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
49 constants.
50 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
51 _FloatNx types.
52
53 2016-08-18 David Malcolm <dmalcolm@redhat.com>
54
55 * c-opts.c (c_diagnostic_finalizer): Update for change to
56 diagnostic_show_locus.
57
58 2016-08-18 David Malcolm <dmalcolm@redhat.com>
59
60 * c-common.c: Include "spellcheck.h".
61 (cb_get_suggestion): New function.
62 * c-common.h (cb_get_suggestion): New decl.
63 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
64 cb_get_suggestion.
65
66 2016-08-18 Marek Polacek <polacek@redhat.com>
67
68 PR c/71514
69 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
70 and pointer-to-VLA.
71
72 2016-08-16 David Malcolm <dmalcolm@redhat.com>
73
74 PR c/72857
75 * c-common.c (substring_loc::get_range): Rename to...
76 (substring_loc::get_location): ...this, converting param from a
77 source_range * to a location_t *. Call
78 get_source_location_for_substring rather than
79 get_source_range_for_substring, and pass in m_caret_idx.
80 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
81 (substring_loc::get_range): Replace with...
82 (substring_loc::get_location): ...this.
83 (substring_loc::set_caret_index): New method.
84 (substring_loc): Add field m_caret_idx.
85 * c-format.c (format_warning_va): Update for above changes.
86 Rename local "substring_loc" to "fmt_substring_loc" to avoid
87 clashing with type name.
88 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
89 (check_argument_type): Likewise.
90 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
91 Use a copy when emitting warnings, setting the caret index from TYPE.
92
93 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
94 Arnaud Charlet <charlet@adacore.com>
95
96 * c-ada-spec.c (dump_number): New function.
97 (handle_escape_character): Likewise.
98 (print_ada_macros): Add handling of constant integers and strings.
99
100 2016-08-12 Marek Polacek <polacek@redhat.com>
101
102 PR c/7652
103 * c-common.c (scalar_to_vector): Adjust fall through comment.
104 * c-opts.c (c_common_handle_option): Likewise.
105 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
106 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
107 fall through comment.
108 * cilk.c (extract_free_variables): Add FALLTHRU.
109
110 2016-08-10 Jason Merrill <jason@redhat.com>
111
112 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
113
114 2016-08-09 Jason Merrill <jason@redhat.com>
115
116 * c-common.c (c_common_attribute_table): vector_size affects type
117 identity.
118
119 2016-08-09 Marek Polacek <polacek@redhat.com>
120
121 PR c/7652
122 * c-ada-spec.c (dump_generic_ada_node): Add return.
123
124 2016-08-09 Jason Merrill <jason@redhat.com>
125
126 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
127 C++17 constexpr lambdas.
128
129 2016-08-08 David Malcolm <dmalcolm@redhat.com>
130
131 PR c/64955
132 * c-common.h (selftest::c_format_c_tests): New declaration.
133 (selftest::run_c_tests): New declaration.
134 * c-format.c: Include "selftest.h.
135 (format_warning_va): Add param "corrected_substring" and use
136 it to add a replacement fix-it hint.
137 (format_warning_at_substring): Likewise.
138 (format_warning_at_char): Update for new param of
139 format_warning_va.
140 (argument_parser::check_argument_type): Pass "fki" to
141 check_format_types.
142 (check_format_types): Add param "fki" and pass it to
143 format_type_warning.
144 (deref_n_times): New function.
145 (get_modifier_for_format_len): New function.
146 (selftest::test_get_modifier_for_format_len): New function.
147 (get_format_for_type): New function.
148 (format_type_warning): Add param "fki" and use it to attempt
149 to provide hints for argument types when calling
150 format_warning_at_substring.
151 (selftest::get_info): New function.
152 (selftest::assert_format_for_type_streq): New function.
153 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
154 (selftest::test_get_format_for_type_printf): New function.
155 (selftest::test_get_format_for_type_scanf): New function.
156 (selftest::c_format_c_tests): New function.
157
158 2016-08-08 David Malcolm <dmalcolm@redhat.com>
159
160 PR c/52952
161 * c-format.c: Include "diagnostic.h".
162 (location_column_from_byte_offset): Delete.
163 (location_from_offset): Delete.
164 (format_warning_va): New function.
165 (format_warning_at_substring): New function.
166 (format_warning_at_char): New function.
167 (check_format_arg): Capture location of format_tree and pass to
168 check_format_info_main.
169 (argument_parser): Add fields "start_of_this_format" and
170 "format_string_cst".
171 (flag_chars_t::validate): Add param "format_string_cst". Convert
172 warning_at call using location_from_offset to call to
173 format_warning_at_char.
174 (argument_parser::argument_parser): Add param "format_string_cst_"
175 and use use it to initialize field "format_string_cst".
176 Initialize new field "start_of_this_format".
177 (argument_parser::read_format_flags): Convert warning_at call
178 using location_from_offset to a call to format_warning_at_char.
179 (argument_parser::read_any_format_left_precision): Likewise.
180 (argument_parser::read_any_format_precision): Likewise.
181 (argument_parser::read_any_other_modifier): Likewise.
182 (argument_parser::find_format_char_info): Likewise, in three places.
183 (argument_parser::parse_any_scan_set): Likewise, in one place.
184 (argument_parser::handle_conversions): Likewise, in two places.
185 (argument_parser::check_argument_type): Add param "fmt_param_loc"
186 and use it to make a substring_loc. Pass the latter to
187 check_format_types.
188 (check_format_info_main): Add params "fmt_param_loc" and
189 "format_string_cst". Convert warning_at calls using
190 location_from_offset to calls to format_warning_at_char. Pass the
191 new params to the arg_parser ctor. Pass "format_string_cst" to
192 flag_chars.validate. Pass "fmt_param_loc" to
193 arg_parser.check_argument_type.
194 (check_format_types): Convert first param from a location_t
195 to a const substring_loc & and rename to "fmt_loc". Attempt
196 to extract the range of the relevant parameter and pass it
197 to format_type_warning.
198 (format_type_warning): Convert first param from a location_t
199 to a const substring_loc & and rename to "fmt_loc". Add
200 params "param_range" and "type". Replace calls to warning_at
201 with calls to format_warning_at_substring.
202
203 2016-08-08 David Malcolm <dmalcolm@redhat.com>
204
205 * c-format.c (class flag_chars_t): New class.
206 (struct length_modifier): New struct.
207 (class argument_parser): New class.
208 (flag_chars_t::flag_chars_t): New ctor.
209 (flag_chars_t::has_char_p): New method.
210 (flag_chars_t::add_char): New method.
211 (flag_chars_t::validate): New method.
212 (flag_chars_t::get_alloc_flag): New method.
213 (flag_chars_t::assignment_suppression_p): New method.
214 (argument_parser::argument_parser): New ctor.
215 (argument_parser::read_any_dollar): New method.
216 (argument_parser::read_format_flags): New method.
217 (argument_parser::read_any_format_width): New method.
218 (argument_parser::read_any_format_left_precision): New method.
219 (argument_parser::read_any_format_precision): New method.
220 (argument_parser::handle_alloc_chars): New method.
221 (argument_parser::read_any_length_modifier): New method.
222 (argument_parser::read_any_other_modifier): New method.
223 (argument_parser::find_format_char_info): New method.
224 (argument_parser::validate_flag_pairs): New method.
225 (argument_parser::give_y2k_warnings): New method.
226 (argument_parser::parse_any_scan_set): New method.
227 (argument_parser::handle_conversions): New method.
228 (argument_parser::check_argument_type): New method.
229 (check_format_info_main): Introduce classes argument_parser
230 and flag_chars_t, moving the code within the loop into methods
231 of these classes. Make various locals "const".
232
233 2016-08-05 David Malcolm <dmalcolm@redhat.com>
234
235 * c-common.c: Include "substring-locations.h".
236 (get_cpp_ttype_from_string_type): New function.
237 (g_string_concat_db): New global.
238 (substring_loc::get_range): New method.
239 * c-common.h (g_string_concat_db): New declaration.
240 (class substring_loc): New class.
241 * c-lex.c (lex_string): When concatenating strings, capture the
242 locations of all tokens using a new obstack, and record the
243 concatenation locations within g_string_concat_db.
244 * c-opts.c (c_common_init_options): Construct g_string_concat_db
245 on the ggc-heap.
246
247 2016-07-29 Marek Polacek <polacek@redhat.com>
248
249 PR c/71926
250 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
251 parentheses warning.
252
253 PR c/71574
254 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
255
256 2016-07-28 Martin Liska <mliska@suse.cz>
257
258 PR gcov-profile/68025
259 * c-common.c (handle_no_profile_instrument_function_attribute):
260
261 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
262
263 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
264 BITS_PER_UNIT_LOG.
265
266 2016-07-25 Jason Merrill <jason@redhat.com>
267
268 PR c++/65970
269 * c.opt (fconstexpr-loop-limit): New.
270
271 2016-07-22 Martin Sebor <msebor@redhat.com>
272
273 PR c++/71675
274 * c-common.c (resolve_overloaded_builtin): Avoid converting
275 __atomic_compare_exchange_n return type to that of what its
276 first argument points to.
277
278 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
279
280 * c-common.c: Use HOST_WIDE_INT_M1U instead of
281 ~(unsigned HOST_WIDE_INT) 0.
282
283 2016-07-22 Martin Liska <mliska@suse.cz>
284
285 PR gcov-profile/69028
286 PR gcov-profile/62047
287 * cilk.c (create_cilk_helper_decl): Set location of a new decl
288 to the current_function_decl.
289
290 2016-07-21 Jason Merrill <jason@redhat.com>
291
292 PR c++/65168
293 * c-common.c (c_common_truthvalue_conversion): Check
294 c_inhibit_evaluation_warnings for warning about address of
295 reference.
296
297 2016-07-20 David Malcolm <dmalcolm@redhat.com>
298
299 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
300 const char *.
301
302 2016-07-15 Jason Merrill <jason@redhat.com>
303
304 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
305
306 2016-07-15 Jakub Jelinek <jakub@redhat.com>
307
308 PR c/71858
309 * c-common.h (enum lookup_name_fuzzy_kind): Add
310 FUZZY_LOOKUP_FUNCTION_NAME.
311
312 2016-07-08 Jason Merrill <jason@redhat.com>
313
314 P0145: Refining Expression Order for C++.
315 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
316 * c-opts.c: Adjust.
317
318 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
319
320 PR c++/71214
321 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
322
323 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
324
325 * c-pragma.h (enum pragma_kind): Rename
326 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
327 users.
328
329 2016-06-29 Richard Biener <rguenther@suse.de>
330
331 PR middle-end/71002
332 * c-common.c (c_common_get_alias_set): Remove union type punning case.
333
334 2016-06-24 Jason Merrill <jason@redhat.com>
335
336 P0145R2: Refining Expression Order for C++.
337 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
338 MODIFY_EXPR.
339
340 2016-06-24 Jakub Jelinek <jakub@redhat.com>
341
342 * c-common.c (check_builtin_function_arguments): Require last
343 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
344 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
345 if the last argument is pointer to enumerated or boolean type.
346
347 2016-06-22 David Malcolm <dmalcolm@redhat.com>
348
349 PR c/70339
350 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
351 (lookup_name_fuzzy): New prototype.
352
353 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
354
355 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
356
357 2016-06-14 Jason Merrill <jason@redhat.com>
358
359 P0145R2: Refining Expression Order for C++.
360 * c.opt (fargs-in-order): New.
361 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
362
363 2016-06-13 Jakub Jelinek <jakub@redhat.com>
364
365 PR sanitizer/71498
366 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
367 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
368
369 PR preprocessor/71183
370 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
371 to cb_get_source_date_epoch.
372
373 2016-06-10 Jakub Jelinek <jakub@redhat.com>
374
375 PR c/68657
376 * c.opt (Wpsabi): Add Warning flag.
377
378 2016-06-10 Martin Sebor <msebor@redhat.com>
379
380 PR c/71392
381 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
382 the nonnull attribute in type-generic builtins.
383
384 2016-06-09 Martin Sebor <msebor@redhat.com>
385
386 PR c/70883
387 * c-common.c (builtin_function_validate_nargs): Make text of error
388 message consistent with others like it.
389
390 2016-06-08 Martin Sebor <msebor@redhat.com>
391 Jakub Jelinek <jakub@redhat.com>
392
393 PR c++/70507
394 PR c/68120
395 * c-common.c (check_builtin_function_arguments): Handle
396 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
397
398 2016-06-08 Richard Biener <rguenther@suse.de>
399
400 * c-common.c (parse_optimize_options): Improve diagnostic messages.
401
402 2016-06-07 Richard Biener <rguenther@suse.de>
403
404 PR c/61564
405 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
406 options and warn about others.
407
408 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
409
410 * c-common.c (get_source_date_epoch): Rename to
411 cb_get_source_date_epoch.
412 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
413 message when the parsing fails. Use error_at instead of fatal_error.
414 * c-common.h (get_source_date_epoch): Rename to
415 cb_get_source_date_epoch.
416 * c-common.h (cb_get_source_date_epoch): Prototype.
417 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
418 * c-common.h (c_omp_region_type): Remove trailing comma.
419 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
420 * c-lex.c (c_lex_with_flags): Remove initialization of
421 pfile->source_date_epoch.
422
423 2016-05-30 Jakub Jelinek <jakub@redhat.com>
424
425 PR c++/71349
426 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
427 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
428 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
429 instead of C_OMP_CLAUSE_SPLIT_FOR.
430
431 2016-05-24 Richard Biener <rguenther@suse.de>
432
433 PR middle-end/70434
434 PR c/69504
435 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
436 (convert_vector_to_array_for_subscript): ... this.
437 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
438 VIEW_CONVERT_EXPR to an array type. Rename to ...
439 (convert_vector_to_array_for_subscript): ... this.
440
441 2016-05-12 Marek Polacek <polacek@redhat.com>
442
443 PR c/70756
444 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
445 size_in_bytes and pass LOC to it.
446
447 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
448
449 PR c/43651
450 * c.opt (Wduplicate-decl-specifier): New option.
451
452 2016-05-11 Marek Polacek <polacek@redhat.com>
453
454 PR c++/71024
455 * c-common.c (diagnose_mismatched_attributes): New function.
456 * c-common.h (diagnose_mismatched_attributes): Declare.
457
458 2016-05-04 Marek Polacek <polacek@redhat.com>
459
460 * c.opt (Wdangling-else): New option.
461
462 2016-05-03 Marek Polacek <polacek@redhat.com>
463
464 PR c/70859
465 * c-common.c (builtin_function_validate_nargs): Add location
466 parameter. Use it.
467 (check_builtin_function_arguments): Add location and arguments
468 parameters. Use them.
469 * c-common.h (check_builtin_function_arguments): Update declaration.
470
471 2016-05-03 Richard Biener <rguenther@suse.de>
472
473 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
474 allow call args to gimplify to SSA names.
475
476 2016-05-03 Marek Polacek <polacek@redhat.com>
477
478 * c-common.h (enum c_omp_region_type): Remove stray comma.
479
480 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
481
482 * c-common.h (enum c_omp_region_type): Define.
483
484 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
485
486 * c-common.c (shorten_compare): Use wi::to_wide.
487
488 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
489
490 PR middle-end/70626
491 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
492 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
493 reduction clauses in acc parallel loops.
494
495 2016-04-29 Marek Polacek <polacek@redhat.com>
496
497 PR c/70852
498 * c-common.c (warn_for_memset): Check domain before accessing it.
499
500 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
501
502 PR/69089
503 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
504 "aligned" attribute.
505
506 2016-04-28 Jason Merrill <jason@redhat.com>
507
508 * c-lex.c (c_common_has_attribute): Handle nodiscard.
509
510 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
511 Matthias Klose <doko@debian.org>
512
513 * c-common.c (get_source_date_epoch): New function, gets the environment
514 variable SOURCE_DATE_EPOCH and parses it as long long with error
515 handling.
516 * c-common.h (get_source_date_epoch): Prototype.
517 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
518
519 2015-04-27 Ryan Burn <contact@rnburn.com>
520
521 PR c++/69024
522 PR c++/68997
523 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
524 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
525 external linkage.
526 (cilk_detect_and_unwrap): Corresponding changes.
527 (extract_free_variables): Don't extract free variables from
528 AGGR_INIT_EXPR slot.
529 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
530 (cilk_recognize_spawn): Likewise.
531
532 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
533
534 * c.opt (Wmemset-elt-size): New option.
535 * c-common.c (warn_for_memset): New function.
536 * c-common.h (warn_for_memset): Declare.
537
538 2016-04-25 Jason Merrill <jason@redhat.com>
539
540 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
541 No longer static.
542 * c-common.h: Declare it.
543 * c-lex.c (c_common_has_attribute): Add maybe_unused.
544
545 2016-04-22 Jason Merrill <jason@redhat.com>
546
547 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
548
549 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
550
551 PR c++/69363
552 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
553 * c-common.h (c_finish_cilk_clauses): Remove declaration.
554
555 2016-04-18 Michael Matz <matz@suse.de>
556
557 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
558 and SET_DECL_ALIGN.
559
560 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
561
562 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
563 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
564 to incomplete types.
565 (dump_nested_type): Remove redundant tests and tidy up.
566 (print_ada_declaration): Also set TREE_VISITED on the declaration of
567 a type which is the typedef of an original type.
568
569 2016-04-15 Marek Polacek <polacek@redhat.com>
570
571 PR c/70651
572 * c-common.c (build_va_arg): Change two asserts into errors and return
573 error_mark_node.
574
575 2016-04-13 Marek Polacek <polacek@redhat.com>
576
577 PR c++/70639
578 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
579 for switch statements, too.
580
581 2016-03-28 Jason Merrill <jason@redhat.com>
582
583 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
584
585 2016-03-23 Marek Polacek <polacek@redhat.com>
586
587 PR c++/69884
588 * c.opt (Wignored-attributes): New option.
589
590 2016-03-22 David Malcolm <dmalcolm@redhat.com>
591
592 PR c/69993
593 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
594 diagnostic text, reversing the order of the warning and note so
595 that they appear in source order.
596
597 2016-03-17 Marek Polacek <polacek@redhat.com>
598
599 PR c/69407
600 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
601 operations.
602
603 2016-03-14 Jason Merrill <jason@redhat.com>
604
605 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
606
607 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
608
609 2016-03-09 Richard Biener <rguenther@suse.de>
610
611 PR c/70143
612 * c-common.c (strict_aliasing_warning): Add back
613 alias_sets_conflict_p check.
614
615 2016-03-08 Jason Merrill <jason@redhat.com>
616
617 * c-opts.c (set_std_cxx1z): Don't enable concepts.
618
619 2016-03-04 David Malcolm <dmalcolm@redhat.com>
620
621 PR c/68187
622 * c-indentation.c (get_visual_column): Move code to determine next
623 tab stop to...
624 (next_tab_stop): ...this new function.
625 (line_contains_hash_if): Delete function.
626 (detect_preprocessor_logic): Delete function.
627 (get_first_nws_vis_column): New function.
628 (detect_intervening_unindent): New function.
629 (should_warn_for_misleading_indentation): Replace call to
630 detect_preprocessor_logic with a call to
631 detect_intervening_unindent.
632
633 2016-03-04 David Malcolm <dmalcolm@redhat.com>
634
635 PR c/68187
636 * c-indentation.c (should_warn_for_misleading_indentation): When
637 suppressing warnings about cases where the guard and body are on
638 the same column, only use the first non-whitespace column in place
639 of the guard token column when dealing with "else" clauses.
640 When rejecting aligned BODY and NEXT, loosen the requirement
641 from equality with the first non-whitespace of guard to simply
642 that they not be indented relative to it.
643
644 2016-03-04 Richard Biener <rguenther@suse.de>
645
646 PR c++/70054
647 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
648 instead of alias_sets_conflict_p.
649
650 2016-03-01 Marek Polacek <polacek@redhat.com>
651
652 PR c++/69795
653 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
654 any DECL.
655
656 2016-02-22 Martin Sebor <msebor@redhat.com>
657
658 PR middle-end/69780
659 * c-common.c (check_builtin_function_arguments): Validate and
660 reject invalid arguments to __builtin_alloca_with_align.
661
662 2016-02-20 Mark Wielaard <mjw@redhat.com>
663
664 PR c/28901
665 * c.opt (Wunused-const-variable): Turn into Alias for...
666 (Wunused-const-variable=): New option.
667
668 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
669
670 PR c++/69865
671 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
672 here...
673 (c_common_init_options): ...to here.
674 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
675
676 2016-02-19 Jakub Jelinek <jakub@redhat.com>
677
678 PR c++/69826
679 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
680 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
681 flag_preprocess_only.
682
683 2016-02-16 Jakub Jelinek <jakub@redhat.com>
684
685 PR c/69835
686 * c.opt (Wnonnull-compare): Enable for -Wall.
687
688 2016-02-15 Jakub Jelinek <jakub@redhat.com>
689
690 PR c++/69797
691 * c-common.c (sync_resolve_size): Diagnose too few arguments
692 even when params is non-NULL empty vector.
693
694 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
695
696 PR target/60410
697 * c.opt (fshort-double): Remove.
698
699 2016-02-05 Martin Sebor <msebor@redhat.com>
700
701 PR c++/69662
702 * c.opt (Warning options): Update -Wplacement-new to take
703 an optional argument.
704
705 2016-02-01 Jakub Jelinek <jakub@redhat.com>
706
707 PR preprocessor/69543
708 PR c/69558
709 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
710 instead of loc to control_warning_option.
711
712 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
713
714 * c.opt (fopenacc-dim=): New option.
715
716 2016-01-27 Ryan Burn <contact@rnburn.com>
717
718 PR cilkplus/69267
719 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
720 gimplify_arg. Removed superfluous post_p argument.
721 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
722 superfluous post_p argument.
723 * c-gimplify.c (c_gimplify_expr): Likewise.
724
725 2016-01-26 David Malcolm <dmalcolm@redhat.com>
726
727 PR other/69006
728 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
729 pp_newline_and_flush with pp_flush.
730
731 2016-01-20 Martin Sebor <msebor@redhat.com>
732
733 PR c/69405
734 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
735 an incompatible argument when the argument isn't a valid tree node.
736
737 2016-01-18 Jason Merrill <jason@redhat.com>
738
739 PR c++/68767
740 * c-common.c (check_function_arguments_recurse): Fold the whole
741 COND_EXPR, not just the condition.
742
743 2016-01-18 Tom de Vries <tom@codesourcery.com>
744
745 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
746 classify as loop clause.
747
748 2016-01-15 Jakub Jelinek <jakub@redhat.com>
749
750 PR bootstrap/68271
751 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
752 C++ FE no longer has limit on number of pragmas.
753
754 2015-01-14 Ryan Burn <contact@rnburn.com>
755
756 PR c++/69048
757 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
758 to add missing cleanup point.
759
760 2016-01-14 David Malcolm <dmalcolm@redhat.com>
761
762 PR c++/68819
763 * c-indentation.c (get_visual_column): Add location_t param.
764 Handle the column number being zero by effectively disabling the
765 warning, with an "inform".
766 (should_warn_for_misleading_indentation): Add location_t argument
767 for all uses of get_visual_column.
768
769 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
770
771 PR c++/69029
772 * c-indentation.c (should_warn_for_misleading_indentation):
773 Don't warn about do-while statements.
774
775 2016-01-07 Martin Sebor <msebor@redhat.com>
776
777 PR c/68966
778 * c-common.c (sync_resolve_size): Reject first argument when it's
779 a pointer to _Bool.
780
781 2016-01-05 David Malcolm <dmalcolm@redhat.com>
782
783 PR c/69122
784 * c-indentation.c (get_visual_column): Remove default argument.
785 (should_warn_for_misleading_indentation): For the multiline case,
786 update call to get_visual_column for next_stmt_exploc so that it
787 captures the location of the first non-whitespace character in the
788 relevant line. Don't issue warnings if there is non-whitespace
789 before the next statement.
790
791 2016-01-04 Jakub Jelinek <jakub@redhat.com>
792
793 Update copyright years.
794
795 2015-12-21 David Malcolm <dmalcolm@redhat.com>
796
797 * c-common.c (binary_op_error): Convert first param from
798 location_t to rich_location * and use it when emitting an error.
799 * c-common.h (binary_op_error): Convert first param from
800 location_t to rich_location *.
801
802 2015-12-16 David Malcolm <dmalcolm@redhat.com>
803
804 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
805 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
806
807 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
808
809 * c-common.c (c_common_attribute_table): Handle "omp declare target
810 link" attribute.
811
812 2015-12-14 Jakub Jelinek <jakub@redhat.com>
813
814 PR c/68833
815 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
816
817 2014-12-12 Tobias Burnus <burnus@net-b.de>
818
819 PR fortran/68815
820 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
821 specifiers (%d, %i,%u and %c).
822
823 2015-12-10 David Malcolm <dmalcolm@redhat.com>
824
825 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
826
827 2015-12-08 Jakub Jelinek <jakub@redhat.com>
828
829 PR c/48088
830 PR c/68657
831 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
832 * c-pragma.c (handle_pragma_diagnostic): Adjust
833 control_warning_option caller.
834
835 2015-12-07 David Malcolm <dmalcolm@redhat.com>
836
837 * c-common.c (c_cpp_error): Update for change to
838 rich_location::set_range.
839
840 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
841
842 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
843 shifting 1 out of the sign bit.
844
845 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
846
847 * c-common.c (c_common_attribute_table[]): Update max arguments
848 count for "simd" attribute.
849 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
850
851 2015-12-03 Jakub Jelinek <jakub@redhat.com>
852
853 PR preprocessor/57580
854 * c-ppoutput.c (print): Change printed field to bool.
855 Move src_file last for smaller padding.
856 (init_pp_output): Set print.printed to false instead of 0.
857 (scan_translation_unit): Fix up formatting. Set print.printed
858 to true after printing something other than newline.
859 (scan_translation_unit_trad): Set print.printed to true instead of 1.
860 (maybe_print_line_1): Set print.printed to false instead of 0.
861 (print_line_1): Likewise.
862 (do_line_change): Set print.printed to true instead of 1.
863 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
864 dump_macro): Set print.printed to false after printing newline.
865
866 2015-12-02 Jason Merrill <jason@redhat.com>
867
868 * c-common.c (fold_for_warn): New.
869 (warn_logical_operator, warn_tautological_cmp)
870 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
871
872 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
873 (c_fully_fold_internal, decl_constant_value_for_optimization):
874 Move to c/c-fold.c.
875 * c-common.h: Don't declare decl_constant_value_for_optimization.
876
877 2015-12-02 Joseph Myers <joseph@codesourcery.com>
878
879 PR c/68162
880 * c-common.h (c_build_qualified_type): Add extra default
881 arguments.
882
883 2015-12-01 Julian Brown <julian@codesourcery.com>
884 Cesar Philippidis <cesar@codesourcery.com>
885 James Norris <James_Norris@mentor.com>
886
887 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
888 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
889 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
890
891 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
892
893 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
894 (decl_sloc_common): Delete and move bulk of processing to...
895 (decl_sloc): ...here.
896 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
897 (dump_ada_double_name): Remove S parameter and compute the suffix.
898 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
899 element type and deal with an anonymous one.
900 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
901 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
902 and remove reference to QUAL_UNION_TYPE.
903 (dump_nested_types): Make 2 passes on the fields and move bulk to...
904 (dump_nested_type): ...here. New function extracted from above.
905 Generate a full declaration for anonymous element type of arrays.
906 (print_ada_declaration): Really skip anonymous declarations. Remove
907 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
908 Clean up processing of declarations of array types and objects.
909 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
910 Remove obsolete code and tidy up.
911
912 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
913
914 PR c/67581
915 * c-common.c (handle_transparent_union_attribute): Update
916 also type variants.
917
918 2015-11-27 Martin Liska <mliska@suse.cz>
919
920 PR c++/68312
921 * array-notation-common.c (cilkplus_extract_an_triplets):
922 Release vector of vectors.
923 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
924
925 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
926
927 PR c++/68527
928 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
929 (print_ada_struct_decl): Likewise.
930
931 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
932
933 PR c++/68001
934 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
935 * cilk.c (recognize_spawn): Determine location in a more precise
936 way.
937
938 2015-11-19 Jason Merrill <jason@redhat.com>
939
940 * c-common.c (shorten_compare): But look through macros from
941 system headers.
942
943 2015-11-18 Jason Merrill <jason@redhat.com>
944
945 * c-common.c (shorten_compare): Don't -Wtype-limits if the
946 non-constant operand comes from a macro.
947
948 2015-11-17 Jason Merrill <jason@redhat.com>
949
950 PR bootstrap/68346
951 * c-common.c (warn_tautological_cmp): Fold before checking for
952 constants.
953
954 2015-11-16 Marek Polacek <polacek@redhat.com>
955
956 PR c++/68362
957 * c-common.c (check_case_bounds): Fold low and high cases.
958
959 2015-11-16 Marek Polacek <polacek@redhat.com>
960
961 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
962 * c-common.c (c_common_get_alias_set): Likewise.
963 (handle_visibility_attribute): Likewise.
964
965 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
966
967 * c-common.c (handle_simd_attribute): New.
968 (struct attribute_spec): Add entry for "simd".
969 (handle_simd_attribute): New.
970
971 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
972
973 * c-lex.c (interpret_float): Use fold_convert.
974
975 2015-11-13 David Malcolm <dmalcolm@redhat.com>
976
977 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
978 and store it on the result.
979 * c-opts.c (c_common_init_options): Set
980 global_dc->colorize_source_p.
981
982 2015-11-12 James Norris <jnorris@codesourcery.com>
983 Joseph Myers <joseph@codesourcery.com>
984
985 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
986 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
987 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
988 PRAGMA_OACC_CLAUSE_LINK.
989
990 2015-11-11 Marek Polacek <polacek@redhat.com>
991
992 PR c/68107
993 PR c++/68266
994 * c-common.c (valid_array_size_p): New function.
995 * c-common.h (valid_array_size_p): Declare.
996
997 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
998
999 PR bootstrap/68271
1000 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1001
1002 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
1003
1004 * array-notation-common.c: Remove unused header files.
1005 * c-ada-spec.c: Likewise.
1006 * c-cilkplus.c: Likewise.
1007 * c-common.c: Likewise.
1008 * c-cppbuiltin.c: Likewise.
1009 * c-dump.c: Likewise.
1010 * c-format.c: Likewise.
1011 * c-gimplify.c: Likewise.
1012 * c-indentation.c: Likewise.
1013 * c-lex.c: Likewise.
1014 * c-omp.c: Likewise.
1015 * c-opts.c: Likewise.
1016 * c-pch.c: Likewise.
1017 * c-ppoutput.c: Likewise.
1018 * c-pragma.c: Likewise.
1019 * c-pretty-print.c: Likewise.
1020 * c-semantics.c: Likewise.
1021 * c-ubsan.c: Likewise.
1022 * cilk.c: Likewise.
1023 * stub-objc.c: Likewise.
1024
1025 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1026 Cesar Philippidis <cesar@codesourcery.com>
1027 James Norris <jnorris@codesourcery.com>
1028 Julian Brown <julian@codesourcery.com>
1029 Nathan Sidwell <nathan@codesourcery.com>
1030
1031 * c-pragma.c (oacc_pragmas): Add "routine".
1032 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1033
1034 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1035
1036 * c-common.c (c_common_attributes): Add scalar_storage_order.
1037 (handle_scalar_storage_order_attribute): New function.
1038 * c-pragma.c (global_sso): New variable.
1039 (maybe_apply_pragma_scalar_storage_order): New function.
1040 (handle_pragma_scalar_storage_order): Likewise.
1041 (init_pragma): Register scalar_storage_order.
1042 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1043 * c.opt (Wscalar-storage-order): New warning.
1044 (fsso-struct=): New option.
1045
1046 2015-11-08 Martin Sebor <msebor@redhat.com>
1047
1048 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1049
1050 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1051
1052 * c-common.c: Don't undef DEF_BUILTIN.
1053
1054 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1055
1056 * c-common.c (c_cpp_error): Convert parameter from location_t to
1057 rich_location *. Eliminate the "column_override" parameter and
1058 the call to diagnostic_override_column.
1059 Update the "done_lexing" clause to set range 0
1060 on the rich_location, rather than overwriting a location_t.
1061 * c-common.h (c_cpp_error): Convert parameter from location_t to
1062 rich_location *. Eliminate the "column_override" parameter.
1063
1064 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1065 Thomas Schwinge <thomas@codesourcery.com>
1066 James Norris <jnorris@codesourcery.com>
1067
1068 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1069 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1070 clauses with parallel and kernels and loops.
1071 * c-pragma.h (enum pragma_omp_clause): Add entries for
1072 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1073 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1074 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1075 INDEPENDENT,SEQ}.
1076 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1077
1078 2015-11-05 Martin Sebor <msebor@redhat.com>
1079
1080 PR c++/67942
1081 * c.opt (-Wplacement-new): New option.
1082
1083 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1084
1085 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1086 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1087 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1088 save_expr or create_tmp_var* if TEST is true.
1089 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1090 Don't call add_stmt here.
1091 (struct c_omp_check_loop_iv_data): New type.
1092 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1093 c_omp_check_loop_iv_exprs): New functions.
1094 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1095 distribute.
1096 (c_omp_declare_simd_clauses_to_numbers): Change
1097 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1098 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1099 from numbers to PARM_DECLs.
1100
1101 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1102
1103 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1104 flag_checking.
1105
1106 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
1107
1108 PR c++-common/67882
1109 * c-common.h (fold_offsetof_1): Add argument.
1110 * c-common.c (fold_offsetof_1): Diagnose more invalid
1111 offsetof expressions that reference elements past the end of
1112 an array.
1113
1114 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1115 Chung-Lin Tang <cltang@codesourcery.com>
1116
1117 * c-pragma.c (oacc_pragmas): Add "atomic".
1118 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1119
1120 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1121
1122 * c-common.c (handle_target_clones_attribute): New.
1123 (c_common_attribute_table): Add handle_target_clones_attribute.
1124 (handle_always_inline_attribute): Add check on target_clones attribute.
1125 (handle_target_attribute): Ditto.
1126
1127 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
1128
1129 * array-notation-common.c: Reorder #include's and remove duplicates.
1130 * c-ada-spec.c: Likewise.
1131 * c-cilkplus.c: Likewise.
1132 * c-common.c: Likewise.
1133 * c-cppbuiltin.c: Likewise.
1134 * c-dump.c: Likewise.
1135 * c-format.c: Likewise.
1136 * c-gimplify.c: Likewise.
1137 * c-indentation.c: Likewise.
1138 * c-lex.c: Likewise.
1139 * c-omp.c: Likewise.
1140 * c-opts.c: Likewise.
1141 * c-pch.c: Likewise.
1142 * c-ppoutput.c: Likewise.
1143 * c-pragma.c: Likewise.
1144 * c-pretty-print.c: Likewise.
1145 * c-semantics.c: Likewise.
1146 * c-ubsan.c: Likewise.
1147 * cilk.c: Likewise.
1148 * stub-objc.c: Likewise.
1149
1150 2015-10-28 Jason Merrill <jason@redhat.com>
1151
1152 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1153
1154 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1155 James Norris <jnorris@codesourcery.com>
1156 Cesar Philippidis <cesar@codesourcery.com>
1157
1158 PR c/64765
1159 PR c/64880
1160 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1161 * c-omp.c (c_oacc_split_loop_clauses): New function.
1162
1163 2015-10-21 Martin Sebor <msebor@redhat.com>
1164
1165 PR driver/68043
1166 * c.opt: End each sentence that describes an option with a period.
1167
1168 2015-10-20 Marek Polacek <polacek@redhat.com>
1169
1170 * array-notation-common.c (is_cilkplus_vector_p): Define.
1171 * c-common.h (is_cilkplus_vector_p): Declare.
1172
1173 2015-10-20 Marek Polacek <polacek@redhat.com>
1174
1175 * c.opt (std=gnu++11): Do not describe as experimental.
1176 (std=gnu++14): Likewise.
1177
1178 2015-10-19 Jason Merrill <jason@redhat.com>
1179
1180 * c-cppbuiltin.c (c_cpp_builtins): Define
1181 __cpp_nontype_template_args.
1182
1183 2015-10-19 Jason Merrill <jason@redhat.com>
1184
1185 * c-cppbuiltin.c (c_cpp_builtins): Define
1186 __cpp_enumerator_attributes, __cpp_fold_expressions,
1187 __cpp_unicode_characters.
1188
1189 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1190 Aldy Hernandez <aldyh@redhat.com>
1191
1192 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1193 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1194 (c_define_builtins): Likewise.
1195 * c-common.h (enum c_omp_clause_split): Add
1196 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1197 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1198 (c_finish_omp_for): Add ORIG_DECLV argument.
1199 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1200 201511 instead of 201307.
1201 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1202 OMP_CRITICAL_CLAUSES to it.
1203 (c_finish_omp_ordered): Add CLAUSES argument, set
1204 OMP_ORDERED_CLAUSES to it.
1205 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1206 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1207 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1208 constructs and new OpenMP 4.5 clauses. Clear
1209 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1210 verification code.
1211 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1212 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1213 (enum pragma_omp_clause): Add
1214 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1215 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1216
1217 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1218
1219 * c-lex.c (interpret_float): Use real_equal instead of
1220 REAL_VALUES_EQUAL.
1221
1222 2015-10-04 Jason Merrill <jason@redhat.com>
1223
1224 Implement N4514, C++ Extensions for Transactional Memory.
1225 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1226 (c_common_attribute_table): Add transaction_safe_dynamic.
1227 transaction_safe now affects type identity.
1228 (handle_tm_attribute): Handle transaction_safe_dynamic.
1229 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1230 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1231 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1232 (D_TRANSMEM): New.
1233 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1234 * c-pretty-print.c (pp_c_attributes_display): Don't print
1235 transaction_safe in C++.
1236
1237 2015-10-02 Marek Polacek <polacek@redhat.com>
1238
1239 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1240
1241 2015-10-02 Marek Polacek <polacek@redhat.com>
1242
1243 PR c/64249
1244 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1245 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1246 * c.opt (Wduplicated-cond): New option.
1247
1248 2015-10-01 Joseph Myers <joseph@codesourcery.com>
1249
1250 * c.opt (std=c11): Do not describe as experimental.
1251 (std=gnu11): Likewise.
1252 (std=iso9899:2011): Likewise.
1253
1254 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1255
1256 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1257 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1258
1259 2015-09-25 Marek Polacek <polacek@redhat.com>
1260
1261 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1262 (ubsan_instrument_shift): Likewise.
1263
1264 2015-09-25 Marek Polacek <polacek@redhat.com>
1265
1266 PR sanitizer/64906
1267 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1268
1269 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1270
1271 * c-indentation.c (should_warn_for_misleading_indentation):
1272 Compare next_stmt_vis_column with guard_line_first_nws instead
1273 of with guard_line_vis_column.
1274
1275 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1276
1277 PR c/49654
1278 PR c/49655
1279 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1280 options and options not valid for the current language.
1281
1282 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1283
1284 * c-indentation.c (should_warn_for_misleading_indentation):
1285 Float out and consolidate the calls to get_visual_column that
1286 are passed guard_exploc as an argument. Compare
1287 next_stmt_vis_column with guard_line_first_nws instead of with
1288 body_line_first_nws.
1289
1290 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1291
1292 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1293 Wnamespaces): New C++ warnings.
1294
1295 2015-09-22 Jason Merrill <jason@redhat.com>
1296
1297 * c-common.h (abi_compat_version_crosses): New.
1298 (warn_abi_version): Declare.
1299 * c-common.c: Define it.
1300 * c-opts.c (c_common_post_options): Handle it.
1301 flag_abi_compat_version defaults to 8.
1302
1303 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1304
1305 Complete the implementation of N4230, Nested namespace definition.
1306 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1307 __cpp_nested_namespace_definitions.
1308
1309 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1310
1311 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1312
1313 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1314
1315 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1316 when warning.
1317 * c-pragma.h (pragma_lex): Add optional loc argument.
1318
1319 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1320
1321 * c-format.c (check_format_arg): Adjust to use common block size in all
1322 object pools.
1323
1324 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1325
1326 * c-format.c (location_from_offset): Update for change in
1327 signature of location_get_source_line.
1328 * c-indentation.c (get_visual_column): Likewise.
1329 (line_contains_hash_if): Likewise.
1330
1331 2015-09-14 Marek Polacek <polacek@redhat.com>
1332
1333 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1334 setting various warnings.
1335
1336 2015-09-14 Marek Polacek <polacek@redhat.com>
1337
1338 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1339 a negative value.
1340
1341 2015-09-11 Mark Wielaard <mjw@redhat.com>
1342
1343 PR c/28901
1344 * c.opt (Wunused-variable): Option from common.opt.
1345 (Wunused-const-variable): New option.
1346
1347 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1348
1349 PR c++/53184
1350 * c.opt ([Wsubobject-linkage]): Add.
1351
1352 2015-09-03 Martin Sebor <msebor@redhat.com>
1353
1354 PR c/66516
1355 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1356 functions.
1357 * c-common.c (reject_gcc_builtin): Define.
1358
1359 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1360
1361 PR middle-end/60586
1362 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1363 prototype.
1364 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1365 cilk_gimplify_call_params_in_spawned_fn.
1366 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1367 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1368 unwrapping.
1369
1370 2015-08-25 Marek Polacek <polacek@redhat.com>
1371
1372 PR middle-end/67330
1373 * c-common.c (handle_weak_attribute): Don't check whether the
1374 visibility can be changed here.
1375
1376 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1377
1378 * c-lex.c (c_lex_with_flags): Use explicit locations.
1379
1380 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1381
1382 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1383 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1384
1385 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1386
1387 PR middle-end/36757
1388 * c-common.c (check_builtin_function_arguments): Add check
1389 for BUILT_IN_SIGNBIT argument.
1390
1391 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1392
1393 PR c++/67160
1394 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1395 in c++1z mode.
1396
1397 2015-08-17 Marek Polacek <polacek@redhat.com>
1398
1399 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1400 with whitespaces before qualifier names.
1401
1402 2015-08-12 Marek Polacek <polacek@redhat.com>
1403
1404 PR c++/55095
1405 * c-common.c (maybe_warn_shift_overflow): Properly handle
1406 left-shifting 1 into the sign bit.
1407
1408 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1409
1410 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1411
1412 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1413 Braden Obrzut <admin@maniacsvault.net>
1414 Jason Merrill <jason@redhat.com>
1415
1416 Add C++ Concepts TS support.
1417 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1418 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1419 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1420 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1421 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1422 * c.opt (fconcepts): New.
1423
1424 2015-08-02 Martin Sebor <msebor@redhat.com>
1425
1426 * c.opt (-Wframe-address): New warning option.
1427
1428 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1429
1430 * c-indentation.c (should_warn_for_misleading_indentation):
1431 Improve heuristics.
1432
1433 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1434
1435 * c-indentation.c (get_visual_column): Add parameter first_nws,
1436 use it. Update comment documenting the function.
1437 (is_first_nonwhitespace_on_line): Remove.
1438 (should_warn_for_misleading_indentation): Replace usage of
1439 of is_first_nonwhitespace_on_line with get_visual_column.
1440
1441 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1442
1443 * c-indentation.h (struct token_indent_info): Define.
1444 (get_token_indent_info): Define.
1445 (warn_for_misleading_information): Declare.
1446 * c-common.h (warn_for_misleading_information): Remove.
1447 * c-identation.c (warn_for_misleading_indentation):
1448 Change declaration to take three token_indent_infos. Adjust
1449 accordingly.
1450 * c-identation.c (should_warn_for_misleading_indentation):
1451 Likewise. Bail out early if the body is a compound statement.
1452 (guard_tinfo_to_string): Define.
1453
1454 2015-07-30 Jason Merrill <jason@redhat.com>
1455
1456 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1457 '*' for reference decay.
1458
1459 2015-07-30 Marek Polacek <polacek@redhat.com>
1460
1461 * c-common.c (warn_tautological_cmp): Bail for float types.
1462
1463 2015-07-27 Marek Polacek <polacek@redhat.com>
1464
1465 PR bootstrap/67030
1466 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1467
1468 2015-07-27 Marek Polacek <polacek@redhat.com>
1469
1470 PR c++/66555
1471 PR c/54979
1472 * c-common.c (find_array_ref_with_const_idx_r): New function.
1473 (warn_tautological_cmp): New function.
1474 * c-common.h (warn_tautological_cmp): Declare.
1475 * c.opt (Wtautological-compare): New option.
1476
1477 2015-07-23 Marek Polacek <polacek@redhat.com>
1478
1479 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1480 (ubsan_instrument_shift): Likewise.
1481
1482 2015-07-23 Marek Polacek <polacek@redhat.com>
1483
1484 PR sanitizer/66908
1485 * c-ubsan.c: Include gimplify.h.
1486 (ubsan_instrument_division): Unshare OP0 and OP1.
1487 (ubsan_instrument_shift): Likewise.
1488
1489 2015-07-20 Marek Polacek <polacek@redhat.com>
1490 Richard Sandiford <richard.sandiford@arm.com>
1491
1492 PR c++/55095
1493 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1494 Use EXPR_LOC_OR_LOC.
1495 (maybe_warn_shift_overflow): New function.
1496 * c-common.h (maybe_warn_shift_overflow): Declare.
1497 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1498 * c.opt (Wshift-overflow): New option.
1499
1500 2015-07-16 Martin Liska <mliska@suse.cz>
1501
1502 * c-format.c (static void check_format_info_main): Use
1503 object_allocator instead of pool_allocator.
1504 (check_format_arg): Likewise.
1505 (check_format_info_main): Likewise.
1506
1507 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1508
1509 * c-opts.c: Remove multiline #include comment.
1510
1511 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1512
1513 * c-common.c: Fix double word typos.
1514
1515 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1516
1517 * c-ada-spec.h (cpp_operation): Revert latest change.
1518 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1519 constructors and destructors.
1520
1521 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1522
1523 * c-common.h: Adjust includes for flags.h changes.
1524 * stub-objc.c: Likewise.
1525
1526 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1527
1528 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1529 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1530
1531 2015-07-08 Jakub Jelinek <jakub@redhat.com>
1532
1533 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1534 are to be removed, return NULL rather than original clauses list.
1535
1536 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1537
1538 * array-notation-common.c: Adjust includes.
1539 * c-ada-spec.c: Likewise.
1540 * c-cilkplus.c: Likewise.
1541 * c-common.h: Likewise.
1542 * c-cppbuiltin.c: Likewise.
1543 * c-dump.c: Likewise.
1544 * c-format.c: Likewise.
1545 * c-gimplify.c: Likewise.
1546 * c-indentation.c: Likewise.
1547 * c-lex.c: Likewise.
1548 * c-omp.c: Likewise.
1549 * c-opts.c: Likewise.
1550 * c-pch.c: Likewise.
1551 * c-ppoutput.c: Likewise.
1552 * c-pragma.c: Likewise.
1553 * c-pretty-print.c: Likewise.
1554 * c-semantics.c: Likewise.
1555 * c-ubsan.c: Likewise.
1556 * cilk.c: Likewise.
1557 * stub-objc.c: Likewise.
1558
1559 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1560
1561 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1562 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1563
1564 2015-07-01 Jason Merrill <jason@redhat.com>
1565
1566 * c-common.h (D_CXX11): Rename from D_CXX0X.
1567 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1568 * c-common.c: Adjust.
1569
1570 * c-opts.c (c_common_post_options): Default to C++14.
1571
1572 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1573
1574 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1575
1576 Implement N4197 - Adding u8 character literals
1577 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
1578 CPP_CHAR.
1579 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
1580 CPP_UTF8CHAR_USERDEF tokens.
1581 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
1582 and CPP_UTF8CHAR tokens.
1583 (lex_charconst): Treat CPP_UTF8CHAR token.
1584
1585 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1586
1587 PR fortran/66605
1588 * c-common.c (do_warn_unused_parameter): Move here.
1589 * c-common.h (do_warn_unused_parameter): Declare.
1590
1591 2015-06-29 Marek Polacek <polacek@redhat.com>
1592
1593 PR c/66322
1594 * c-common.c (check_case_bounds): Add bool * parameter. Set
1595 OUTSIDE_RANGE_P.
1596 (c_add_case_label): Add bool * parameter. Pass it down to
1597 check_case_bounds.
1598 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1599 warning here.
1600 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1601 declarations.
1602
1603 2015-06-27 Marek Polacek <polacek@redhat.com>
1604
1605 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1606 or VECTOR_INTEGER_TYPE_P throughout.
1607 * c-gimplify.c: Likewise.
1608
1609 2015-06-26 Marek Polacek <polacek@redhat.com>
1610
1611 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1612 * c-common.c (c_fully_fold_internal): Likewise.
1613 (c_alignof_expr): Likewise.
1614 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1615 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
1616 * cilk.c (create_parm_list): Likewise.
1617
1618 2015-06-26 Marek Polacek <polacek@redhat.com>
1619
1620 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1621
1622 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1623
1624 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1625 * c-gimplify.c: Likewise.
1626 * c-pragma.c: Likewise.
1627 * c-ubsan.c: Likewise.
1628 * cilk.c: Likewise.
1629
1630 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1631
1632 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1633 ggc_hasher.
1634
1635 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1636
1637 * cilk.c: Move calls.h after tm.h in the include chain.
1638
1639 2015-06-25 Marek Polacek <polacek@redhat.com>
1640
1641 * array-notation-common.c: Use VAR_P throughout.
1642 * c-ada-spec.c: Likewise.
1643 * c-common.c: Likewise.
1644 * c-format.c: Likewise.
1645 * c-gimplify.c: Likewise.
1646 * c-omp.c: Likewise.
1647 * c-pragma.c: Likewise.
1648 * c-pretty-print.c: Likewise.
1649 * cilk.c: Likewise.
1650
1651 2015-06-25 Marek Polacek <polacek@redhat.com>
1652
1653 * cilk.c (extract_free_variables): Use is_global_var.
1654
1655 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1656
1657 * c-common.c: Don't include target-def.h.
1658
1659 2015-06-23 Marek Polacek <polacek@redhat.com>
1660
1661 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1662 when comparing INTEGER_CSTs.
1663
1664 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1665
1666 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1667 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1668 (dump_ada_template): Skip partially specialized types.
1669
1670 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1671
1672 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1673 swapping.
1674
1675 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1676
1677 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1678 * c-ada-spec.c: Likewise.
1679 * c-cilkplus.c: Likewise.
1680 * c-common.c: Likewise.
1681 * c-common.h: Likewise.
1682 * c-cppbuiltin.c: Likewise.
1683 * c-dump.c: Likewise.
1684 * c-format.c: Likewise.
1685 * c-gimplify.c: Likewise.
1686 * c-indentation.c: Likewise.
1687 * c-lex.c: Likewise.
1688 * c-omp.c: Likewise.
1689 * c-opts.c: Likewise.
1690 * c-pch.c: Likewise.
1691 * c-ppoutput.c: Likewise.
1692 * c-pragma.c: Likewise.
1693 * c-pretty-print.c: Likewise.
1694 * c-semantics.c: Likewise.
1695 * c-ubsan.c: Likewise.
1696 * cilk.c: Likewise.
1697 * stub-objc.c: Likewise.
1698
1699 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1700
1701 PR c++/65168
1702 * c-common.c (c_common_truthvalue_conversion): Warn when
1703 converting an address of a reference to a truth value.
1704
1705 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1706
1707 * array-notation-common.c : Adjust include files.
1708 * c-ada-spec.c : Likewise.
1709 * c-cilkplus.c : Likewise.
1710 * c-common.c : Likewise.
1711 * c-common.h : Likewise.
1712 * c-cppbuiltin.c : Likewise.
1713 * c-dump.c : Likewise.
1714 * c-format.c : Likewise.
1715 * c-gimplify.c : Likewise.
1716 * c-indentation.c : Likewise.
1717 * c-lex.c : Likewise.
1718 * c-omp.c : Likewise.
1719 * c-opts.c : Likewise.
1720 * c-pch.c : Likewise.
1721 * c-ppoutput.c : Likewise.
1722 * c-pragma.c : Likewise.
1723 * c-pretty-print.c : Likewise.
1724 * c-semantics.c : Likewise.
1725 * c-ubsan.c : Likewise.
1726 * cilk.c : Likewise.
1727 * stub-objc.c : Likewise.
1728
1729 2015-06-08 Marek Polacek <polacek@redhat.com>
1730
1731 PR c/66415
1732 * c-format.c (location_from_offset): Return LOC if LINE is null.
1733
1734 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1735
1736 * c-common.h (c_parse_final_cleanups): New prototype.
1737 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1738
1739 2015-06-04 Sriraman Tallam <tmsriram@google.com>
1740
1741 * c-common.c (noplt): New attribute.
1742 (handle_noplt_attribute): New handler.
1743
1744 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1745
1746 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1747 * c-ada-spec.c: Likewise.
1748 * c-cilkplus.c: Likewise.
1749 * c-common.c: Likewise.
1750 * c-common.h: Likewise.
1751 * c-cppbuiltin.c: Likewise.
1752 * c-dump.c: Likewise.
1753 * c-format.c: Likewise.
1754 * c-gimplify.c: Likewise.
1755 * c-indentation.c: Likewise.
1756 * c-lex.c: Likewise.
1757 * c-omp.c: Likewise.
1758 * c-opts.c: Likewise.
1759 * c-pch.c: Likewise.
1760 * c-ppoutput.c: Likewise.
1761 * c-pragma.c: Likewise.
1762 * c-pretty-print.c: Likewise.
1763 * c-semantics.c: Likewise.
1764 * c-ubsan.c: Likewise.
1765 * cilk.c: Likewise.
1766 * stub-objc.c: Likewise.
1767
1768 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1769
1770 PR c/66220:
1771 * c-indentation.c (should_warn_for_misleading_indentation): Use
1772 expand_location rather than expand_location_to_spelling_point.
1773 Don't warn if the guarding statement is more indented than the
1774 next/body stmts.
1775
1776 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1777
1778 * c-indentation.c (warn_for_misleading_indentation): Bail out
1779 immediately if -Wmisleading-indentation isn't enabled.
1780
1781 2015-06-01 Martin Liska <mliska@suse.cz>
1782
1783 * c-format.c (check_format_arg):Use new type-based pool allocator.
1784 (check_format_info_main) Likewise.
1785
1786 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1787
1788 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1789 (has_nontrivial_methods): Likewise.
1790
1791 2015-05-25 Marek Polacek <polacek@redhat.com>
1792
1793 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1794
1795 2015-05-22 Marek Polacek <polacek@redhat.com>
1796
1797 PR c/47043
1798 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1799
1800 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1801
1802 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1803 STACK_GROWS_DOWNWARD.
1804
1805 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1806
1807 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1808 STACK_GROWS_DOWNWARD rather than if it is defined.
1809
1810 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1811
1812 PR c/52952
1813 * c-format.c (location_column_from_byte_offset): New.
1814 (location_from_offset): New.
1815 (struct format_wanted_type): Add offset_loc field.
1816 (check_format_info): Move handling of location for extra arguments
1817 closer to the point of warning.
1818 (check_format_info_main): Pass the result of location_from_offset
1819 to warning_at.
1820 (format_type_warning): Pass the result of location_from_offset
1821 to warning_at.
1822
1823 2015-05-20 Marek Polacek <polacek@redhat.com>
1824
1825 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1826
1827 2015-05-20 Marek Polacek <polacek@redhat.com>
1828
1829 * c-ada-spec.c (dump_sloc): Use DECL_P.
1830
1831 2015-05-20 Marek Polacek <polacek@redhat.com>
1832
1833 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1834 * c-common.c: Likewise.
1835
1836 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1837
1838 * c-common.h (fe_file_change): Strengthen param from
1839 const line_map * to const line_map_ordinary *.
1840 (pp_file_change): Likewise.
1841 * c-lex.c (fe_file_change): Likewise.
1842 (cb_define): Use linemap_check_ordinary when invoking
1843 SOURCE_LINE.
1844 (cb_undef): Likewise.
1845 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1846 invoking cb_file_change.
1847 (c_finish_options): Likewise.
1848 (push_command_line_include): Likewise.
1849 (cb_file_change): Strengthen param "new_map" from
1850 const line_map * to const line_map_ordinary *.
1851 * c-ppoutput.c (cb_define): Likewise for local "map".
1852 (pp_file_change): Likewise for param "map" and local "from".
1853
1854 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1855
1856 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1857
1858 2015-05-18 Tom de Vries <tom@codesourcery.com>
1859
1860 * c-common.c (build_va_arg_1): New function.
1861 (build_va_arg): Add address operator to va_list operand if necessary.
1862
1863 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1864
1865 PR c/48956
1866 * c-common.c (int_safely_convertible_to_real_p): Define.
1867 (unsafe_conversion_p): Check conversions involving complex types.
1868 (conversion_warning): Add new warning message for conversions which
1869 discard imaginary component.
1870 * c-common.h: (enum conversion_safety): Add new enumerator for such
1871 conversions.
1872
1873 2015-05-14 Marek Polacek <polacek@redhat.com>
1874
1875 PR c/66066
1876 PR c/66127
1877 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1878 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1879 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1880 use it. If FOR_INT_CONST, require that all evaluated operands be
1881 INTEGER_CSTs.
1882
1883 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1884
1885 * c-common.h (warn_for_misleading_indentation): New prototype.
1886 * c-indentation.c: New file.
1887 * c.opt (Wmisleading-indentation): New option.
1888
1889 2015-05-12 Tom de Vries <tom@codesourcery.com>
1890
1891 PR tree-optimization/66010
1892 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1893
1894 2015-05-09 Jason Merrill <jason@redhat.com>
1895
1896 * c-opts.c (c_common_post_options): Also clear
1897 cpp_opts->cpp_warn_cxx11_compat.
1898
1899 * c-common.h (enum cxx_dialect): Add cxx_unset.
1900 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1901 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1902
1903 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1904 (std=gnu++0x): Mark as Undocumented.
1905 (std=gnu++1y): Add deprecated message.
1906
1907 2015-05-08 Jason Merrill <jason@redhat.com>
1908
1909 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1910 * c-opts.c: Adjust.
1911
1912 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1913
1914 2015-05-08 Marek Polacek <polacek@redhat.com>
1915
1916 PR c/64918
1917 * c.opt (Woverride-init-side-effects): New option.
1918
1919 2015-05-07 Marek Polacek <polacek@redhat.com>
1920
1921 PR c/65179
1922 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1923 negative value.
1924 * c.opt (Wshift-negative-value): New option.
1925 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1926 when -Wextra and C99/C++11 mode.
1927
1928 2015-05-07 Marek Polacek <polacek@redhat.com>
1929 Martin Uecker <uecker@eecs.berkeley.edu>
1930
1931 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1932 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1933
1934 2015-05-05 Jason Merrill <jason@redhat.com>
1935
1936 * c.opt (Wterminate): New.
1937
1938 2015-04-30 Marek Polacek <polacek@redhat.com>
1939
1940 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1941 require that the non-constant be of a boolean type.
1942
1943 2015-04-29 Josh Triplett <josh@joshtriplett.org>
1944
1945 * c-common.c (handle_section_attribute): Refactor to reduce
1946 nesting and distinguish between error cases.
1947
1948 2015-04-29 Marek Polacek <polacek@redhat.com>
1949
1950 PR c/64610
1951 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1952 with 0/1.
1953
1954 2015-04-29 Jakub Jelinek <jakub@redhat.com>
1955
1956 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1957 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1958 HOST_BITS_PER_WIDE_INT.
1959
1960 2015-04-28 Tom de Vries <tom@codesourcery.com>
1961
1962 PR tree-optimization/65887
1963 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1964
1965 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
1966 Pierre-Marie de Rodat <derodat@adacore.com>
1967
1968 * c-ada-spec.c (in_function): Delete.
1969 (dump_generic_ada_node): Do not change in_function and remove the
1970 redundant code dealing with it.
1971 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1972 (print_ada_methods): Output the static member functions in a nested
1973 package after the regular methods as well as associated renamings.
1974
1975 2015-04-24 Marek Polacek <polacek@redhat.com>
1976
1977 PR c/65830
1978 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1979 and OPT_Wshift_count_overflow.
1980
1981 PR c/63357
1982 * c-common.c (warn_logical_operator): Warn if the operands have the
1983 same expressions.
1984
1985 2015-04-24 Marek Polacek <polacek@redhat.com>
1986
1987 PR c/61534
1988 * c-common.c (warn_logical_operator): Bail if either operand comes
1989 from a macro expansion.
1990
1991 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1992
1993 PR target/55143
1994 * c-common.c (c_default_pointer_mode): Add definition.
1995 * c-common.h (c_default_pointer_mode): Add declaration.
1996
1997 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1998
1999 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2000 on record_builtin_type argument.
2001
2002 2015-03-10 Jakub Jelinek <jakub@redhat.com>
2003
2004 PR c/65120
2005 * c-common.c (warn_logical_not_parentheses): Don't warn for
2006 !x == 0 or !x != 0.
2007
2008 2015-03-07 Marek Polacek <polacek@redhat.com>
2009
2010 PR sanitizer/65280
2011 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2012 before trying to figure out whether we have a flexible array member.
2013
2014 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2015 Jonathan Wakely <jwakely.gcc@gmail.com>
2016
2017 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2018
2019 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2020
2021 PR ada/65319
2022 * c-ada-spec.c (print_destructor): Remove obsolete code.
2023
2024 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2025
2026 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2027 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2028 DECL_TEMPLATE_RESULT emulations.
2029 (dump_ada_template)): Add guard for TYPE_METHODS.
2030
2031 2015-02-27 Marek Polacek <polacek@redhat.com>
2032
2033 PR c/65040
2034 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2035
2036 2015-02-27 Kai Tietz <ktietz@redhat.com>
2037
2038 PR c/35330
2039 * c-pragma.c (handle_pragma_weak): Do not try to create
2040 weak/alias of declarations not being function, or variable
2041 declarations.
2042
2043 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2044
2045 PR libgomp/64625
2046 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2047 Remove macros.
2048 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2049
2050 2015-02-16 Marek Polacek <polacek@redhat.com>
2051
2052 PR c/65066
2053 * c-format.c (check_format_types): Handle null param.
2054
2055 2015-02-13 Marek Polacek <polacek@redhat.com>
2056
2057 PR c/65040
2058 * c-format.c (check_format_types): Don't warn about different
2059 signedness if the original value is in the range of WANTED_TYPE.
2060
2061 2015-02-12 Jason Merrill <jason@redhat.com>
2062
2063 PR c++/64956
2064 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2065 to the current highest version.
2066 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2067
2068 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2069
2070 PR c/64824
2071 PR c/64868
2072 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2073 instead of RDIV_EXPR. Use build_binary_op instead of
2074 build2_loc.
2075
2076 2015-01-30 Joseph Myers <joseph@codesourcery.com>
2077
2078 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2079 to pass input_location as first argument.
2080
2081 2015-01-23 Tom de Vries <tom@codesourcery.com>
2082
2083 PR libgomp/64672
2084 * c.opt (fopenacc): Mark as LTO option.
2085
2086 2015-01-23 Tom de Vries <tom@codesourcery.com>
2087
2088 PR libgomp/64707
2089 * c.opt (fopenmp): Mark as LTO option.
2090
2091 2015-01-21 Jakub Jelinek <jakub@redhat.com>
2092
2093 PR c/63307
2094 * cilk.c (fill_decls_vec): Only put decls into vector v.
2095 (compare_decls): Fix up formatting.
2096
2097 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2098
2099 PR c/63307
2100 * cilk.c: Include vec.h.
2101 (struct cilk_decls): New structure.
2102 (wrapper_parm_cb): Split this function to...
2103 (fill_decls_vec): ...this...
2104 (create_parm_list): ...and this.
2105 (compare_decls): New function.
2106 (for_local_cb): Remove.
2107 (wrapper_local_cb): Ditto.
2108 (build_wrapper_type): For now first traverse and fill vector of
2109 declarations then sort it and then deal with sorted vector.
2110 (cilk_outline): Ditto.
2111 (declare_one_free_variable): Ditto.
2112
2113 2015-01-21 Jason Merrill <jason@redhat.com>
2114
2115 PR c++/64629
2116 * c-format.c (check_format_arg): Call decl_constant_value.
2117
2118 2015-01-19 Martin Liska <mliska@suse.cz>
2119
2120 * c-common.c (handle_noicf_attribute): New function.
2121
2122 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2123 Bernd Schmidt <bernds@codesourcery.com>
2124 James Norris <jnorris@codesourcery.com>
2125 Cesar Philippidis <cesar@codesourcery.com>
2126 Ilmir Usmanov <i.usmanov@samsung.com>
2127 Jakub Jelinek <jakub@redhat.com>
2128
2129 * c.opt (fopenacc): New option.
2130 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2131 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2132 New macros.
2133 * c-common.h (c_finish_oacc_wait): New prototype.
2134 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2135 (c_finish_oacc_wait): New function.
2136 * c-pragma.c (oacc_pragmas): New variable.
2137 (c_pp_lookup_pragma, init_pragma): Handle it.
2138 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2139 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2140 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2141 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2142 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2143 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2144 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2145 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2146 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2147 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2148 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2149 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2150 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2151 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2152 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2153 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2154 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2155 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2156 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2157 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2158 PRAGMA_OACC_CLAUSE_WORKER.
2159
2160 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2161
2162 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2163 for the new option fstack-protector_explicit.
2164 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2165 (handle_stack_protect_attribute): New function.
2166
2167 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
2168
2169 * c.opt: New option -Warray-bounds=.
2170
2171 2015-01-09 Michael Collison <michael.collison@linaro.org>
2172
2173 * array-notation-common.c: Include hash-set.h, machmode.h,
2174 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2175 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2176 * c-ada-spec.c: Ditto.
2177 * c-cilkplus.c: Ditto.
2178 * c-common.c: Include input.h due to flattening of tree.h.
2179 Define macro GCC_C_COMMON_C.
2180 * c-common.h: Flatten tree.h header files into c-common.h.
2181 Remove include of tree-core.h.
2182 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2183 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2184 fold-const.h, wide-int.h, and inchash.h due to
2185 flattening of tree.h.
2186 * c-dump.c: Ditto.
2187 * c-format.c: Flatten tree.h header files into c-common.h.
2188 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2189 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2190 fold-const.h, wide-int.h, and inchash.h due to
2191 flattening of tree.h.
2192 * c-dump.c: Include hash-set.h, machmode.h,
2193 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2194 fold-const.h, wide-int.h, and inchash.h due to
2195 flattening of tree.h.
2196 * c-format.c: Include hash-set.h, machmode.h,
2197 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2198 fold-const.h, wide-int.h, inchash.h and real.h due to
2199 flattening of tree.h.
2200 * c-gimplify.c: Include hash-set.h, machmode.h,
2201 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2202 fold-const.h, wide-int.h, and inchash.h due to
2203 flattening of tree.h.
2204 * cilk.c: Ditto.
2205 * c-lex.c: Ditto.
2206 * c-omp.c: Ditto.
2207 * c-opts.c: Ditto.
2208 * c-pch.c: Ditto.
2209 * c-ppoutput.c: Ditto.
2210 * c-pragma.c: Ditto.
2211 * c-pretty-print.c: Ditto.
2212 * c-semantics.c: Ditto.
2213 * c-ubsan.c: Ditto.
2214 * stub-objc.c: Ditto.
2215
2216 2015-01-08 Jason Merrill <jason@redhat.com>
2217
2218 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2219 do_ubsan_in_current_function.
2220 (ubsan_maybe_instrument_reference_or_call): Likewise.
2221 * c-ubsan.h: Declare it.
2222
2223 2015-01-08 Mike Stump <mikestump@comcast.net>
2224
2225 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2226
2227 2015-01-07 Marek Polacek <polacek@redhat.com>
2228
2229 PR c/64440
2230 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2231 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2232
2233 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2234
2235 PR c++/31397
2236 * c.opt (Wsuggest-override): New option.
2237
2238 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2239
2240 Update copyright years.
2241
2242 2015-01-05 Marek Polacek <polacek@redhat.com>
2243
2244 PR c/64423
2245 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2246 parameter. Use it.
2247 * c-common.h (warn_array_subscript_with_type_char): Update
2248 declaration.
2249
2250 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2251
2252 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2253 Control macro with flag_sized_deallocation.
2254
2255 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
2256
2257 * c.opt (Wdiscarded-array-qualifiers): New option.
2258
2259 2014-12-19 Jakub Jelinek <jakub@redhat.com>
2260
2261 PR preprocessor/63831
2262 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2263 and __has_cpp_attribute here.
2264 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2265 c_common_has_attribute.
2266 * c-common.h (c_common_has_attribute): New prototype.
2267 * c-lex.c (init_c_lex): Set cb->has_attribute to
2268 c_common_has_attribute instead of cb_has_attribute.
2269 (get_token_no_padding): New function.
2270 (cb_has_attribute): Renamed to ...
2271 (c_common_has_attribute): ... this. No longer static. Use
2272 get_token_no_padding, require ()s, don't build TREE_LIST
2273 unnecessarily, fix up formatting, adjust diagnostics, call
2274 init_attributes.
2275
2276 2014-12-15 Jason Merrill <jason@redhat.com>
2277
2278 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2279 (-Wsized-deallocation): New.
2280 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2281 to on in C++14 and up.
2282
2283 2014-12-11 Jason Merrill <jason@redhat.com>
2284
2285 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2286
2287 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2288 we aren't complaining about VLAs.
2289
2290 2014-12-06 Marek Polacek <polacek@redhat.com>
2291
2292 PR tree-optimization/64183
2293 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2294 shift-expression if it is integer_type_node. Use types_compatible_p.
2295
2296 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2297
2298 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2299 last argument from create_tmp_var_raw and create_tmp_var calls.
2300 * cilk.c (gimplify_cilk_spawn): Likewise.
2301 * c-omp.c (c_finish_omp_atomic): Likewise.
2302
2303 2014-11-28 Marek Polacek <polacek@redhat.com>
2304
2305 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2306 instead of unsigned_type_node.
2307
2308 2014-11-28 Marek Polacek <polacek@redhat.com>
2309
2310 PR c/63862
2311 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2312 to op1_utype.
2313 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2314 expression to unsigned_type_node.
2315
2316 2014-11-20 Mark Wielaard <mjw@redhat.com>
2317
2318 PR debug/38757
2319 * c-opts.c (set_std_c89): Set lang_hooks.name.
2320 (set_std_c99): Likewise.
2321 (set_std_c11): Likewise.
2322 (set_std_cxx98): Likewise.
2323 (set_std_cxx11): Likewise.
2324 (set_std_cxx14): Likewise.
2325 (set_std_cxx1z): Likewise.
2326
2327 2014-11-21 Jakub Jelinek <jakub@redhat.com>
2328
2329 PR target/63764
2330 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2331 return type to bool.
2332 * c-common.c: Include gimple-expr.h.
2333 (convert_vector_to_pointer_for_subscript): Change return type to
2334 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2335 and copy it into a TARGET_EXPR and use that instead of *vecp
2336 directly.
2337
2338 2014-11-19 David Malcolm <dmalcolm@redhat.com>
2339
2340 Merger of git branch "gimple-classes-v2-option-3".
2341 * ChangeLog.gimple-classes: New.
2342 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2343 from being just a vec<gimple> to a vec<gbind *>.
2344
2345 2014-11-18 Jakub Jelinek <jakub@redhat.com>
2346
2347 PR sanitizer/63813
2348 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2349 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2350 get_pointer_alignment for non-pointers. Use ptype, or if it is
2351 reference type, corresponding pointer type, as type of kind
2352 argument.
2353 (ubsan_maybe_instrument_reference,
2354 ubsan_maybe_instrument_member_call): Adjust callers.
2355
2356 2014-11-15 Marek Polacek <polacek@redhat.com>
2357
2358 PR middle-end/63884
2359 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2360 for NULL fndecl.
2361 (extract_array_notation_exprs): Return for NULL node.
2362
2363 2014-11-12 Joseph Myers <joseph@codesourcery.com>
2364
2365 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2366 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2367
2368 2014-11-12 Jakub Jelinek <jakub@redhat.com>
2369
2370 PR c/59708
2371 * c-common.c (check_builtin_function_arguments): Handle
2372 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2373
2374 2014-11-10 Andi Kleen <ak@linux.intel.com>
2375
2376 PR c/60804
2377 * c-common.h (check_no_cilk): Declare.
2378 * cilk.c (get_error_location): New function.
2379 (check_no_cilk): Dito.
2380
2381 2014-11-10 Andi Kleen <ak@linux.intel.com>
2382
2383 * cilk.c (recognize_spawn): Use expression location
2384 for error message.
2385
2386 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2387
2388 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2389
2390 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2391
2392 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2393 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2394 (__cpp_range_based_for, __cpp_initializer_lists,
2395 __cpp_delegating_constructors, __cpp_nsdmi,
2396 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2397 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2398 __has_cpp_attribute.
2399 * c-lex.c (cb_has_attribute): New callback CPP function;
2400 (init_c_lex): Set has_attribute callback.
2401
2402 2014-11-04 Richard Biener <rguenther@suse.de>
2403
2404 * c-common.c (shorten_compare): Do not shorten mixed
2405 DFP and non-DFP compares.
2406
2407 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2408
2409 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2410 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2411 Commentary and rearrangement of tests.
2412 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2413 Commentary and rearrangement of tests.
2414 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2415 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2416
2417 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2418
2419 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2420 enum from machine_mode.
2421
2422 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
2423
2424 * c-common.c: Adjust include files.
2425 * c-gimplify.c: Ditto.
2426 * cilk.c: Ditto.
2427 * c-pragma.c: Ditto.
2428 * c-ubsan.c: Ditto.
2429
2430 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
2431
2432 * c-gimplify.c: Adjust include files.
2433
2434 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2435
2436 PR c++/53061
2437 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2438 c_common_initialize_diagnostics.
2439 * c-common.h: Likewise.
2440
2441 2014-10-24 Marek Polacek <polacek@redhat.com>
2442
2443 PR c/56980
2444 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2445 print "struct"/"union"/"enum" for typedefed names.
2446
2447 2014-10-23 Marek Polacek <polacek@redhat.com>
2448
2449 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2450 in unsigned type.
2451
2452 2014-10-22 Jakub Jelinek <jakub@redhat.com>
2453 Yury Gribov <y.gribov@samsung.com>
2454
2455 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2456 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2457 instead of flag_sanitize_recover as bool flag.
2458
2459 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2460
2461 * cilk.c: Revert previous change.
2462
2463 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2464
2465 PR c/63307
2466 * cilk.c: Include vec.h.
2467 (struct cilk_decls): New structure.
2468 (wrapper_parm_cb): Split this function to...
2469 (fill_decls_vec): ...this...
2470 (create_parm_list): ...and this.
2471 (compare_decls): New function.
2472 (for_local_cb): Remove.
2473 (wrapper_local_cb): Ditto.
2474 (build_wrapper_type): For now first traverse and fill vector of
2475 declarations then sort it and then deal with sorted vector.
2476 (cilk_outline): Ditto.
2477 (declare_one_free_variable): Ditto.
2478
2479 2014-10-17 Marek Polacek <polacek@redhat.com>
2480
2481 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2482 * c.opt (Wimplicit-int): Initialize to -1.
2483
2484 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
2485
2486 * c-pragma.c: Adjust include files.
2487 * c-semantics.c: Likewise.
2488
2489 2014-10-16 DJ Delorie <dj@redhat.com>
2490
2491 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2492 multiples of bytes.
2493
2494 2014-10-14 Jason Merrill <jason@redhat.com>
2495
2496 PR c++/63455
2497 * c-common.h (CPP_PREPARSED_EXPR): New.
2498 (N_CP_TTYPES): Adjust.
2499
2500 2014-10-15 Marek Polacek <polacek@redhat.com>
2501
2502 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2503
2504 2014-10-14 DJ Delorie <dj@redhat.com>
2505
2506 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2507 types, not just __int128.
2508 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2509 types, not just __int128.
2510 (cpp_atomic_builtins): Round pointer sizes up.
2511 (type_suffix): Use type precision, not specific types.
2512 * c-common.c (c_common_reswords): Remove __int128 special case.
2513 (c_common_type_for_size): Check for all __intN types, not just
2514 __int128.
2515 (c_common_type_for_mode): Likewise.
2516 (c_common_signed_or_unsigned_type): Likewise.
2517 (c_build_bitfield_integer_type): Likewise.
2518 (c_common_nodes_and_builtins): Likewise.
2519 (keyword_begins_type_specifier): Likewise.
2520 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2521 __intN variants.
2522
2523 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2524
2525 * c-common.c: Use hash_table instead of hashtab.
2526
2527 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2528
2529 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2530 C++11 section.
2531
2532 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2533
2534 PR c++/54427
2535 PR c++/57198
2536 PR c++/58845
2537 * c-common.c (warn_logical_operator): Punt for vectors.
2538
2539 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2540
2541 Implement SD-6: SG10 Feature Test Recommendations
2542 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2543 macros and the __has_header macro.
2544
2545 2014-09-30 Jason Merrill <jason@redhat.com>
2546
2547 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2548 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2549 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2550
2551 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2552 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2553
2554 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2555 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2556
2557 2014-09-24 Marek Polacek <polacek@redhat.com>
2558
2559 PR c/61405
2560 PR c/53874
2561 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2562
2563 2014-09-23 Andi Kleen <ak@linux.intel.com>
2564
2565 * c-common.c (handle_no_reorder_attribute): New function.
2566 (c_common_attribute_table): Add no_reorder attribute.
2567
2568 2014-09-22 Joseph Myers <joseph@codesourcery.com>
2569
2570 * c-cppbuiltin.c (c_cpp_builtins): Define
2571 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2572 modes.
2573
2574 2014-09-18 Joseph Myers <joseph@codesourcery.com>
2575
2576 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2577 for supported floating-point modes.
2578
2579 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2580
2581 * c.opt (Wpsabi): Use LangEnabledBy.
2582 * c-opts.c (c_common_handle_option): Do not handle here.
2583
2584 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2585
2586 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2587 macros for floating-point modes.
2588
2589 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2590
2591 PR target/58757
2592 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2593 __*_DENORM_MIN__ without denormals.
2594
2595 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2596
2597 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2598 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2599 ubsan_create_data callers.
2600 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2601 index is constant or BIT_AND_EXPR with constant mask and is
2602 small enough for the bound.
2603 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2604 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2605
2606 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2607
2608 * c.opt: Add CppReason to various flags.
2609 (Wdate-time): Re-sort.
2610 * c-common.c: Include c-common.h earlier.
2611 (struct reason_option_codes_t): Delete.
2612 (c_option_controlling_cpp_error): Prefix global type and struct
2613 with cpp_.
2614
2615 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2616
2617 * c.opt (Wnormalized): New.
2618 (Wnormalized=): Use Enum and Reject Negative.
2619 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2620
2621 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2622
2623 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2624 digits of floating-point modes if -fbuilding-libgcc.
2625
2626 2014-09-05 Joseph Myers <joseph@codesourcery.com>
2627
2628 * c-cppbuiltin.c (c_cpp_builtins): Also define
2629 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2630 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2631 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2632 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2633 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2634 __LIBGCC_STACK_GROWS_DOWNWARD__,
2635 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2636 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2637 __LIBGCC_DWARF_FRAME_REGISTERS__,
2638 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2639 __LIBGCC_STACK_POINTER_REGNUM__ and
2640 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2641 (builtin_define_with_value): Handle backslash-escaping in string
2642 macro values.
2643
2644 2014-09-05 Richard Biener <rguenther@suse.de>
2645
2646 PR middle-end/63148
2647 * c-format.c (check_format_arg): Properly handle
2648 effectively signed POINTER_PLUS_EXPR offset.
2649
2650 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2651
2652 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2653 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2654 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2655 and Init.
2656 * c-opts.c (c_common_handle_option): Do not handle here.
2657 (sanitize_cpp_opts): Likewise.
2658 * c-common.c (struct reason_option_codes_t): Handle
2659 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2660
2661 2014-09-03 Marek Polacek <polacek@redhat.com>
2662
2663 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2664
2665 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2666 Balaji V. Iyer <balaji.v.iyer@intel.com>
2667 Igor Zamyatin <igor.zamyatin@intel.com>
2668
2669 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2670 * c-common.c (c_common_reswords): Added _Cilk_for.
2671 * c-common.h (enum rid): Added RID_CILK_FOR.
2672 (cilk_for_number_of_iterations): Add declaration.
2673 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2674 CILK_FOR.
2675 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2676 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2677
2678 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2679
2680 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2681 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2682 Wundef): Use CPP, Var and Init.
2683 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2684
2685 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2686
2687 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2688 * c-opts.c (c_common_handle_option): Do not handle here.
2689
2690 2014-08-25 Jason Merrill <jason@redhat.com>
2691
2692 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2693 -std=c++14 and -std=gnu++14, rather than the reverse.
2694 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2695 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2696 * c-common.h (cxx_dialect): Remove cxx1y.
2697
2698 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2699
2700 * c-common.h (enum cxx_dialect): Add cxx14.
2701 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2702 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2703 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2704
2705 2014-08-22 Jason Merrill <jason@redhat.com>
2706
2707 * c.opt (std=gnu++17): Fix alias.
2708
2709 2014-08-22 Marek Polacek <polacek@redhat.com>
2710
2711 PR c++/62199
2712 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2713 check for vector types. Drop LHS argument.
2714 * c-common.h (warn_logical_not_parentheses): Adjust.
2715
2716 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2717
2718 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2719 (Wmultichar): Likewise.
2720 (Wdate-time): Use C-family languages instead of Common. Use CPP
2721 and Var.
2722 * c-opts.c (c_common_handle_option): Do not handle the above
2723 options here.
2724 (sanitize_cpp_opts): Likewise.
2725
2726 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2727
2728 PR fortran/44054
2729 * c-opts.c: Include tree-diagnostics.h.
2730 (c_diagnostic_finalizer): New.
2731 (c_common_initialize_diagnostics): Use it.
2732
2733 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2734
2735 PR preprocessor/51303
2736 * c-common.c (struct reason_option_codes_t option_codes):
2737 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2738
2739 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2740
2741 PR c/60975
2742 PR c/53063
2743 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2744 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2745 (c_common_post_options): Call init_global_opts_from_cpp.
2746 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2747
2748 2014-08-19 Marek Polacek <polacek@redhat.com>
2749
2750 PR c++/62153
2751 * c-common.c (maybe_warn_bool_compare): New function.
2752 * c-common.h (maybe_warn_bool_compare): Declare.
2753 * c.opt (Wbool-compare): New option.
2754
2755 2014-08-19 Marek Polacek <polacek@redhat.com>
2756
2757 * c.opt (Wc99-c11-compat): New option.
2758
2759 2014-08-19 Marek Polacek <polacek@redhat.com>
2760
2761 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2762 to warn_c90_c99_compat.
2763 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2764 to -1.
2765
2766 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2767 Steven Bosscher <steven@gcc.gnu.org>
2768
2769 PR c/52952
2770 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2771 format_check_results.
2772 (check_function_format): Use true and add comment for boolean
2773 argument.
2774 (finish_dollar_format_checking): Use explicit location when warning.
2775 (check_format_info): Likewise.
2776 (check_format_arg): Set extra_arg_loc and format_string_loc.
2777 (check_format_info_main): Use explicit location when warning.
2778 (check_format_types): Pass explicit location.
2779 (format_type_warning): Likewise.
2780
2781 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2782
2783 PR fortran/44054
2784 * c-format.c: Handle Fortran flags.
2785
2786 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2787
2788 PR other/61962
2789 * array-notation-common.c (find_rank): Added handling for other
2790 types of references.
2791
2792 2014-08-10 Marek Polacek <polacek@redhat.com>
2793
2794 PR c/51849
2795 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2796 * c.opt (Wc90-c99-compat): Add option.
2797
2798 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2799
2800 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2801
2802 2014-08-03 Marek Polacek <polacek@redhat.com>
2803
2804 * c-common.c (check_case_value): Add location_t parameter. Use it.
2805 (c_add_case_label): Pass loc to check_case_value.
2806
2807 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2808
2809 * cilk.c: Use hash_map instead of pointer_map.
2810
2811 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2812
2813 * c-gimplify.c: Use hash_set instead of pointer_set.
2814
2815 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2816
2817 PR middle-end/61455
2818 * array-notation-common.c (extract_array_notation_exprs): Handling
2819 of DECL_EXPR added.
2820
2821 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2822
2823 * c-common.h (min_align_of_type): Removed prototype.
2824 * c-common.c (min_align_of_type): Removed.
2825 * c-ubsan.h (ubsan_maybe_instrument_reference,
2826 ubsan_maybe_instrument_member_call): New prototypes.
2827 * c-ubsan.c: Include stor-layout.h and builtins.h.
2828 (ubsan_maybe_instrument_reference_or_call,
2829 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2830 functions.
2831
2832 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2833
2834 PR c++/60517
2835 * c.opt (-Wreturn-local-addr): Move to common.opt.
2836
2837 2014-07-30 Jason Merrill <jason@redhat.com>
2838
2839 PR c++/61659
2840 PR c++/61687
2841 Revert:
2842 * c.opt (-fuse-all-virtuals): New.
2843
2844 2014-07-30 Tom Tromey <tromey@redhat.com>
2845
2846 PR c/59855
2847 * c.opt (Wdesignated-init): New option.
2848 * c-common.c (c_common_attribute_table): Add "designated_init".
2849 (handle_designated_init): New function.
2850
2851 2014-07-24 Marek Polacek <polacek@redhat.com>
2852
2853 PR c/57653
2854 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2855
2856 2014-07-16 Dodji Seketeli <dodji@redhat.com>
2857
2858 PR preprocessor/60723 - missing system-ness marks for macro tokens
2859 * c-ppoutput.c (struct print::prev_was_system_token): New data
2860 member.
2861 (init_pp_output): Initialize it.
2862 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2863 (do_line_change): Return a flag saying if a line marker was
2864 emitted or not.
2865 (scan_translation_unit): Detect if the system-ness of the token we
2866 are about to emit is different from the one of the previously
2867 emitted token. If so, emit a line marker. Avoid emitting useless
2868 adjacent line markers. Avoid emitting line markers for tokens
2869 originating from the expansion of built-in macros.
2870 (scan_translation_unit_directives_only): Adjust.
2871
2872 2014-07-15 Marek Polacek <polacek@redhat.com>
2873
2874 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2875 TYPE_MAX_VALUE is NULL.
2876
2877 2014-07-14 Jakub Jelinek <jakub@redhat.com>
2878
2879 PR middle-end/61294
2880 * c.opt (Wmemset-transposed-args): New warning.
2881
2882 2014-07-10 Jason Merrill <jason@redhat.com>
2883
2884 PR c++/61659
2885 PR c++/61687
2886 * c.opt (-fuse-all-virtuals): New.
2887
2888 2014-07-09 Richard Biener <rguenther@suse.de>
2889
2890 PR c-family/61741
2891 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2892 using unsigned arithmetic if overflow does not wrap instead of
2893 if overflow is undefined.
2894
2895 2014-07-06 Marek Polacek <polacek@redhat.com>
2896
2897 PR c/6940
2898 * c.opt (Wsizeof-array-argument): New option.
2899
2900 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2901
2902 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
2903 comments->count <= 1, as comments->entries might be NULL.
2904
2905 2014-07-01 Marek Polacek <polacek@redhat.com>
2906
2907 * c.opt (Wint-conversion): New option.
2908
2909 2014-07-01 Marek Polacek <polacek@redhat.com>
2910
2911 PR c/58286
2912 * c.opt (Wincompatible-pointer-types): New option.
2913
2914 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2915
2916 PR c++/51400
2917 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2918 Do not discard TYPE_QUALS of type.
2919
2920 2014-06-26 Jason Merrill <jason@redhat.com>
2921
2922 * c-common.h (enum cxx_dialect): Add cxx1z.
2923 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2924 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2925
2926 2014-06-26 Teresa Johnson <tejohnson@google.com>
2927
2928 * c-common.h (get_dump_info): Declare.
2929 * c-gimplify.c (c_genericize): Use saved dump files.
2930 * c-opts.c (c_common_parse_file): Begin and end dumps
2931 once around parsing invocation.
2932 (get_dump_info): New function.
2933
2934 2014-06-23 Marek Polacek <polacek@redhat.com>
2935 Andrew MacLeod <amacleod@redhat.com>
2936
2937 PR c/61553
2938 * c-common.c (get_atomic_generic_size): Don't segfault if the
2939 type doesn't have a size.
2940
2941 2014-06-20 Marek Polacek <polacek@redhat.com>
2942
2943 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2944 (ubsan_walk_array_refs_r): New function.
2945 (c_genericize): Instrument array bounds.
2946 * c-ubsan.c: Include "internal-fn.h".
2947 (ubsan_instrument_division): Mark instrumented arrays as having
2948 side effects. Adjust ubsan_type_descriptor call.
2949 (ubsan_instrument_shift): Likewise.
2950 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2951 (ubsan_instrument_bounds): New function.
2952 (ubsan_array_ref_instrumented_p): New function.
2953 (ubsan_maybe_instrument_array_ref): New function.
2954 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2955 (ubsan_array_ref_instrumented_p): Declare.
2956 (ubsan_maybe_instrument_array_ref): Declare.
2957
2958 2014-06-20 Hale Wang <hale.wang@arm.com>
2959
2960 PR lto/61123
2961 * c.opt (fshort-enums): Add to LTO.
2962 * c.opt (fshort-wchar): Likewise.
2963
2964 2014-06-16 Marek Polacek <polacek@redhat.com>
2965
2966 PR c/60439
2967 * c.opt (Wswitch-bool): Add Var.
2968
2969 2014-06-12 Jakub Jelinek <jakub@redhat.com>
2970
2971 PR middle-end/61486
2972 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2973 #pragma omp target teams or
2974 #pragma omp {,target }teams distribute simd.
2975
2976 2014-06-12 Jason Merrill <jason@redhat.com>
2977
2978 * c.opt (Wabi=, fabi-compat-version): New.
2979 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2980 (c_common_post_options): Handle flag_abi_compat_version default.
2981 Disallow -fabi-compat-version=1.
2982 * c-common.h (abi_version_crosses): New.
2983
2984 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2985
2986 * c-common.c (handle_section_attribute): Update handling for
2987 section names that are no longer trees.
2988
2989 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2990
2991 PR fortran/60928
2992 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2993 (omp_pragmas): ... back here.
2994
2995 2014-06-05 Marek Polacek <polacek@redhat.com>
2996
2997 PR c/49706
2998 * c-common.c (warn_logical_not_parentheses): New function.
2999 * c-common.h (warn_logical_not_parentheses): Declare.
3000 * c.opt (Wlogical-not-parentheses): New option.
3001
3002 2014-06-04 Marek Polacek <polacek@redhat.com>
3003
3004 PR c/30020
3005 * c-common.c (check_case_bounds): Add location parameter.
3006 Use it.
3007 (c_add_case_label): Pass loc to check_case_bounds.
3008
3009 2014-06-03 Marek Polacek <polacek@redhat.com>
3010
3011 PR c/60439
3012 * c.opt (Wswitch-bool): New option.
3013
3014 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3015
3016 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3017 Remove prototypes.
3018 (record_types_used_by_current_var_decl): Move prototype to where
3019 it belongs.
3020
3021 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3022 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3023 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3024
3025 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3026
3027 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3028 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3029 void_zero_node.
3030 * c-pretty-print.c (pp_c_void_constant): New function.
3031 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3032 (c_pretty_printer::expression): Handle VOID_CST.
3033 * cilk.c (extract_free_variables): Likewise.
3034 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3035 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3036
3037 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3038
3039 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3040 * c-pragma.c (push_alignment): Adjust.
3041 (handle_pragma_push_options): Likewise.
3042
3043 2014-05-09 Marek Polacek <polacek@redhat.com>
3044
3045 PR c/50459
3046 * c-common.c (check_user_alignment): Return -1 if alignment is error
3047 node.
3048 (handle_aligned_attribute): Don't call default_conversion on
3049 FUNCTION_DECLs.
3050 (handle_vector_size_attribute): Likewise.
3051 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3052 (handle_sentinel_attribute): Call default_conversion and allow even
3053 integral types as an argument.
3054
3055 2014-05-08 Marek Polacek <polacek@redhat.com>
3056
3057 PR c/61053
3058 * c-common.c (min_align_of_type): New function factored out from...
3059 (c_sizeof_or_alignof_type): ...here.
3060 * c-common.h (min_align_of_type): Declare.
3061
3062 2014-05-08 Marek Polacek <polacek@redhat.com>
3063
3064 PR c/61077
3065 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3066 parameter type of main.
3067
3068 2014-05-07 DJ Delorie <dj@redhat.com>
3069
3070 * c-cppbuiltin.c (print_bits_of_hex): New.
3071 (builtin_define_type_minmax): Print values using hex so as not to
3072 require a pre-computed list of string values.
3073
3074 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3075 Mike Stump <mikestump@comcast.net>
3076 Richard Sandiford <rdsandiford@googlemail.com>
3077
3078 * c-ada-spec.c: Include wide-int.h.
3079 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3080 (dump_generic_ada_node): Use wide-int interfaces.
3081 * c-common.c: Include wide-int-print.h.
3082 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3083 (pointer_int_sum): Use wide-int interfaces.
3084 (c_common_nodes_and_builtins): Use make_int_cst.
3085 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3086 (handle_alloc_size_attribute): Use wide-int interfaces.
3087 (get_nonnull_operand): Likewise.
3088 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3089 * c-lex.c: Include wide-int.h.
3090 (narrowest_unsigned_type): Take a widest_int rather than two
3091 HOST_WIDE_INTs.
3092 (narrowest_signed_type): Likewise.
3093 (interpret_integer): Update accordingly. Use wide-int interfaces.
3094 (lex_charconst): Use wide-int interfaces.
3095 * c-pretty-print.c: Include wide-int.h.
3096 (pp_c_integer_constant): Use wide-int interfaces.
3097 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3098 INT_CST_LT_UNSIGNED.
3099
3100 2014-05-06 Richard Biener <rguenther@suse.de>
3101
3102 * c-opts.c (c_common_post_options): For -freestanding,
3103 -fno-hosted and -fno-builtin disable pattern recognition
3104 if not enabled explicitely.
3105
3106 2014-05-02 Marek Polacek <polacek@redhat.com>
3107
3108 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3109
3110 2014-05-01 Marek Polacek <polacek@redhat.com>
3111
3112 PR c/43245
3113 * c.opt (Wdiscarded-qualifiers): Add.
3114
3115 2014-04-30 Marek Polacek <polacek@redhat.com>
3116
3117 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3118 INT_MIN / -1 sanitization only for integer types.
3119
3120 2014-04-25 Marek Polacek <polacek@redhat.com>
3121
3122 PR c/18079
3123 * c-common.c (handle_noinline_attribute): Warn if the attribute
3124 conflicts with always_inline attribute.
3125 (handle_always_inline_attribute): Warn if the attribute conflicts
3126 with noinline attribute.
3127
3128 2014-04-25 Marek Polacek <polacek@redhat.com>
3129
3130 PR c/60156
3131 * c-common.c (check_main_parameter_types): Warn about variadic main.
3132
3133 2014-04-24 Mike Stump <mikestump@comcast.net>
3134
3135 * c.opt (Wshadow-ivar): Default to on.
3136
3137 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3138
3139 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3140
3141 2014-04-23 Marek Polacek <polacek@redhat.com>
3142
3143 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3144
3145 2014-04-22 Jakub Jelinek <jakub@redhat.com>
3146
3147 PR sanitizer/60275
3148 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3149 if flag_sanitize_undefined_trap_on_error.
3150 (ubsan_instrument_division, ubsan_instrument_shift,
3151 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3152 if !flag_sanitize_recover.
3153
3154 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
3155
3156 PR libstdc++/43622
3157 * c-common.c (registered_builtin_types): Make non-static.
3158 * c-common.h (registered_builtin_types): Declare.
3159
3160 2014-04-14 Richard Biener <rguenther@suse.de>
3161 Marc Glisse <marc.glisse@inria.fr>
3162
3163 PR c/60819
3164 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3165 apply may-alias the scalar pointer type when applicable.
3166
3167 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3168
3169 PR middle-end/60467
3170 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3171 as possible argument for Cilk_spawn.
3172
3173 2014-04-11 Tobias Burnus <burnus@net-b.de>
3174
3175 PR c/60194
3176 * c.opt (Wformat-signedness): Add
3177 * c-format.c(check_format_types): Use it.
3178
3179 2014-04-11 Jason Merrill <jason@redhat.com>
3180
3181 PR c++/57926
3182 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3183 default_conversion for an array argument.
3184
3185 2014-04-08 Marek Polacek <polacek@redhat.com>
3186
3187 PR sanitizer/60745
3188 * c-ubsan.c: Include asan.h.
3189 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3190
3191 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3192
3193 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3194
3195 2014-04-02 Marek Polacek <polacek@redhat.com>
3196
3197 * c-common.h (c_expand_expr): Remove declaration.
3198
3199 2014-03-28 Jakub Jelinek <jakub@redhat.com>
3200
3201 PR c++/60689
3202 * c-common.c (add_atomic_size_parameter): When creating new
3203 params vector, push the size argument first.
3204
3205 2014-03-26 Jakub Jelinek <jakub@redhat.com>
3206
3207 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3208 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3209 ubsan_create_data callers.
3210
3211 2014-03-22 Jakub Jelinek <jakub@redhat.com>
3212
3213 PR debug/60603
3214 * c-opts.c (c_finish_options): Restore cb_file_change call to
3215 <built-in>.
3216
3217 2014-03-13 Jakub Jelinek <jakub@redhat.com>
3218
3219 PR middle-end/36282
3220 * c-pragma.c (apply_pragma_weak): Only look at
3221 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3222 DECL_ASSEMBLER_NAME_SET_P (decl).
3223 (maybe_apply_pending_pragma_weaks): Exit early if
3224 vec_safe_is_empty (pending_weaks) rather than only when
3225 !pending_weaks.
3226 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3227 set assembler name back to NULL afterwards.
3228
3229 2014-03-11 Jason Merrill <jason@redhat.com>
3230
3231 * c.opt: Add -std=gnu++14.
3232
3233 2014-03-11 Ian Bolton <ian.bolton@arm.com>
3234
3235 * c-opts.c (c_common_post_options): Don't override
3236 -ffp-contract=fast if unsafe-math-optimizations is on.
3237
3238 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
3239
3240 * c.opt: Enable LTO FE for fshort-double.
3241
3242 2014-03-07 Jason Merrill <jason@redhat.com>
3243
3244 * c.opt: Add -std=c++14.
3245
3246 2014-03-06 Marek Polacek <polacek@redhat.com>
3247
3248 PR c/60197
3249 * cilk.c (contains_cilk_spawn_stmt): New function.
3250 (contains_cilk_spawn_stmt_walker): Likewise.
3251 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3252 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3253
3254 2014-03-03 Jakub Jelinek <jakub@redhat.com>
3255
3256 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3257 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3258 even when flag_preprocess_only.
3259
3260 2014-02-26 Jason Merrill <jason@redhat.com>
3261
3262 PR c++/59231
3263 PR c++/11586
3264 * c-common.c (shorten_compare): Don't check
3265 c_inhibit_evaluation_warnings.
3266
3267 2014-02-19 Jakub Jelinek <jakub@redhat.com>
3268
3269 PR c/37743
3270 * c-common.c (c_common_nodes_and_builtins): When initializing
3271 c_uint{16,32,64}_type_node, also set corresponding
3272 uint{16,32,64}_type_node to the same value.
3273
3274 PR c++/60267
3275 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3276 for PRAGMA_IVDEP if flag_preprocess_only.
3277
3278 2014-02-12 Jakub Jelinek <jakub@redhat.com>
3279
3280 PR c/60101
3281 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3282 if false, add ADD itself, rather than vice versa.
3283 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3284 copy. For SAVE_EXPR, only call merge_tlist once.
3285
3286 2014-02-08 Jakub Jelinek <jakub@redhat.com>
3287
3288 PR middle-end/60092
3289 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3290 and tree_to_uhwi.
3291 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3292 functions.
3293 (c_common_attribute_table): Add alloc_align and assume_aligned
3294 attributes.
3295
3296 2014-02-06 Marek Polacek <polacek@redhat.com>
3297
3298 PR c/60087
3299 * c-common.c (warn_for_sign_compare): Call warning_at with location
3300 instead of warning.
3301
3302 2014-02-05 Marek Polacek <polacek@redhat.com>
3303
3304 PR c/53123
3305 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3306 statement.
3307
3308 2014-02-04 Marek Polacek <polacek@redhat.com>
3309
3310 PR c/60036
3311 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3312 SAVE_EXPR.
3313
3314 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
3315
3316 PR c++/53017
3317 PR c++/59211
3318 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3319 handle_vector_size_attribute, handle_nonnull_attribute): Call
3320 default_conversion on the attribute argument.
3321 (handle_nonnull_attribute): Increment the argument number.
3322
3323 2014-01-31 Marek Polacek <polacek@redhat.com>
3324
3325 PR c/59963
3326 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3327 build_function_call_vec.
3328 (resolve_overloaded_builtin): Likewise.
3329 * c-common.h (build_function_call_vec): Adjust declaration.
3330
3331 2014-01-30 Marek Polacek <polacek@redhat.com>
3332
3333 PR c/59940
3334 * c-common.h (unsafe_conversion_p): Adjust declaration.
3335 (warnings_for_convert_and_check): Likewise.
3336 (convert_and_check): Likewise.
3337 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3338 expansion_point_location_if_in_system_header on it.
3339 (warnings_for_convert_and_check): Add location parameter. Call
3340 expansion_point_location_if_in_system_header on it. Use it.
3341 (convert_and_check): Add location parameter. Use it.
3342 (conversion_warning): Likewise.
3343 (c_add_case_label): Adjust convert_and_check calls.
3344 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3345
3346 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3347
3348 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3349 flag_cilkplus.
3350 * c-pragma.c (init_pragma): Likewise.
3351 * c.opt: Likewise.
3352
3353 2014-01-23 Marek Polacek <polacek@redhat.com>
3354
3355 PR c/59846
3356 * c-common.c (shorten_compare): Add location_t parameter.
3357 * c-common.h (shorten_binary_op): Adjust declaration.
3358
3359 2014-01-23 Marek Polacek <polacek@redhat.com>
3360
3361 PR c/58346
3362 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3363 * c-common.h: Declare it.
3364
3365 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3366
3367 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3368 * c-ada-spec.c (dump_ads): Likewise.
3369 (cpp_check): Likewise.
3370 (dump_ada_specs): Likewise.
3371
3372 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
3373
3374 PR c++/49718
3375 * c-common.c (handle_no_instrument_function_attribute): Allow
3376 no_instrument_function attribute in class member
3377 definition/declaration.
3378
3379 2014-01-15 Jakub Jelinek <jakub@redhat.com>
3380
3381 PR c/58943
3382 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3383 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3384 being COMPOUND_EXPR.
3385 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3386 operand a SAVE_EXPR and second MODIFY_EXPR.
3387
3388 2014-01-09 Jakub Jelinek <jakub@redhat.com>
3389
3390 PR target/58115
3391 * c-pch.c (c_common_write_pch): Call
3392 prepare_target_option_nodes_for_pch.
3393
3394 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3395
3396 Update copyright years
3397
3398 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3399
3400 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3401 the copyright notice.
3402
3403 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3404
3405 * c-ada-spec.c (print_constructor): New function.
3406 (print_destructor): Retrieve the origin of the destructor.
3407 (print_ada_declaration): Revamp handling of constructors/destructors.
3408
3409 2013-12-23 Stuart Hastings <stuart@apple.com>
3410 Bill Maddox <maddox@google.com>
3411 Jason Merrill <jason@redhat.com>
3412
3413 * c.opt: Add -fdeclone-ctor-dtor.
3414 * c-opts.c (c_common_post_options): Default to on iff -Os.
3415
3416 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3417
3418 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3419 attribute.
3420 * c-pragma.h (enum pragma_cilk_clause): Remove.
3421 (enum pragma_omp_clause): Added the following fields:
3422 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3423 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3424 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3425 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3426 PRAGMA_CILK_CLAUSE_UNIFORM.
3427
3428
3429 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3430
3431 * cilk.c (cilk_outline): Made this function non-static.
3432 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3433 (create_cilk_wrapper): Added a new parameter: a function pointer.
3434 (c_install_body_w_frame_cleanup): Remove
3435 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3436 * c-common.h (cilk_outline): New prototype.
3437 (gimplify_cilk_spawn): Removed two parameters.
3438 (cilk_install_body_with_frame_cleanup): New prototype.
3439 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3440 CILK_SPAWN_STMT case.
3441
3442 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3443
3444 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3445
3446 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3447 (int_array_type_node): Remove.
3448 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3449
3450 2013-12-05 Marek Polacek <polacek@redhat.com>
3451
3452 PR c/52023
3453 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3454 [ADJUST_FIELD_ALIGN].
3455
3456 2013-12-04 Joseph Myers <joseph@codesourcery.com>
3457
3458 PR c/52023
3459 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3460 and check field alignment if set.
3461 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3462 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3463
3464 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3465 Marek Polacek <polacek@redhat.com>
3466
3467 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3468 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3469
3470 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3471
3472 PR c/59309
3473 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3474 arguments.
3475
3476 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3477
3478 PR c/59280
3479 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3480 goto invalid. If it is error_mark_node, don't issue further
3481 diagnostics.
3482
3483 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3484
3485 * c.opt (Wopenmp-simd): New.
3486
3487 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3488
3489 * c-ubsan.h (ubsan_instrument_return): New prototype.
3490 * c-ubsan.c (ubsan_instrument_return): New function.
3491
3492 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3493
3494 * c-common.c: Add required include files from gimple.h.
3495 * c-gimplify.c: Likewise
3496 * cilk.c: Likewise
3497
3498 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3499
3500 * c-common.c (unsafe_conversion_p): Remove use of
3501 EXPR_LOC_OR_HERE macro.
3502 (conversion_warning): Likewise.
3503 (warnings_for_convert_and_check): Likewise.
3504 (warn_for_collisions_1): Likewise.
3505 (shorten_compare): Likewise, and remove use of in_system_header
3506 macro, using the location from the former.
3507 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3508 (cb_def_pragma): Remove use of in_system_header macro.
3509 (lex_string): Likewise.
3510 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3511
3512 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3513 Mike Stump <mikestump@comcast.net>
3514 Richard Sandiford <rdsandiford@googlemail.com>
3515
3516 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3517 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3518 tree_fits_shwi_p or tree_fits_uhwi_p.
3519 (dump_generic_ada_node): Likewise.
3520 * c-format.c (check_format_arg): Likewise.
3521 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3522
3523 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3524
3525 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3526
3527 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3528
3529 PR c/53001
3530 * c-common.c (unsafe_conversion_p): Make this function
3531 return an enumeration with more detail.
3532 (conversion_warning): Use the new return type of
3533 unsafe_conversion_p to separately warn either about conversions
3534 that lower floating point number precision or about the other
3535 kinds of conversions.
3536 * c-common.h (enum conversion_safety): New enumeration.
3537 (unsafe_conversion_p): switching return type to
3538 conversion_safety enumeration.
3539 * c.opt: Adding new warning -Wfloat-conversion and
3540 enabling it with -Wconversion.
3541
3542 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3543
3544 * c-opts.c: Include plugin.h.
3545 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3546
3547 2013-11-19 Marek Polacek <polacek@redhat.com>
3548
3549 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3550 call.
3551 (ubsan_instrument_shift): Likewise.
3552 (ubsan_instrument_vla): Likewise.
3553
3554 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3555
3556 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3557 cast to unsigned type.
3558
3559 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3560
3561 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3562 tree_low_cst.
3563 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3564 rather than tree_low_cst.
3565
3566 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3567
3568 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3569 tree_to_uhwi throughout.
3570
3571 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3572
3573 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3574 tree_low_cst (..., 0) with tree_to_shwi throughout.
3575
3576 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3577
3578 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3579 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3580
3581 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3582
3583 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3584 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3585
3586 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3587
3588 * c-cilkplus.c: New file.
3589 * c-common.c (readonly_error): Add location argument.
3590 * c-common.h (readonly_error): Same.
3591 (c_finish_cilk_clauses): Protoize.
3592 (c_check_cilk_loop): Same.
3593 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3594 Do not fail on error_mark_node.
3595 Abstract increment canonicalization to here...
3596 (c_omp_for_incr_canonicalize_ptr): New.
3597 c-pragma.c (init_pragma): Register "simd" pragma.
3598 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3599 (enum pragma_cilk_clause): New.
3600
3601 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3602
3603 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3604 wchar_type and host_integerp checks.
3605
3606 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3607
3608 * c-common.c: Likewise.
3609 * c-gimplify.c: Likewise.
3610 * cilk.c: Likewise.
3611
3612 2013-11-14 Diego Novillo <dnovillo@google.com>
3613
3614 * c-common.c: Include fold-const.h.
3615 Include stor-layout.h.
3616 Include calls.h.
3617 Include stringpool.h.
3618 Include attribs.h.
3619 Include varasm.h.
3620 Include trans-mem.h.
3621 * c-cppbuiltin.c: Include stor-layout.h.
3622 Include stringpool.h.
3623 * c-format.c: Include stringpool.h.
3624 * c-lex.c: Include stringpool.h.
3625 Include stor-layout.h.
3626 * c-pragma.c: Include stringpool.h.
3627 Include attribs.h.
3628 Include varasm.h.
3629 Include gcc-symtab.h.
3630 * c-pretty-print.c: Include stor-layout.h.
3631 Include attribs.h.
3632 * cilk.c: Include stringpool.h.
3633 Include calls.h.
3634
3635 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3636
3637 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3638 * c-common.c (c_common_reswords): Add __auto_type.
3639 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3640
3641 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3642
3643 * c-common.c: Include gimplify.h.
3644 * c-gimplify.c: Likewise.
3645 * cilk.c: Likewise.
3646 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3647 * c-ubsan.c: Don't include gimple.h.
3648
3649 2013-11-12 Joseph Myers <joseph@codesourcery.com>
3650
3651 * c-common.c (c_common_reswords): Add _Thread_local.
3652
3653 2013-11-09 Joseph Myers <joseph@codesourcery.com>
3654
3655 * c-common.c (atomic_size_supported_p): New function.
3656 (resolve_overloaded_atomic_exchange)
3657 (resolve_overloaded_atomic_compare_exchange)
3658 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3659 Use it instead of comparing size with a local list of sizes.
3660
3661 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3662 Joseph Myers <joseph@codesourcery.com>
3663
3664 * c-common.h (enum rid): Add RID_ATOMIC.
3665 * c-common.c (c_common_reswords): Add _Atomic.
3666 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3667 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3668 * c-format.c (check_format_types): Check for extra _Atomic
3669 qualifiers in format argument.
3670 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3671 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3672
3673 2013-11-06 Tobias Burnus <burnus@net-b.de>
3674
3675 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3676
3677 2013-11-06 Joseph Myers <joseph@codesourcery.com>
3678
3679 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3680 standards modes.
3681 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3682 to mean lack of IEEE 754 support.
3683
3684 2013-11-05 Tobias Burnus <burnus@net-b.de>
3685
3686 * c.opt (-Wdate-time): New option
3687 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3688
3689 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3690
3691 * c-cppbuiltin.c (cpp_iec_559_value): Test
3692 flag_excess_precision_cmdline not flag_excess_precision.
3693
3694 2013-11-05 Tobias Burnus <burnus@net-b.de>
3695
3696 * c.opt (fopenmp-simd): New option.
3697 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3698 (omp_pragmas): ... this new struct.
3699 (c_pp_lookup_pragma): Also walk omp_pragmas.
3700 (init_pragma): Init pragmas for -fopenmp-simd.
3701
3702 2013-11-04 Marek Polacek <polacek@redhat.com>
3703
3704 PR c++/58979
3705 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3706
3707 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3708
3709 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3710 New functions.
3711 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3712
3713 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3714
3715 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3716 (dump_ada_specs): Adjust prototype of second callback.
3717 * c-ada-spec.c (cpp_check): New global variable.
3718 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3719 (print_generic_ada_decl): Likewise.
3720 (has_static_fields): Change return type to bool and add guard.
3721 (has_nontrivial_methods): New predicate.
3722 (is_tagged_type): Change return type to bool.
3723 (separate_class_package): Call has_nontrivial_methods.
3724 (pp_ada_tree_identifier): Minor tweaks.
3725 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3726 (dump_ada_array_domains): Likewise.
3727 (dump_ada_array_type): Likewise.
3728 (dump_template_types): Remove cpp_check parameter and do not pass it to
3729 dump_generic_ada_node.
3730 (dump_ada_template): Likewise.
3731 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3732 recursively.
3733 (print_ada_methods): Change return type to integer. Remove cpp_check
3734 parameter and do not pass it down.
3735 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3736 dump_generic_ada_node.
3737 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3738 accessing methods.
3739 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3740 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3741 value of print_ada_methods.
3742 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3743 Set cpp_check to it before invoking dump_ada_nodes.
3744 (dump_ada_specs): Likewise.
3745
3746 2013-11-03 Marek Polacek <polacek@redhat.com>
3747
3748 * c-ubsan.c: Don't include hash-table.h.
3749 (ubsan_instrument_vla): New function.
3750 * c-ubsan.h: Declare it.
3751
3752 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3753
3754 Automated part of renaming of symtab_node_base to symtab_node.
3755
3756 Patch autogenerated by rename_symtab.py from
3757 https://github.com/davidmalcolm/gcc-refactoring-scripts
3758 revision 58bb219cc090b2f4516a9297d868c245495ee622
3759
3760 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3761 symtab_node_base to symtab_node.
3762
3763 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3764
3765 Implement C++14 digit separators.
3766 * c-lex.c (interpret_float): Remove digit separators from scratch string
3767 before building real literal.
3768
3769 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3770
3771 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3772
3773 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3774
3775 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3776 fields.
3777 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3778 enabled.
3779 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3780 (insert_cilk_frame): New prototype.
3781 (cilk_init_builtins): Likewise.
3782 (gimplify_cilk_spawn): Likewise.
3783 (c_cilk_install_body_w_frame_cleanup): Likewise.
3784 (cilk_detect_spawn_and_unwrap): Likewise.
3785 (cilk_set_spawn_marker): Likewise.
3786 (build_cilk_sync): Likewise.
3787 (build_cilk_spawn): Likewise.
3788 * cilk.c: New file.
3789
3790 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3791
3792 Patch autogenerated by refactor_symtab.py from
3793 https://github.com/davidmalcolm/gcc-refactoring-scripts
3794 revision 58bb219cc090b2f4516a9297d868c245495ee622
3795
3796 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3797 to a true class hierarchy.
3798 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3799
3800 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3801
3802 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3803
3804 2013-10-26 Jeff Law <law@redhat.com>
3805
3806 * c-common.c (c_define_builtins): Remove mudflap support.
3807 * c.opt: Ignore and warn for mudflap options.
3808
3809 2013-10-24 Tobias Burnus <burnus@net-b.de>
3810
3811 PR other/33426
3812 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3813 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3814
3815 2013-10-23 Jason Merrill <jason@redhat.com>
3816
3817 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3818
3819 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3820
3821 * c-common.h (omp_clause_mask::operator !=): New method.
3822 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3823 instead of if (mask & something) tests everywhere.
3824
3825 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3826 201307 instead of 201107.
3827 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3828 (c_common_attribute_table): Add "omp declare target" and
3829 "omp declare simd" attributes.
3830 (handle_omp_declare_target_attribute,
3831 handle_omp_declare_simd_attribute): New functions.
3832 * c-omp.c: Include c-pragma.h.
3833 (c_finish_omp_taskgroup): New function.
3834 (c_finish_omp_atomic): Add swapped argument, if true,
3835 build the operation first with rhs, lhs arguments and use NOP_EXPR
3836 build_modify_expr.
3837 (c_finish_omp_for): Add code argument, pass it down to make_code.
3838 (c_omp_split_clauses): New function.
3839 (c_split_parallel_clauses): Removed.
3840 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3841 c_omp_declare_simd_clauses_to_decls): New functions.
3842 * c-common.h (omp_clause_mask): New type.
3843 (OMP_CLAUSE_MASK_1): Define.
3844 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3845 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3846 omp_clause_mask::operator |, omp_clause_mask::operator &,
3847 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3848 omp_clause_mask::operator ==): New methods.
3849 (enum c_omp_clause_split): New.
3850 (c_finish_omp_taskgroup): New prototype.
3851 (c_finish_omp_atomic): Add swapped argument.
3852 (c_finish_omp_for): Add code argument.
3853 (c_omp_split_clauses): New prototype.
3854 (c_split_parallel_clauses): Removed.
3855 (c_omp_declare_simd_clauses_to_numbers,
3856 c_omp_declare_simd_clauses_to_decls): New prototypes.
3857 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3858 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3859 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3860 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3861 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3862 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3863 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3864 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3865 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3866 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3867 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3868 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3869 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3870 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3871 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3872 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3873 PRAGMA_OMP_CLAUSE_UNIFORM.
3874
3875 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
3876
3877 PR tree-optimization/20318
3878 * c-common.c (handle_returns_nonnull_attribute): New function.
3879 (c_common_attribute_table): Add returns_nonnull.
3880
3881 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
3882
3883 PR c++/19476
3884 * c.opt (fcheck-new): Move to common.opt.
3885
3886 2013-09-25 Marek Polacek <polacek@redhat.com>
3887 Jakub Jelinek <jakub@redhat.com>
3888
3889 PR sanitizer/58413
3890 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3891 an expression if we can prove it is correct.
3892 (ubsan_instrument_division): Likewise. Remove unnecessary
3893 check.
3894
3895 2013-09-18 Marek Polacek <polacek@redhat.com>
3896
3897 PR sanitizer/58411
3898 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3899 Declare it.
3900 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3901
3902 2013-09-14 Iain Sandoe <iain@codesourcery.com>
3903
3904 PR target/48094
3905 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3906 fobjc-gc, freplace-objc-classes): Accept for LTO.
3907
3908 2013-09-13 Jacek Caban <jacek@codeweavers.com>
3909
3910 * c-target.def: New hook
3911
3912 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3913
3914 PR c++/43452
3915 * c.opt (Wdelete-incomplete): Add.
3916
3917 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3918
3919 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3920 (vector_types_compatible_elements_p): New function.
3921 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3922 declaration.
3923 (vector_types_compatible_elements_p): Declare.
3924
3925 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3926
3927 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3928 a virtual member function.
3929 (pp_simple_type_specifier): Remove.
3930 (pp_c_type_specifier): Likewise.
3931 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3932 Rename from pp_c_type_specifier. Adjust.
3933 (c_pretty_printer::c_pretty_printer): Do not assign to
3934 simple_type_specifier.
3935
3936 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3937
3938 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3939 member function.
3940 (c_pretty_printer::storage_class_specifier): Likewise.
3941 (c_pretty_printer::initializer): Likewise.
3942 (pp_declaration): Remove.
3943 (pp_declaration_specifiers): Likewise.
3944 (pp_abstract_declarator): Likewise.
3945 (pp_declarator): Likewise.
3946 (pp_type_id): Likewise.
3947 (pp_statement): Likewise.
3948 (pp_constant): Likewise.
3949 (pp_id_expression): Likewise.
3950 (pp_primary_expression): Likewise.
3951 (pp_unary_expression): Likewise.
3952 (pp_multiplicative_expression): Likewise.
3953 (pp_conditional_expression): Likewise.
3954 (pp_assignment_expression): Likewise.
3955 (pp_expression): Likewise.
3956 (pp_c_type_id): Likewise.
3957 (pp_c_storage_class_specifier): Likewise.
3958 * c-pretty-print.c (pp_c_type_cast): Tidy.
3959 (pp_c_pointer): Likewise.
3960 (pp_c_type_specifier): Likewise.
3961 (pp_c_parameter_type_list): Likewise.
3962 (pp_c_function_definition): Likewise.
3963 (pp_c_init_declarator): Likewise.
3964 (pp_c_initializer_list): Likewise.
3965 (pp_c_constructor_elts): Likewise.
3966 (c_pretty_printer::direct_abstract_declarator): Likewise.
3967 (c_pretty_printer::declaration_specifiers): Likewise.
3968 (c_pretty_printer::primary_expression): Likewise.
3969 (c_pretty_printer::postfix_expression): Likewise.
3970 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3971 (c_pretty_printer::storage_class_specifier): Rename from
3972 pp_c_storage_class_specifier.
3973 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3974 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3975 storage_class_specifier, initializer, offset_list, flags.
3976
3977 2013-08-30 Marek Polacek <polacek@redhat.com>
3978
3979 * c-ubsan.c: New file.
3980 * c-ubsan.h: New file.
3981
3982 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3983
3984 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3985 member function.
3986 (c_pretty_printer::declaration_specifiers): Likewise.
3987 (c_pretty_printer::declarator): Likewise.
3988 (c_pretty_printer::abstract_declarator): Likewise.
3989 (c_pretty_printer::direct_abstract_declarator): Likewise.
3990 (c_pretty_printer::direct_declarator): Likewise.
3991 (c_pretty_printer::function_specifier): Likewise.
3992 (pp_declaration): Adjust.
3993 (pp_declaration_specifiers): Likewise.
3994 (pp_abstract_declarator): Likewise.
3995 (pp_direct_declarator): Likewise.
3996 (pp_function_specifier): Likewise.
3997 (pp_direct_abstract_declarator): Remove as unused.
3998 (pp_c_declaration): Remove.
3999 (pp_c_declaration_specifiers): Likewise.
4000 (pp_c_declarator): Likewise.
4001 (pp_c_direct_declarator): Likewise.
4002 (pp_c_function_specifier): Likewise.
4003 (pp_c_direct_abstract_declarator): Likewise.
4004 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4005 from pp_c_abstract_declarator. Adjust.
4006 (c_pretty_printer::direct_abstract_declarator): Rename from
4007 pp_c_direct_abstract_declarator. Adjust.
4008 (c_pretty_printer::function_specifier): Rename from
4009 pp_c_function_specifier. Adjust.
4010 (c_pretty_printer::declaration_specifiers): Rename from
4011 pp_c_declaration_specifiers. Adjust.
4012 (c_pretty_printer::direct_declarator): Rename from
4013 pp_c_direct_declarator. Adjust.
4014 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4015 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4016 (c_pretty_printer::c_pretty_printer): Do not assign to
4017 declaration, declaration_specifiers, declarator,
4018 direct_declarator, direct_abstract_declarator, function_specifier.
4019
4020 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4021
4022 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4023 virtual member function.
4024 (c_pretty_printer::multiplicative_expression): Likewise.
4025 (c_pretty_printer::conditional_expression): Likewise.
4026 (c_pretty_printer::assignment_expression): Likewise.
4027 (c_pretty_printer::expression): Likewise.
4028 (pp_unary_expression): Adjust.
4029 (pp_multiplicative_expression): Likewise.
4030 (pp_assignment_expression): Likewise.
4031 (pp_conditional_expression): Likewise.
4032 (pp_expression): Likewise.
4033 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4034 from pp_c_unary_expression. Adjust.
4035 (c_pretty_printer::multiplicative_expression): Rename from
4036 pp_c_multiplicative_expression. Adjust.
4037 (c_pretty_printer::conditional_expression): Rename from
4038 pp_c_conditional_expression. Adjust.
4039 (c_pretty_printer::assignment_expression): Rename from
4040 pp_c_assignment_expression. Adjust.
4041 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4042 (c_pretty_printer::c_pretty_printer): Do not assign to
4043 unary_expression, multiplicative_expression,
4044 conditional_expression, expression.
4045
4046 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4047
4048 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4049 virtual member function.
4050 (pp_postfix_expression): Adjust.
4051 (pp_c_postfix_expression): Remove.
4052 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4053 from pp_c_postfix_expression. Adjust.
4054 (c_pretty_printer::c_pretty_printer): Do not assign to
4055 postfix_expression.
4056
4057 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4058
4059 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4060 virtua member function.
4061 (pp_primary_expression): Adjust.
4062 (pp_c_primary_expression): Remove.
4063 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4064 from pp_c_primary_expression. Adjust.
4065 (pp_c_initializer_list): Use pp_primary_expression.
4066 (c_pretty_printer::c_pretty_printer): Do not assign to
4067 primary_expression.
4068
4069 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4070
4071 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4072 * c-pretty-print.c (M_): Remove.
4073 (c_pretty_printer::translate_string): Define.
4074 (pp_c_type_specifier): Use it.
4075 (pp_c_primary_expression): Likewise.
4076 (pp_c_expression): Likewise.
4077
4078 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4079
4080 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4081 virtual function.
4082 (pp_c_id_expression): Remove.
4083 (pp_id_expression): Adjust.
4084 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4085 pp_c_id_expression. Adjust.
4086 (pp_c_postfix_expression): Use pp_id_expression.
4087 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4088
4089 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4090
4091 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4092 member function.
4093 (pp_constant): Adjust.
4094 (pp_c_constant): Remove.
4095 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4096 pp_c_constant. Adjust.
4097 (pp_c_constant)
4098 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4099 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4100
4101 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4102
4103 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4104 (c_pretty_printer::c_pretty_printer): Declare.
4105 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4106 c_pretty_printer_init. Adjust.
4107 (print_c_tree): Do not call c_pretty_printer_init.
4108 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4109
4110 2013-08-09 Arnaud Charlet <charlet@adacore.com>
4111
4112 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4113
4114 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4115
4116 PR c++/58080
4117 * c-common.c (pointer_int_sum): Add bool parameter.
4118 * c-common.h (pointer_int_sum): Adjust declaration.
4119
4120 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4121
4122 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4123 c_pretty_printer variable.
4124
4125 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4126
4127 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4128 (pp_base): Remove.
4129 (pp_c_base): Likewise. Adjust users.
4130 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4131 (pp_c_whitespace): Do not call pp_base.
4132 (pp_c_left_paren): Likewise.
4133 (pp_c_right_paren): Likewise.
4134 (pp_c_left_brace): Likewise.
4135 (pp_c_right_brace): Likewise.
4136 (pp_c_left_bracket): Likewise.
4137 (pp_c_right_bracket): Likewise.
4138 (pp_c_dot): Likewise.
4139 (pp_c_ampersand): Likewise.
4140 (pp_c_star): Likewise.
4141 (pp_c_arrow): Likewise.
4142 (pp_c_semicolon): Likewise.
4143 (pp_c_complement): Likewise.
4144 (pp_c_exclamation): Likewise.
4145 (pp_c_direct_declarator): Likewise.
4146 (pp_c_ws_string): Likewise.
4147 (pp_c_identifier): Likewise.
4148 (pp_c_statement): Likewise.
4149 (print_c_tree): Likewise.
4150
4151 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4152
4153 PR c++/58072
4154 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4155 provide useful error strings.
4156
4157 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4158
4159 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4160 printer functions instead of pp_string or operators and punctuators.
4161 (dump_generic_ada_node): Likewise.
4162 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4163 (pp_c_relational_expression): Likewise.
4164 (pp_c_logical_or_expression): Likewise.
4165
4166 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4167
4168 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4169 functions instead of pp_character.
4170 (pp_ada_tree_identifier): Likewise.
4171 (dump_ada_double_name): Likewise.
4172 (dump_ada_function_declaration): Likewise.
4173 (dump_ada_array_domains): Likewise.
4174 (dump_template_types): Likewise.
4175 (dump_generic_ada_node): Likewise.
4176 (print_ada_declaration): Likewise.
4177 (print_ada_struct_decl): Likewise.
4178 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4179
4180 2013-07-23 Tom Tromey <tromey@redhat.com>
4181
4182 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4183 * c-common.c (c_common_reswords): Add _Generic.
4184
4185 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4186
4187 * c-common.c: Fix typos.
4188 * c-common.h: Likewise.
4189
4190 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
4191
4192 PR c++/55203
4193 * c-common.c (c_common_attribute_table): Add warn_unused.
4194 (handle_warn_unused_attribute): New.
4195
4196 2013-07-10 Jakub Jelinek <jakub@redhat.com>
4197
4198 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4199 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4200
4201 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4202
4203 PR c++/57869
4204 * c.opt: Add Wconditionally-supported.
4205
4206 2013-07-08 Graham Stott <graham.stott@btinternet.com>
4207
4208 * array-notation-common.c (length_mismatch_in_expr_p): Delete
4209 unused variables l_length and l_node.
4210
4211 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
4212
4213 PR c/57821
4214 * c-common.c (complete_array_type): Delay folding first index
4215 like other indices. When folding, check for index overflow.
4216
4217 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
4218
4219 PR c++/57509
4220 * c-common.h (c_build_vec_perm_expr): New complain argument.
4221 * c-common.c (c_build_vec_perm_expr): Likewise.
4222 Use save_expr also in C++.
4223
4224 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4225
4226 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4227 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4228 * c-opts.c (c_common_post_options): Likewise.
4229
4230 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4231
4232 * array-notation-common.c (length_mismatch_in_expr): Changed the
4233 parameter type's from a dynamic array to a vec_tree. Also removed
4234 the size parameters.
4235 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4236 the change above.
4237
4238 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4239
4240 * c-common.h (struct cilkplus_an_parts): New structure.
4241 (struct cilkplus_an_loop_parts): Likewise.
4242 (cilkplus_extract_an_triplets): New prototype.
4243 (fix_sec_implicit_args): Likewise.
4244 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4245 (fix_sec_implicit_args): Likewise.
4246
4247 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4248
4249 * array-notation-common.c (find_inv_trees): Removed an unwanted
4250 typecasting.
4251 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4252 enum rid to enum tree_code.
4253
4254 2013-06-11 Jan Hubicka <jh@suse.cz>
4255
4256 * c-common.c (handle_alias_ifunc_attribute): Do not set
4257 DECL_EXTERNAL for weakref variables.
4258 * c-pragma.c (handle_pragma_weak): Make sure aliases
4259 are not declared as external.
4260
4261 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4262
4263 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4264 function from c/c-array-notation.c.
4265 (is_cilkplus_reduce_builtin): Likewise.
4266 (find_rank): Likewise.
4267 (extract_array_notation_exprs): Likewise.
4268 (replace_array_notations): Likewise.
4269 (find_inv_trees): Likewise.
4270 (replace_inv_trees): Likewise.
4271 (contains_array_notation_expr): Likewise.
4272 (find_correct_array_notation_type): Likewise.
4273 * c-common.h (struct inv_list): Moved this struct from the file
4274 c/c-array-notation.c and added a new field called additional tcodes.
4275 (length_mismatch_in_expr_p): New prototype.
4276 (is_cilkplus_reduce_builtin): Likewise.
4277 (find_rank): Likewise.
4278 (extract_array_notation_exprs): Likewise.
4279 (replace_array_notation): Likewise.
4280 (find_inv_trees): Likewise.
4281 (replace_inv_trees): Likewise.
4282 (find_correct_array_notation_type): Likewise.
4283
4284 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4285
4286 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4287 function array_notation_init_builtins is called.
4288 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4289 * c-common.def (ARRAY_NOTATION_REF): New tree.
4290 * c-common.h (build_array_notation_expr): New function declaration.
4291 (build_array_notation_ref): Likewise.
4292 (extract_sec_implicit_index_arg): New extern declaration.
4293 (is_sec_implicit_index_fn): Likewise.
4294 (ARRAY_NOTATION_CHECK): New define.
4295 (ARRAY_NOTATION_ARRAY): Likewise.
4296 (ARRAY_NOTATION_START): Likewise.
4297 (ARRAY_NOTATION_LENGTH): Likewise.
4298 (ARRAY_NOTATION_STRIDE): Likewise.
4299 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4300 ARRAY_NOTATION_REF.
4301 (pp_c_expression): Likewise.
4302 * c.opt (flag_enable_cilkplus): New flag.
4303 * array-notation-common.c: New file.
4304
4305 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4306
4307 PR c++/57274
4308 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4309
4310 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4311
4312 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4313 vectors.
4314
4315 2013-05-07 Han Shen <shenhan@google.com>
4316
4317 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4318
4319 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4320
4321 * c-common.c (check_user_alignment): Emit error for negative values.
4322
4323 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4324
4325 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4326
4327 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4328
4329 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4330 __GXX_EXPERIMENTAL_CXX1Y__.
4331
4332 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4333 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4334
4335 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4336 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4337 to simply use OPT_Wpointer_arith.
4338 (c_sizeof_or_alignof_type): Likewise.
4339
4340 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4341
4342 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4343
4344 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4345
4346 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4347 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4348 specifiers.
4349
4350 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4351
4352 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4353
4354 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4355
4356 * c-common.c (pointer_int_sum): Remove dead code.
4357
4358 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4359
4360 PR middle-end/56524
4361 * c-common.c (handle_optimize_attribute): Don't call
4362 save_optabs_if_changed.
4363
4364 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4365
4366 PR middle-end/56461
4367 * c-pch.c (pch_init): Free target_validity at the end.
4368
4369 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4370
4371 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4372
4373 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4374 Jakub Jelinek <jakub@redhat.com>
4375
4376 PR sanitizer/56454
4377 * c-common.c (handle_no_sanitize_address_attribute): New function.
4378 (c_common_attribute_table): Add no_sanitize_address attribute.
4379 (handle_no_address_safety_analysis_attribute): Add
4380 no_sanitize_address attribute, not no_address_safety_analysis
4381 attribute.
4382
4383 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4384
4385 PR target/52555
4386 * c-common.c (handle_optimize_attribute): Call
4387 save_optabs_if_changed.
4388
4389 2013-02-18 Jakub Jelinek <jakub@redhat.com>
4390 Steven Bosscher <steven@gcc.gnu.org>
4391
4392 PR pch/54117
4393 * c-opts.c (c_common_post_options): If debug info is enabled
4394 and non-dwarf*, refuse to load PCH files and when writing PCH
4395 file warn.
4396
4397 2013-02-05 Jakub Jelinek <jakub@redhat.com>
4398
4399 PR middle-end/56167
4400 * c-common.c (handle_error_attribute): Fix condition.
4401
4402 2013-01-30 Jakub Jelinek <jakub@redhat.com>
4403
4404 PR c++/55742
4405 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4406
4407 2013-01-18 Jason Merrill <jason@redhat.com>
4408
4409 PR target/54908
4410 * c.opt (-fextern-tls-init): New.
4411 * c-opts.c (c_common_post_options): Handle it.
4412
4413 2013-01-09 Jakub Jelinek <jakub@redhat.com>
4414
4415 PR c/48418
4416 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4417 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4418 and is either negative or bigger or equal to type precision
4419 of the first operand.
4420
4421 2012-12-03 Marek Polacek <polacek@redhat.com>
4422
4423 PR c/55570
4424 * c-common.c (check_user_alignment): Swap order of tests,
4425 check TREE_CODE first.
4426
4427 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4428
4429 PR c++/52654
4430 * c-common.h (overflow_type): New enum.
4431 (build_userdef_literal): Add overflow_type argument.
4432 (tree_userdef_literal): Add overflow_type.
4433 (USERDEF_LITERAL_OVERFLOW): New access macro.
4434 * c-common.c (build_userdef_literal): Add overflow_type
4435 argument.
4436 * c-lex.c (c_lex_with_flags): Add overflow_type to
4437 build_userdef_literal calls.
4438 (interpret_integer, interpret_float): Add overflow_type argument.
4439
4440 2012-11-28 Richard Biener <rguenther@suse.de>
4441
4442 PR c/35634
4443 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4444 here and use a type with proper overflow behavior for types that would
4445 need to be promoted for the arithmetic.
4446
4447 2012-11-23 Jakub Jelinek <jakub@redhat.com>
4448
4449 PR sanitizer/55435
4450 * c-common.c (handle_no_address_safety_analysis_attribute): New
4451 function.
4452 (c_common_attribute_table): Add no_address_safety_analysis.
4453
4454 2012-11-16 Simon Baldwin <simonb@google.com>
4455
4456 * c.opt: Add f[no-]canonical-system-headers.
4457 * c-opts.c (c_common_handle_option): Handle
4458 OPT_fcanonical_system_headers.
4459
4460 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4461
4462 PR c++/54413
4463 * c-opts.c (c_common_handle_option): Set new flags.
4464 * c.opt: Describe new flags.
4465
4466 2012-11-09 Jason Merrill <jason@redhat.com>
4467
4468 * c.opt (Wabi-tag): New.
4469
4470 2012-11-09 Andi Kleen <ak@linux.intel.com>
4471
4472 PR 55139
4473 * c-common.c (get_atomic_generic_size): Mask with
4474 MEMMODEL_MASK
4475
4476 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4477
4478 PR c/53063
4479 * c.opt (Wformat): Make it Alias Wformat=1.
4480 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4481 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4482 LangEnabledBy.
4483 (Wformat=): RejectNegative. Use LangEnabledBy.
4484 (Wnonnull): Use LangEnabledBy.
4485 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4486 * c-format.c (set_Wformat): Delete.
4487 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4488 (maybe_read_dollar_number): Likewise.
4489 (avoid_dollar_number): Likewise.
4490 (finish_dollar_format_checking): Likewise.
4491 (check_format_info): Likewise.
4492 (check_format_info_main): Likewise.
4493 (check_format_types): Likewise.
4494 (format_type_warning): Likewise.
4495 * c-common.c (int): Likewise.
4496 (check_function_sentinel): Likewise.
4497 * c-common.h (warn_format,set_Wformat): Do not declare here.
4498
4499 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4500
4501 PR c/53063
4502 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4503 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4504 Use LangEnabledBy.
4505 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4506 common.opt.
4507 (Wvariadic-macros): Init(1).
4508 * c-opts.c (c_common_handle_option): Do not handle them
4509 explicitly.
4510 (c_common_post_options): Likewise.
4511 (sanitize_cpp_opts): warn_unused_macros is now
4512 cpp_warn_unused_macros.
4513 (push_command_line_include): Likewise.
4514 * c-common.c (warn_unknown_pragmas): Do not define.
4515 * c-common.h (warn_unknown_pragmas): Do not declare.
4516
4517 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4518
4519 PR c/51294
4520 * c-common.c (conversion_warning): Handle conditional expressions.
4521
4522 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4523
4524 PR c++/54930
4525 * c.opt (Wreturn_local_addr): Define new option.
4526
4527 2012-10-25 Jason Merrill <jason@redhat.com>
4528
4529 * c.opt (Wvirtual-move-assign): New.
4530
4531 * c.opt (Winherited-variadic-ctor): New.
4532
4533 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
4534
4535 PR c++/54427
4536 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4537
4538 2012-10-23 Joseph Myers <joseph@codesourcery.com>
4539
4540 * c-common.h (pch_cpp_save_state): Declare.
4541 * c-target.def (c_preinclude): New hook.
4542 * c-opts.c (done_preinclude): New.
4543 (push_command_line_include): Handle default preincluded header.
4544 (cb_file_change): Call pch_cpp_save_state when calling
4545 push_command_line_include.
4546 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4547 (pch_cpp_save_state): New.
4548 (pch_init): Call pch_cpp_save_state conditionally, instead of
4549 calling cpp_save_state.
4550
4551 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4552
4553 PR c/53063
4554 PR c/40989
4555 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4556 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4557 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4558 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4559 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4560 * c-opts.c (c_common_handle_option): Remove explicit handling from
4561 here.
4562 (c_common_post_options): Likewise.
4563
4564 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4565
4566 * c-ada-spec.c (LOCATION_COL): Delete.
4567 (compare_location): New function.
4568 (compare_node): Use it.
4569 (compare_comment): Likewise.
4570
4571 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4572
4573 PR c/53063
4574 PR c/40989
4575 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4576 * c-opts.c (c_common_handle_option): Do not set them here. Add
4577 comment.
4578 (c_common_post_options): Likewise.
4579
4580 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4581
4582 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4583 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4584 Remove POINTER_TYPE handling, add large unsigned handling and use
4585 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4586
4587 2012-10-12 Jakub Jelinek <jakub@redhat.com>
4588
4589 PR c/54381
4590 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4591 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4592 locs and array of 3 trees instead of just single loc and single
4593 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4594 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4595 For *cmp* builtins that take two sources strings report warnings
4596 about first and second source, not about destination and source.
4597
4598 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
4599
4600 PR c++/53055
4601 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4602
4603 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4604
4605 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4606 declaring something coming from another file.
4607
4608 2012-10-10 Arnaud Charlet <charlet@adacore.com>
4609
4610 PR ada/54845
4611 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4612
4613 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4614
4615 PR c++/54194
4616 * c-common.c (warn_about_parentheses): Add location_t parameter;
4617 use EXPR_LOC_OR_LOC.
4618 * c-common.h: Update declaration.
4619
4620 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4621
4622 PR c++/54427
4623 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4624 more operations. Make error messages optional.
4625 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4626 (scalar_to_vector): Declare.
4627
4628 2012-10-08 Jason Merrill <jason@redhat.com>
4629
4630 * c-common.c (c_common_reswords): Add thread_local.
4631
4632 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4633
4634 PR c++/53528 C++11 attribute support
4635 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4636 new functions.
4637 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4638 static function.
4639 (handle_aligned_attribute): In choose strictest alignment
4640 among many. Use new check_cxx_fundamental_alignment_constraints.
4641 (handle_transparent_union_attribute): In c++11 attribute syntax,
4642 don't look through typedefs.
4643
4644 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4645
4646 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4647 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4648 out of dumpfile.h.
4649
4650 2012-09-25 Dehao Chen <dehao@google.com>
4651
4652 PR middle-end/54645
4653 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
4654 map when read in the pch.
4655
4656 2012-09-18 Arnaud Charlet <charlet@adacore.com>
4657
4658 * c-ada-spec.c: Style fixes.
4659
4660 2012-09-18 Thomas Quinot <quinot@adacore.com>
4661
4662 * c.opt (-fada-spec-parent): Define new command line switch.
4663 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4664 is specified, generate binding spec as a child of the specified unit.
4665
4666 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4667 Manuel López-Ibáñez <manu@gcc.gnu.org>
4668
4669 PR c++/53210
4670 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4671
4672 2012-08-23 Arnaud Charlet <charlet@adacore.com>
4673
4674 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4675 for pointers, and add missing Convention C pragma.
4676 (print_ada_struct_decl): Add missing aliased keyword.
4677 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4678
4679 2012-08-17 Jakub Jelinek <jakub@redhat.com>
4680
4681 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4682 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4683 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4684 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4685 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4686
4687 2012-08-10 Richard Guenther <rguenther@suse.de>
4688
4689 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4690
4691 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4692
4693 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4694 instead of separate pp_newline and pp_flush.
4695 (print_c_tree): Likewise.
4696
4697 2012-07-26 Richard Henderson <rth@redhat.com>
4698
4699 * c-common.c (handle_hot_attribute): Allow labels.
4700 (handle_cold_attribute): Likewise.
4701
4702 2012-07-20 Jakub Jelinek <jakub@redhat.com>
4703
4704 PR c++/28656
4705 * c-common.c (check_function_nonnull): Handle multiple nonnull
4706 attributes properly.
4707
4708 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4709
4710 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4711 * c-ada-spec.c: Likewise.
4712 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4713
4714 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4715
4716 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4717 Remove code conditional on it.
4718
4719 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4720
4721 * c-gimplify.c: Do not include basic-block.h.
4722 * c-common.c: Do not include linfuncs.h.
4723
4724 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4725
4726 * c-common.h: Include tree.h.
4727
4728 2012-07-02 Jason Merrill <jason@redhat.com>
4729
4730 PR c++/53524
4731 * c-common.c (get_priority): Call default_conversion.
4732
4733 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
4734
4735 * c-pch.c (c_common_write_pch): Remove unused variables.
4736
4737 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4738
4739 * cppspec.c: Moved from gcc/ to here.
4740
4741 2012-06-27 Kai Tietz <ktietz@redhat.com>
4742
4743 PR preprocessor/37215
4744 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4745
4746 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4747
4748 * c-common.h (c_common_print_pch_checksum): Remove.
4749 * c-pch.c: Do not include output.h.
4750 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4751 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4752 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4753 (struct c_pch_header): Remove.
4754 (get_ident): Update gpch version.
4755 (pch_init): Do not print executable_checksum to asm_out_file.
4756 Do not fail if there is no asm_out_file to read back from. Set
4757 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4758 (c_common_write_pch): Verify that nothing was written to asm_out_file
4759 since pch_init was called. Do not write a c_pch_header, and do not
4760 copy from asm_out_file to the PCH.
4761 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4762 the content of asm_out_file from the PCH.
4763 (c_common_print_pch_checksum): Remove.
4764 * c-opts.c (c_common_init): Print out executable_checksum directly.
4765
4766 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4767
4768 * c-target.def (objc_declare_unresolved_class_reference,
4769 objc_declare_class_definition): Add new hooks.
4770
4771 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4772
4773 * c-lex.c: Do not include output.h.
4774 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4775 Remove uses of ASM_OUTPUT_IDENT.
4776
4777 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
4778
4779 PR c++/51033
4780 * c-common.h (c_build_vec_perm_expr): Move decl here.
4781 * c-common.c (c_build_vec_perm_expr): Move definition
4782 here.
4783
4784 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4785
4786 * c.opt (fconserve-space): Turn into a no-op.
4787
4788 2012-06-04 Sterling Augustine <saugustine@google.com>
4789
4790 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4791 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4792 both the start and end of the function.
4793
4794 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4795
4796 * c-common.c: Do not include output.h.
4797 * c-pragma.c: Likewise.
4798
4799 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4800
4801 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4802 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4803 (lang_decl_name): Handle namespace decls.
4804
4805 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4806
4807 * c-ada-spec.c: Do not include output.h.
4808 * c-semantics.c: Likewise.
4809
4810 2012-05-29 Joseph Myers <joseph@codesourcery.com>
4811
4812 * c-common.c: Fix typo.
4813
4814 2012-05-29 Michael Matz <matz@suse.de>
4815
4816 * c-common.h (c_expand_decl): Remove prototype.
4817
4818 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4819
4820 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4821 * c-opts.c (c_common_handle_option): Remove code handling
4822 warn_missing_braces.
4823
4824 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4825
4826 PR c++/25137
4827 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4828 -Wmissing_braces.
4829
4830 2012-05-22 Dodji Seketeli <dodji@redhat.com>
4831
4832 PR c++/53322
4833 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4834
4835 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4836
4837 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4838 * c-opts.c (c_common_handle_option): Do not handle explicitly
4839 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4840
4841 2012-05-16 Dodji Seketeli <dodji@redhat.com>
4842
4843 PR preprocessor/7263
4844 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4845 to cpp_classify_number. For diagnostics, use the precise location
4846 instead of the global input_location.
4847
4848 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4849
4850 PR c++/11856
4851 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4852
4853 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4854
4855 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
4856
4857 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4858
4859 PR 53063
4860 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4861 Wreorder): Use LangEnabledBy.
4862 * c-opts.c (c_common_handle_option): Do not enable them
4863 explicitly. Call lang-specific generated functions.
4864 (c_common_post_options): Do not set them here.
4865
4866 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4867
4868 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4869 Wmissing-field-initializers,Wmissing-parameter-type,
4870 Wold-style-declaration,Woverride-init): Use EnabledBy.
4871 * c-opts.c (c_common_post_options): Do not set here explicitly.
4872
4873 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4874
4875 PR 53063
4876 * c-opts.c (c_common_handle_option): Use handle_generated_option
4877 to enable sub-options.
4878
4879 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4880
4881 PR c++/53158
4882 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4883
4884 2012-05-10 Richard Guenther <rguenther@suse.de>
4885
4886 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4887 adjust commentary about TYPE_IS_SIZETYPE types.
4888
4889 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4890
4891 PR c++/53261
4892 * c-common.c (warn_logical_operator): Check that argument of
4893 integer_zerop is not NULL.
4894
4895 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4896
4897 PR c/43772
4898 * c-common.c (warn_logical_operator): Do not warn if either side
4899 is already true or false.
4900
4901 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4902
4903 PR c/51712
4904 * c-common.c (expr_original_type): New.
4905 (shorten_compare): Do not warn for enumeration types.
4906
4907 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4908
4909 * c.opt (fpermissive): Add Var(flag_permissive).
4910
4911 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
4912
4913 PR c++/51033
4914 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4915 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4916
4917 2012-04-30 Dodji Seketeli <dodji@redhat.com>
4918
4919 Add -Wvarargs option
4920 * c.opt (Wvarargs): Define new option.
4921
4922 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4923
4924 * c-common.c (check_function_arguments): Replace
4925 Wmissing-format-attribute with Wsuggest-attribute=format.
4926
4927 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4928
4929 * c.opt (Wsuggest-attribute=format): New. Alias of
4930 Wmissing-format-attribute.
4931 * c-format.c (decode_format_type): Replace
4932 Wmissing-format-attribute with Wsuggest-attribute=format.
4933 (check_function_format): Likewise.
4934
4935 2012-04-27 Ollie Wild <aaw@google.com>
4936
4937 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4938 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4939 * c.opt: Add Wliteral-suffix.
4940
4941 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4942
4943 PR c/44774
4944 * c.opt (Wpedantic): New.
4945 (pedantic): Alias Wpedantic.
4946 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4947 (c_common_post_options): Likewise.
4948 (sanitize_cpp_opts): Likewise.
4949 * c-lex.c (interpret_float): Likewise.
4950 * c-format.c (check_format_types): Likewise.
4951 * c-common.c (pointer_int_sum): Likewise.
4952 (c_sizeof_or_alignof_type): Likewise.
4953 (c_add_case_label): Likewise.
4954 (c_do_switch_warnings): Likewise.
4955 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4956
4957 2012-04-15 Jason Merrill <jason@redhat.com>
4958
4959 PR c++/52818
4960 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4961 (C_STD_NAME): Distinguish between C++98 and C++11.
4962
4963 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4964
4965 PR target/52624
4966 * c-common.h (uint16_type_node): Rename into...
4967 (c_uint16_type_node): ...this.
4968 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4969 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4970
4971 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4972
4973 * c-common.c (warn_if_unused_value): Move definition to here.
4974 * c-common.h (warn_if_unused_value): Move declaration to here.
4975
4976 2012-03-23 William Bader <williambader@hotmail.com>
4977
4978 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4979
4980 2012-03-20 Jason Merrill <jason@redhat.com>
4981
4982 * c-common.h (enum cxx_dialect): Add cxx1y.
4983 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4984 test.
4985 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4986 * c-opts.c (c_common_post_options): Likewise.
4987 (set_std_cxx1y): New.
4988 (c_common_handle_option): Call it.
4989 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4990
4991 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4992
4993 PR c++/14710
4994 * c.opt ([Wuseless-cast]): Add.
4995
4996 2012-03-16 Richard Guenther <rguenther@suse.de>
4997
4998 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4999
5000 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5001
5002 PR c++/44783
5003 * c.opt (ftemplate-backtrace-limit) Add.
5004
5005 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5006
5007 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5008 handling.
5009 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5010 (init_pragma): Don't register extern_prefix.
5011
5012 2012-03-12 Richard Guenther <rguenther@suse.de>
5013
5014 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5015 (builtin_type_for_size): Likewise.
5016
5017 2012-02-13 Jakub Jelinek <jakub@redhat.com>
5018
5019 PR c++/52215
5020 * c-common.c (sync_resolve_params): Don't decide whether to convert
5021 or not based on TYPE_SIZE comparison, convert whenever arg_type
5022 is unsigned INTEGER_TYPE.
5023
5024 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5025
5026 PR c/52118
5027 * c.opt ([Wunused-local-typedefs]): Fix description.
5028
5029 2012-01-24 Mike Stump <mikestump@comcast.net>
5030
5031 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5032 exactly.
5033
5034 2012-01-18 Richard Guenther <rguenther@suse.de>
5035
5036 * c-opts.c (c_common_post_options): Reset LTO flags if
5037 we are about to generate a PCH.
5038
5039 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5040
5041 PR c++/51777
5042 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5043 use pp_unsigned_wide_integer.
5044
5045 2012-01-10 Richard Guenther <rguenther@suse.de>
5046
5047 PR middle-end/51806
5048 * c-opts.c (c_common_handle_option): Move -Werror handling
5049 to language independent code.
5050
5051 2012-01-05 Richard Guenther <rguenther@suse.de>
5052
5053 PR middle-end/51764
5054 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5055 from common.opt.
5056
5057 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5058
5059 PR c++/51316
5060 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5061 of array types with an unknown bound.
5062
5063 2011-12-20 Joseph Myers <joseph@codesourcery.com>
5064
5065 * c-common.c (flag_isoc99): Update comment to refer to C11.
5066 (flag_isoc1x): Change to flag_isoc11.
5067 * c-common.h (flag_isoc99): Update comment to refer to C11.
5068 (flag_isoc1x): Change to flag_isoc11.
5069 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5070 C11.
5071 * c-opts.c (set_std_c1x): Change to set_std_c11.
5072 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5073 Call set_std_c11.
5074 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5075 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5076 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5077 standard.
5078 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5079 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5080 (std=gnu1x): Make alias of std=gnu11.
5081
5082 2011-12-19 Jason Merrill <jason@redhat.com>
5083
5084 PR c++/51228
5085 * c-common.c (handle_transparent_union_attribute): Check the first
5086 field if the type is complete.
5087
5088 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5089
5090 PR libstdc++/51365
5091 * c-common.c (RID_IS_FINAL): Add.
5092 * c-common.h (RID_IS_FINAL): Add.
5093
5094 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5095
5096 * c.opt (fgnu-runtime): Provide full description.
5097 (fnext-runtime): Likewise.
5098 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5099
5100 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
5101
5102 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5103 predefines in one place. Add LOCK_FREE predefines.
5104 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5105 new func.
5106
5107 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
5108
5109 PR c/51256
5110 * c-common.c (get_atomic_generic_size): Check for various error
5111 conditions
5112 (resolve_overloaded_atomic_exchange,
5113 resolve_overloaded_atomic_compare_exchange,
5114 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5115 error_mark_node for error conditions.
5116
5117 2011-11-08 Richard Guenther <rguenther@suse.de>
5118
5119 PR middle-end/51010
5120 c-family/
5121
5122 2011-11-07 Richard Henderson <rth@redhat.com>
5123 Aldy Hernandez <aldyh@redhat.com>
5124 Torvald Riegel <triegel@redhat.com>
5125
5126 Merged from transactional-memory.
5127
5128 * c-common.c (handle_tm_wrap_attribute,
5129 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5130 (struct c_common_reswords): Added __transaction* keywords.
5131 (struct c_common_attribute_table): Added transaction* and tm_regparm
5132 attributes.
5133 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5134 masks.
5135 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5136 find_tm_attribute): Declare.
5137
5138 2011-11-07 Jason Merrill <jason@redhat.com>
5139
5140 PR c++/35688
5141 * c-common.c, c-common.h: Revert yesterday's changes.
5142
5143 2011-11-06 Jason Merrill <jason@redhat.com>
5144
5145 PR c++/35688
5146 * c-common.c (decl_has_visibility_attr): Split out from...
5147 (c_determine_visibility): ...here.
5148 * c-common.h: Declare it.
5149
5150 2011-11-06 Joseph Myers <joseph@codesourcery.com>
5151
5152 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5153 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5154 type.
5155 (check_user_alignment): New. Split out of
5156 handle_aligned_attribute. Disallow integer constants with
5157 noninteger types. Conditionally allow zero.
5158 (handle_aligned_attribute): Use check_user_alignment.
5159 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5160
5161 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
5162 Richard Henderson <rth@redhat.com>
5163
5164 Merged from cxx-mem-model.
5165
5166 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
5167 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
5168 parameters that are the same type size.
5169 (get_atomic_generic_size): New. Find size of generic
5170 atomic function parameters and do typechecking.
5171 (add_atomic_size_parameter): New. Insert size into parameter list.
5172 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5173 either __atomic_exchange_n or external library call.
5174 (resolve_overloaded_atomic_compare_exchange): Restructure
5175 __atomic_compare_exchange to either _n variant or external library call.
5176 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
5177 __atomic_load_n or an external library call.
5178 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5179 __atomic_store_n or an external library call.
5180 (resolve_overloaded_builtin): Handle new __atomic builtins.
5181
5182 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5183
5184 PR c++/50608
5185 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5186 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5187 <INDIRECT_REF>: Return the argument.
5188 <ARRAY_REF>: Remove special code for negative offset.
5189 Call fold_build_pointer_plus instead of size_binop.
5190 (fold_offsetof): Remove STOP_REF argument and adjust.
5191 * c-common.h (fold_offsetof_1): Declare.
5192 (fold_offsetof): Remove STOP_REF argument.
5193
5194 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5195
5196 PR c++/50810
5197 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5198 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5199 Wnarrowing for C++0x and C++98.
5200 * c.opt ([Wnarrowing]): Update.
5201
5202 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5203
5204 PR c++/44277
5205 * c.opt: Add Wzero-as-null-pointer-constant.
5206
5207 2011-10-31 Jason Merrill <jason@redhat.com>
5208
5209 * c.opt (-fdeduce-init-list): Off by default.
5210
5211 PR c++/50920
5212 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5213 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5214 and -Wc++11-compat.
5215 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5216
5217 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5218
5219 PR c++/30066
5220 * c.opt (fvisibility-inlines-hidden): Description change.
5221
5222 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5223
5224 Implement C++11 user-defined literals.
5225 * c-common.c (build_userdef_literal): New.
5226 * c-common.def: New tree code.
5227 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5228 * c-lex.c (interpret_float): Add suffix parm.
5229 (c_lex_with_flags): Build literal tokens.
5230
5231 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5232
5233 PR c++/50841
5234 Revert:
5235 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5236
5237 PR c++/50810
5238 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5239 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5240 Wnarrowing for C++0x and C++98.
5241 * c.opt ([Wnarrowing]): Update.
5242
5243 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5244
5245 PR c++/50810
5246 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5247 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5248 Wnarrowing for C++0x and C++98.
5249 * c.opt ([Wnarrowing]): Update.
5250
5251 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5252
5253 PR c++/45385
5254 * c-common.c (conversion_warning): Remove code looking for
5255 artificial operands.
5256
5257 2011-10-18 Dodji Seketeli <dodji@redhat.com>
5258
5259 PR bootstrap/50760
5260 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
5261 !NO_IMPLICIT_EXTERN_C.
5262
5263 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
5264
5265 * c-common.c (c_common_reswords): Add __bases,
5266 __direct_bases.
5267 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5268
5269 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5270
5271 PR c++/50757
5272 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5273
5274 2011-10-15 Tom Tromey <tromey@redhat.com>
5275 Dodji Seketeli <dodji@redhat.com>
5276
5277 * c.opt (fdebug-cpp): New option.
5278 * c-opts.c (c_common_handle_option): Handle the option.
5279 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5280 output stream in parameter. Factorized from ...
5281 (maybe_print_line): ... this. Dump location debug information when
5282 -fdebug-cpp is in effect.
5283 (print_line_1): New static function. Takes an output stream in
5284 parameter. Factorized from ...
5285 (print_line): ... here. Dump location information when -fdebug-cpp
5286 is in effect.
5287 (scan_translation_unit): Dump location information when
5288 -fdebug-cpp is in effect.
5289
5290 2011-10-15 Tom Tromey <tromey@redhat.com>
5291 Dodji Seketeli <dodji@redhat.com>
5292
5293 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5294 without argument.
5295 * c-opts.c (c_common_handle_option)<case
5296 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5297 cases. Handle -ftrack-macro-expansion with and without argument.
5298
5299 2011-10-15 Tom Tromey <tromey@redhat.com>
5300 Dodji Seketeli <dodji@redhat.com>
5301
5302 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5303 (print_line, cb_define, do_line_change): Adjust to avoid touching
5304 the internals of struct line_map. Use the public API instead.
5305 * c-pch.c (c_common_read_pch): Likewise.
5306 * c-lex.c (fe_file_change): Likewise.
5307
5308 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5309
5310 PR c++/17212
5311 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5312
5313 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5314
5315 PR c++/33067
5316 * c-pretty-print.c (pp_c_floating_constant): Output
5317 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5318
5319 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5320
5321 * c-common.c (def_builtin_1): Delete old interface with two
5322 parallel arrays to hold standard builtin declarations, and replace
5323 it with a function based interface that can support creating
5324 builtins on the fly in the future. Change all uses, and poison
5325 the old names. Make sure 0 is not a legitimate builtin index.
5326 * c-omp.c (c_finish_omp_barrier): Ditto.
5327 (c_finish_omp_taskwait): Ditto.
5328 (c_finish_omp_flush): Ditto.
5329
5330 2011-10-11 Tristan Gingold <gingold@adacore.com>
5331
5332 * c.opt: (fallow-parameterless-variadic-functions): New.
5333
5334 2011-09-08 Dodji Seketeli <dodji@redhat.com>
5335
5336 PR c++/33255 - Support -Wunused-local-typedefs warning
5337 * c-common.h (struct c_language_function::local_typedefs): New
5338 field.
5339 (record_locally_defined_typedef, maybe_record_typedef_use)
5340 (maybe_warn_unused_local_typedefs): Declare new functions.
5341 * c-common.c (record_locally_defined_typedef)
5342 (maybe_record_typedef_use)
5343 (maybe_warn_unused_local_typedefs): Define new functions.
5344 * c.opt: Declare new -Wunused-local-typedefs flag.
5345
5346 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5347
5348 PR middle-end/50266
5349 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5350 computations.
5351
5352 2011-09-05 Richard Guenther <rguenther@suse.de>
5353
5354 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5355 of integer_minus_one_node for empty array upper bounds.
5356
5357 2011-08-28 Dodji Seketeli <dodji@redhat.com>
5358
5359 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5360 it's the first time it's being called on this main TU.
5361
5362 2011-08-24 Richard Guenther <rguenther@suse.de>
5363
5364 PR c/49396
5365 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5366
5367 2011-08-22 Gabriel Charette <gchare@google.com>
5368
5369 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5370 defined in cpp_init_builtins and c_cpp_builtins.
5371
5372 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5373
5374 * c-common.c (c_common_reswords): Add __builtin_complex.
5375 * c-common.h (RID_BUILTIN_COMPLEX): New.
5376
5377 2011-08-18 Joseph Myers <joseph@codesourcery.com>
5378
5379 * c-common.c (c_common_reswords): Add _Noreturn.
5380 (keyword_is_function_specifier): Handle RID_NORETURN.
5381 * c-common.h (RID_NORETURN): New.
5382
5383 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5384
5385 * c-common.c (unsafe_conversion_p): New function. Check if it is
5386 unsafe to convert an expression to the type.
5387 (conversion_warning): Adjust, use unsafe_conversion_p.
5388 * c-common.h (unsafe_conversion_p): New function declaration.
5389
5390 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5391
5392 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5393 (c_finish_omp_taskyield): New prototype.
5394 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5395 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5396 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5397 or RHS1 have side-effects, evaluate those too in the right spot,
5398 if it is a decl and LHS is also a decl, error out if they
5399 aren't the same.
5400 (c_finish_omp_taskyield): New function.
5401 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5402 * c-pragma.c (omp_pragmas): Add taskyield.
5403 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5404 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5405 PRAGMA_OMP_CLAUSE_MERGEABLE.
5406
5407 2011-07-25 Dodji Seketeli <dodji@redhat.com>
5408
5409 * c-common.h (set_underlying_type): Remove parm name from
5410 declaration.
5411
5412 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
5413
5414 * c-pretty-print.h: Search c-common.h in c-family.
5415
5416 2011-07-22 Jason Merrill <jason@redhat.com>
5417
5418 PR c++/49793
5419 * c.opt (Wnarrowing): New.
5420
5421 PR c++/30112
5422 * c-common.h: Declare c_linkage_bindings.
5423 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5424
5425 PR c++/49813
5426 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5427 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5428 as flag_isoc99 for 'restrict'.
5429 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5430
5431 2011-07-21 Ian Lance Taylor <iant@google.com>
5432
5433 PR middle-end/49705
5434 * c-common.c (c_disable_warnings): New static function.
5435 (c_enable_warnings): New static function.
5436 (c_fully_fold_internal): Change local unused_p to bool. Call
5437 c_disable_warnings and c_enable_warnings rather than change
5438 c_inhibit_evaluation_warnings.
5439
5440 2011-07-20 Jason Merrill <jason@redhat.com>
5441
5442 PR c++/6709 (DR 743)
5443 PR c++/42603 (DR 950)
5444 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5445 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5446 (CPP_DECLTYPE): New.
5447 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5448
5449 2011-07-19 Richard Guenther <rguenther@suse.de>
5450
5451 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5452 * c-omp.c (c_finish_omp_for): Likewise.
5453
5454 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5455
5456 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5457 body on the next line.
5458
5459 2011-07-08 Jason Merrill <jason@redhat.com>
5460
5461 PR c++/45437
5462 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5463
5464 PR c++/49673
5465 * c-common.c (c_apply_type_quals_to_decl): Don't check
5466 TYPE_NEEDS_CONSTRUCTING.
5467
5468 2011-07-06 Richard Guenther <rguenther@suse.de>
5469
5470 * c-common.c (c_common_nodes_and_builtins):
5471 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5472
5473 2011-07-05 Richard Guenther <rguenther@suse.de>
5474
5475 * c-common.c (c_common_nodes_and_builtins): Build all common
5476 tree nodes first.
5477
5478 2011-06-27 Jakub Jelinek <jakub@redhat.com>
5479
5480 * c-common.h (c_tree_chain_next): New static inline function.
5481
5482 * c-common.c (check_builtin_function_arguments): Handle
5483 BUILT_IN_ASSUME_ALIGNED.
5484
5485 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
5486
5487 * c-common.c: Add sync_ or SYNC__ to builtin names.
5488 * c-omp.c: Add sync_ or SYNC__ to builtin names.
5489
5490 2011-06-20 Pierre Vittet <piervit@pvittet.com>
5491
5492 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5493 handler.
5494 (gen_pragma_handler): New union.
5495 (internal_pragma_handler): New type.
5496 (c_register_pragma_with_data)
5497 (c_register_pragma_with_expansion_and_data): New functions.
5498
5499 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5500 (c_register_pragma, c_register_pragma_with_expansion)
5501 (c_invoke_pragma_handler): Changed to work with
5502 internal_pragma_handler.
5503 (c_register_pragma_with_data)
5504 (c_register_pragma_with_expansion_and_data): New functions.
5505
5506 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5507
5508 * c-common.c: Include common/common-target.h.
5509 (handle_section_attribute): Use
5510 targetm_common.have_named_sections.
5511 * c-cppbuiltin.c: Include common/common-target.h.
5512 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5513
5514 2011-06-10 Richard Guenther <rguenther@suse.de>
5515
5516 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5517 to print a IDENTIFIER_NODE.
5518
5519 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5520 Joseph Myers <joseph@codesourcery.com>
5521
5522 * c.opt (fbuilding-libgcc): New option.
5523 * c-cppbuiltin.c (c_cpp_builtins): Define
5524 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5525
5526 2011-06-07 Jason Merrill <jason@redhat.com>
5527
5528 * c-common.c (max_tinst_depth): Lower default to 900.
5529
5530 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5531
5532 2011-06-07 Richard Guenther <rguenther@suse.de>
5533
5534 * c-common.c (c_common_nodes_and_builtins): Do not set
5535 size_type_node or call set_sizetype.
5536
5537 2011-06-07 Dodji Seketeli <dodji@redhat.com>
5538
5539 PR debug/49130
5540 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
5541 type when using pointer comparison to compare types.
5542
5543 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5544
5545 * c.opt: Add -Wdelete-non-virtual-dtor.
5546 * c-opts.c (c_common_handle_option): Include it in -Wall.
5547
5548 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5549
5550 PR bootstrap/49190
5551
5552 Revert:
5553 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5554
5555 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5556 not tree_common.
5557
5558 2011-05-27 Jakub Jelinek <jakub@redhat.com>
5559
5560 PR c++/49165
5561 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5562 C++ don't call c_common_truthvalue_conversion on void type arms.
5563
5564 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5565
5566 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5567 (stmt_list_stack): Define.
5568 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5569 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5570
5571 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5572
5573 * c-common.c (warning_candidate_p): Check for BLOCKs.
5574
5575 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5576
5577 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5578 not tree_common.
5579
5580 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5581
5582 * c-common.c (def_fn_type): Remove extra va_end.
5583
5584 2011-05-23 Jason Merrill <jason@redhat.com>
5585
5586 PR c++/48106
5587 * c-common.c (c_common_get_narrower): New.
5588 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5589
5590 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5591
5592 * c-common.h (check_function_arguments): Tweak prototype of
5593 check_function_arguments.
5594 * c-common.c (check_function_arguments): Likewise. Adjust
5595 calls to check_function_nonnull, check_function_format, and
5596 check_function_sentinel.
5597 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5598 separate attributes and typelist arguments. Use
5599 FOREACH_FUNCTION_ARGS to iterate over argument types.
5600
5601 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5602
5603 * c-common.c (c_common_reswords): Reorder.
5604 * c-common.h (rid): Likewise.
5605
5606 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5607
5608 * c-common.c (def_fn_type): Don't call build_function_type, call
5609 build_function_type_array or build_varargs_function_type_array
5610 instead.
5611 (c_common_nodes_and_builtins): Likewise.
5612
5613 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5614
5615 * c-common.c (c_add_case_label): Omit the loc argument to
5616 build_case_label.
5617 * c-common.h (build_case_label): Remove.
5618 * c-semantics.c (build_case_label): Remove.
5619
5620 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5621
5622 * c-objc.h (objc_start_method_definition): Update prototype.
5623 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5624
5625 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5626
5627 * c-common.c (check_main_parameter_types): Reindent. Don't use
5628 TYPE_ARG_TYPES directly.
5629 (handle_nonnull_attribute): Likewise.
5630 (sync_resolve_params): Likewise.
5631 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5632 to check_format_string.
5633 (handle_format_attribute): Likewise.
5634 (check_format_string): Take a function type to examine instead of
5635 a type list. Use a function_arg_iterator to step through argument
5636 types.
5637
5638 2011-05-04 Richard Guenther <rguenther@suse.de>
5639
5640 * c-common.c (fix_string_type): Use size_int for index type bounds.
5641 (start_fname_decls): Do not pass NULL to build_int_cst.
5642 (c_init_attributes): Likewise.
5643 * c-lex.c (c_lex_with_flags): Likewise.
5644
5645 2011-04-27 Jason Merrill <jason@redhat.com>
5646
5647 * c-common.c (make_tree_vector_from_list): New.
5648 * c-common.h: Declare it.
5649
5650 2011-04-26 Richard Guenther <rguenther@suse.de>
5651
5652 PR preprocessor/48248
5653 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5654 for output size with -P.
5655
5656 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5657
5658 * c-common.c (struct c_common_resword): Add __underlying_type.
5659 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5660
5661 2011-04-20 Jim Meyering <meyering@redhat.com>
5662
5663 * c-format.c (init_dollar_format_checking): Remove useless
5664 if-before-free.
5665
5666 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5667
5668 * c-objc.h (objc_get_interface_ivars): Removed.
5669 (objc_detect_field_duplicates): New.
5670 * stub-objc.c: Likewise.
5671
5672 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5673
5674 * stub-objc.c (objc_declare_protocols): Renamed to
5675 objc_declare_protocol.
5676 * c-objc.h: Likewise.
5677
5678 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5679
5680 * stub-objc.c (objc_declare_class): Updated argument name.
5681
5682 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5683
5684 * c-common.h (c_common_init_ts): Declare.
5685 * c-common.c (c_common_init_ts): Define.
5686
5687 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5688
5689 * c-objc.h (objc_build_message_expr): Updated prototype.
5690 * stub-objc.c (objc_build_message_expr): Likewise.
5691
5692 2011-04-12 Martin Jambor <mjambor@suse.cz>
5693
5694 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5695 of cgraph_node.
5696
5697 2011-04-11 Richard Guenther <rguenther@suse.de>
5698
5699 * c-common.c (complete_array_type): Build a range type of
5700 proper type.
5701
5702 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5703
5704 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5705 (handle_type_generic_attribute): Likewise.
5706
5707 2011-04-07 Jason Merrill <jason@redhat.com>
5708
5709 PR c++/48450
5710 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5711 conversion from C++0x scoped enum.
5712
5713 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5714
5715 * c-target-def.h: New file.
5716 * c-target.def: New file.
5717 * c-target.h: New file.
5718 * c-common.c (targetcm): Don't define here.
5719 * c-common.h (default_handle_c_option): Declare.
5720 * c-format.c: Include c-target.h instead of target.h.
5721 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5722 include tm.h.
5723 (default_handle_c_option): Move from targhooks.c.
5724
5725 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5726
5727 PR preprocessor/48248
5728 * c-ppoutput.c (print): Add src_file field.
5729 (init_pp_output): Initialize it.
5730 (maybe_print_line): Don't optimize by adding up to 8 newlines
5731 if map->to_file and print.src_file are different file.
5732 (print_line): Update print.src_file.
5733
5734 2011-03-25 Kai Tietz <ktietz@redhat.com>
5735
5736 * c-ada-spec.c (compare_comment): Use filename_cmp
5737 instead of strcmp for filename.
5738
5739 2011-03-25 Jeff Law <law@redhat.com>
5740
5741 * c-common.c (def_fn_type): Add missing va_end.
5742
5743 2011-03-25 Jason Merrill <jason@redhat.com>
5744
5745 * c.opt: Add -std=c++03.
5746
5747 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5748
5749 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5750
5751 2011-03-17 Kai Tietz
5752
5753 PR target/12171
5754 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5755 Display allowed attributes for function pointer types.
5756 (pp_c_attributes_display): New function to display
5757 attributes having affects_type_identity flag set to true.
5758 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5759
5760 * c-common.c (c_common_attribute_table):
5761 Add new element.
5762 (c_common_format_attribute_table): Likewise.
5763
5764 2011-03-18 Jason Merrill <jason@redhat.com>
5765
5766 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5767 * c-common.h: Don't declare it here.
5768 * c-common.c: Or define it here.
5769 * c-opts.c (c_common_handle_option): Or set it here.
5770
5771 PR c++/35315
5772 * c-common.c (handle_transparent_union_attribute): Don't
5773 make a duplicate type in C++.
5774
5775 2011-03-15 Jason Merrill <jason@redhat.com>
5776
5777 * c-common.c (max_constexpr_depth): New.
5778 * c-common.h: Declare it.
5779 * c-opts.c (c_common_handle_option): Set it.
5780 * c.opt (fconstexpr-depth): New option.
5781
5782 2011-03-11 Jason Merrill <jason@redhat.com>
5783
5784 * c-common.c (attribute_takes_identifier_p): Add missing const.
5785
5786 PR c++/46803
5787 * c-common.c (attribute_takes_identifier_p): Assume that an
5788 unknown attribute takes an identifier.
5789
5790 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5791
5792 PR c/47786
5793 * c-common.c (c_type_hash): Call list_length instead of iterating
5794 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5795
5796 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5797
5798 PR c/47809
5799 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5800
5801 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5802
5803 * c.opt (fobjc-abi-version=) New.
5804 (fobjc-nilcheck): New.
5805
5806 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5807
5808 PR c++/46890
5809 * c-common.h (keyword_is_decl_specifier): Declare.
5810 * c-common.c (keyword_is_decl_specifier): Define.
5811 (keyword_is_function_specifier): New function.
5812
5813 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5814
5815 PR c/47473
5816 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5817 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5818 REAL_TYPE.
5819
5820 2011-01-26 Arnaud Charlet <charlet@adacore.com>
5821
5822 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5823
5824 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5825
5826 PR pch/47430
5827 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5828 after init_c_lex if pch_file is set.
5829
5830 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5831
5832 PR c++/43601
5833 * c.opt (-fkeep-inline-dllexport): New switch.
5834
5835 2011-01-12 Richard Guenther <rguenther@suse.de>
5836
5837 PR middle-end/32511
5838 * c-common.c (handle_weak_attribute): Warn instead of error
5839 on declaring an inline function weak.
5840
5841 2011-01-05 Tom Tromey <tromey@redhat.com>
5842
5843 * c-common.h (lvalue_error): Update.
5844 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5845 not error.
5846
5847 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
5848
5849 PR objc/47075
5850 * c-objc.h (objc_finish_message_expr): Added argument to
5851 prototype.
5852
5853 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5854
5855 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5856 Use prototype_p.
5857
5858 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5859
5860 * c-objc.h (objc_maybe_warn_exceptions): New.
5861 * stub-objc.c (objc_maybe_warn_exceptions): New.
5862
5863 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5864
5865 * c-common.h (readonly_error): Declare.
5866 * c-common.c (readonly_error): Define.
5867
5868 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5869
5870 * c-common.h (invalid_indirection_error): Declare.
5871 * c-common.c (invalid_indirection_error): Define.
5872
5873 2010-12-03 Richard Guenther <rguenther@suse.de>
5874
5875 PR c/46745
5876 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5877 (pp_c_unary_expression): Likewise.
5878 (pp_c_expression): Likewise.
5879
5880 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5881
5882 * c-common.h (objc_finish_function): New.
5883 (objc_non_volatilized_type): Removed.
5884 (objc_type_quals_match): Removed.
5885 * stub-objc.c (objc_finish_function): New.
5886 (objc_non_volatilized_type): Removed.
5887 (objc_type_quals_match): Removed.
5888
5889 2010-11-30 Joseph Myers <joseph@codesourcery.com>
5890
5891 * c-common.h (parse_optimize_options): Declare.
5892 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5893 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5894
5895 2010-11-29 Joseph Myers <joseph@codesourcery.com>
5896
5897 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5898 GET_ENVIRONMENT.
5899 * c-pch.c (O_BINARY): Don't define here.
5900 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5901
5902 2010-11-25 Joseph Myers <joseph@codesourcery.com>
5903
5904 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5905 targetm.except_unwind_info.
5906
5907 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5908
5909 * c-opts.c (c_common_handle_option): Pass location to
5910 set_struct_debug_option.
5911
5912 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5913
5914 * c-common.c (visibility_options): Move from ../opts.c.
5915 * c-common.h (struct visibility_flags, visibility_options):
5916 Declare here.
5917 * c-opts.c (finish_options): Rename to c_finish_options.
5918 (c_common_init): Update call to finish_options.
5919
5920 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5921
5922 PR objc/34033
5923 * c-lex.c (lex_string): Check that each string in an Objective-C
5924 string concat sequence starts with either one or zero '@', and
5925 that there are no spurious '@' signs at the end.
5926
5927 2010-11-20 Joseph Myers <joseph@codesourcery.com>
5928
5929 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5930 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5931 HANDLE_PRAGMA_VISIBILITY.
5932 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5933 HANDLE_PRAGMA_VISIBILITY): Don't define.
5934 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5935
5936 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5937
5938 PR c++/16189
5939 PR c++/36888
5940 PR c++/45331
5941 * c-common.h (keyword_begins_type_specifier): Declare.
5942 (keyword_is_storage_class_specifier): Declare.
5943 (keyword_is_type_qualifier): Declare.
5944 * c-common.c (keyword_begins_type_specifier): New function.
5945 (keyword_is_storage_class_specifier): New function.
5946 (keyword_is_type_qualifier): Declare.
5947
5948 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5949
5950 PR c/46547
5951 * c-common.c (in_late_binary_op): Define.
5952 (c_common_truthvalue_conversion): Check in_late_binary_op before
5953 calling c_save_expr.
5954 * c-common.h (in_late_binary_op): Declare.
5955
5956 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5957
5958 * c-opts.c (c_common_handle_option): Update calls to
5959 set_struct_debug_option.
5960
5961 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5962
5963 * c-common.h (objc_declare_protocols): Added additional argument.
5964 * stub-objc.c (objc_declare_protocol): Same change.
5965
5966 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5967
5968 PR c/33193
5969 * c-common.h (build_real_imag_expr): Declare.
5970 * c-semantics.c (build_real_imag_expr): Define.
5971
5972 2010-11-17 Joseph Myers <joseph@codesourcery.com>
5973
5974 * c-opts.c (c_common_parse_file): Take no arguments.
5975 * c-common.h (c_common_parse_file): Update prototype.
5976
5977 2010-11-16 Jakub Jelinek <jakub@redhat.com>
5978
5979 PR c++/46401
5980 * c-common.c (warning_candidate_p): Don't track non-const calls
5981 or STRING_CSTs.
5982
5983 2010-11-15 Ian Lance Taylor <iant@google.com>
5984
5985 * c-lex.c (init_c_lex): Set macro debug callbacks if
5986 flag_dump_go_spec is set.
5987
5988 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5989
5990 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5991 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5992
5993 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5994
5995 PR preprocessor/45038
5996 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5997 dialects.
5998
5999 2010-11-12 Joseph Myers <joseph@codesourcery.com>
6000
6001 * c-common.h (c_family_lang_mask): Declare.
6002 * c-opts.c (c_family_lang_mask): Make extern.
6003 * c-pragma.c (handle_pragma_diagnostic): Use
6004 control_warning_option.
6005
6006 2010-11-12 Joseph Myers <joseph@codesourcery.com>
6007
6008 * c-common.c (parse_optimize_options): Update call to
6009 decode_options.
6010 * c-common.h (c_common_handle_option): Update prototype.
6011 * c-opts.c (c_common_handle_option): Take location_t parameter and
6012 pass it to other functions.
6013
6014 2010-11-11 Joseph Myers <joseph@codesourcery.com>
6015
6016 * c-opts.c (warning_as_error_callback): Remove.
6017 (c_common_initialize_diagnostics): Don't call
6018 register_warning_as_error_callback.
6019 (c_common_handle_option): Handle -Werror=normalized= here.
6020
6021 2010-11-10 Joseph Myers <joseph@codesourcery.com>
6022
6023 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6024 in diagnostic.
6025 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6026 letter.
6027 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6028 Remove trailing '.' from diagnostics.
6029 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6030
6031 2010-11-10 Joseph Myers <joseph@codesourcery.com>
6032
6033 * c-common.c (parse_optimize_options): Pass global_dc to
6034 decode_options.
6035 * c-opts.c (c_common_handle_option): Pass &global_options to
6036 set_Wstrict_aliasing.
6037 * c.opt (v): Don't mark Common or document here.
6038
6039 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6040
6041 PR target/44981
6042 * c-format.c (format_type): New type gcc_objc_string_format_type.
6043 (valid_stringptr_type_p): New.
6044 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
6045 (check_format_string): Pass expected type, use
6046 valid_stringptr_type_p (), check that the format string types are
6047 consistent with the format specification.
6048 (decode_format_attr): Warn if NSString is used outside objective-c.
6049 (format_types_orig): Add NSString.
6050 (format_name): New.
6051 (format_flags): New.
6052 (check_format_arg): Handle format strings requiring an external parser.
6053 first_target_format_type: New variable.
6054 (handle_format_attribute): Set up first_target_format_type, pass the
6055 expected format arg string type to check_format_string().
6056 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6057 * stub-objc.c (objc_string_ref_type_p): New.
6058 (objc_check_format_arg): New.
6059
6060 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6061
6062 Fixed using the Objective-C 2.0 dot-syntax with class names.
6063 * c-common.h (objc_build_class_component_ref): New.
6064 * stub-objc.c (objc_build_class_component_ref): New.
6065
6066 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6067
6068 * c.opt (Wproperty-assign-default): New option.
6069
6070 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6071
6072 Implemented -fobjc-std=objc1 flag.
6073 * c.opt (fobjc-std=objc1): New option.
6074
6075 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6076
6077 Implemented format and noreturn attributes for Objective-C methods.
6078 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6079 attribute for Objective-C methods.
6080
6081 2010-10-31 Jason Merrill <jason@redhat.com>
6082
6083 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6084 EXPR_LOC_OR_HERE.
6085
6086 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6087
6088 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6089 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6090 (objc_add_property_declaration): Removed arguments for copies and
6091 ivar.
6092 (objc_build_getter_call): Renamed to
6093 objc_maybe_build_component_ref.
6094 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6095 (objc_is_property_ref): New.
6096 * c-common.c (c_common_reswords): Removed copies and ivar.
6097 * stub-objc.c (objc_add_property_declaration): Removed arguments
6098 for copies and ivar.
6099 (objc_build_getter_call): Renamed to
6100 objc_maybe_build_component_ref.
6101 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6102 (objc_is_property_ref): New.
6103
6104 2010-10-29 Arnaud Charlet <charlet@adacore.com>
6105 Matthew Gingell <gingell@adacore.com>
6106
6107 * c-ada-spec.c (separate_class_package): New function.
6108 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6109 name of their enclosing package.
6110 (print_ada_declaration): Use separate_class_package.
6111
6112 2010-10-27 Jason Merrill <jason@redhat.com>
6113
6114 * c-common.c (c_common_reswords): Add __is_literal_type.
6115 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6116
6117 * c-common.c (check_case_value): Remove special C++ code.
6118
6119 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6120
6121 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6122 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6123 and RID_LAST_PATTR.
6124 (objc_add_property_declaration): Added additional arguments.
6125 (objc_property_attribute_kind): Removed.
6126 (objc_set_property_attr): Removed.
6127 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6128 copy and nonatomic.
6129 * stub-objc.c (objc_add_property_declaration): Added additional
6130 arguments.
6131 (objc_set_property_attr): Removed.
6132
6133 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6134
6135 * c-common.h (objc_add_property_variable): Renamed to
6136 objc_add_property_declaration. Added location argument.
6137 * stub-objc.c (objc_add_property_variable): Same change.
6138
6139 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6140
6141 * c-common.h (objc_maybe_printable_name): New.
6142 * stub-objc.c (objc_maybe_printable_name): New.
6143
6144 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6145 Andrew Pinski <pinskia@gmail.com>
6146
6147 * c-common.h (c_common_mark_addressable_vec): Declare.
6148 * c-common.c (c_common_mark_addressable_vec): New function.
6149
6150 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6151
6152 * c-common.h (objc_set_method_type): Removed.
6153 (objc_add_method_declaration): Added boolean argument.
6154 (objc_start_method_definition): Same change.
6155 (objc_build_method_signature): Same change.
6156 * stub-objc.c (objc_set_method_type): Removed.
6157 (objc_add_method_declaration): Added boolean argument.
6158 (objc_start_method_definition): Same change.
6159 (objc_build_method_signature): Same change.
6160
6161 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6162
6163 * c-common.h (finish_file): Removed.
6164 (objc_write_global_declarations): New.
6165 * c-opts.c (c_common_parse_file): Do not call finish_file.
6166 * stub-objc.c (objc_write_global_declarations): New.
6167
6168 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6169
6170 Implemented parsing @synthesize and @dynamic for
6171 Objective-C/Objective-C++.
6172 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6173 (objc_add_synthesize_declaration): New.
6174 (objc_add_dynamic_declaration): New.
6175 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6176 * stub-objc.c (objc_add_synthesize_declaration): New.
6177 (objc_add_dynamic_declaration): New.
6178
6179 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6180
6181 PR target/46041
6182 * c-cppbuiltin.c (mode_has_fma): Move function here from
6183 builtins.c. Don't use the fma optab, instead just use the
6184 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6185 using -save-temps.
6186
6187 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6188
6189 Merge from 'apple/trunk' branch on FSF servers.
6190
6191 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
6192
6193 Radar 4330422
6194 * c-common.h (objc_non_volatilized_type): New declaration
6195 * stub-objc.c (objc_non_volatilized_type): New stub.
6196
6197 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6198
6199 Merge from 'apple/trunk' branch on FSF servers.
6200
6201 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
6202
6203 Radar 4133425
6204 * c-common.h (objc_diagnose_private_ivar): New decl.
6205 * stub-objc.c (objc_diagnose_private_ivar): New stub.
6206
6207 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6208
6209 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6210 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6211 (objc_ivar_visibility_kind): New enum.
6212 (objc_set_visibility): Adjust prototype to use visibility enum.
6213 * stub-objc.c (objc_set_visibility): Adjust stub to use
6214 visibility enum.
6215
6216 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6217
6218 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6219 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6220 has the appropriate fma builtins.
6221 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6222
6223 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6224
6225 merge from FSF apple 'trunk' branch.
6226 2006 Fariborz Jahanian <fjahanian@apple.com>
6227
6228 Radars 4436866, 4505126, 4506903, 4517826
6229 * c-common.c (c_common_resword): Define @property and its attributes.
6230 * c-common.h: Define property attribute enum entries.
6231 (OBJC_IS_PATTR_KEYWORD): New.
6232 (objc_property_attribute_kind): New enum.
6233 Declare objc_set_property_attr (), objc_add_property_variable (),
6234 objc_build_getter_call () and objc_build_setter_call ().
6235 * stub-objc.c (objc_set_property_attr): New stub.
6236 (objc_add_property_variable): Likewise.
6237 (objc_build_getter_call): Likewise.
6238 (objc_build_setter_call) Likewise.
6239
6240 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6241
6242 merge from FSF apple 'trunk' branch.
6243 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
6244
6245 Radar 3803157 (method attributes)
6246 * c-common.c (handle_deprecated_attribute): Recognize
6247 objc methods as valid declarations.
6248 * c-common.h: Declare objc_method_decl ().
6249 * stub-objc.c (objc_method_decl): New stub.
6250
6251 2010-10-08 Joseph Myers <joseph@codesourcery.com>
6252
6253 * c-common.c (parse_optimize_options): Call
6254 decode_cmdline_options_to_array_default_mask before
6255 decode_options. Update arguments to decode_options.
6256 * c-common.h (c_common_init_options_struct): Declare.
6257 * c-opts.c (c_common_init_options_struct): New. Split out from
6258 c_common_init_options.
6259
6260 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6261
6262 Implemented fast enumeration for Objective-C.
6263 * c-common.h (objc_finish_foreach_loop): New.
6264 * stub-objc.c (objc_finish_foreach_loop): New.
6265
6266 2010-10-05 Joseph Myers <joseph@codesourcery.com>
6267
6268 * c-common.h (struct diagnostic_context): Don't declare here.
6269 (c_common_initialize_diagnostics): Declare using
6270 diagnostic_context typedef.
6271 * c-opts.c (c_common_handle_option): Pass global_dc to
6272 handle_generated_option.
6273
6274 2010-10-04 Joseph Myers <joseph@codesourcery.com>
6275
6276 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6277 handle_generated_option.
6278
6279 2010-10-03 Ian Lance Taylor <iant@google.com>
6280
6281 * c.opt (-fplan9-extensions): New option.
6282
6283 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6284
6285 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6286 Remove.
6287 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6288 of duplicating code.
6289
6290 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6291
6292 * c-common.c: Add two new entries for @optional
6293 and @required keywords.
6294
6295 merge from FSF 'apple/trunk' branch.
6296 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
6297
6298 Radar 4386773
6299 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6300 objective-c keywords.
6301 (objc_set_method_opt): New declaration.
6302 * stub-objc.c (objc_set_method_opt): New stub.
6303
6304 2010-09-30 Joseph Myers <joseph@codesourcery.com>
6305
6306 * c-common.c (handle_optimize_attribute): Pass &global_options to
6307 cl_optimization_save and cl_optimization_restore.
6308 * c-opts.c (c_common_handle_option): Pass &global_options to
6309 handle_generated_option.
6310 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6311 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6312 &global_options to cl_optimization_restore.
6313
6314 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6315
6316 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6317 Objective-C/Objective-C++ keywords.
6318
6319 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6320
6321 Merge from 'apple/trunk' branch on FSF servers.
6322
6323 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
6324
6325 Radar 4281748
6326 * c-common.h (objc_check_global_decl): New declaration.
6327 * stub-objc.c (objc_check_global_decl): New stub.
6328
6329 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6330
6331 * c.opt: Don't use VarExists.
6332
6333 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6334
6335 * c-common.c (c_cpp_error): Update names of diagnostic_context
6336 members.
6337 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6338 cl_optimization members.
6339 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6340 sanitize_cpp_opts, finish_options): Update names of cpp_options
6341 members.
6342
6343 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6344
6345 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6346 (objc_is_reserved_word): Removed.
6347 * c-common.c: Updated comments.
6348 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6349 objc_is_reserved_word.
6350 * stub-objc.c (objc_is_reserved_word): Removed.
6351
6352 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6353
6354 * c-common.h (objc_add_method_declaration): Adjust prototype to
6355 include attributes.
6356 (objc_start_method_definition): Likewise.
6357 (objc_build_keyword_decl): Likewise.
6358 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6359 (objc_start_method_definition): Likewise.
6360 (objc_build_keyword_decl): Likewise.
6361
6362 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6363
6364 * c-common.h (objc_start_class_interface): Adjust prototype.
6365 (objc_start_category_interface): Likewise.
6366 (objc_start_protocol): Likewise.
6367 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6368 (objc_start_class_interface): Likewise.
6369 (objc_start_category_interface): Likewise.
6370
6371 2010-09-27 Ian Lance Taylor <iant@google.com>
6372
6373 * c-common.c (c_common_attribute_table): Add no_split_stack.
6374 (handle_no_split_stack_attribute): New static function.
6375
6376 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6377
6378 Merge from 'apple/trunk' branch on FSF servers.
6379
6380 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
6381
6382 Radar 4229905
6383 * c-common.h (objc_have_common_type): New declaration.
6384 * stub-objc.c (objc_have_common_type): New stub.
6385
6386 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6387
6388 Radar 4154928
6389 * c-common.h (objc_common_type): New prototype.
6390 * stub-objc.c (objc_common_type): New stub.
6391
6392 2010-09-24 Jan Hubicka <jh@suse.cz>
6393
6394 * c-common.c (handle_leaf_attribute): New function.
6395 (struct attribute_spec c_common_att): Add leaf.
6396
6397 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6398
6399 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6400 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6401 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6402 -include-barrier, -include-directory, -include-directory=,
6403 -include-directory-after, -include-directory-after=,
6404 -include-prefix, -include-prefix=, -include-with-prefix,
6405 -include-with-prefix=, -include-with-prefix-after,
6406 -include-with-prefix-after=, -include-with-prefix-before,
6407 -include-with-prefix-before=, -no-integrated-cpp,
6408 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6409 -output=, -pedantic, -pedantic-errors, -preprocess,
6410 -print-missing-file-dependencies, -trace-includes, -traditional,
6411 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6412 -user-dependencies, -verbose, -write-dependencies,
6413 -write-user-dependencies, no-integrated-cpp, traditional): New.
6414
6415 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6416
6417 PR objc/23710
6418 * c-common.h (objc_start_method_definition): Return bool instead
6419 of void.
6420 * stub-objc.c (objc_start_method_definition): Return bool instead
6421 of void.
6422
6423 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6424
6425 PR objc/25965
6426 * c-common.h (objc_get_interface_ivars): New declaration.
6427 * stub-objc.c (objc_get_interface_ivars): New stub.
6428
6429 2010-09-15 Ian Lance Taylor <iant@google.com>
6430
6431 * c-common.c (parse_optimize_options): Do not capitalize warning
6432 messages. Remove period at end of warning message.
6433
6434 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6435
6436 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6437 (handle_alias_attribute): ... here.
6438 (handle_ifunc_attribute): New.
6439
6440 2010-09-06 Mark Mitchell <mark@codesourcery.com>
6441
6442 * c-common.h (do_warn_double_promotion): Declare.
6443 * c-common.c (do_warn_double_promotion): Define.
6444
6445 2010-09-05 Mark Mitchell <mark@codesourcery.com>
6446
6447 * c.opt (Wdouble-promotion): New.
6448
6449 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6450
6451 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6452 fvtable-thunks, fxref): Mark no longer supported in help text.
6453
6454 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6455
6456 * c.opt (Wimport, fall-virtual, falt-external-templates,
6457 fdefault-inline, fenum-int-equiv, fexternal-templates,
6458 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6459 fname-mangling-version-, fnew-abi, fnonnull-objects,
6460 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6461 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6462 applicable.
6463 (fhandle-exceptions): Mark with Alias and Warn.
6464 * c-opts.c (c_common_handle_option): Don't handle options marked
6465 as ignored.
6466
6467 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6468
6469 * c.opt (Wcomments, Werror-implicit-function-declaration,
6470 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6471 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6472 aliases.
6473 * c-common.c (option_codes): Use OPT_Wcomment instead of
6474 OPT_Wcomments.
6475 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6476 Don't handle options marked as aliases.
6477
6478 2010-08-25 Richard Guenther <rguenther@suse.de>
6479
6480 * c-common.c (c_common_get_alias_set): Remove special
6481 handling for pointers.
6482
6483 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6484
6485 * c-common.c: Use FOR_EACH_VEC_ELT.
6486 * c-gimplify.c: Likewise.
6487 * c-pragma.c: Likewise.
6488
6489 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6490
6491 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6492 RejectDriver.
6493 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6494 RejectDriver.
6495 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6496 instead of OPT_MDX and OPT_MMDX.
6497
6498 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6499
6500 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6501
6502 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6503
6504 * c.opt (MD, MMD): Change to MDX and MMDX.
6505 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6506
6507 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6508
6509 * c-opts.c (c_common_handle_option): Call handle_generated_option
6510 instead of handle_option.
6511
6512 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6513
6514 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6515 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6516
6517 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6518
6519 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6520 (pending_redefine_extname): Change type to a VEC.
6521 (add_to_renaming_pragma_list): Update for new type of
6522 pending_redefine_extname.
6523 (maybe_apply_renaming_pragma): Likewise.
6524
6525 2010-08-04 Arnaud Charlet <charlet@adacore.com>
6526
6527 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6528 visited.
6529 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6530 decide whether a type has already been declared/seen.
6531 Do not go to the original type.
6532 (dump_nested_types): New parameter forward.
6533 Generate forward declaration if needed and mark type as visited.
6534 (print_ada_declaration): Call dump_nested_types if not already done.
6535 Mark types as visited.
6536
6537 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6538
6539 * c.opt (-print-pch-checksum): Remove option.
6540 * c-opts.c (c_common_handle_option): Don't handle
6541 OPT_print_pch_checksum.
6542
6543 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6544
6545 * c-common.h (c_common_handle_option): Update prototype and return
6546 value type.
6547 * c-opts.c (c_common_handle_option): Update prototype and return
6548 value type. Update calls to handle_option and
6549 enable_warning_as_error.
6550
6551 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6552
6553 PR c/45079
6554 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6555
6556 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6557
6558 * c-common.h (c_common_missing_argument): Remove.
6559 * c-opts.c (c_common_missing_argument): Remove.
6560 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6561 idirafter, imacros, include, isysroot, isystem, iquote): Add
6562 MissingArgError.
6563 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6564
6565 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6566
6567 * c-common.h (c_common_option_lang_mask,
6568 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6569 New.
6570 (c_common_init_options): Update prototype.
6571 * c-opts.c (c_common_option_lang_mask): New.
6572 (c_common_initialize_diagnostics): Split out of
6573 c_common_init_options.
6574 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6575 New.
6576 (c_common_init_options): Update prototype. Use decoded options in
6577 search for -lang-asm.
6578
6579 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6580
6581 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6582 * c-format.c: Likewise.
6583
6584 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6585
6586 * c-common.h: Include diagnostic-core.h. Error if already
6587 included.
6588 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6589
6590 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6591
6592 * c-common.c (IN_GCC_FRONTEND): Do not undef.
6593 Do not include expr.h
6594 (vector_mode_valid_p): Move here.
6595
6596 2010-06-21 DJ Delorie <dj@redhat.com>
6597
6598 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6599 allow these pragmas anywhere.
6600
6601 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6602
6603 PR bootstrap/44509
6604 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6605 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6606 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6607 ggc_strdup instead of xstrdup.
6608
6609 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6610
6611 * c-cppbuiltin.c: Include cpp-id-data.h.
6612 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6613 (lazy_hex_fp_value): New function.
6614 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6615
6616 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6617
6618 * c-gimplify.c: Do not include tree-flow.h
6619
6620 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6621
6622 PR other/44034
6623 * c-common.c: Rename targetm member:
6624 targetm.enum_va_list -> targetm.enum_va_list_p
6625
6626 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6627
6628 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6629
6630 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6631
6632 * c-cppbuiltin.c: Do not include except.h.
6633
6634 2010-06-24 Andi Kleen <ak@linux.intel.com>
6635
6636 * c-common.c (warn_for_omitted_condop): New.
6637 * c-common.h (warn_for_omitted_condop): Add prototype.
6638
6639 2010-06-21 Joseph Myers <joseph@codesourcery.com>
6640
6641 * c.opt (lang-objc): Remove.
6642 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6643
6644 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6645
6646 * c-opts.c: Include "tm_p.h".
6647
6648 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6649
6650 * c-common.c (parse_optimize_options): Update call to
6651 decode_options.
6652
6653 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6654
6655 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6656 new type of types_used_by_cur_var_decl.
6657
6658 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6659
6660 PR bootstrap/44512
6661 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6662 for C++ standard compliance.
6663
6664 2010-06-16 Jason Merrill <jason@redhat.com>
6665
6666 * c.opt: Add -Wnoexcept.
6667
6668 2010-06-16 Richard Guenther <rguenther@suse.de>
6669
6670 PR c/44555
6671 * c-common.c (c_common_truthvalue_conversion): Remove
6672 premature and wrong optimization concering ADDR_EXPRs.
6673
6674 2010-06-15 Arnaud Charlet <charlet@adacore.com>
6675
6676 * c-ada-spec.c (dump_sloc): Remove column info.
6677 (is_simple_enum): New function.
6678 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6679 enum types when relevant.
6680
6681 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6682
6683 * c-common.c (conversion_warning): Warn at expression
6684 location.
6685
6686 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6687
6688 * c-opts.c (c_common_handle_option): Don't handle
6689 OPT_fshow_column.
6690
6691 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6692
6693 * c-pragma.c (push_alignment): Use typed GC allocation.
6694 (handle_pragma_push_options): Likewise.
6695
6696 * c-common.c (parse_optimize_options): Likewise.
6697
6698 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6699 option.
6700
6701 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6702
6703 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6704 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6705 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6706 flag_signed_bitfields, warn_strict_null_sentinel,
6707 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6708 flag_gen_declaration, flag_no_gnu_keywords,
6709 flag_implement_inlines, flag_implicit_templates,
6710 flag_implicit_inline_templates, flag_optional_diags,
6711 flag_elide_constructors, flag_default_inline, flag_rtti,
6712 flag_conserve_space, flag_access_control, flag_check_new,
6713 flag_new_for_scope, flag_weak, flag_working_directory,
6714 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6715 flag_enforce_eh_specs, flag_threadsafe_statics,
6716 flag_pretty_templates): Remove.
6717 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6718 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6719 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6720 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6721 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6722 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6723 flag_no_gnu_keywords, flag_implement_inlines,
6724 flag_implicit_templates, flag_implicit_inline_templates,
6725 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6726 flag_rtti, flag_conserve_space, flag_access_control,
6727 flag_check_new, flag_new_for_scope, flag_weak,
6728 flag_working_directory, flag_use_cxa_atexit,
6729 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6730 flag_threadsafe_statics, flag_pretty_templates,
6731 warn_strict_null_sentinel): Remove.
6732 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6733 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6734 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6735 fimplicit-inline-templates, fimplicit-templates,
6736 flax-vector-conversions, fms-extensions, fnil-receivers,
6737 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6738 frtti, fshort-double, fshort-enums, fshort-wchar,
6739 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6740 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6741 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6742 gen-decls, undef): Use Var.
6743 (fdefault-inline, foptional-diags): Document as doing nothing.
6744 * c-opts.c (c_common_handle_option): Remove cases for options now
6745 using Var. Mark ignored options as such.
6746
6747 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6748
6749 * c-common.c: Moved to here from parent directory.
6750 * c-common.def: Likewise.
6751 * c-common.h: Likewise.
6752 * c-cppbuiltin.c: Likewise.
6753 * c-dump.c: Likewise.
6754 * c-format.c: Likewise.
6755 * c-format.h : Likewise.
6756 * c-gimplify.c: Likewise.
6757 * c-lex.c: Likewise.
6758 * c-omp.c: Likewise.
6759 * c.opt: Likewise.
6760 * c-opts.c: Likewise.
6761 * c-pch.c: Likewise.
6762 * c-ppoutput.c: Likewise.
6763 * c-pragma.c: Likewise.
6764 * c-pragma.h: Likewise.
6765 * c-pretty-print.c: Likewise.
6766 * c-pretty-print.h: Likewise.
6767 * c-semantics.c: Likewise.
6768 * stub-objc.c: Likewise.
6769
6770 * c-common.c: Include gt-c-family-c-common.h.
6771 * c-pragma.c: Include gt-c-family-c-pragma.h.
6772 \f
6773 Copyright (C) 2010-2016 Free Software Foundation, Inc.
6774
6775 Copying and distribution of this file, with or without modification,
6776 are permitted in any medium without royalty provided the copyright
6777 notice and this notice are preserved.
This page took 0.345305 seconds and 6 git commands to generate.