This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: ms bitfields of aligned basetypes
- From: James E Wilson <wilson at specifixinc dot com>
- To: Joern RENNECKE <joern dot rennecke at st dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 20 Apr 2005 19:50:47 -0700
- Subject: Re: RFC: ms bitfields of aligned basetypes
- References: <426562E9.1080409@st.com>
Joern RENNECKE wrote:
required for Tal16bool. Should we enforce that any storage element
allocated
for a run of ms-bitfields get the full alignment of the basetype, even
when it exceeds
the size of the basetype and of BIGGEST_ALIGNMENT?
Obviously, we should do the exact same thing that the microsoft compiler
does. That is the whole point of -mms-bitfields.
If we can't generate an equivalent testcase for the microsoft compiler,
because it doesn't have aligned attributes or equivalent, then we can do
whatever seems to make sense.
It isn't clear from your message what the current behaviour is, whether
there is any actual problem with the current behaviour, or what fix if
any you think is right.
Limiting alignment to BIGGEST_ALIGNMENT seems reasonable if there is a
problem that needs to be fixed, and microsoft doesn't specify the
behaviour here.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com