[Bug c/56335] Optimization assumes __attribute__((aligned(N))) always works.

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 15 09:28:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56335

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-02-15
          Component|tree-optimization           |c
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-15 09:28:12 UTC ---
That's a bug in alignment attribute processing then.  It should not communicate
alignments that can not be reached to the middle-end.

Language lawyer question: Is __alignof__ then allowed to report a lower
alignment?  Or do we have to reject a testcase with a too large alignment
specification as invalid?



More information about the Gcc-bugs mailing list