This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch - gcc-4.0 not c99 conforming when assigning scalar valuesto boolean bitfields
On Thu, 31 Mar 2005, Fariborz Jahanian wrote:
> Thanks for this info. Shouldn't we still have to deal with the case that
> gcc-4.0's
> behavior (and its structure layout) is different from gcc/g++ 3.3, as well as
> g++ 4.0. Once
> the standard resolves this, we can place any new change under gcc's relevant
> -std flag.
The structure layout should not be different, structure layout is done
before the element types are modified from the declared types to the
special bit-field types.
If the compat testsuite shows that layout is different, or otherwise you
find an example where it is different, this is a bug that needs fixing.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)