[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug lto/43609]  New: LTO -fwhopr generating shared library: ICE in csi_node at cgraph.h:663
From:       "rwild at gcc dot gnu dot org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2010-03-31 20:28:38
Message-ID: bug-43609-15771 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

touch a.c
gcc -fPIC -fwhopr -O2 -c a.c
gcc -shared -fPIC a.o -fwhopr -O2 -o liba.so

leads to:

lto1: internal compiler error: vector VEC(cgraph_node_ptr,base) index domain
error, in csi_node at cgraph.h:663
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: gcc returned 1 exit status
collect2: lto-wrapper returned 1 exit status

Doesn't happen with -flto instead of -fwhopr at link time, or with neither
flag.

This ICE fails several tests in the Libtool testsuite, with several different
(valid) source files.  I'm guessing the actual source file contents are
irrelevant for the bug.

If the -fwhopr flag was not meant to be passed at shared library creation time,
then this would be a documentation bug and an ice-on-invalid-code instead.


-- 
           Summary: LTO -fwhopr generating shared library: ICE in csi_node
                    at cgraph.h:663
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, lto
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rwild at gcc dot gnu dot org
GCC target triplet: x86_64-unknown-linux-gnu


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic