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]

shrink struct insn_operand_data


This is good for 8KB off the size of the i386 insn-output.o, as the
structure now fits in three words instead of being four with padding.
There are less than 60 machine modes, but there's no point in making the
field any smaller than 16 bits.

bootstrapped i686-linux.

zw

	* recog.h (struct insn_operand_data): Shrink 'mode' field
	to 16 bits.

===================================================================
Index: recog.h
--- recog.h	2001/02/18 23:56:34	1.38
+++ recog.h	2001/08/12 06:49:28
@@ -219,7 +219,7 @@ struct insn_operand_data
 
   const char *constraint;
 
-  enum machine_mode mode;
+  ENUM_BITFIELD(machine_mode) mode : 16;
 
   char strict_low;
 


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