summaryrefslogtreecommitdiff
path: root/gcc/optc-gen.awk
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-04 14:18:31 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-04 14:18:31 +0000
commitc3be4b75a3218e69e44f39eeec1644614dddc2d8 (patch)
treeb59234f6f793b1f79fabd7a87d6017039caf5d59 /gcc/optc-gen.awk
parent8ea8dad9dcea79a83ddf420bdc3567b2028b0631 (diff)
downloadgcc-c3be4b75a3218e69e44f39eeec1644614dddc2d8.tar.gz
* optc-gen.awk: Always remove type from Variable entry before
recording in var_seen. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171938 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r--gcc/optc-gen.awk11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk
index a821c648d37..503bc6b87f9 100644
--- a/gcc/optc-gen.awk
+++ b/gcc/optc-gen.awk
@@ -202,14 +202,15 @@ for (i = 0; i < n_extra_vars; i++) {
init = extra_vars[i]
if (var ~ "=" ) {
sub(".*= *", "", init)
- sub(" *=.*", "", var)
- sub("^.*[ *]", "", var)
- sub("\\[.*\\]$", "", var)
} else {
init = "0"
}
- var_seen[var] = 1
- print " " init ", /* " var " */"
+ sub(" *=.*", "", var)
+ name = var
+ sub("^.*[ *]", "", name)
+ sub("\\[.*\\]$", "", name)
+ var_seen[name] = 1
+ print " " init ", /* " name " */"
}
for (i = 0; i < n_opts; i++) {
if (flag_set_p("Save", flags[i]))