This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] save space by using enum bitfields
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: ezannoni at redhat dot com, gdb-patches at sources dot redhat dot com, jimb at redhat dot com, mec at shout dot net
- Cc: ac131313 at redhat dot com
- Date: Tue, 19 Aug 2003 15:42:13 -0400
- Subject: 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.