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]

PATCH[b-i=b]: Change cpp_hashnode.directive_index to a bit-field


I checked the following into the 3_4-basic-improvements-branch:

2002-12-06  Per Bothner  <pbothner@apple.com>

       * cpplib.h (struct cpp_hashnode):  Change field directive_index from
       char to an int bit-field, for hosts where char is unsigned.

--
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/
Index: cpplib.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpplib.h,v
retrieving revision 1.234.4.3
diff -u -p -r1.234.4.3 cpplib.h
--- cpplib.h	6 Dec 2002 20:30:35 -0000	1.234.4.3
+++ cpplib.h	9 Dec 2002 05:48:01 -0000
@@ -478,7 +478,7 @@ enum builtin_type
 struct cpp_hashnode
 {
   struct ht_identifier ident;
-  char directive_index;			/* Index into directive table.
+  int directive_index : 8;		/* Index into directive table.
 					   If negative, a NODE_OPERATOR. */
   unsigned char rid_code;		/* Rid code - for front ends.  */
   ENUM_BITFIELD(node_type) type : 8;	/* CPP node type.  */

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