Bug 43609 - LTO -fwhopr generating shared library: ICE in csi_node at cgraph.h:663
Summary: LTO -fwhopr generating shared library: ICE in csi_node at cgraph.h:663
Status: RESOLVED DUPLICATE of bug 41584
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code, lto
Depends on:
Blocks:
 
Reported: 2010-03-31 20:28 UTC by Ralf Wildenhues
Modified: 2010-04-01 13:53 UTC (History)
2 users (show)

See Also:
Host:
Target: x86_64-unknown-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Wildenhues 2010-03-31 20:28:36 UTC
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.
Comment 1 Richard Biener 2010-04-01 13:53:26 UTC
This is just PR41584 I think.

*** This bug has been marked as a duplicate of 41584 ***