public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/59262] __attribute__ ((optimize()))  broken (and corrupts optimization of the whole compilation unit)
       [not found] <bug-59262-4@http.gcc.gnu.org/bugzilla/>
@ 2013-11-23 14:00 ` mpolacek at gcc dot gnu.org
  2013-11-25  9:23 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-11-23 14:00 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
__attribute__ ((optimize (""))) is not suited for this; its purpose is mostly
for debugging.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tree-optimization/59262] __attribute__ ((optimize()))  broken (and corrupts optimization of the whole compilation unit)
       [not found] <bug-59262-4@http.gcc.gnu.org/bugzilla/>
  2013-11-23 14:00 ` [Bug tree-optimization/59262] __attribute__ ((optimize())) broken (and corrupts optimization of the whole compilation unit) mpolacek at gcc dot gnu.org
@ 2013-11-25  9:23 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-25  9:23 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-25  9:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-59262-4@http.gcc.gnu.org/bugzilla/>
2013-11-23 14:00 ` [Bug tree-optimization/59262] __attribute__ ((optimize())) broken (and corrupts optimization of the whole compilation unit) mpolacek at gcc dot gnu.org
2013-11-25  9:23 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).