https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123629
Josef Melcr <jmelcr at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-source |needs-bisection
--- Comment #7 from Josef Melcr <jmelcr at gcc dot gnu.org> ---
$ ~/gcc/inst/bin/g++ -w -O3 -flto Unified_cpp_js_src_gc3.ii nsAppRunner.ii
nsRemoteService.ii StoreBuffer.ii Unified_cpp_contentanalysis0.ii
Unified_cpp_js_src_gc0.ii Unified_cpp_js_src_gc1.ii
during IPA pass: cp
lto1: internal compiler error: Segmentation fault
0x24268cd internal_error(char const*, ...)
/home/jmelcr/gcc/src/gcc/diagnostic-global-context.cc:787
0x104d56f crash_signal
/home/jmelcr/gcc/src/gcc/toplev.cc:325
0x2236bcd vec<ipa_polymorphic_call_context, va_heap,
vl_embed>::operator[](unsigned int)
/home/jmelcr/gcc/src/gcc/vec.h:911
0x2236bcd vec<ipa_polymorphic_call_context, va_heap,
vl_ptr>::operator[](unsigned int)
/home/jmelcr/gcc/src/gcc/vec.h:1610
0x2236bcd ipcp_val_replacement_ok_p(vec<tree_node*, va_heap, vl_ptr>&,
vec<ipa_polymorphic_call_context, va_heap, vl_ptr>&, vec<ipa_argagg_value,
va_gc, vl_embed>*, int, long, ipa_polymorphic_call_context)
/home/jmelcr/gcc/src/gcc/ipa-cp.cc:5899
0x2236bcd decide_about_value<ipa_polymorphic_call_context>
/home/jmelcr/gcc/src/gcc/ipa-cp.cc:6042
0x2236bcd decide_whether_version_node
/home/jmelcr/gcc/src/gcc/ipa-cp.cc:6241
0x2239685 ipcp_decision_stage
/home/jmelcr/gcc/src/gcc/ipa-cp.cc:6553
0x2239685 ipcp_driver
/home/jmelcr/gcc/src/gcc/ipa-cp.cc:6749
0x2239685 execute
/home/jmelcr/gcc/src/gcc/ipa-cp.cc:6826
/home/jmelcr/gcc/inst/libexec/gcc/x86_64-pc-linux-gnu/16.0.1/lto1 -quiet
-dumpbase ./a.wpa -mtune=generic -march=x86-64 -O3 -O3 -w -fno-openmp
-fno-openacc -fno-pie -fcf-protection=none
-fltrans-output-list=/tmp/ccixWgrV.ltrans.out -fwpa
-fresolution=/tmp/ccOfwCOJ.res -flinker-output=exec @/tmp/cc72HgZr
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: /home/jmelcr/gcc/inst/bin/g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
$ ~/gcc/inst/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/home/jmelcr/gcc/inst/bin/g++
COLLECT_LTO_WRAPPER=/home/jmelcr/gcc/inst/libexec/gcc/x86_64-pc-linux-gnu/16.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/jmelcr/gcc/src/configure --disable-bootstrap
--enable-checking --disable-libsanitizer --prefix=/home/jmelcr/gcc/inst :
(reconfigured) /home/jmelcr/gcc/src/configure --disable-bootstrap
--enable-checking --disable-libsanitizer --prefix=/home/jmelcr/gcc/inst
--enable-languages=c,c++,fortran,lto,objc --no-create --no-recursion
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260204 (experimental) (GCC)
If you move 'Unified_cpp_js_src_gc3.ii' further back in the list, the segfault
disappears and the checking assert on line ipa-cp.cc:6042 fails.