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]

make cp-tree.h:struct lang_type_header smaller


The comment for struct lang_type_class says that it should be kept
small.  This should help a little. 


2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>

	* cp-tree.h (struct lang_type_header): Make all fields unsigned
	char.

*** cp-tree.h.~1.809.~	Sat Feb  8 23:07:00 2003
--- cp-tree.h	Sun Feb  9 00:50:15 2003
***************
*** 1098,1112 ****
     are put in this structure to save space.  */
  struct lang_type_header GTY(())
  {
!   unsigned is_lang_type_class : 1;
  
!   unsigned has_type_conversion : 1;
!   unsigned has_init_ref : 1;
!   unsigned has_default_ctor : 1;
!   unsigned uses_multiple_inheritance : 1;
!   unsigned const_needs_init : 1;
!   unsigned ref_needs_init : 1;
!   unsigned has_const_assign_ref : 1;
  };
  
  /* 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;
  };
  
  /* This structure provides additional information above and beyond


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