]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask if variable name exists.
authorDavid Edelsohn <edelsohn@gnu.org>
Sat, 7 May 2005 19:03:22 +0000 (19:03 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sat, 7 May 2005 19:03:22 +0000 (15:03 -0400)
        * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
        if variable name exists.

From-SVN: r99357

gcc/ChangeLog
gcc/opt-functions.awk

index e440de06bf412326dc5bc7030014d0650063b456..5537d7f3c9fc2f76c4e6828bc0e09572e5f5502a 100644 (file)
@@ -17,6 +17,9 @@
        (popcntb<mode>2): New.
        * config/rs6000/rs6000.opt (mpopcntb): New.
 
+       * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
+       if variable name exists.
+
 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
 
        * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
index 4d9c74f73b2492704da1f7d83c205cb8c78a1bd3..9dc9640d99800facba6f8356cadd1f0b00c47cdc 100644 (file)
@@ -105,8 +105,13 @@ function var_set(flags)
                        return "CLVC_BIT_SET, MASK_" s
        }
        s = nth_arg(0, opt_args("InverseMask", flags));
-       if (s != "")
-               return "CLVC_BIT_CLEAR, MASK_" s
+       if (s != "") {
+               vn = var_name(flags);
+               if (vn)
+                       return "CLVC_BIT_CLEAR, OPTION_MASK_" s
+                         else
+                       return "CLVC_BIT_CLEAR, MASK_" s
+       }
        return "CLVC_BOOLEAN, 0"
 }