aboutsummaryrefslogtreecommitdiff
path: root/gcc/opt-read.awk
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2012-05-11 12:23:50 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2012-05-11 12:23:50 +0000
commit7d5a5747fc5ffbd86d1da0e2cff9823f0446a907 (patch)
tree1a38b4f6902dc5e5cc35971539a25051202efa2e /gcc/opt-read.awk
parent319e6439f592285e7d931c47285c363cca113788 (diff)
downloadgcc-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/opt-read.awk')
-rw-r--r--gcc/opt-read.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/opt-read.awk b/gcc/opt-read.awk
index 6a4d4de..81c3ea8 100644
--- a/gcc/opt-read.awk
+++ b/gcc/opt-read.awk
@@ -1,4 +1,4 @@
-# Copyright (C) 2003,2004,2005,2006,2007,2008, 2010, 2011
+# Copyright (C) 2003,2004,2005,2006,2007,2008, 2010, 2011, 2012
# Free Software Foundation, Inc.
# Contributed by Kelley Cook, June 2004.
# Original code from Neil Booth, May 2003.
@@ -108,6 +108,7 @@ BEGIN {
name = opt_args("Mask", $1)
if (name == "") {
opts[n_opts] = $1
+ opt_numbers[$1] = n_opts
flags[n_opts] = $2
help[n_opts] = $3
for (i = 4; i <= NF; i++)