+2011-04-04 Joseph Myers <joseph@codesourcery.com>
+
+ * optc-gen.awk: Always remove type from Variable entry before
+ recording in var_seen.
+
2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
* cfghooks.c (tidy_fallthru_edges): Add ??? comment.
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]))