summaryrefslogtreecommitdiff
path: root/gcc/opth-gen.awk
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-13 14:27:22 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-13 14:27:22 +0000
commitd4c7816a34cdbf396efa1009310b2fc2a05631bc (patch)
treedc424ba0e4c45bee7be4f49b2afb355c7a222f5e /gcc/opth-gen.awk
parent38525cf296cd0873d2a1e90d8f58ae7f47237e8d (diff)
downloadgcc-d4c7816a34cdbf396efa1009310b2fc2a05631bc.tar.gz
2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
* opt-functions.awk (opt_sanitized_name): New. (opt_enum): New. * optc-gen.awk: Use it * opth-gen.awk: Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158272 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opth-gen.awk')
-rw-r--r--gcc/opth-gen.awk8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/opth-gen.awk b/gcc/opth-gen.awk
index 93a9008bdcf..cf2ef9683c8 100644
--- a/gcc/opth-gen.awk
+++ b/gcc/opth-gen.awk
@@ -331,13 +331,7 @@ for (i = 0; i < n_opts; i++) {
}
len = length (opts[i]);
- enum = "OPT_" opts[i]
- if (opts[i] == "finline-limit=" || opts[i] == "Wlarger-than=" \
- || opts[i] == "ftemplate-depth=")
- enum = enum "eq"
- if (opts[i] == "gdwarf+")
- enum = "OPT_gdwarfplus"
- gsub ("[^A-Za-z0-9]", "_", enum)
+ enum = opt_enum(opts[i])
# If this switch takes joined arguments, back-chain all
# subsequent switches to it for which it is a prefix. If