summaryrefslogtreecommitdiff
path: root/gcc/opth-gen.awk
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/opth-gen.awk')
-rw-r--r--gcc/opth-gen.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/opth-gen.awk b/gcc/opth-gen.awk
index 83d19343e87..3839af9a31c 100644
--- a/gcc/opth-gen.awk
+++ b/gcc/opth-gen.awk
@@ -127,7 +127,7 @@ for (i = 0; i < n_opts; i++)
# a later switch S is a longer prefix of a switch T, T
# will be back-chained to S in a later iteration of this
# for() loop, which is what we want.
- if (flags[i] ~ "Joined") {
+ if (flag_set_p("Joined.*", flags[i])) {
for (j = i + 1; j < n_opts; j++) {
if (substr (opts[j], 1, len) != opts[i])
break;