Should ADJUST_FIELD_ALIGN honor __attribute__((packed))?

Jim Wilson wilson@specifixinc.com
Thu Apr 1 21:10:00 GMT 2004


Daniel Jacobowitz wrote:
> I suspect we should either fix all the copies of ADJUST_FIELD_ALIGN, or
> guard calls with !DECL_PACKED.  I'm not sure which.  Any opinions?

I'd suggest the latter.  We already guard all calls with 
{DECL,TYPE}_USER_ALIGN checks.  Since packing implies aligned(1), we 
should do the same check for DECL_PACKED.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list