From: David Edelsohn Date: Sat, 7 May 2005 19:03:22 +0000 (+0000) Subject: opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask if variable name exists. X-Git-Tag: misc/cutover-cvs2svn~3403 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1630cc5dc135d34a91cf62fc7ee57fb68295556;p=thirdparty%2Fgcc.git opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask if variable name exists. * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask if variable name exists. From-SVN: r99357 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e440de06bf41..5537d7f3c9fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -17,6 +17,9 @@ (popcntb2): 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 * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h. diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk index 4d9c74f73b24..9dc9640d9980 100644 --- a/gcc/opt-functions.awk +++ b/gcc/opt-functions.awk @@ -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" }