From: Joseph Myers Date: Mon, 4 Apr 2011 14:18:31 +0000 (+0100) Subject: optc-gen.awk: Always remove type from Variable entry before recording in var_seen. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24f48c2f53161ffe018215cc6dbb8df761bd1bbc;p=gcc.git optc-gen.awk: Always remove type from Variable entry before recording in var_seen. * optc-gen.awk: Always remove type from Variable entry before recording in var_seen. From-SVN: r171938 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72735b89832..2251adc621b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-04-04 Joseph Myers + + * optc-gen.awk: Always remove type from Variable entry before + recording in var_seen. + 2011-04-04 Eric Botcazou * cfghooks.c (tidy_fallthru_edges): Add ??? comment. 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]))