opts-common.c (handle_option, [...]): Add diagnostic_context parameter.
[gcc.git] / gcc / c-family / ChangeLog
index 96caffcc6896364172b8f17d059d8acab3512c9d..efe6b54a984a17021063ea33b41da6d8ef04602b 100644 (file)
@@ -1,3 +1,357 @@
+2010-10-05  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.h (struct diagnostic_context): Don't declare here.
+       (c_common_initialize_diagnostics): Declare using
+       diagnostic_context typedef.
+       * c-opts.c (c_common_handle_option): Pass global_dc to
+       handle_generated_option.
+
+2010-10-04  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-opts.c (c_common_handle_option): Pass &global_options_set to
+       handle_generated_option.
+
+2010-10-03  Ian Lance Taylor  <iant@google.com>
+
+       * c.opt (-fplan9-extensions): New option.
+
+2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
+       Remove.
+       (c_cpp_builtins): Call functions from cppbuiltin.c instead
+       of duplicating code.
+
+2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * c-common.c: Add two new entries for @optional
+       and @required keywords.
+
+       merge from FSF 'apple/trunk' branch.
+       2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
+
+       Radar 4386773
+       * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
+       objective-c keywords.
+       (objc_set_method_opt): New declaration.
+       * stub-objc.c (objc_set_method_opt): New stub.
+       
+2010-09-30  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.c (handle_optimize_attribute): Pass &global_options to
+       cl_optimization_save and cl_optimization_restore.
+       * c-opts.c (c_common_handle_option): Pass &global_options to
+       handle_generated_option.
+       * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
+       (handle_pragma_pop_options, handle_pragma_reset_options): Pass
+       &global_options to cl_optimization_restore.
+
+2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
+       Objective-C/Objective-C++ keywords.
+
+2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       Merge from 'apple/trunk' branch on FSF servers. 
+       
+       2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
+
+       Radar 4281748
+       * c-common.h (objc_check_global_decl): New declaration.
+       * stub-objc.c (objc_check_global_decl): New stub.
+
+2010-09-29  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt: Don't use VarExists.
+
+2010-09-29  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.c (c_cpp_error): Update names of diagnostic_context
+       members.
+       * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
+       cl_optimization members.
+       * c-opts.c (warning_as_error_callback, c_common_handle_option,
+       sanitize_cpp_opts, finish_options): Update names of cpp_options
+       members.
+
+2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
+       (objc_is_reserved_word): Removed.
+       * c-common.c: Updated comments.
+       * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
+       objc_is_reserved_word.
+       * stub-objc.c (objc_is_reserved_word): Removed.
+
+2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * c-common.h (objc_add_method_declaration): Adjust prototype to 
+       include attributes.
+       (objc_start_method_definition): Likewise.
+       (objc_build_keyword_decl): Likewise.
+       * stub-objc.c:(objc_add_method_declaration): Handle attributes.
+       (objc_start_method_definition): Likewise.
+       (objc_build_keyword_decl): Likewise.
+
+2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * c-common.h (objc_start_class_interface): Adjust prototype.
+       (objc_start_category_interface): Likewise.
+       (objc_start_protocol): Likewise.
+       * stub-objc.c (objc_start_protocol): Adjust for extra argument.
+       (objc_start_class_interface): Likewise.
+       (objc_start_category_interface): Likewise.
+
+2010-09-27  Ian Lance Taylor  <iant@google.com>
+
+       * c-common.c (c_common_attribute_table): Add no_split_stack.
+       (handle_no_split_stack_attribute): New static function.
+
+2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       Merge from 'apple/trunk' branch on FSF servers. 
+
+       2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
+
+       Radar 4229905   
+       * c-common.h (objc_have_common_type): New declaration.
+       * stub-objc.c (objc_have_common_type): New stub.
+
+       2005-06-22  Ziemowit Laski  <zlaski@apple.com>
+
+       Radar 4154928
+       * c-common.h (objc_common_type): New prototype.
+       * stub-objc.c (objc_common_type): New stub.     
+
+2010-09-24  Jan Hubicka  <jh@suse.cz>
+
+       * c-common.c (handle_leaf_attribute): New function.
+       (struct attribute_spec c_common_att): Add leaf.
+
+2010-09-22  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
+       -comments-in-macros, -define-macro, -define-macro=, -dependencies,
+       -dump, -dump=, -imacros, -imacros=, -include, -include=,
+       -include-barrier, -include-directory, -include-directory=,
+       -include-directory-after, -include-directory-after=,
+       -include-prefix, -include-prefix=, -include-with-prefix,
+       -include-with-prefix=, -include-with-prefix-after,
+       -include-with-prefix-after=, -include-with-prefix-before,
+       -include-with-prefix-before=, -no-integrated-cpp,
+       -no-line-commands, -no-standard-includes, -no-warnings, -output,
+       -output=, -pedantic, -pedantic-errors, -preprocess,
+       -print-missing-file-dependencies, -trace-includes, -traditional,
+       -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
+       -user-dependencies, -verbose, -write-dependencies,
+       -write-user-dependencies, no-integrated-cpp, traditional): New.
+
+2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR objc/23710
+       * c-common.h (objc_start_method_definition): Return bool instead
+       of void.
+       * stub-objc.c (objc_start_method_definition): Return bool instead
+       of void.
+
+2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR objc/25965
+       * c-common.h (objc_get_interface_ivars): New declaration.
+       * stub-objc.c (objc_get_interface_ivars): New stub.
+
+2010-09-15  Ian Lance Taylor  <iant@google.com>
+
+       * c-common.c (parse_optimize_options): Do not capitalize warning
+       messages.  Remove period at end of warning message.
+
+2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
+       (handle_alias_attribute): ... here.
+       (handle_ifunc_attribute): New.
+
+2010-09-06  Mark Mitchell  <mark@codesourcery.com>
+
+       * c-common.h (do_warn_double_promotion): Declare.
+       * c-common.c (do_warn_double_promotion): Define.
+
+2010-09-05  Mark Mitchell  <mark@codesourcery.com>
+
+       * c.opt (Wdouble-promotion): New.
+
+2010-09-02  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
+       fvtable-thunks, fxref): Mark no longer supported in help text.
+
+2010-09-02  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (Wimport, fall-virtual, falt-external-templates,
+       fdefault-inline, fenum-int-equiv, fexternal-templates,
+       fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
+       fname-mangling-version-, fnew-abi, fnonnull-objects,
+       foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
+       fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
+       applicable.
+       (fhandle-exceptions): Mark with Alias and Warn.
+       * c-opts.c (c_common_handle_option): Don't handle options marked
+       as ignored.
+
+2010-09-02  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (Wcomments, Werror-implicit-function-declaration,
+       ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
+       std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
+       aliases.
+       * c-common.c (option_codes): Use OPT_Wcomment instead of
+       OPT_Wcomments.
+       * c-opts.c (warning_as_error_callback, c_common_handle_option):
+       Don't handle options marked as aliases.
+
+2010-08-25  Richard Guenther  <rguenther@suse.de>
+
+       * c-common.c (c_common_get_alias_set): Remove special
+       handling for pointers.
+
+2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-common.c: Use FOR_EACH_VEC_ELT.
+       * c-gimplify.c: Likewise.
+       * c-pragma.c: Likewise.
+
+2010-08-16  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
+       RejectDriver.
+       (MMDX): Change back to MMD.  Mark NoDriverArg instead of
+       RejectDriver.
+       * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
+       instead of OPT_MDX and OPT_MMDX.
+
+2010-08-16  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
+
+2010-08-12  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (MD, MMD): Change to MDX and MMDX.
+       * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
+
+2010-08-11  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-opts.c (c_common_handle_option): Call handle_generated_option
+       instead of handle_option.
+
+2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
+       (maybe_apply_renaming_pragma): Delete unneeded declarations.
+
+2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
+       (pending_redefine_extname): Change type to a VEC.
+       (add_to_renaming_pragma_list): Update for new type of
+       pending_redefine_extname.
+       (maybe_apply_renaming_pragma): Likewise.
+
+2010-08-04  Arnaud Charlet  <charlet@adacore.com>
+
+       * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
+       visited.
+       (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
+       decide whether a type has already been declared/seen.
+       Do not go to the original type.
+       (dump_nested_types): New parameter forward.
+       Generate forward declaration if needed and mark type as visited.
+       (print_ada_declaration): Call dump_nested_types if not already done.
+       Mark types as visited.
+
+2010-08-03  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (-print-pch-checksum): Remove option.
+       * c-opts.c (c_common_handle_option): Don't handle
+       OPT_print_pch_checksum.
+
+2010-07-27  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.h (c_common_handle_option): Update prototype and return
+       value type.
+       * c-opts.c (c_common_handle_option): Update prototype and return
+       value type.  Update calls to handle_option and
+       enable_warning_as_error.
+
+2010-07-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/45079
+       * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
+
+2010-07-27  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.h (c_common_missing_argument): Remove.
+       * c-opts.c (c_common_missing_argument): Remove.
+       * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
+       idirafter, imacros, include, isysroot, isystem, iquote): Add
+       MissingArgError.
+       * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
+
+2010-07-27  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.h (c_common_option_lang_mask,
+       c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
+       New.
+       (c_common_init_options): Update prototype.
+       * c-opts.c (c_common_option_lang_mask): New.
+       (c_common_initialize_diagnostics): Split out of
+       c_common_init_options.
+       (accept_all_c_family_options, c_common_complain_wrong_lang_p):
+       New.
+       (c_common_init_options): Update prototype.  Use decoded options in
+       search for -lang-asm.
+
+2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
+       * c-format.c: Likewise.
+
+2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * c-common.h: Include diagnostic-core.h. Error if already
+       included.
+       * c-semantics.c: Do not define GCC_DIAG_STYLE here.
+
+2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
+       Do not include expr.h
+       (vector_mode_valid_p): Move here.
+
+2010-06-21  DJ Delorie  <dj@redhat.com>
+
+       * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
+       allow these pragmas anywhere.
+
+2010-06-14  Jakub Jelinek  <jakub@redhat.com>
+
+       PR bootstrap/44509
+       * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
+       (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
+       (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
+       ggc_strdup instead of xstrdup.
+
+2010-06-10  Jakub Jelinek  <jakub@redhat.com>
+
+       * c-cppbuiltin.c: Include cpp-id-data.h.
+       (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
+       (lazy_hex_fp_value): New function.
+       (builtin_define_with_hex_fp_value): Provide definitions lazily.
+
+2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * c-gimplify.c: Do not include tree-flow.h
+
 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        PR other/44034