[cfe-dev] default alignment?

Eric Niebler eric at boostpro.com
Mon Jan 17 01:28:52 PST 2011


In Sema::ActOnPragmaPack, I see this:

  // FIXME: This should come from the target.
  if (AlignmentVal == 0)
    AlignmentVal = 8;

So, what's the right fix? Should this be
(Context.Target.getDoubleAlign() / Context.Target.getCharWidth())? (And
why 8? Where does that come from?)

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com



More information about the cfe-dev mailing list