[Bug rtl-optimization/56434] document that __attribute__((__malloc__)) assumes returned pointer has BIGGEST_ALIGNMENT

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 25 15:19:00 GMT 2013


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*, i?86-*-*
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |wrong-code
   Last reconfirmed|                            |2013-02-25
          Component|c                           |rtl-optimization
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-25 15:19:17 UTC ---
We have introduced MALLOC_ABI_ALIGNMENT for this, the calls.c:expand_call use
should be fixed to use that I think.  Not sure what makes use of this reg-note,
but it's a possible wrong-code issue (at least since AVX on x86).

Confirmed.



More information about the Gcc-bugs mailing list