This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [options] Allow Var() and Mask() to be used together


> 2005-04-28  DJ Delorie  <dj@redhat.com>
> 
> 	* optc-gen.awk (END): Make sure no variable is defined more
> 	than once.
> 	* opth-gen.awk (END): Allocate bits on a per-variable basis.
> 	Allow for bitfield variables other than target_flags.
> 	* doc/options.text (Mask): Document that you may specify a
> 	variable other than target_flags.

My bad, missed a change that only causes problems if you use the new
features.  Committed as obvious, tested with a clean x86_64 linux
build.

2005-04-28  DJ Delorie  <dj@redhat.com>

	* opt-functions.awk (var_set): Emit proper initializer for
	non-target bitfields.

Index: opt-functions.awk
===================================================================
RCS file: /cvs/gcc/gcc/gcc/opt-functions.awk,v
retrieving revision 2.3
diff -p -U3 -r2.3 opt-functions.awk
--- opt-functions.awk	30 Mar 2005 06:24:35 -0000	2.3
+++ opt-functions.awk	29 Apr 2005 00:46:20 -0000
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]