[patch, rfc] Semantics of attribute (aligned), misscompilation of crtstuff

Daniel Jacobowitz drow@false.org
Fri Oct 26 15:04:00 GMT 2007


On Thu, Oct 25, 2007 at 07:29:43PM -0700, Mark Mitchell wrote:
> I think this is a documentation bug.  In particular, the manual does not
> list "packed" under "Variable Attributes" -- but it does say, in the
> description of the "aligned" attribute that "packed" can decrease
> alignment.  Is that what suggested to you that the combination was
> valid?  I think what's happened is that the "aligned" documentation is
> shared between "Type Attributes" and "Variable Attributes"; we probably
> need to change the "Variable Attributes" copy not to mention "packed"
> since it doesn't make sense in this context.

I disagree that it doesn't make sense in this context.  If
attribute((aligned)) does not specify an exact alignment, I think it
behooves us to add some other way to do so.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gcc-patches mailing list