aboutsummaryrefslogtreecommitdiff
path: root/gcc/opt-functions.awk
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-04-28 20:47:27 -0400
committerDJ Delorie <dj@gcc.gnu.org>2005-04-28 20:47:27 -0400
commita45505d8a1c5731c4dd8c527cc5dfb9acb2c499d (patch)
treec960aae521008069c9783f3bf14f345449c0cac8 /gcc/opt-functions.awk
parentd8955e4bafc4f030c4234a8247a8574744f20c8a (diff)
downloadgcc-a45505d8a1c5731c4dd8c527cc5dfb9acb2c499d.zip
gcc-a45505d8a1c5731c4dd8c527cc5dfb9acb2c499d.tar.gz
gcc-a45505d8a1c5731c4dd8c527cc5dfb9acb2c499d.tar.bz2
opt-functions.awk (var_set): Emit proper initializer for non-target bitfields.
* opt-functions.awk (var_set): Emit proper initializer for non-target bitfields. From-SVN: r98962
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