diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 10:12:36 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 10:12:36 +0000 |
commit | 1f3db819ff589fec50544ce334ae0200afade36f (patch) | |
tree | dbd0e72df35da905dec3347904aaa7d7fac6dd9d /gcc/langhooks.h | |
parent | 4bb63bc871bf9102c57db32f7b15e9c0ace88c10 (diff) | |
download | gcc-1f3db819ff589fec50544ce334ae0200afade36f.tar.gz |
2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 40989
* doc/invoke.texi (Wimplicit): Document as C only.
* opts.c (common_handle_option): Add argument kind.
(handle_option): Rename as read_cmdline_option. Factor out code to...
(handle_option): ... here. New.
(handle_options): Rename as read_cmdline_options.
(decode_options): Update call.
(set_option): Use option index instead of option pointer. Classify
diagnostics correctly.
(enable_warning_as_error): Call handle_option.
* opts.h (set_option): Update declaration.
(handle_option): Declare.
* langhooks.h (struct lang_hooks): Add argument kind to
handle_option.
* c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
* c-opts.c (set_Wimplicit): Delete.
(c_family_lang_mask): New static constant.
(c_common_handle_option): Add argument kind. Use handle_option
instead of set_Wimplicit.
(c_common_post_options): warn_implicit and warn_implicit_int
are disabled by default.
* c-common.c (warn_implicit): Do not define here.
* c-common.h (warn_implicit): Do not declare here.
(c_common_handle_option): Update declaration.
* lto-opts.c (lto_reissue_options): Update call to set_option.
java/
* lang.c (java_handle_option): Add argument kind.
fortran/
* options.c (gfc_handle_option): Add argument kind.
* gfortran.h (gfc_handle_option): Update declaration.
ada/
* gcc-interface/misc.c (gnat_handle_option): Add argument kind.
testsuite/
* gcc.dg/pr40989.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159102 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r-- | gcc/langhooks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h index faac14af859..ce3bd03b949 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -283,7 +283,7 @@ struct lang_hooks Return 1 if the switch is valid, 0 if invalid, and -1 if it's valid and should not be treated as language-independent too. */ - int (*handle_option) (size_t code, const char *arg, int value); + int (*handle_option) (size_t code, const char *arg, int value, int kind); /* Return false to use the default complaint about a missing argument, otherwise output a complaint and return true. */ |