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