https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127772
Bug ID: 127772
Summary: ICE: in shift, at sreal.h:104 with -O2
--param=ipa-cp-profile-runtime-scaling=536870884
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Compiler output:
$ $ echo 'void foo(){}' | x86_64-pc-linux-gnu-gcc -O2
--param=ipa-cp-profile-runtime-scaling=536870884 -xc -
during IPA pass: cp
<stdin>:1:1: internal compiler error: in shift, at sreal.h:104
0x2eba3a9 internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xd35577 fancy_abort(char const*, int, char const*)
/repo/gcc-trunk/gcc/diagnostics/context.cc:1813
0xc4a66b sreal::shift(int) const
/repo/gcc-trunk/gcc/sreal.h:104
0xc4a66b ipcp_propagate_stage
/repo/gcc-trunk/gcc/ipa-cp.cc:4127
0xc4a66b ipcp_driver
/repo/gcc-trunk/gcc/ipa-cp.cc:6803
0xc4a66b execute
/repo/gcc-trunk/gcc/ipa-cp.cc:6882
/repo/gcc-trunk/binary-trunk-20261008093031-r17-4980-gad8e1fbd322b08-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20261008093031-r17-4980-gad8e1fbd322b08-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
- -quiet -dumpdir a- -dumpbase - -mtune=generic -march=x86-64 -O2
--param=ipa-cp-profile-runtime-scaling=536870884 -o /tmp/ccYWP1KA.s
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.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20261008093031-r17-4980-gad8e1fbd322b08-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --enable-libsanitizer --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20261008093031-r17-4980-gad8e1fbd322b08-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20261008 (experimental) (GCC)