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]

Re: shrink struct insn_operand_data


On Sun, Aug 12, 2001 at 04:58:17PM -0300, Alexandre Oliva wrote:
> On Aug 12, 2001, Zack Weinberg <zackw@panix.com> wrote:
> 
> > 	* recog.h (struct insn_operand_data): Shrink 'mode' field
> > 	to 16 bits.
> 
> > -  enum machine_mode mode;
> > +  ENUM_BITFIELD(machine_mode) mode : 16;
>                  ^^ missing blank

The convention seems to be to leave it out.

$ grep ENUM_BITFIELD *.h */*.h | grep ' : '
cpphash.h:  ENUM_BITFIELD (cpp_buffer_type) type : 8;
line-map.h:  ENUM_BITFIELD (lc_reason) reason : CHAR_BIT;

cpplib.h:  ENUM_BITFIELD(cpp_ttype) type : CHAR_BIT;  /* token type */
cpplib.h:  ENUM_BITFIELD(node_type) type : 8;   /* CPP node type.  */
rtl.h:  ENUM_BITFIELD(machine_mode) mode : 8;
tree.h:  ENUM_BITFIELD(tree_code) code : 8;
tree.h:  ENUM_BITFIELD(machine_mode) mode : 7;
tree.h:  ENUM_BITFIELD(machine_mode) mode : 8;
tree.h:  ENUM_BITFIELD(built_in_class) built_in_class : 2;
cp/cp-tree.h:  ENUM_BITFIELD(languages) language : 8;
java/parse.h:  ENUM_BITFIELD(jdep_code) kind : 8; /* Type of patch */

two to nine...

zw


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