This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: [rfa] save space by using enum bitfields


For people tracking patches:

This patch is withdrawn for rework.  It was drawing a gcc
warning about an enum definition nested in a struct definition.

Seems like this is fine:

  struct s { enum e { one, two, three } e1; };

But this is not:

  struct s { enum e { one, two, three }; enum e e1; };

So I gotta refactor:

  enum e { one, two, three };
  struct s { enum e e1; };

Michael C

===

2003-08-17  Michael Chastain  <mec@shout.net>

	* defs.h (ENUM_BITFIELD): New macro.
	* symtab.h (ENUM_BITFIELD): Use it.
	(BYTE_BITFIELD): Remove old macro, which was already disabled.


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