summaryrefslogtreecommitdiff
path: root/gcc/opt-functions.awk
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-29 00:47:27 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-29 00:47:27 +0000
commitb3937ebd02266e1056e8fa44591abd162da435a8 (patch)
treec960aae521008069c9783f3bf14f345449c0cac8 /gcc/opt-functions.awk
parent0c0bfad2fb274ab9ee5ddbe8743e0202c3b72d90 (diff)
downloadgcc-b3937ebd02266e1056e8fa44591abd162da435a8.tar.gz
* opt-functions.awk (var_set): Emit proper initializer for
non-target bitfields. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98962 138bc75d-0d04-0410-961f-82ee72b054a4
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 91628213696..4d9c74f73b2 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