diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-05-11 12:23:50 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-05-11 12:23:50 +0000 |
commit | 7d5a5747fc5ffbd86d1da0e2cff9823f0446a907 (patch) | |
tree | 1a38b4f6902dc5e5cc35971539a25051202efa2e /gcc/c-family | |
parent | 319e6439f592285e7d931c47285c363cca113788 (diff) | |
download | gcc-7d5a5747fc5ffbd86d1da0e2cff9823f0446a907.zip gcc-7d5a5747fc5ffbd86d1da0e2cff9823f0446a907.tar.gz gcc-7d5a5747fc5ffbd86d1da0e2cff9823f0446a907.tar.bz2 |
re PR c/53063 (encode group options in the .opt files)
2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 53063
gcc/
* doc/options.texi (EnabledBy): Document
* opts.c: Include opts.h and options.h before tm.h.
(finish_options): Do not handle some sub-options here...
(common_handle_option): ... instead call common_handle_option_auto here.
* optc-gen.awk: Handle EnabledBy.
* opth-gen.awk: Declare common_handle_option_auto.
* common.opt (Wuninitialized): Use EnabledBy. Delete Init.
(Wmaybe-uninitialized): Likewise.
(Wunused-but-set-variable): Likewise.
(Wunused-function): Likewise.
(Wunused-label): Likewise.
(Wunused-value): Likewise.
(Wunused-variable): Likewise.
* opt-read.awk: Create opt_numbers array.
ada/
* gcc-interface/misc.c (gnat_parse_file): Move before ...
(gnat_handle_option): ... this. Use handle_generated_option.
c-family/
* c-opts.c (c_common_handle_option): Use handle_generated_option
to enable sub-options.
fortran/
* options.c: Include diagnostics.h instead of
diagnostics-core.h.
(set_Wall): Do not see warn_unused here.
(gfc_handle_option): Set it here using handle_generated_option.
From-SVN: r187403
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-family/c-opts.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index a01f3ea..2c85d51 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> + + PR 53063 + * c-opts.c (c_common_handle_option): Use handle_generated_option + to enable sub-options. + 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53158 diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 2510747..7d8ee6b 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -360,7 +360,10 @@ c_common_handle_option (size_t scode, const char *arg, int value, break; case OPT_Wall: - warn_unused = value; + handle_generated_option (&global_options, &global_options_set, + OPT_Wunused, NULL, value, + c_family_lang_mask, kind, loc, + handlers, global_dc); set_Wformat (value); handle_generated_option (&global_options, &global_options_set, OPT_Wimplicit, NULL, value, |