diff options
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r-- | gcc/optc-gen.awk | 11 |
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])) |