This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: RFC: ms bitfields of aligned basetypes


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



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