public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO
@ 2012-10-03  7:31 d.g.gorbachev at gmail dot com
  2012-10-03  8:11 ` [Bug lto/54790] " markus at trippelsdorf dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2012-10-03  7:31 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54790
           Summary: [4.8 Regression] Missing optimization with LTO
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: d.g.gorbachev@gmail.com


Created attachment 28337
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28337
Testcase

GCC 20120916 (r191367) - ok, 20120923 (r191654) - bug.

$ gcc -O2 -flto pr54790.c
/tmp/ccTyOv2G.ltrans0.ltrans.o:ccTyOv2G.ltrans0.o:function foo: error:
undefined reference to 'link_error'
collect2: error: ld returned 1 exit status


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
@ 2012-10-03  8:11 ` markus at trippelsdorf dot de
  2012-10-04 12:17 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: markus at trippelsdorf dot de @ 2012-10-03  8:11 UTC (permalink / raw)
  To: gcc-bugs


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-10-03 08:11:17 UTC ---
Started with r191466 (Honza's LTO symtab rework).


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
  2012-10-03  8:11 ` [Bug lto/54790] " markus at trippelsdorf dot de
@ 2012-10-04 12:17 ` rguenth at gcc dot gnu.org
  2012-10-04 14:23 ` hubicka at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-04 12:17 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-10-04
                 CC|                            |hubicka at gcc dot gnu.org
   Target Milestone|---                         |4.8.0
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-10-04 12:16:44 UTC ---
Confirmed.  We definitely need more testsuite coverage for LTO optimization ...


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
  2012-10-03  8:11 ` [Bug lto/54790] " markus at trippelsdorf dot de
  2012-10-04 12:17 ` rguenth at gcc dot gnu.org
@ 2012-10-04 14:23 ` hubicka at gcc dot gnu.org
  2012-10-06  7:57 ` d.g.gorbachev at gmail dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-10-04 14:23 UTC (permalink / raw)
  To: gcc-bugs


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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |hubicka at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-10-04 14:23:40 UTC ---
Mine.


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
                   ` (2 preceding siblings ...)
  2012-10-04 14:23 ` hubicka at gcc dot gnu.org
@ 2012-10-06  7:57 ` d.g.gorbachev at gmail dot com
  2012-10-06  8:02 ` d.g.gorbachev at gmail dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2012-10-06  7:57 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2012-10-06 07:57:12 UTC ---
Created attachment 28369
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28369
Testcase #2

Another (perhaps related) issue.


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
                   ` (3 preceding siblings ...)
  2012-10-06  7:57 ` d.g.gorbachev at gmail dot com
@ 2012-10-06  8:02 ` d.g.gorbachev at gmail dot com
  2012-10-06 14:00 ` hubicka at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2012-10-06  8:02 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2012-10-06 08:02:20 UTC ---
Created attachment 28370
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28370
Testcase #3

Undefined reference bug.

With gold:
main.o:main.c:function main: error: undefined reference to 'foo'

With bfd ld:
`foo' referenced in section `.text' of main.o: defined in discarded section
`.text' of /tmp/ccl6J4kW.o (symbol from plugin)


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
                   ` (4 preceding siblings ...)
  2012-10-06  8:02 ` d.g.gorbachev at gmail dot com
@ 2012-10-06 14:00 ` hubicka at gcc dot gnu.org
  2012-10-06 14:43 ` hubicka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-10-06 14:00 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-10-06 13:59:59 UTC ---
Author: hubicka
Date: Sat Oct  6 13:59:55 2012
New Revision: 192159

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192159
Log:

    PR lto/54790 
    * lto.c (resolution_map): New static var.
    (register_resolution): New function.
    (lto_register_var_decl_in_symtab): Use it.
    (read_cgraph_and_symbols): Copy resolutions into the symtab.
    * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution,
    lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove.
    * lto-symtab.c (lto_symtab_register_decl): Remove.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-streamer.h
    trunk/gcc/lto-symtab.c
    trunk/gcc/lto/ChangeLog
    trunk/gcc/lto/lto.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
                   ` (5 preceding siblings ...)
  2012-10-06 14:00 ` hubicka at gcc dot gnu.org
@ 2012-10-06 14:43 ` hubicka at gcc dot gnu.org
  2012-10-06 17:26 ` glisse at gcc dot gnu.org
  2012-10-06 17:43 ` hubicka at ucw dot cz
  8 siblings, 0 replies; 10+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-10-06 14:43 UTC (permalink / raw)
  To: gcc-bugs


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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-10-06 14:42:10 UTC ---
Fixed.


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
                   ` (6 preceding siblings ...)
  2012-10-06 14:43 ` hubicka at gcc dot gnu.org
@ 2012-10-06 17:26 ` glisse at gcc dot gnu.org
  2012-10-06 17:43 ` hubicka at ucw dot cz
  8 siblings, 0 replies; 10+ messages in thread
From: glisse at gcc dot gnu.org @ 2012-10-06 17:26 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from Marc Glisse <glisse at gcc dot gnu.org> 2012-10-06 17:25:48 UTC ---
(In reply to comment #6)
>     trunk/gcc/testsuite/ChangeLog

I don't see the file gcc.dg/lto/resolutions_0.c.


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

* [Bug lto/54790] [4.8 Regression] Missing optimization with LTO
  2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
                   ` (7 preceding siblings ...)
  2012-10-06 17:26 ` glisse at gcc dot gnu.org
@ 2012-10-06 17:43 ` hubicka at ucw dot cz
  8 siblings, 0 replies; 10+ messages in thread
From: hubicka at ucw dot cz @ 2012-10-06 17:43 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #9 from Jan Hubicka <hubicka at ucw dot cz> 2012-10-06 17:43:29 UTC ---
> >     trunk/gcc/testsuite/ChangeLog
> 
> I don't see the file gcc.dg/lto/resolutions_0.c.
Fixed now, thanks!
Honza


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

end of thread, other threads:[~2012-10-06 17:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03  7:31 [Bug lto/54790] New: [4.8 Regression] Missing optimization with LTO d.g.gorbachev at gmail dot com
2012-10-03  8:11 ` [Bug lto/54790] " markus at trippelsdorf dot de
2012-10-04 12:17 ` rguenth at gcc dot gnu.org
2012-10-04 14:23 ` hubicka at gcc dot gnu.org
2012-10-06  7:57 ` d.g.gorbachev at gmail dot com
2012-10-06  8:02 ` d.g.gorbachev at gmail dot com
2012-10-06 14:00 ` hubicka at gcc dot gnu.org
2012-10-06 14:43 ` hubicka at gcc dot gnu.org
2012-10-06 17:26 ` glisse at gcc dot gnu.org
2012-10-06 17:43 ` hubicka at ucw dot cz

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).