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: unassig...@gcc.gnu.org

        ReportedBy: d.g.gorbac...@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

Reply via email to