https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122651
Bug ID: 122651
Summary: [16 Regression] ICE in canon_condition, at
loop-iv.cc:1650 on arm-linux-gnueabihf
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
seen when bootstrapping trunk 20251111 on arm-linux-gnueabihf, building gdc:
/<<PKGBUILDDIR>>/build/./prev-gcc/xg++ -B/<<PKGBUILDDIR>>/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/arm-linux-gnueabihf/bin/ -nostdinc
++ -B/<<PKGBUILDDIR>>/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-B/<<PKGBUILDDIR>>/build/prev-arm-linux-gnueabihf/libstdc+
+-v3/libsupc++/.libs
-I/<<PKGBUILDDIR>>/build/prev-arm-linux-gnueabihf/libstdc++-v3/include/arm-linux-gnueabihf
-I/<<PKGBUILDDIR>>/b
uild/prev-arm-linux-gnueabihf/libstdc++-v3/include
-I/<<PKGBUILDDIR>>/src/libstdc++-v3/libsupc++
-L/<<PKGBUILDDIR>>/build/prev-arm-li
nux-gnueabihf/libstdc++-v3/src/.libs
-L/<<PKGBUILDDIR>>/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs
-fno-PIE -c -DIN
_GCC_FRONTEND -g -O2 -fno-checking -gtoggle -DIN_GCC -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-error=nar
rowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -fno-PIE -I. -Id
-I../../src/gcc -I../../src/gcc/d -I../../src/gcc/../in
clude -I../../src/gcc/../libcpp/include -I../../src/gcc/../libcody
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/d
pd -I../libdecnumber -I../../src/gcc/../libbacktrace -o d/intrinsics.o -MT
d/intrinsics.o -MMD -MP -MF d/.deps/intrinsics.TPo ../../
src/gcc/d/intrinsics.cc
during RTL pass: loop2_doloop
../../src/gcc/d/intrinsics.cc: In function 'bool
maybe_warn_intrinsic_mismatch(tree, tree)':
../../src/gcc/d/intrinsics.cc:495:1: internal compiler error: in
canon_condition, at loop-iv.cc:1650
495 | }
| ^
0x2b638af internal_error(char const*, ...)
../../src/gcc/diagnostic-global-context.cc:787
0x2b6f229 fancy_abort(char const*, int, char const*)
../../src/gcc/diagnostics/context.cc:1806
0x13c25b7 canon_condition(rtx_def*)
../../src/gcc/loop-iv.cc:1650
0x13c2945 simplify_using_condition(rtx_def*, rtx_def**, bitmap_head*)
../../src/gcc/loop-iv.cc:1745
0x13c2f47 simplify_using_initial_values
../../src/gcc/loop-iv.cc:1997
0x13c2c2d simplify_using_initial_values
../../src/gcc/loop-iv.cc:1878
0x13c577d iv_number_of_iterations
../../src/gcc/loop-iv.cc:2768
0x13c5c77 check_simple_exit
../../src/gcc/loop-iv.cc:2897
0x13c5d23 find_simple_exit
../../src/gcc/loop-iv.cc:2922
0x13c608d get_simple_loop_desc(loop*)
../../src/gcc/loop-iv.cc:3018
0x29571dd doloop_optimize
../../src/gcc/loop-doloop.cc:691
0x2957ac1 doloop_optimize_loops()
../../src/gcc/loop-doloop.cc:846
0x13ba3a7 execute
../../src/gcc/loop-init.cc:644
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
complete build log (including a GCC ICE dump at
https://launchpad.net/ubuntu/+source/gcc-snapshot/1:20251111-1ubuntu1/+build/31480119