aboutsummaryrefslogtreecommitdiff
path: root/gcc/opt-functions.awk
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/opt-functions.awk')
-rw-r--r--gcc/opt-functions.awk9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk
index 9162821..4d9c74f7 100644
--- a/gcc/opt-functions.awk
+++ b/gcc/opt-functions.awk
@@ -97,8 +97,13 @@ function var_set(flags)
if (s != "")
return "CLVC_EQUAL, " s
s = opt_args("Mask", flags);
- if (s != "")
- return "CLVC_BIT_SET, MASK_" s
+ if (s != "") {
+ vn = var_name(flags);
+ if (vn)
+ return "CLVC_BIT_SET, OPTION_MASK_" s
+ else
+ return "CLVC_BIT_SET, MASK_" s
+ }
s = nth_arg(0, opt_args("InverseMask", flags));
if (s != "")
return "CLVC_BIT_CLEAR, MASK_" s