PATCH: more ENUM_BITFIELD use.
Robert Lipe
robertlipe@usa.net
Sun Apr 23 21:11:00 GMT 2000
This converts the remaining users of INT_ONLY_BTFIELDS to use the
ENUM_BITFIELD plumbing that Mark and I whipped up last week. With this
applied, the tree still builds on i386-pc-linux. (ENUM_BITFIELD itself
has already been validated.)
I'll apply it if approved.
RJL
Respective ChangeLogs for common, cp/, java/
* tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
* cp-tree.h (lang_type): Member `language' now ENUM_BITFIELD.
* parse.h (_jdep): Member `kind' now ENUM_BITFIELD.
Index: tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tree.h,v
retrieving revision 1.161
diff -u -p -r1.161 tree.h
--- tree.h 2000/04/18 19:40:21 1.161
+++ tree.h 2000/04/24 03:57:49
@@ -1354,11 +1354,7 @@ struct tree_decl
int linenum;
unsigned int uid;
union tree_node *size;
-#ifdef ONLY_INT_FIELDS
- int mode : 8;
-#else
- enum machine_mode mode : 8;
-#endif
+ ENUM_BITFIELD(machine_mode) mode : 8;
unsigned external_flag : 1;
unsigned nonlocal_flag : 1;
Index: cp/cp-tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.444
diff -u -p -r1.444 cp-tree.h
--- cp-tree.h 2000/04/18 20:21:38 1.444
+++ cp-tree.h 2000/04/24 03:57:58
@@ -1853,11 +1853,7 @@ struct lang_type
struct lang_decl_flags
{
-#ifdef ONLY_INT_FIELDS
- int language : 8;
-#else
- enum languages language : 8;
-#endif
+ ENUM_BITFIELD(languages) language : 8;
unsigned operator_attr : 1;
unsigned constructor_attr : 1;
Index: java/parse.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.h,v
retrieving revision 1.50
diff -u -p -r1.50 parse.h
--- parse.h 2000/04/21 23:03:19 1.50
+++ parse.h 2000/04/24 03:58:02
@@ -474,11 +474,7 @@ enum jdep_code {
};
typedef struct _jdep {
-#ifdef ONLY_INT_FIELDS
- int kind : 8; /* Type of patch */
-#else
- enum jdep_code kind : 8;
-#endif
+ ENUM_BITFIELD(jdep_code) kind : 8; /* Type of patch */
int flag0 : 1; /* Some flags */
tree decl; /* Tied decl/or WFL */
More information about the Gcc-patches
mailing list