This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/63894] New: [5 Regression] ICE in inline_call, at ipa-inline-transform.c:339 building Firefox
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 15 Nov 2014 17:44:58 +0000
- Subject: [Bug lto/63894] New: [5 Regression] ICE in inline_call, at ipa-inline-transform.c:339 building Firefox
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63894
Bug ID: 63894
Summary: [5 Regression] ICE in inline_call, at
ipa-inline-transform.c:339 building Firefox
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
CC: hubicka at gcc dot gnu.org
Executing: ../../../../gcc_test/usr/local/bin/c++ -o js -Wall
-Wignored-qualifiers -Wsign-compare -Wtype-limits -Werror=char-subscripts
-Werror=comment -Werror=empty-body -Werror=endif-labels
-Werror=int-to-pointer-cast -Werror=missing-braces -Werror=overloaded-virtual
-Werror=pointer-arith -Werror=reorder -Werror=return-type
-Werror=sequence-point -Werror=switch -Werror=trigraphs -Werror=unknown-pragmas
-Werror=unused-label -Werror=unused-value -Werror=write-strings
-Werror=conversion-null -Wno-invalid-offsetof -Wcast-align -flto=64 --param
lto-partitions=64 -mcpu=power7 -fno-semantic-interposition -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread
-pipe -DNDEBUG -DTRIMMED -O3 -fomit-frame-pointer
/home/trippels/moz-build-dir/js/src/shell/tmpKUuVPB.list -lpthread
-Wl,--hash-style=gnu,--as-needed,--gc-sections,--icf=all -Wl,-z,noexecstack
-Wl,-z,text -Wl,--build-id -Wl,-rpath-link,../../../dist/bin
-Wl,-rpath-link,/home/trippels/moz-build-dir/dist/lib ../libjs_static.a
-rdynamic ../../../nsprpub/lib/ds/libplds4.so
../../../nsprpub/lib/libc/src/libplc4.so ../../../nsprpub/pr/src/libnspr4.so
-lm -ldl -lffi -lz -lm -ldl
/home/trippels/moz-build-dir/js/src/shell/tmpKUuVPB.list:
INPUT("OSObject.o")
INPUT("js.o")
INPUT("jsheaptools.o")
INPUT("jsoptparse.o")
INPUT("../editline/editline.o")
INPUT("../editline/sysunix.o")
INPUT("../../../mozglue/build/dummy.o")
INPUT("../../../mfbt/Compression.o")
INPUT("../../../mfbt/Decimal.o")
INPUT("../../../mfbt/FloatingPoint.o")
INPUT("../../../mfbt/HashFunctions.o")
INPUT("../../../mfbt/JSONWriter.o")
INPUT("../../../mfbt/Poison.o")
INPUT("../../../mfbt/SHA1.o")
INPUT("../../../mfbt/TaggedAnonymousMemory.o")
INPUT("../../../mfbt/bignum-dtoa.o")
INPUT("../../../mfbt/bignum.o")
INPUT("../../../mfbt/cached-powers.o")
INPUT("../../../mfbt/diy-fp.o")
INPUT("../../../mfbt/double-conversion.o")
INPUT("../../../mfbt/fast-dtoa.o")
INPUT("../../../mfbt/fixed-dtoa.o")
INPUT("../../../mfbt/strtod.o")
INPUT("../../../mfbt/unused.o")
lto1: internal compiler error: in inline_call, at ipa-inline-transform.c:339
0x10d422df inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*,
int*, bool, bool*)
../../gcc/gcc/ipa-inline-transform.c:334
0x10d3b9d7 inline_small_functions
../../gcc/gcc/ipa-inline.c:1827
0x10d3b9d7 ipa_inline
../../gcc/gcc/ipa-inline.c:2198
0x10d3b9d7 execute
../../gcc/gcc/ipa-inline.c:2568
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: fatal error: ../../../../gcc_test/usr/local/bin/c++ returned 1
exit status
compilation terminated.
/home/trippels/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[1]: *** [js] Error 1
adding -r -nostdlib to the invocation triggers another ICE:
lto1: internal compiler error: in update_visibility_by_resolution_info, at
ipa-visibility.c:427
(gdb) l
422 next != node; next = next->same_comdat_group)
423 gcc_assert (!next->externally_visible
424 || define == (next->resolution ==
LDPR_PREVAILING_DEF_IRONLY
425 || next->resolution ==
LDPR_PREVAILING_DEF
426 || next->resolution == LDPR_UNDEF
427 || next->resolution ==
LDPR_PREVAILING_DEF_IRONLY_EXP));
428
429 if (node->same_comdat_group)
430 for (symtab_node *next = node->same_comdat_group;
431 next != node; next = next->same_comdat_group)
(gdb) p next->externally_visible
$1 = 1
(gdb) p define
$2 = true
(gdb) p next->resolution
$3 = LDPR_PREVAILING_DEF
I will try to reduce this issue.