diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-05-14 13:30:32 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-05-14 13:30:32 +0000 |
commit | f2bc201f53e2b8b9b9d072b41c5099ee825686f4 (patch) | |
tree | fc0863eee154e2d3cc964810f8b77726fbaa7a94 /gcc/ada | |
parent | e384e6b59c074ac936f0f3212ca33fe40f3d82f5 (diff) | |
download | gcc-f2bc201f53e2b8b9b9d072b41c5099ee825686f4.zip gcc-f2bc201f53e2b8b9b9d072b41c5099ee825686f4.tar.gz gcc-f2bc201f53e2b8b9b9d072b41c5099ee825686f4.tar.bz2 |
re PR c/53063 (encode group options in the .opt files)
2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 53063
c-family/
* c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
Wreorder): Use LangEnabledBy.
* c-opts.c (c_common_handle_option): Do not enable them
explicitly. Call lang-specific generated functions.
(c_common_post_options): Do not set them here.
gcc/
* doc/options.texi: (LangEnabledBy): Document it.
* optc-gen.awk: Handle LangEnabledBy.
* opth-gen.awk: Generate declaration for lang-specific functions.
* opt-read.awk: Record lang numbers.
* opt-functions.awk (flag_set_p): Ignore the arguments of flags.
(lang_sanitized_name): New.
ada/
* gcc-interface/misc.c: Include opts.h and options.h before tm.h.
(gnat_handle_option): Call lang-specific generated function.
fortran/
* options.c (gfc_handle_option): Call lang-specific generated function.
From-SVN: r187462
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/gcc-interface/misc.c | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 2f623f9..63039c9 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> + + PR 53063 + * gcc-interface/misc.c: Include opts.h and options.h before tm.h. + (gnat_handle_option): Call lang-specific generated function. + 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> * gcc-interface/lang.opt (I): Comment out help text with no effect. diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c index ad15f67..f2002f5 100644 --- a/gcc/ada/gcc-interface/misc.c +++ b/gcc/ada/gcc-interface/misc.c @@ -26,6 +26,8 @@ #include "config.h" #include "system.h" #include "coretypes.h" +#include "opts.h" +#include "options.h" #include "tm.h" #include "tree.h" #include "diagnostic.h" @@ -36,8 +38,6 @@ #include "toplev.h" #include "langhooks.h" #include "langhooks-def.h" -#include "opts.h" -#include "options.h" #include "plugin.h" #include "real.h" #include "function.h" /* For pass_by_reference. */ @@ -153,6 +153,10 @@ gnat_handle_option (size_t scode, const char *arg ATTRIBUTE_UNUSED, int value, gcc_unreachable (); } + Ada_handle_option_auto (&global_options, &global_options_set, + scode, arg, value, + gnat_option_lang_mask (), kind, + loc, handlers, global_dc); return true; } |