Makefile.def (install-target-libsanitizer): Depend on install-target-libstdc++-v3.
[official-gcc.git] / gcc / c-family / ChangeLog
blob778be4b539504f3ebedea99ab984c43418768a96
1 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
3         PR c/48418
4         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
5         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6         and is either negative or bigger or equal to type precision
7         of the first operand.
9 2012-12-03  Marek Polacek  <polacek@redhat.com>
11         PR c/55570
12         * c-common.c (check_user_alignment): Swap order of tests,
13         check TREE_CODE first.
15 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
17         PR c++/52654
18         * c-common.h (overflow_type): New enum.
19         (build_userdef_literal): Add overflow_type argument.
20         (tree_userdef_literal): Add overflow_type.
21         (USERDEF_LITERAL_OVERFLOW): New access macro.
22         * c-common.c (build_userdef_literal): Add overflow_type
23         argument.
24         * c-lex.c (c_lex_with_flags): Add overflow_type to
25         build_userdef_literal calls.
26         (interpret_integer, interpret_float): Add overflow_type argument.
28 2012-11-28  Richard Biener  <rguenther@suse.de>
30         PR c/35634
31         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
32         here and use a type with proper overflow behavior for types that would
33         need to be promoted for the arithmetic.
35 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
37         PR sanitizer/55435
38         * c-common.c (handle_no_address_safety_analysis_attribute): New
39         function.
40         (c_common_attribute_table): Add no_address_safety_analysis.
42 2012-11-16  Simon Baldwin  <simonb@google.com>
44         * c.opt: Add f[no-]canonical-system-headers.
45         * c-opts.c (c_common_handle_option): Handle
46         OPT_fcanonical_system_headers.
48 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
50         PR c++/54413
51         * c-opts.c (c_common_handle_option): Set new flags.
52         * c.opt: Describe new flags.
54 2012-11-09  Jason Merrill  <jason@redhat.com>
56         * c.opt (Wabi-tag): New.
58 2012-11-09  Andi Kleen  <ak@linux.intel.com>
60         PR 55139
61         * c-common.c (get_atomic_generic_size): Mask with
62         MEMMODEL_MASK
64 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
66         PR c/53063
67         * c.opt (Wformat): Make it Alias Wformat=1.
68         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
69         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
70         LangEnabledBy.
71         (Wformat=): RejectNegative. Use LangEnabledBy.
72         (Wnonnull): Use LangEnabledBy.
73         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
74         * c-format.c (set_Wformat): Delete.
75         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
76         (maybe_read_dollar_number):  Likewise.
77         (avoid_dollar_number):  Likewise.
78         (finish_dollar_format_checking):  Likewise.
79         (check_format_info):  Likewise.
80         (check_format_info_main):  Likewise.
81         (check_format_types):  Likewise.
82         (format_type_warning):  Likewise.
83         * c-common.c (int):  Likewise.
84         (check_function_sentinel):  Likewise.
85         * c-common.h (warn_format,set_Wformat): Do not declare here.
87 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
89         PR c/53063
90         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
91         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
92         Use LangEnabledBy.
93         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
94         common.opt.
95         (Wvariadic-macros): Init(1).
96         * c-opts.c (c_common_handle_option): Do not handle them
97         explicitly.
98         (c_common_post_options): Likewise.
99         (sanitize_cpp_opts): warn_unused_macros is now
100         cpp_warn_unused_macros.
101         (push_command_line_include): Likewise.
102         * c-common.c (warn_unknown_pragmas): Do not define.
103         * c-common.h (warn_unknown_pragmas): Do not declare.
105 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
107         PR c/51294
108         * c-common.c (conversion_warning): Handle conditional expressions.
110 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
112         PR c++/54930
113         * c.opt (Wreturn_local_addr): Define new option.
115 2012-10-25  Jason Merrill  <jason@redhat.com>
117         * c.opt (Wvirtual-move-assign): New.
119         * c.opt (Winherited-variadic-ctor): New.
121 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
123         PR c++/54427
124         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
126 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
128         * c-common.h (pch_cpp_save_state): Declare.
129         * c-target.def (c_preinclude): New hook.
130         * c-opts.c (done_preinclude): New.
131         (push_command_line_include): Handle default preincluded header.
132         (cb_file_change): Call pch_cpp_save_state when calling
133         push_command_line_include.
134         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
135         (pch_cpp_save_state): New.
136         (pch_init): Call pch_cpp_save_state conditionally, instead of
137         calling cpp_save_state.
139 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
141         PR c/53063
142         PR c/40989
143         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
144         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
145         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
146         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
147         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
148         * c-opts.c (c_common_handle_option): Remove explicit handling from
149         here.
150         (c_common_post_options): Likewise.
152 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
154         * c-ada-spec.c (LOCATION_COL): Delete.
155         (compare_location): New function.
156         (compare_node): Use it.
157         (compare_comment): Likewise.
159 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
161         PR c/53063
162         PR c/40989
163         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
164         * c-opts.c (c_common_handle_option): Do not set them here. Add
165         comment.
166         (c_common_post_options): Likewise.
168 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
170         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
171         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
172         Remove POINTER_TYPE handling, add large unsigned handling and use
173         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
175 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
177         PR c/54381
178         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
179         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
180         locs and array of 3 trees instead of just single loc and single
181         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
182         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
183         For *cmp* builtins that take two sources strings report warnings
184         about first and second source, not about destination and source.
186 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
188         PR c++/53055
189         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
191 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
193         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
194         declaring something coming from another file.
196 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
198         PR ada/54845
199         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
201 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
203         PR c++/54194
204         * c-common.c (warn_about_parentheses): Add location_t parameter;
205         use EXPR_LOC_OR_LOC.
206         * c-common.h: Update declaration.
208 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
210         PR c++/54427
211         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
212         more operations. Make error messages optional.
213         * c-common.h (enum stv_conv): Moved from c-typeck.c.
214         (scalar_to_vector): Declare.
216 2012-10-08  Jason Merrill  <jason@redhat.com>
218         * c-common.c (c_common_reswords): Add thread_local.
220 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
222         PR c++/53528 C++11 attribute support
223         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
224         new functions.
225         * c-common.c (check_cxx_fundamental_alignment_constraints): New
226         static function.
227         (handle_aligned_attribute): In choose strictest alignment
228         among many.  Use new check_cxx_fundamental_alignment_constraints.
229         (handle_transparent_union_attribute): In c++11 attribute syntax,
230         don't look through typedefs.
232 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
234         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
235         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
236         out of dumpfile.h.
238 2012-09-25  Dehao Chen  <dehao@google.com>
240         PR middle-end/54645
241         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
242         map when read in the pch.
244 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
246         * c-ada-spec.c: Style fixes.
248 2012-09-18 Thomas Quinot  <quinot@adacore.com>
250         * c.opt (-fada-spec-parent): Define new command line switch.
251         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
252         is specified, generate binding spec as a child of the specified unit.
254 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
255             Manuel López-Ibáñez  <manu@gcc.gnu.org>
257         PR c++/53210
258         * c.opt ([Winit-self]): Enabled by -Wall in C++.
260 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
262         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
263         for pointers, and add missing Convention C pragma.
264         (print_ada_struct_decl): Add missing aliased keyword.
265         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
267 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
269         * c-common.c (sizeof_pointer_memaccess_warning): New function.
270         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
271         * c-opts.c (c_common_handle_option): Enable it for -Wall.
272         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
273         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
275 2012-08-10  Richard Guenther  <rguenther@suse.de>
277         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
279 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
281         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
282         instead of separate pp_newline and pp_flush.
283         (print_c_tree): Likewise.
285 2012-07-26  Richard Henderson  <rth@redhat.com>
287         * c-common.c (handle_hot_attribute): Allow labels.
288         (handle_cold_attribute): Likewise.
290 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
292         PR c++/28656
293         * c-common.c (check_function_nonnull): Handle multiple nonnull
294         attributes properly.
296 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
298         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
299         * c-ada-spec.c: Likewise.
300         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
302 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
304         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
305         Remove code conditional on it.
307 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
309         * c-gimplify.c: Do not include basic-block.h.
310         * c-common.c: Do not include linfuncs.h.
312 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
314         * c-common.h: Include tree.h.
316 2012-07-02  Jason Merrill  <jason@redhat.com>
318         PR c++/53524
319         * c-common.c (get_priority): Call default_conversion.
321 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
323         * c-pch.c (c_common_write_pch): Remove unused variables.
325 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
327         * cppspec.c: Moved from gcc/ to here.
329 2012-06-27  Kai Tietz  <ktietz@redhat.com>
331         PR preprocessor/37215
332         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
334 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
336         * c-common.h (c_common_print_pch_checksum): Remove.
337         * c-pch.c: Do not include output.h.
338         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
339         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
340         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
341         (struct c_pch_header): Remove.
342         (get_ident): Update gpch version.
343         (pch_init): Do not print executable_checksum to asm_out_file.
344         Do not fail if there is no asm_out_file to read back from.  Set
345         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
346         (c_common_write_pch): Verify that nothing was written to asm_out_file
347         since pch_init was called.  Do not write a c_pch_header, and do not
348         copy from asm_out_file to the PCH.
349         (c_common_read_pch): Do not read a c_pch_header, and do not restore
350         the content of asm_out_file from the PCH.
351         (c_common_print_pch_checksum): Remove.
352         * c-opts.c (c_common_init): Print out executable_checksum directly.
354 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
356         * c-target.def (objc_declare_unresolved_class_reference,
357         objc_declare_class_definition): Add new hooks.
359 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
361         * c-lex.c: Do not include output.h.
362         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
363         Remove uses of ASM_OUTPUT_IDENT.
365 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
367         PR c++/51033
368         * c-common.h (c_build_vec_perm_expr): Move decl here.
369         * c-common.c (c_build_vec_perm_expr): Move definition
370         here.
372 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
374         * c.opt (fconserve-space): Turn into a no-op.
376 2012-06-04  Sterling Augustine  <saugustine@google.com>
378         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
379         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
380         both the start and end of the function.
382 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
384         * c-common.c: Do not include output.h.
385         * c-pragma.c: Likewise.
387 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
389         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
390         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
391         (lang_decl_name): Handle namespace decls.
393 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
395         * c-ada-spec.c: Do not include output.h.
396         * c-semantics.c: Likewise.
398 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
400         * c-common.c: Fix typo.
402 2012-05-29  Michael Matz  <matz@suse.de>
404         * c-common.h (c_expand_decl): Remove prototype.
406 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
408         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
409         * c-opts.c (c_common_handle_option): Remove code handling
410         warn_missing_braces.
412 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
414         PR c++/25137
415         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
416         -Wmissing_braces.
418 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
420         PR c++/53322
421         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
423 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
425         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
426         * c-opts.c (c_common_handle_option): Do not handle explicitly
427         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
429 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
431         PR preprocessor/7263
432         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
433         to cpp_classify_number.  For diagnostics, use the precise location
434         instead of the global input_location.
436 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
438         PR c++/11856
439         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
441 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
443         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
445 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
447         PR 53063
448         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
449         Wreorder): Use LangEnabledBy.
450         * c-opts.c (c_common_handle_option): Do not enable them
451         explicitly. Call lang-specific generated functions.
452         (c_common_post_options): Do not set them here.
454 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
456         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
457         Wmissing-field-initializers,Wmissing-parameter-type,
458         Wold-style-declaration,Woverride-init): Use EnabledBy.
459         * c-opts.c (c_common_post_options): Do not set here explicitly.
461 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
463         PR 53063
464         * c-opts.c (c_common_handle_option): Use handle_generated_option
465         to enable sub-options.
467 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
469         PR c++/53158
470         * c-common.c (warnings_for_convert_and_check): Use warning_at.
472 2012-05-10  Richard Guenther  <rguenther@suse.de>
474         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
475         adjust commentary about TYPE_IS_SIZETYPE types.
477 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
479         PR c++/53261
480         * c-common.c (warn_logical_operator): Check that argument of
481         integer_zerop is not NULL.
483 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
485         PR c/43772
486         * c-common.c (warn_logical_operator): Do not warn if either side
487         is already true or false.
489 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
491         PR c/51712
492         * c-common.c (expr_original_type): New.
493         (shorten_compare): Do not warn for enumeration types.
495 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
497         * c.opt (fpermissive): Add Var(flag_permissive).
499 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
501         PR c++/51033
502         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
503         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
505 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
507         Add -Wvarargs option
508         * c.opt (Wvarargs):  Define new option.
510 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
512         * c-common.c (check_function_arguments): Replace
513         Wmissing-format-attribute with Wsuggest-attribute=format.
515 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
517         * c.opt (Wsuggest-attribute=format): New. Alias of
518         Wmissing-format-attribute.
519         * c-format.c (decode_format_type): Replace
520         Wmissing-format-attribute with Wsuggest-attribute=format.
521         (check_function_format): Likewise.
523 2012-04-27  Ollie Wild  <aaw@google.com>
525         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
526         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
527         * c.opt: Add Wliteral-suffix.
529 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
531         PR c/44774
532         * c.opt (Wpedantic): New.
533         (pedantic): Alias Wpedantic.
534         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
535         (c_common_post_options): Likewise.
536         (sanitize_cpp_opts): Likewise.
537         * c-lex.c (interpret_float): Likewise.
538         * c-format.c (check_format_types): Likewise.
539         * c-common.c (pointer_int_sum): Likewise.
540         (c_sizeof_or_alignof_type): Likewise.
541         (c_add_case_label): Likewise.
542         (c_do_switch_warnings): Likewise.
543         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
545 2012-04-15  Jason Merrill  <jason@redhat.com>
547         PR c++/52818
548         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
549         (C_STD_NAME): Distinguish between C++98 and C++11.
551 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
553         PR target/52624
554         * c-common.h (uint16_type_node): Rename into...
555         (c_uint16_type_node): ...this.
556         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
557         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
559 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
561         * c-common.c (warn_if_unused_value): Move definition to here.
562         * c-common.h (warn_if_unused_value): Move declaration to here.
564 2012-03-23  William Bader  <williambader@hotmail.com>
566         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
568 2012-03-20  Jason Merrill  <jason@redhat.com>
570         * c-common.h (enum cxx_dialect): Add cxx1y.
571         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
572         test.
573         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
574         * c-opts.c (c_common_post_options): Likewise.
575         (set_std_cxx1y): New.
576         (c_common_handle_option): Call it.
577         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
579 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
581         PR c++/14710
582         * c.opt ([Wuseless-cast]): Add.
584 2012-03-16  Richard Guenther  <rguenther@suse.de>
586         * c-pretty-print.c (pp_c_initializer_list): Adjust.
588 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
590         PR c++/44783
591         * c.opt (ftemplate-backtrace-limit) Add.
593 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
595         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
596         handling.
597         * c-pragma.c (handle_pragma_extern_prefix): Remove.
598         (init_pragma): Don't register extern_prefix.
600 2012-03-12  Richard Guenther  <rguenther@suse.de>
602         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
603         (builtin_type_for_size): Likewise.
605 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
607         PR c++/52215
608         * c-common.c (sync_resolve_params): Don't decide whether to convert
609         or not based on TYPE_SIZE comparison, convert whenever arg_type
610         is unsigned INTEGER_TYPE.
612 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
614         PR c/52118
615         * c.opt ([Wunused-local-typedefs]): Fix description.
617 2012-01-24  Mike Stump  <mikestump@comcast.net>
619         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
620         exactly.
622 2012-01-18  Richard Guenther  <rguenther@suse.de>
624         * c-opts.c (c_common_post_options): Reset LTO flags if
625         we are about to generate a PCH.
627 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
629         PR c++/51777
630         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
631         use pp_unsigned_wide_integer.
633 2012-01-10  Richard Guenther  <rguenther@suse.de>
635         PR middle-end/51806
636         * c-opts.c (c_common_handle_option): Move -Werror handling
637         to language independent code.
639 2012-01-05  Richard Guenther  <rguenther@suse.de>
641         PR middle-end/51764
642         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
643         from common.opt.
645 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
647         PR c++/51316
648         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
649         of array types with an unknown bound.
651 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
653         * c-common.c (flag_isoc99): Update comment to refer to C11.
654         (flag_isoc1x): Change to flag_isoc11.
655         * c-common.h (flag_isoc99): Update comment to refer to C11.
656         (flag_isoc1x): Change to flag_isoc11.
657         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
658         C11.
659         * c-opts.c (set_std_c1x): Change to set_std_c11.
660         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
661         Call set_std_c11.
662         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
663         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
664         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
665         standard.
666         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
667         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
668         (std=gnu1x): Make alias of std=gnu11.
670 2011-12-19  Jason Merrill  <jason@redhat.com>
672         PR c++/51228
673         * c-common.c (handle_transparent_union_attribute): Check the first
674         field if the type is complete.
676 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
678         PR libstdc++/51365
679         * c-common.c (RID_IS_FINAL): Add.
680         * c-common.h (RID_IS_FINAL): Add.
682 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
684         * c.opt (fgnu-runtime): Provide full description.
685         (fnext-runtime): Likewise.
686         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
688 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
690         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
691         predefines in one place.  Add LOCK_FREE predefines.
692         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
693         new func.
695 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
697         PR c/51256
698         * c-common.c (get_atomic_generic_size): Check for various error
699         conditions
700         (resolve_overloaded_atomic_exchange,
701         resolve_overloaded_atomic_compare_exchange,
702         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
703         error_mark_node for error conditions.
705 2011-11-08  Richard Guenther  <rguenther@suse.de>
707         PR middle-end/51010
708         c-family/
710 2011-11-07  Richard Henderson  <rth@redhat.com>
711             Aldy Hernandez  <aldyh@redhat.com>
712             Torvald Riegel  <triegel@redhat.com>
714         Merged from transactional-memory.
716         * c-common.c (handle_tm_wrap_attribute,
717         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
718         (struct c_common_reswords): Added __transaction* keywords.
719         (struct c_common_attribute_table): Added transaction* and tm_regparm
720         attributes.
721         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
722         masks.
723         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
724         find_tm_attribute): Declare.
726 2011-11-07  Jason Merrill  <jason@redhat.com>
728         PR c++/35688
729         * c-common.c, c-common.h: Revert yesterday's changes.
731 2011-11-06  Jason Merrill  <jason@redhat.com>
733         PR c++/35688
734         * c-common.c (decl_has_visibility_attr): Split out from...
735         (c_determine_visibility): ...here.
736         * c-common.h: Declare it.
738 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
740         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
741         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
742         type.
743         (check_user_alignment): New.  Split out of
744         handle_aligned_attribute.  Disallow integer constants with
745         noninteger types.  Conditionally allow zero.
746         (handle_aligned_attribute): Use check_user_alignment.
747         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
749 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
750             Richard Henderson  <rth@redhat.com>
752         Merged from cxx-mem-model.
754         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
755         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
756         parameters that are the same type size.
757         (get_atomic_generic_size): New.  Find size of generic
758         atomic function parameters and do typechecking.
759         (add_atomic_size_parameter): New.  Insert size into parameter list.
760         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
761         either __atomic_exchange_n or external library call.
762         (resolve_overloaded_atomic_compare_exchange): Restructure
763         __atomic_compare_exchange to either _n variant or external library call.
764         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
765         __atomic_load_n or an external library call.
766         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
767         __atomic_store_n or an external library call.
768         (resolve_overloaded_builtin): Handle new __atomic builtins.
770 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
772         PR c++/50608
773         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
774         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
775         <INDIRECT_REF>: Return the argument.
776         <ARRAY_REF>: Remove special code for negative offset.
777         Call fold_build_pointer_plus instead of size_binop.
778         (fold_offsetof): Remove STOP_REF argument and adjust.
779         * c-common.h (fold_offsetof_1): Declare.
780         (fold_offsetof): Remove STOP_REF argument.
782 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
784         PR c++/50810
785         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
786         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
787         Wnarrowing for C++0x and C++98.
788         * c.opt ([Wnarrowing]): Update.
790 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
792         PR c++/44277
793         * c.opt: Add Wzero-as-null-pointer-constant.
795 2011-10-31  Jason Merrill  <jason@redhat.com>
797         * c.opt (-fdeduce-init-list): Off by default.
799         PR c++/50920
800         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
801         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
802         and -Wc++11-compat.
803         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
805 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
807         PR c++/30066
808         * c.opt (fvisibility-inlines-hidden): Description change.
810 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
812         Implement C++11 user-defined literals.
813         * c-common.c (build_userdef_literal): New.
814         * c-common.def: New tree code.
815         * c-common.h (tree_userdef_literal): New tree struct and accessors.
816         * c-lex.c (interpret_float): Add suffix parm.
817         (c_lex_with_flags): Build literal tokens.
819 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
821         PR c++/50841
822         Revert:
823         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
825         PR c++/50810
826         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
827         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
828         Wnarrowing for C++0x and C++98.
829         * c.opt ([Wnarrowing]): Update.
831 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
833         PR c++/50810
834         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
835         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
836         Wnarrowing for C++0x and C++98.
837         * c.opt ([Wnarrowing]): Update.
839 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
841         PR c++/45385
842         * c-common.c (conversion_warning): Remove code looking for
843         artificial operands.
845 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
847         PR bootstrap/50760
848         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
849         !NO_IMPLICIT_EXTERN_C.
851 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
853         * c-common.c (c_common_reswords): Add __bases,
854         __direct_bases.
855         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
857 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
859         PR c++/50757
860         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
862 2011-10-15  Tom Tromey  <tromey@redhat.com>
863             Dodji Seketeli  <dodji@redhat.com>
865         * c.opt (fdebug-cpp): New option.
866         * c-opts.c (c_common_handle_option): Handle the option.
867         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
868         output stream in parameter. Factorized from ...
869         (maybe_print_line): ... this. Dump location debug information when
870         -fdebug-cpp is in effect.
871         (print_line_1): New static function. Takes an output stream in
872         parameter. Factorized from ...
873         (print_line): ... here. Dump location information when -fdebug-cpp
874         is in effect.
875         (scan_translation_unit): Dump location information when
876         -fdebug-cpp is in effect.
878 2011-10-15  Tom Tromey  <tromey@redhat.com>
879             Dodji Seketeli  <dodji@redhat.com>
881         * c.opt (ftrack-macro-expansion): New option. Handle it with and
882         without argument.
883         * c-opts.c (c_common_handle_option)<case
884         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
885         cases. Handle -ftrack-macro-expansion with and without argument.
887 2011-10-15  Tom Tromey  <tromey@redhat.com>
888             Dodji Seketeli  <dodji@redhat.com>
890         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
891         (print_line, cb_define, do_line_change): Adjust to avoid touching
892         the internals of struct line_map.  Use the public API instead.
893         * c-pch.c (c_common_read_pch): Likewise.
894         * c-lex.c (fe_file_change): Likewise.
896 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
898         PR c++/17212
899         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
901 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
903         PR c++/33067
904         * c-pretty-print.c (pp_c_floating_constant): Output
905         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
907 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
909         * c-common.c (def_builtin_1): Delete old interface with two
910         parallel arrays to hold standard builtin declarations, and replace
911         it with a function based interface that can support creating
912         builtins on the fly in the future.  Change all uses, and poison
913         the old names.  Make sure 0 is not a legitimate builtin index.
914         * c-omp.c (c_finish_omp_barrier): Ditto.
915         (c_finish_omp_taskwait): Ditto.
916         (c_finish_omp_flush): Ditto.
918 2011-10-11  Tristan Gingold  <gingold@adacore.com>
920         * c.opt: (fallow-parameterless-variadic-functions): New.
922 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
924         PR c++/33255 - Support -Wunused-local-typedefs warning
925         * c-common.h (struct c_language_function::local_typedefs): New
926         field.
927         (record_locally_defined_typedef, maybe_record_typedef_use)
928         (maybe_warn_unused_local_typedefs): Declare new functions.
929         * c-common.c (record_locally_defined_typedef)
930         (maybe_record_typedef_use)
931         (maybe_warn_unused_local_typedefs): Define new functions.
932         * c.opt: Declare new -Wunused-local-typedefs flag.
934 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
936         PR middle-end/50266
937         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
938         computations.
940 2011-09-05  Richard Guenther  <rguenther@suse.de>
942         * c-common.c (complete_array_type): Use ssize_int (-1) instead
943         of integer_minus_one_node for empty array upper bounds.
945 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
947         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
948         it's the first time it's being called on this main TU.
950 2011-08-24  Richard Guenther  <rguenther@suse.de>
952         PR c/49396
953         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
955 2011-08-22  Gabriel Charette  <gchare@google.com>
957         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
958         defined in cpp_init_builtins and c_cpp_builtins.
960 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
962         * c-common.c (c_common_reswords): Add __builtin_complex.
963         * c-common.h (RID_BUILTIN_COMPLEX): New.
965 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
967         * c-common.c (c_common_reswords): Add _Noreturn.
968         (keyword_is_function_specifier): Handle RID_NORETURN.
969         * c-common.h (RID_NORETURN): New.
971 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
973         * c-common.c (unsafe_conversion_p): New function. Check if it is
974         unsafe to convert an expression to the type.
975         (conversion_warning): Adjust, use unsafe_conversion_p.
976         * c-common.h (unsafe_conversion_p): New function declaration.
978 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
980         * c-common.h (c_finish_omp_atomic): Adjust prototype.
981         (c_finish_omp_taskyield): New prototype.
982         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
983         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
984         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
985         or RHS1 have side-effects, evaluate those too in the right spot,
986         if it is a decl and LHS is also a decl, error out if they
987         aren't the same.
988         (c_finish_omp_taskyield): New function.
989         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
990         * c-pragma.c (omp_pragmas): Add taskyield.
991         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
992         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
993         PRAGMA_OMP_CLAUSE_MERGEABLE.
995 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
997         * c-common.h (set_underlying_type): Remove parm name from
998         declaration.
1000 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
1002         * c-pretty-print.h: Search c-common.h in c-family.
1004 2011-07-22  Jason Merrill  <jason@redhat.com>
1006         PR c++/49793
1007         * c.opt (Wnarrowing): New.
1009         PR c++/30112
1010         * c-common.h: Declare c_linkage_bindings.
1011         * c-pragma.c (handle_pragma_redefine_extname): Use it.
1013         PR c++/49813
1014         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1015         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1016         as flag_isoc99 for 'restrict'.
1017         (pp_c_specifier_qualifier_list): Likewise for _Complex.
1019 2011-07-21  Ian Lance Taylor  <iant@google.com>
1021         PR middle-end/49705
1022         * c-common.c (c_disable_warnings): New static function.
1023         (c_enable_warnings): New static function.
1024         (c_fully_fold_internal): Change local unused_p to bool.  Call
1025         c_disable_warnings and c_enable_warnings rather than change
1026         c_inhibit_evaluation_warnings.
1028 2011-07-20  Jason Merrill  <jason@redhat.com>
1030         PR c++/6709 (DR 743)
1031         PR c++/42603 (DR 950)
1032         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1033         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1034         (CPP_DECLTYPE): New.
1035         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1037 2011-07-19  Richard Guenther  <rguenther@suse.de>
1039         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1040         * c-omp.c (c_finish_omp_for): Likewise.
1042 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
1044         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1045         body on the next line.
1047 2011-07-08  Jason Merrill  <jason@redhat.com>
1049         PR c++/45437
1050         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1052         PR c++/49673
1053         * c-common.c (c_apply_type_quals_to_decl): Don't check
1054         TYPE_NEEDS_CONSTRUCTING.
1056 2011-07-06  Richard Guenther  <rguenther@suse.de>
1058         * c-common.c (c_common_nodes_and_builtins):
1059         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1061 2011-07-05  Richard Guenther  <rguenther@suse.de>
1063         * c-common.c (c_common_nodes_and_builtins): Build all common
1064         tree nodes first.
1066 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
1068         * c-common.h (c_tree_chain_next): New static inline function.
1070         * c-common.c (check_builtin_function_arguments): Handle
1071         BUILT_IN_ASSUME_ALIGNED.
1073 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
1075         * c-common.c: Add sync_ or SYNC__ to builtin names.
1076         * c-omp.c: Add sync_ or SYNC__ to builtin names.
1078 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
1080         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1081         handler.
1082         (gen_pragma_handler): New union.
1083         (internal_pragma_handler): New type.
1084         (c_register_pragma_with_data)
1085         (c_register_pragma_with_expansion_and_data): New functions.
1087         * c-pragma.c (registered_pragmas, c_register_pragma_1)
1088         (c_register_pragma, c_register_pragma_with_expansion)
1089         (c_invoke_pragma_handler): Changed to work with
1090         internal_pragma_handler.
1091         (c_register_pragma_with_data)
1092         (c_register_pragma_with_expansion_and_data): New functions.
1094 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1096         * c-common.c: Include common/common-target.h.
1097         (handle_section_attribute): Use
1098         targetm_common.have_named_sections.
1099         * c-cppbuiltin.c: Include common/common-target.h.
1100         (c_cpp_builtins): Use targetm_common.except_unwind_info.
1102 2011-06-10  Richard Guenther  <rguenther@suse.de>
1104         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1105         to print a IDENTIFIER_NODE.
1107 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1108             Joseph Myers  <joseph@codesourcery.com>
1110         * c.opt (fbuilding-libgcc): New option.
1111         * c-cppbuiltin.c (c_cpp_builtins): Define
1112         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1114 2011-06-07  Jason Merrill  <jason@redhat.com>
1116         * c-common.c (max_tinst_depth): Lower default to 900.
1118         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1120 2011-06-07  Richard Guenther  <rguenther@suse.de>
1122         * c-common.c (c_common_nodes_and_builtins): Do not set
1123         size_type_node or call set_sizetype.
1125 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
1127         PR debug/49130
1128         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1129         type when using pointer comparison to compare types.
1131 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
1133         * c.opt: Add -Wdelete-non-virtual-dtor.
1134         * c-opts.c (c_common_handle_option): Include it in -Wall.
1136 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
1138         PR bootstrap/49190
1140         Revert:
1141         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1143         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1144         not tree_common.
1146 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
1148         PR c++/49165
1149         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1150         C++ don't call c_common_truthvalue_conversion on void type arms.
1152 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
1154         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1155         (stmt_list_stack): Define.
1156         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1157         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1159 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1161         * c-common.c (warning_candidate_p): Check for BLOCKs.
1163 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1165         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1166         not tree_common.
1168 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
1170         * c-common.c (def_fn_type): Remove extra va_end.
1172 2011-05-23  Jason Merrill  <jason@redhat.com>
1174         PR c++/48106
1175         * c-common.c (c_common_get_narrower): New.
1176         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1178 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
1180         * c-common.h (check_function_arguments): Tweak prototype of
1181         check_function_arguments.
1182         * c-common.c (check_function_arguments): Likewise.  Adjust
1183         calls to check_function_nonnull, check_function_format, and
1184         check_function_sentinel.
1185         (check_function_sentinel): Take a FUNCTION_TYPE rather than
1186         separate attributes and typelist arguments.  Use
1187         FOREACH_FUNCTION_ARGS to iterate over argument types.
1189 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
1191         * c-common.c (c_common_reswords): Reorder.
1192         * c-common.h (rid): Likewise.
1194 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1196         * c-common.c (def_fn_type): Don't call build_function_type, call
1197         build_function_type_array or build_varargs_function_type_array
1198         instead.
1199         (c_common_nodes_and_builtins): Likewise.
1201 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1203         * c-common.c (c_add_case_label): Omit the loc argument to
1204         build_case_label.
1205         * c-common.h (build_case_label): Remove.
1206         * c-semantics.c (build_case_label): Remove.
1208 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1210         * c-objc.h (objc_start_method_definition): Update prototype.
1211         * stub-objc.c (objc_start_method_definition): Add extra parameter.
1213 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1215         * c-common.c (check_main_parameter_types): Reindent.  Don't use
1216         TYPE_ARG_TYPES directly.
1217         (handle_nonnull_attribute): Likewise.
1218         (sync_resolve_params): Likewise.
1219         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
1220         to check_format_string.
1221         (handle_format_attribute): Likewise.
1222         (check_format_string): Take a function type to examine instead of
1223         a type list.  Use a function_arg_iterator to step through argument
1224         types.
1226 2011-05-04  Richard Guenther  <rguenther@suse.de>
1228         * c-common.c (fix_string_type): Use size_int for index type bounds.
1229         (start_fname_decls): Do not pass NULL to build_int_cst.
1230         (c_init_attributes): Likewise.
1231         * c-lex.c (c_lex_with_flags): Likewise.
1233 2011-04-27  Jason Merrill  <jason@redhat.com>
1235         * c-common.c (make_tree_vector_from_list): New.
1236         * c-common.h: Declare it.
1238 2011-04-26  Richard Guenther  <rguenther@suse.de>
1240         PR preprocessor/48248
1241         * c-ppoutput.c (maybe_print_line): Always optimize newlines
1242         for output size with -P.
1244 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
1246         * c-common.c (struct c_common_resword): Add __underlying_type.
1247         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1249 2011-04-20  Jim Meyering  <meyering@redhat.com>
1251         * c-format.c (init_dollar_format_checking): Remove useless
1252         if-before-free.
1254 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1256         * c-objc.h (objc_get_interface_ivars): Removed.
1257         (objc_detect_field_duplicates): New.
1258         * stub-objc.c: Likewise.
1260 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1262         * stub-objc.c (objc_declare_protocols): Renamed to
1263         objc_declare_protocol.
1264         * c-objc.h: Likewise.
1266 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1268         * stub-objc.c (objc_declare_class): Updated argument name.
1270 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1272         * c-common.h (c_common_init_ts): Declare.
1273         * c-common.c (c_common_init_ts): Define.
1275 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1277         * c-objc.h (objc_build_message_expr): Updated prototype.
1278         * stub-objc.c (objc_build_message_expr): Likewise.
1280 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1282         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1283         of cgraph_node.
1285 2011-04-11  Richard Guenther  <rguenther@suse.de>
1287         * c-common.c (complete_array_type): Build a range type of
1288         proper type.
1290 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
1292         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1293         (handle_type_generic_attribute): Likewise.
1295 2011-04-07  Jason Merrill  <jason@redhat.com>
1297         PR c++/48450
1298         * c-common.c (c_common_truthvalue_conversion): Don't ignore
1299         conversion from C++0x scoped enum.
1301 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1303         * c-target-def.h: New file.
1304         * c-target.def: New file.
1305         * c-target.h: New file.
1306         * c-common.c (targetcm): Don't define here.
1307         * c-common.h (default_handle_c_option): Declare.
1308         * c-format.c: Include c-target.h instead of target.h.
1309         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
1310         include tm.h.
1311         (default_handle_c_option): Move from targhooks.c.
1313 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
1315         PR preprocessor/48248
1316         * c-ppoutput.c (print): Add src_file field.
1317         (init_pp_output): Initialize it.
1318         (maybe_print_line): Don't optimize by adding up to 8 newlines
1319         if map->to_file and print.src_file are different file.
1320         (print_line): Update print.src_file.
1322 2011-03-25  Kai Tietz  <ktietz@redhat.com>
1324         * c-ada-spec.c (compare_comment): Use filename_cmp
1325         instead of strcmp for filename.
1327 2011-03-25  Jeff Law  <law@redhat.com>
1329         * c-family/c-common.c (def_fn_type): Add missing va_end.
1331 2011-03-25  Jason Merrill  <jason@redhat.com>
1333         * c.opt: Add -std=c++03.
1335 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
1337         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1339 2011-03-17  Kai Tietz
1341         PR target/12171
1342         * c-pretty-print.c (pp_c_specifier_qualifier_list):
1343         Display allowed attributes for function pointer types.
1344         (pp_c_attributes_display): New function to display
1345         attributes having affects_type_identity flag set to true.
1346         * c-pretty-print.h (pp_c_attributes_display): New prototype.
1348         * c-common.c (c_common_attribute_table):
1349         Add new element.
1350         (c_common_format_attribute_table): Likewise.
1352 2011-03-18  Jason Merrill  <jason@redhat.com>
1354         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1355         * c-common.h: Don't declare it here.
1356         * c-common.c: Or define it here.
1357         * c-opts.c (c_common_handle_option): Or set it here.
1359         PR c++/35315
1360         * c-common.c (handle_transparent_union_attribute): Don't
1361         make a duplicate type in C++.
1363 2011-03-15  Jason Merrill  <jason@redhat.com>
1365         * c-common.c (max_constexpr_depth): New.
1366         * c-common.h: Declare it.
1367         * c-opts.c (c_common_handle_option): Set it.
1368         * c.opt (fconstexpr-depth): New option.
1370 2011-03-11  Jason Merrill  <jason@redhat.com>
1372         * c-common.c (attribute_takes_identifier_p): Add missing const.
1374         PR c++/46803
1375         * c-common.c (attribute_takes_identifier_p): Assume that an
1376         unknown attribute takes an identifier.
1378 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
1380         PR c/47786
1381         * c-common.c (c_type_hash): Call list_length instead of iterating
1382         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
1384 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
1386         PR c/47809
1387         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1389 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
1391         * c.opt (fobjc-abi-version=) New.
1392         (fobjc-nilcheck): New.
1394 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
1396         PR c++/46890
1397         * c-common.h (keyword_is_decl_specifier): Declare.
1398         * c-common.c (keyword_is_decl_specifier): Define.
1399         (keyword_is_function_specifier): New function.
1401 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
1403         PR c/47473
1404         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1405         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1406         REAL_TYPE.
1408 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
1410         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1412 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
1414         PR pch/47430
1415         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1416         after init_c_lex if pch_file is set.
1418 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
1420         PR c++/43601
1421         * c.opt (-fkeep-inline-dllexport): New switch.
1423 2011-01-12  Richard Guenther  <rguenther@suse.de>
1425         PR middle-end/32511
1426         * c-common.c (handle_weak_attribute): Warn instead of error
1427         on declaring an inline function weak.
1429 2011-01-05  Tom Tromey  <tromey@redhat.com>
1431         * c-common.h (lvalue_error): Update.
1432         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
1433         not error.
1435 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1437         PR objc/47075
1438         * c-objc.h (objc_finish_message_expr): Added argument to
1439         prototype.
1441 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
1443         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1444         Use prototype_p.
1446 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1448         * c-objc.h (objc_maybe_warn_exceptions): New.
1449         * stub-objc.c (objc_maybe_warn_exceptions): New.
1451 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
1453         * c-common.h (readonly_error): Declare.
1454         * c-common.c (readonly_error): Define.
1456 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
1458         * c-common.h (invalid_indirection_error): Declare.
1459         * c-common.c (invalid_indirection_error): Define.
1461 2010-12-03  Richard Guenther  <rguenther@suse.de>
1463         PR c/46745
1464         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1465         (pp_c_unary_expression): Likewise.
1466         (pp_c_expression): Likewise.
1468 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1470         * c-common.h (objc_finish_function): New.
1471         (objc_non_volatilized_type): Removed.
1472         (objc_type_quals_match): Removed.
1473         * stub-objc.c (objc_finish_function): New.
1474         (objc_non_volatilized_type): Removed.
1475         (objc_type_quals_match): Removed.
1477 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
1479         * c-common.h (parse_optimize_options): Declare.
1480         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1481         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1483 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
1485         * c-opts.c (check_deps_environment_vars): Use getenv instead of
1486         GET_ENVIRONMENT.
1487         * c-pch.c (O_BINARY): Don't define here.
1488         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1490 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
1492         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1493         targetm.except_unwind_info.
1495 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1497         * c-opts.c (c_common_handle_option): Pass location to
1498         set_struct_debug_option.
1500 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1502         * c-common.c (visibility_options): Move from ../opts.c.
1503         * c-common.h (struct visibility_flags, visibility_options):
1504         Declare here.
1505         * c-opts.c (finish_options): Rename to c_finish_options.
1506         (c_common_init): Update call to finish_options.
1508 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
1510         PR objc/34033
1511         * c-lex.c (lex_string): Check that each string in an Objective-C
1512         string concat sequence starts with either one or zero '@', and
1513         that there are no spurious '@' signs at the end.
1515 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
1517         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1518         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1519         HANDLE_PRAGMA_VISIBILITY.
1520         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1521         HANDLE_PRAGMA_VISIBILITY): Don't define.
1522         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1524 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
1526         PR c++/16189
1527         PR c++/36888
1528         PR c++/45331
1529         * c-common.h (keyword_begins_type_specifier): Declare.
1530         (keyword_is_storage_class_specifier): Declare.
1531         (keyword_is_type_qualifier): Declare.
1532         * c-common.c (keyword_begins_type_specifier): New function.
1533         (keyword_is_storage_class_specifier): New function.
1534         (keyword_is_type_qualifier): Declare.
1536 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1538         PR c/46547
1539         * c-common.c (in_late_binary_op): Define.
1540         (c_common_truthvalue_conversion): Check in_late_binary_op before
1541         calling c_save_expr.
1542         * c-common.h (in_late_binary_op): Declare.
1544 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1546         * c-opts.c (c_common_handle_option): Update calls to
1547         set_struct_debug_option.
1549 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
1551         * c-common.h (objc_declare_protocols): Added additional argument.
1552         * stub-objc.c (objc_declare_protocol): Same change.
1554 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
1556         PR c/33193
1557         * c-common.h (build_real_imag_expr): Declare.
1558         * c-semantics.c (build_real_imag_expr): Define.
1560 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
1562         * c-opts.c (c_common_parse_file): Take no arguments.
1563         * c-common.h (c_common_parse_file): Update prototype.
1565 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
1567         PR c++/46401
1568         * c-common.c (warning_candidate_p): Don't track non-const calls
1569         or STRING_CSTs.
1571 2010-11-15  Ian Lance Taylor  <iant@google.com>
1573         * c-lex.c (init_c_lex): Set macro debug callbacks if
1574         flag_dump_go_spec is set.
1576 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1578         * c-common.h (objc_build_incr_expr_for_property_ref): New.
1579         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1581 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
1583         PR preprocessor/45038
1584         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1585         dialects.
1587 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
1589         * c-common.h (c_family_lang_mask): Declare.
1590         * c-opts.c (c_family_lang_mask): Make extern.
1591         * c-pragma.c (handle_pragma_diagnostic): Use
1592         control_warning_option.
1594 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
1596         * c-common.c (parse_optimize_options): Update call to
1597         decode_options.
1598         * c-common.h (c_common_handle_option): Update prototype.
1599         * c-opts.c (c_common_handle_option): Take location_t parameter and
1600         pass it to other functions.
1602 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
1604         * c-opts.c (warning_as_error_callback): Remove.
1605         (c_common_initialize_diagnostics): Don't call
1606         register_warning_as_error_callback.
1607         (c_common_handle_option): Handle -Werror=normalized= here.
1609 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
1611         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1612         in diagnostic.
1613         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1614         letter.
1615         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1616         Remove trailing '.' from diagnostics.
1617         * c.opt (Wwrite-strings_: Avoid '`' in help text.
1619 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
1621         * c-common.c (parse_optimize_options): Pass global_dc to
1622         decode_options.
1623         * c-opts.c (c_common_handle_option): Pass &global_options to
1624         set_Wstrict_aliasing.
1625         * c.opt (v): Don't mark Common or document here.
1627 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
1629         PR target/44981
1630         * c-format.c (format_type): New type gcc_objc_string_format_type.
1631         (valid_stringptr_type_p): New.
1632         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1633         (check_format_string): Pass expected type, use
1634         valid_stringptr_type_p (), check that the format string types are
1635         consistent with the format specification.
1636         (decode_format_attr): Warn if NSString is used outside objective-c.
1637         (format_types_orig): Add NSString.
1638         (format_name): New.
1639         (format_flags): New.
1640         (check_format_arg): Handle format strings requiring an external parser.
1641         first_target_format_type: New variable.
1642         (handle_format_attribute): Set up first_target_format_type, pass the
1643         expected format arg string type to check_format_string().
1644         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
1645         * stub-objc.c (objc_string_ref_type_p): New.
1646         (objc_check_format_arg): New.
1648 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
1650         Fixed using the Objective-C 2.0 dot-syntax with class names.
1651         * c-common.h (objc_build_class_component_ref): New.
1652         * stub-objc.c (objc_build_class_component_ref): New.
1654 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1656         * c.opt (Wproperty-assign-default): New option.
1658 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1660         Implemented -fobjc-std=objc1 flag.
1661         * c.opt (fobjc-std=objc1): New option.
1663 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
1665         Implemented format and noreturn attributes for Objective-C methods.
1666         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1667         attribute for Objective-C methods.
1669 2010-10-31  Jason Merrill  <jason@redhat.com>
1671         * c-common.c (conversion_warning, warn_for_collisions_1): Use
1672         EXPR_LOC_OR_HERE.
1674 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1676         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1677         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1678         (objc_add_property_declaration): Removed arguments for copies and
1679         ivar.
1680         (objc_build_getter_call): Renamed to
1681         objc_maybe_build_component_ref.
1682         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1683         (objc_is_property_ref): New.
1684         * c-common.c (c_common_reswords): Removed copies and ivar.
1685         * stub-objc.c (objc_add_property_declaration): Removed arguments
1686         for copies and ivar.
1687         (objc_build_getter_call): Renamed to
1688         objc_maybe_build_component_ref.
1689         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1690         (objc_is_property_ref): New.
1692 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
1693             Matthew Gingell  <gingell@adacore.com>
1695         * c-ada-spec.c (separate_class_package): New function.
1696         (pp_ada_tree_identifier): Prefix references to C++ classes with the
1697         name of their enclosing package.
1698         (print_ada_declaration): Use separate_class_package.
1700 2010-10-27  Jason Merrill  <jason@redhat.com>
1702         * c-common.c (c_common_reswords): Add __is_literal_type.
1703         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1705         * c-common.c (check_case_value): Remove special C++ code.
1707 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1709         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1710         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
1711         and RID_LAST_PATTR.
1712         (objc_add_property_declaration): Added additional arguments.
1713         (objc_property_attribute_kind): Removed.
1714         (objc_set_property_attr): Removed.
1715         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1716         copy and nonatomic.
1717         * stub-objc.c (objc_add_property_declaration): Added additional
1718         arguments.
1719         (objc_set_property_attr): Removed.
1721 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1723         * c-common.h (objc_add_property_variable): Renamed to
1724         objc_add_property_declaration.  Added location argument.
1725         * stub-objc.c (objc_add_property_variable): Same change.
1726         
1727 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
1729         * c-common.h (objc_maybe_printable_name): New.
1730         * stub-objc.c (objc_maybe_printable_name): New.
1732 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1733         Andrew Pinski <pinskia@gmail.com>
1735         * c-common.h (c_common_mark_addressable_vec): Declare.
1736         * c-common.c (c_common_mark_addressable_vec): New function.
1738 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1740         * c-common.h (objc_set_method_type): Removed.
1741         (objc_add_method_declaration): Added boolean argument.
1742         (objc_start_method_definition): Same change.
1743         (objc_build_method_signature): Same change.
1744         * stub-objc.c (objc_set_method_type): Removed.
1745         (objc_add_method_declaration): Added boolean argument.
1746         (objc_start_method_definition): Same change.
1747         (objc_build_method_signature): Same change.
1749 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1751         * c-common.h (finish_file): Removed.
1752         (objc_write_global_declarations): New.
1753         * c-opts.c (c_common_parse_file): Do not call finish_file.
1754         * stub-objc.c (objc_write_global_declarations): New.
1756 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1758         Implemented parsing @synthesize and @dynamic for
1759         Objective-C/Objective-C++.
1760         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1761         (objc_add_synthesize_declaration): New.
1762         (objc_add_dynamic_declaration): New.
1763         * c-common.c (c_common_reswords): Add synthesize and dynamic.
1764         * stub-objc.c (objc_add_synthesize_declaration): New.
1765         (objc_add_dynamic_declaration): New.
1767 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1769         PR target/46041
1770         * c-cppbuiltin.c (mode_has_fma): Move function here from
1771         builtins.c.  Don't use the fma optab, instead just use the
1772         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1773         using -save-temps.
1775 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1777         Merge from 'apple/trunk' branch on FSF servers.
1779         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
1781         Radar 4330422
1782         * c-common.h (objc_non_volatilized_type): New declaration
1783         * stub-objc.c (objc_non_volatilized_type): New stub.
1785 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1787         Merge from 'apple/trunk' branch on FSF servers.
1789         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1791         Radar 4133425
1792         * c-common.h (objc_diagnose_private_ivar): New decl.
1793         * stub-objc.c (objc_diagnose_private_ivar): New stub.
1795 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
1797         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1798         * c-common.h (enum rid): Add RID_AT_PACKAGE.
1799         (objc_ivar_visibility_kind): New enum.
1800         (objc_set_visibility): Adjust prototype to use visibility enum.
1801         * stub-objc.c (objc_set_visibility): Adjust stub to use
1802         visibility enum.
1804 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1806         * c-cppbuiltin.c (builtin_define_float_constants): Emit
1807         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1808         has the appropriate fma builtins.
1809         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1811 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
1813         merge from FSF apple 'trunk' branch.
1814         2006 Fariborz Jahanian <fjahanian@apple.com>
1816         Radars 4436866, 4505126, 4506903, 4517826
1817         * c-common.c (c_common_resword): Define @property and its attributes.
1818         * c-common.h: Define property attribute enum entries.
1819         (OBJC_IS_PATTR_KEYWORD): New.
1820         (objc_property_attribute_kind): New enum.
1821         Declare objc_set_property_attr (), objc_add_property_variable (),
1822         objc_build_getter_call () and objc_build_setter_call ().
1823         * stub-objc.c (objc_set_property_attr): New stub.
1824         (objc_add_property_variable): Likewise.
1825         (objc_build_getter_call): Likewise.
1826         (objc_build_setter_call) Likewise.
1828 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
1830         merge from FSF apple 'trunk' branch.
1831         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1833         Radar 3803157 (method attributes)
1834         * c-common.c (handle_deprecated_attribute): Recognize
1835         objc methods as valid declarations.
1836         * c-common.h: Declare objc_method_decl ().
1837         * stub-objc.c (objc_method_decl): New stub.
1839 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
1841         * c-common.c (parse_optimize_options): Call
1842         decode_cmdline_options_to_array_default_mask before
1843         decode_options.  Update arguments to decode_options.
1844         * c-common.h (c_common_init_options_struct): Declare.
1845         * c-opts.c (c_common_init_options_struct): New.  Split out from
1846         c_common_init_options.
1848 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1850         Implemented fast enumeration for Objective-C.
1851         * c-common.h (objc_finish_foreach_loop): New.
1852         * stub-objc.c (objc_finish_foreach_loop): New.
1854 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
1856         * c-common.h (struct diagnostic_context): Don't declare here.
1857         (c_common_initialize_diagnostics): Declare using
1858         diagnostic_context typedef.
1859         * c-opts.c (c_common_handle_option): Pass global_dc to
1860         handle_generated_option.
1862 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
1864         * c-opts.c (c_common_handle_option): Pass &global_options_set to
1865         handle_generated_option.
1867 2010-10-03  Ian Lance Taylor  <iant@google.com>
1869         * c.opt (-fplan9-extensions): New option.
1871 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1873         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1874         Remove.
1875         (c_cpp_builtins): Call functions from cppbuiltin.c instead
1876         of duplicating code.
1878 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
1880         * c-common.c: Add two new entries for @optional
1881         and @required keywords.
1883         merge from FSF 'apple/trunk' branch.
1884         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
1886         Radar 4386773
1887         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1888         objective-c keywords.
1889         (objc_set_method_opt): New declaration.
1890         * stub-objc.c (objc_set_method_opt): New stub.
1892 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
1894         * c-common.c (handle_optimize_attribute): Pass &global_options to
1895         cl_optimization_save and cl_optimization_restore.
1896         * c-opts.c (c_common_handle_option): Pass &global_options to
1897         handle_generated_option.
1898         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1899         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1900         &global_options to cl_optimization_restore.
1902 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1904         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1905         Objective-C/Objective-C++ keywords.
1907 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1909         Merge from 'apple/trunk' branch on FSF servers.
1911         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
1913         Radar 4281748
1914         * c-common.h (objc_check_global_decl): New declaration.
1915         * stub-objc.c (objc_check_global_decl): New stub.
1917 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1919         * c.opt: Don't use VarExists.
1921 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1923         * c-common.c (c_cpp_error): Update names of diagnostic_context
1924         members.
1925         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1926         cl_optimization members.
1927         * c-opts.c (warning_as_error_callback, c_common_handle_option,
1928         sanitize_cpp_opts, finish_options): Update names of cpp_options
1929         members.
1931 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1933         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
1934         (objc_is_reserved_word): Removed.
1935         * c-common.c: Updated comments.
1936         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1937         objc_is_reserved_word.
1938         * stub-objc.c (objc_is_reserved_word): Removed.
1940 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1942         * c-common.h (objc_add_method_declaration): Adjust prototype to
1943         include attributes.
1944         (objc_start_method_definition): Likewise.
1945         (objc_build_keyword_decl): Likewise.
1946         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1947         (objc_start_method_definition): Likewise.
1948         (objc_build_keyword_decl): Likewise.
1950 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1952         * c-common.h (objc_start_class_interface): Adjust prototype.
1953         (objc_start_category_interface): Likewise.
1954         (objc_start_protocol): Likewise.
1955         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1956         (objc_start_class_interface): Likewise.
1957         (objc_start_category_interface): Likewise.
1959 2010-09-27  Ian Lance Taylor  <iant@google.com>
1961         * c-common.c (c_common_attribute_table): Add no_split_stack.
1962         (handle_no_split_stack_attribute): New static function.
1964 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1966         Merge from 'apple/trunk' branch on FSF servers.
1968         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
1970         Radar 4229905
1971         * c-common.h (objc_have_common_type): New declaration.
1972         * stub-objc.c (objc_have_common_type): New stub.
1974         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
1976         Radar 4154928
1977         * c-common.h (objc_common_type): New prototype.
1978         * stub-objc.c (objc_common_type): New stub.
1980 2010-09-24  Jan Hubicka  <jh@suse.cz>
1982         * c-common.c (handle_leaf_attribute): New function.
1983         (struct attribute_spec c_common_att): Add leaf.
1985 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1987         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1988         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1989         -dump, -dump=, -imacros, -imacros=, -include, -include=,
1990         -include-barrier, -include-directory, -include-directory=,
1991         -include-directory-after, -include-directory-after=,
1992         -include-prefix, -include-prefix=, -include-with-prefix,
1993         -include-with-prefix=, -include-with-prefix-after,
1994         -include-with-prefix-after=, -include-with-prefix-before,
1995         -include-with-prefix-before=, -no-integrated-cpp,
1996         -no-line-commands, -no-standard-includes, -no-warnings, -output,
1997         -output=, -pedantic, -pedantic-errors, -preprocess,
1998         -print-missing-file-dependencies, -trace-includes, -traditional,
1999         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2000         -user-dependencies, -verbose, -write-dependencies,
2001         -write-user-dependencies, no-integrated-cpp, traditional): New.
2003 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2005         PR objc/23710
2006         * c-common.h (objc_start_method_definition): Return bool instead
2007         of void.
2008         * stub-objc.c (objc_start_method_definition): Return bool instead
2009         of void.
2011 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2013         PR objc/25965
2014         * c-common.h (objc_get_interface_ivars): New declaration.
2015         * stub-objc.c (objc_get_interface_ivars): New stub.
2017 2010-09-15  Ian Lance Taylor  <iant@google.com>
2019         * c-common.c (parse_optimize_options): Do not capitalize warning
2020         messages.  Remove period at end of warning message.
2022 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2024         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2025         (handle_alias_attribute): ... here.
2026         (handle_ifunc_attribute): New.
2028 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
2030         * c-common.h (do_warn_double_promotion): Declare.
2031         * c-common.c (do_warn_double_promotion): Define.
2033 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
2035         * c.opt (Wdouble-promotion): New.
2037 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
2039         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2040         fvtable-thunks, fxref): Mark no longer supported in help text.
2042 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
2044         * c.opt (Wimport, fall-virtual, falt-external-templates,
2045         fdefault-inline, fenum-int-equiv, fexternal-templates,
2046         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2047         fname-mangling-version-, fnew-abi, fnonnull-objects,
2048         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2049         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2050         applicable.
2051         (fhandle-exceptions): Mark with Alias and Warn.
2052         * c-opts.c (c_common_handle_option): Don't handle options marked
2053         as ignored.
2055 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
2057         * c.opt (Wcomments, Werror-implicit-function-declaration,
2058         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2059         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2060         aliases.
2061         * c-common.c (option_codes): Use OPT_Wcomment instead of
2062         OPT_Wcomments.
2063         * c-opts.c (warning_as_error_callback, c_common_handle_option):
2064         Don't handle options marked as aliases.
2066 2010-08-25  Richard Guenther  <rguenther@suse.de>
2068         * c-common.c (c_common_get_alias_set): Remove special
2069         handling for pointers.
2071 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2073         * c-common.c: Use FOR_EACH_VEC_ELT.
2074         * c-gimplify.c: Likewise.
2075         * c-pragma.c: Likewise.
2077 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2079         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
2080         RejectDriver.
2081         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
2082         RejectDriver.
2083         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2084         instead of OPT_MDX and OPT_MMDX.
2086 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2088         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2090 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
2092         * c.opt (MD, MMD): Change to MDX and MMDX.
2093         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2095 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
2097         * c-opts.c (c_common_handle_option): Call handle_generated_option
2098         instead of handle_option.
2100 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
2102         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2103         (maybe_apply_renaming_pragma): Delete unneeded declarations.
2105 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
2107         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
2108         (pending_redefine_extname): Change type to a VEC.
2109         (add_to_renaming_pragma_list): Update for new type of
2110         pending_redefine_extname.
2111         (maybe_apply_renaming_pragma): Likewise.
2113 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
2115         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2116         visited.
2117         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2118         decide whether a type has already been declared/seen.
2119         Do not go to the original type.
2120         (dump_nested_types): New parameter forward.
2121         Generate forward declaration if needed and mark type as visited.
2122         (print_ada_declaration): Call dump_nested_types if not already done.
2123         Mark types as visited.
2125 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
2127         * c.opt (-print-pch-checksum): Remove option.
2128         * c-opts.c (c_common_handle_option): Don't handle
2129         OPT_print_pch_checksum.
2131 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2133         * c-common.h (c_common_handle_option): Update prototype and return
2134         value type.
2135         * c-opts.c (c_common_handle_option): Update prototype and return
2136         value type.  Update calls to handle_option and
2137         enable_warning_as_error.
2139 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2141         PR c/45079
2142         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2144 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2146         * c-common.h (c_common_missing_argument): Remove.
2147         * c-opts.c (c_common_missing_argument): Remove.
2148         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2149         idirafter, imacros, include, isysroot, isystem, iquote): Add
2150         MissingArgError.
2151         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2153 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2155         * c-common.h (c_common_option_lang_mask,
2156         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2157         New.
2158         (c_common_init_options): Update prototype.
2159         * c-opts.c (c_common_option_lang_mask): New.
2160         (c_common_initialize_diagnostics): Split out of
2161         c_common_init_options.
2162         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2163         New.
2164         (c_common_init_options): Update prototype.  Use decoded options in
2165         search for -lang-asm.
2167 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2169         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2170         * c-format.c: Likewise.
2172 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2174         * c-common.h: Include diagnostic-core.h. Error if already
2175         included.
2176         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2178 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2180         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2181         Do not include expr.h
2182         (vector_mode_valid_p): Move here.
2184 2010-06-21  DJ Delorie  <dj@redhat.com>
2186         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2187         allow these pragmas anywhere.
2189 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
2191         PR bootstrap/44509
2192         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2193         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2194         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2195         ggc_strdup instead of xstrdup.
2197 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
2199         * c-cppbuiltin.c: Include cpp-id-data.h.
2200         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2201         (lazy_hex_fp_value): New function.
2202         (builtin_define_with_hex_fp_value): Provide definitions lazily.
2204 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2206         * c-gimplify.c: Do not include tree-flow.h
2208 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2210         PR other/44034
2211         * c-common.c: Rename targetm member:
2212         targetm.enum_va_list -> targetm.enum_va_list_p
2214 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
2216         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2218 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
2220         * c-cppbuiltin.c: Do not include except.h.
2222 2010-06-24  Andi Kleen  <ak@linux.intel.com>
2224         * c-common.c (warn_for_omitted_condop): New.
2225         * c-common.h (warn_for_omitted_condop): Add prototype.
2227 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
2229         * c.opt (lang-objc): Remove.
2230         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2232 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
2234         * c-opts.c: Include "tm_p.h".
2236 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
2238         * c-common.c (parse_optimize_options): Update call to
2239         decode_options.
2241 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2243         * c-common.c (record_types_used_by_current_var_decl): Adjust for
2244         new type of types_used_by_cur_var_decl.
2246 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
2248         PR bootstrap/44512
2249         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2250         for C++ standard compliance.
2252 2010-06-16  Jason Merrill  <jason@redhat.com>
2254         * c.opt: Add -Wnoexcept.
2256 2010-06-16  Richard Guenther  <rguenther@suse.de>
2258         PR c/44555
2259         * c-common.c (c_common_truthvalue_conversion): Remove
2260         premature and wrong optimization concering ADDR_EXPRs.
2262 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
2264         * c-ada-spec.c (dump_sloc): Remove column info.
2265         (is_simple_enum): New function.
2266         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2267         enum types when relevant.
2269 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2271         * c-common.c (conversion_warning): Warn at expression
2272         location.
2274 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
2276         * c-opts.c (c_common_handle_option): Don't handle
2277         OPT_fshow_column.
2279 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2281         * c-pragma.c (push_alignment): Use typed GC allocation.
2282         (handle_pragma_push_options): Likewise.
2284         * c-common.c (parse_optimize_options): Likewise.
2286         * c-common.h (struct sorted_fields_type): Add variable_size GTY
2287         option.
2289 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
2291         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2292         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2293         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2294         flag_signed_bitfields, warn_strict_null_sentinel,
2295         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2296         flag_gen_declaration, flag_no_gnu_keywords,
2297         flag_implement_inlines, flag_implicit_templates,
2298         flag_implicit_inline_templates, flag_optional_diags,
2299         flag_elide_constructors, flag_default_inline, flag_rtti,
2300         flag_conserve_space, flag_access_control, flag_check_new,
2301         flag_new_for_scope, flag_weak, flag_working_directory,
2302         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2303         flag_enforce_eh_specs, flag_threadsafe_statics,
2304         flag_pretty_templates): Remove.
2305         * c-common.h (flag_preprocess_only, flag_nil_receivers,
2306         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2307         flag_replace_objc_classes, flag_undef, flag_no_builtin,
2308         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2309         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2310         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2311         flag_no_gnu_keywords, flag_implement_inlines,
2312         flag_implicit_templates, flag_implicit_inline_templates,
2313         flag_optional_diags, flag_elide_constructors, flag_default_inline,
2314         flag_rtti, flag_conserve_space, flag_access_control,
2315         flag_check_new, flag_new_for_scope, flag_weak,
2316         flag_working_directory, flag_use_cxa_atexit,
2317         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2318         flag_threadsafe_statics, flag_pretty_templates,
2319         warn_strict_null_sentinel): Remove.
2320         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2321         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2322         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2323         fimplicit-inline-templates, fimplicit-templates,
2324         flax-vector-conversions, fms-extensions, fnil-receivers,
2325         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2326         frtti, fshort-double, fshort-enums, fshort-wchar,
2327         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2328         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2329         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2330         gen-decls, undef): Use Var.
2331         (fdefault-inline, foptional-diags): Document as doing nothing.
2332         * c-opts.c (c_common_handle_option): Remove cases for options now
2333         using Var.  Mark ignored options as such.
2335 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
2337         * c-common.c: Moved to here from parent directory.
2338         * c-common.def: Likewise.
2339         * c-common.h: Likewise.
2340         * c-cppbuiltin.c: Likewise.
2341         * c-dump.c: Likewise.
2342         * c-format.c: Likewise.
2343         * c-format.h : Likewise.
2344         * c-gimplify.c: Likewise.
2345         * c-lex.c: Likewise.
2346         * c-omp.c: Likewise.
2347         * c.opt: Likewise.
2348         * c-opts.c: Likewise.
2349         * c-pch.c: Likewise.
2350         * c-ppoutput.c: Likewise.
2351         * c-pragma.c: Likewise.
2352         * c-pragma.h: Likewise.
2353         * c-pretty-print.c: Likewise.
2354         * c-pretty-print.h: Likewise.
2355         * c-semantics.c: Likewise.
2356         * stub-objc.c: Likewise.
2358         * c-common.c: Include gt-c-family-c-common.h.
2359         * c-pragma.c: Include gt-c-family-c-pragma.h.
2361 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2363 Copying and distribution of this file, with or without modification,
2364 are permitted in any medium without royalty provided the copyright
2365 notice and this notice are preserved.