[Bug tree-optimization/59262] __attribute__ ((optimize())) broken (and corrupts optimization of the whole compilation unit)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 25 09:23:00 GMT 2013


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
More specifically we cannot inline across changes of -ffast-math as that would
generate wrong-code.  Thus the non-fast-math 'sum' cannot be inlined
into a fast-math annotated function.  Which then of course defeats
vectorization.

Generally I'd advise against using the optimize attribute.



More information about the Gcc-bugs mailing list