opt-functions.awk (var_set): Emit proper initializer for non-target bitfields.
authorDJ Delorie <dj@redhat.com>
Fri, 29 Apr 2005 00:47:27 +0000 (20:47 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Fri, 29 Apr 2005 00:47:27 +0000 (20:47 -0400)
* opt-functions.awk (var_set): Emit proper initializer for
non-target bitfields.

From-SVN: r98962

gcc/ChangeLog
gcc/opt-functions.awk

index ac8ac4ee7d1e21ac284e34181b925fcc13657e3a..0476f7d2284a35a8b5c7ce02fe3007bb6a1b3a95 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-28  DJ Delorie  <dj@redhat.com>
+
+       * opt-functions.awk (var_set): Emit proper initializer for
+       non-target bitfields.
+
 2005-04-28  Devang Patel  <dpatel@apple.com>
 
        * dbxout.c (have_used_extensions): Remove.
index 916282136969a079804a3e31ad2cc50e273da7bf..4d9c74f73b2492704da1f7d83c205cb8c78a1bd3 100644 (file)
@@ -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