Source:
a.c:
int a()
{
return 0;
}

b.c:
extern int a();
int b()
{
a();
}

> gcc -fwhopr -c a.c b.c
> ar r liba.a a.o
> gcc -fwhopr -fuse-linker-plugin -shared -o libb.so b.o liba.a
lto1: internal compiler error: in strip_extension, at lto/lto.c:910
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /usr/local/gcc45/bin/gcc returned 1 exit status
/usr/bin/ld: fatal error: lto-wrapper failed
collect2: ld returned 1 exit status

It fails trying to strip ".o" from "liba.a". (I added an extra line to print
that, so the ICE line number is off by 1.)
Using gcc 20100314 and gold from Ubuntu binutils-gold 2.20-0ubuntu2.


-- 
           Summary: lto ICE in strip_extension with linker plugin
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: astrange at ithinksw dot com
  GCC host triplet: i686-pc-linux-gnu


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

Reply via email to