public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/56232] New: Missed optimization with LTO
@ 2013-02-07  0:30 d.g.gorbachev at gmail dot com
  2013-02-07  0:54 ` [Bug lto/56232] " pinskia at gcc dot gnu.org
  2013-02-07 10:45 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2013-02-07  0:30 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56232
           Summary: Missed optimization with LTO
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: d.g.gorbachev@gmail.com


Created attachment 29377
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29377
Compile with -flto -O2

/tmp/cce3xw28.ltrans0.ltrans.o:cce3xw28.ltrans0.o:function main: error:
undefined reference to 'bar'


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

* [Bug lto/56232] Missed optimization with LTO
  2013-02-07  0:30 [Bug lto/56232] New: Missed optimization with LTO d.g.gorbachev at gmail dot com
@ 2013-02-07  0:54 ` pinskia at gcc dot gnu.org
  2013-02-07 10:45 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-02-07  0:54 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-07 00:54:02 UTC ---
Strict aliasing is effectively turned off for LTO.


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

* [Bug lto/56232] Missed optimization with LTO
  2013-02-07  0:30 [Bug lto/56232] New: Missed optimization with LTO d.g.gorbachev at gmail dot com
  2013-02-07  0:54 ` [Bug lto/56232] " pinskia at gcc dot gnu.org
@ 2013-02-07 10:45 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-07 10:45 UTC (permalink / raw)
  To: gcc-bugs


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

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> 2013-02-07 10:45:30 UTC ---
(In reply to comment #1)
> Strict aliasing is effectively turned off for LTO.

That's not true. It's just weakened to the extend to make structurally
equivalent types have the same alias sets.  In this case struct S and
struct T are aliasing.

So indeed this works as designed.


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

end of thread, other threads:[~2013-02-07 10:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07  0:30 [Bug lto/56232] New: Missed optimization with LTO d.g.gorbachev at gmail dot com
2013-02-07  0:54 ` [Bug lto/56232] " pinskia at gcc dot gnu.org
2013-02-07 10:45 ` 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).