summaryrefslogtreecommitdiff
path: root/gcc/optc-gen.awk
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r--gcc/optc-gen.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk
index fbe8007c8a2..97bbd4312e0 100644
--- a/gcc/optc-gen.awk
+++ b/gcc/optc-gen.awk
@@ -91,6 +91,7 @@ for (i = 0; i < n_extra_vars; i++) {
sub(".*= *", "", init)
sub(" *=.*", "", var)
sub("^.*[ *]", "", var)
+ sub("\\[.*\\]$", "", var)
} else {
init = "0"
}