Commit c7f9c6f5 by Mark Mitchell Committed by Mark Mitchell

cp-tree.h (lang_type): Move align into type_flags.

	* cp-tree.h (lang_type): Move align into type_flags.
	(CLASSTYPE_ALIGN): Adjust accordingly.
	* call.c (direct_reference_binding): Remove misleading comment.

From-SVN: r29035
parent 2219e921
1999-09-01 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (lang_type): Move align into type_flags.
(CLASSTYPE_ALIGN): Adjust accordingly.
* call.c (direct_reference_binding): Remove misleading comment.
1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* parse.y (language_string): Constify. * parse.y (language_string): Constify.
......
...@@ -987,10 +987,9 @@ direct_reference_binding (type, conv) ...@@ -987,10 +987,9 @@ direct_reference_binding (type, conv)
/* Returns the conversion path from type FROM to reference type TO for /* Returns the conversion path from type FROM to reference type TO for
purposes of reference binding. For lvalue binding, either pass a purposes of reference binding. For lvalue binding, either pass a
reference type to FROM or an lvalue expression to EXPR. reference type to FROM or an lvalue expression to EXPR. If the
reference will be bound to a temporary, NEED_TEMPORARY_P is set for
Currently does not distinguish in the generated trees between binding to the conversion returned. */
an lvalue and a temporary. Should it? */
static tree static tree
reference_binding (rto, rfrom, expr, flags) reference_binding (rto, rfrom, expr, flags)
......
...@@ -809,7 +809,9 @@ struct lang_type ...@@ -809,7 +809,9 @@ struct lang_type
/* The MIPS compiler gets it wrong if this struct also /* The MIPS compiler gets it wrong if this struct also
does not fill out to a multiple of 4 bytes. Add a does not fill out to a multiple of 4 bytes. Add a
member `dummy' with new bits if you go over the edge. */ member `dummy' with new bits if you go over the edge. */
unsigned dummy : 14; unsigned dummy : 6;
unsigned char align;
} type_flags; } type_flags;
int vsize; int vsize;
...@@ -822,9 +824,6 @@ struct lang_type ...@@ -822,9 +824,6 @@ struct lang_type
union tree_node *search_slot; union tree_node *search_slot;
unsigned char align;
/* Room for another three unsigned chars. */
union tree_node *size; union tree_node *size;
union tree_node *abstract_virtuals; union tree_node *abstract_virtuals;
...@@ -999,7 +998,7 @@ struct lang_type ...@@ -999,7 +998,7 @@ struct lang_type
/* These are the size, mode and alignment of the type without its /* These are the size, mode and alignment of the type without its
virtual base classes, for when we use this type as a base itself. */ virtual base classes, for when we use this type as a base itself. */
#define CLASSTYPE_SIZE(NODE) (TYPE_LANG_SPECIFIC(NODE)->size) #define CLASSTYPE_SIZE(NODE) (TYPE_LANG_SPECIFIC(NODE)->size)
#define CLASSTYPE_ALIGN(NODE) (TYPE_LANG_SPECIFIC(NODE)->align) #define CLASSTYPE_ALIGN(NODE) (TYPE_LANG_SPECIFIC(NODE)->type_flags.align)
/* A cons list of virtual functions which cannot be inherited by /* A cons list of virtual functions which cannot be inherited by
derived classes. When deriving from this type, the derived derived classes. When deriving from this type, the derived
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment