This is the mail archive of the gcc-patches@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: [PATCH] MS Bitfields for Interix


Douglas B Rupp wrote:
> 
> __attribute__ ((packed)) is not an MS compatibilty consideration.

But it is a gcc implementation consideration.  We document in esxtend.texi
what it means, so we'd better implement it properly to do just that.
And the primary use for DECL_PACKED (field) is to indicate if
__attribute__ ((packed)) has been used.  I we need to have a pragma that
indicates a half-baked packedness, that information should be passed somewhere
else.

The code we currently have is indeed broken, gcc.dg/bitfld-3.c and gcc.dg/bitfld-4.c
fail.  I'm currently testing a patch (which just disables the alignment for
DECL_PACKED fields, just like in the other cases).	

	
-- 
--------------------------
SuperH (UK) Ltd.
2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
T:+44 1454 462330


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