This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] cp/cp-tree.h: Remove TYPE_REDEFINED.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mark at codesourcery dot com
- Date: Fri, 15 Apr 2005 10:11:59 -0400 (EDT)
- Subject: [patch] cp/cp-tree.h: Remove TYPE_REDEFINED.
Hi,
Attached is a patch to remove TYPE_REDEFINED as its last use was
removed by
http://gcc.gnu.org/ml/gcc-cvs/2003-04/msg01110.html
The patch also removes "redefined" field of lang_type_class since its
sole user is TYPE_REDEFINED.
These bit fields are grouped by 8 bits, so I I just took the last bit
field and filled the "hole" with it.
Tested on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
* cp-tree.h (lang_type_class): Remove redefined. Move
java_interface into where redefined was.
(TYPE_REDEFINED): Remove.
Index: cp-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.h,v
retrieving revision 1.1124
diff -u -d -p -r1.1124 cp-tree.h
--- cp-tree.h 14 Apr 2005 12:22:49 -0000 1.1124
+++ cp-tree.h 14 Apr 2005 12:46:14 -0000
@@ -1027,7 +1027,7 @@ struct lang_type_class GTY(())
unsigned diamond_shaped : 1;
unsigned repeated_base : 1;
unsigned being_defined : 1;
- unsigned redefined : 1;
+ unsigned java_interface : 1;
unsigned debug_requested : 1;
unsigned fields_readonly : 1;
@@ -1043,7 +1043,6 @@ struct lang_type_class GTY(())
unsigned has_complex_init_ref : 1;
unsigned has_complex_assign_ref : 1;
unsigned non_aggregate : 1;
- unsigned java_interface : 1;
/* When adding a flag here, consider whether or not it ought to
apply to a template instance if it applies to the template. If
@@ -1186,9 +1185,6 @@ struct lang_type GTY(())
/* Nonzero means that this type is being defined. I.e., the left brace
starting the definition of this type has been seen. */
#define TYPE_BEING_DEFINED(NODE) (LANG_TYPE_CLASS_CHECK (NODE)->being_defined)
-/* Nonzero means that this type has been redefined. In this case, if
- convenient, don't reprocess any methods that appear in its redefinition. */
-#define TYPE_REDEFINED(NODE) (LANG_TYPE_CLASS_CHECK (NODE)->redefined)
/* Mark bits for repeated base checks. */
#define TYPE_MARKED_P(NODE) TREE_LANG_FLAG_6 (TYPE_CHECK (NODE))