* opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 May 2005 19:03:22 +0000 (19:03 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 May 2005 19:03:22 +0000 (19:03 +0000)
        if variable name exists.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99357 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/opt-functions.awk

index e440de0..5537d7f 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 4d9c74f..9dc9640 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"
 }