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]

Re: make cp-tree.h:struct lang_type_header smaller


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;
>   };


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