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: Should ADJUST_FIELD_ALIGN honor __attribute__((packed))?


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



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