This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: make cp-tree.h:struct lang_type_header smaller
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Dan Nicolaescu <dann at ics dot uci dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 9 Feb 2003 10:37:48 +0000
- Subject: Re: make cp-tree.h:struct lang_type_header smaller
- References: <200302090905.h19958kA009174@gremlin.ics.uci.edu>
Dan Nicolaescu wrote:-
> The comment for struct lang_type_class says that it should be kept
> small. This should help a little.
Why do you think that?
Also, unsigned char in a bitfield is not portable (but we might not
care).
Neil.
> * cp-tree.h (struct lang_type_header): Make all fields unsigned
> char.
> /* This structure provides additional information above and beyond
> --- 1098,1112 ----
> are put in this structure to save space. */
> struct lang_type_header GTY(())
> {
> ! unsigned char is_lang_type_class : 1;
>
> ! unsigned char has_type_conversion : 1;
> ! unsigned char has_init_ref : 1;
> ! unsigned char has_default_ctor : 1;
> ! unsigned char uses_multiple_inheritance : 1;
> ! unsigned char const_needs_init : 1;
> ! unsigned char ref_needs_init : 1;
> ! unsigned char has_const_assign_ref : 1;
> };