[Bug tree-optimization/126642] New: [17 Regression] ICE bootstrapping; compiling bid64_mul.c with stage1
"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]> Tue, 04 Aug 2026 16:22:35 +0000
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126642
Bug ID: 126642
Summary: [17 Regression] ICE bootstrapping; compiling
bid64_mul.c with stage1
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: build, ice-on-valid-code
Severity: blocker
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: x86_64-linux-gnu
Created attachment 65241
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65241&action=edit
testcase
[apinski@xeond2 libgcc]$
/home/apinski/src/upstream-gcc-git/gcc/objdir/./gcc/xgcc
-B/home/apinski/src/upstream-gcc-git/gcc/objdir/./gcc/
-B/home/apinski/upstream-gcc/x86_64-pc-linux-gnu/bin/
-B/home/apinski/upstream-gcc/x86_64-pc-linux-gnu/lib/../lib/ -isystem
/home/apinski/upstream-gcc/x86_64-pc-linux-gnu/include -isystem
/home/apinski/upstream-gcc/x86_64-pc-linux-gnu/sys-include -fno-checking -g
-O2 -m32 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fpic -mlong-double-80
-DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector -fpic -mlong-double-80 -DUSE_ELF_SYMVER -fcf-protection
-mshstk -I. -I. -I../../.././gcc
-I/home/apinski/src/upstream-gcc-git/gcc/libgcc
-I/home/apinski/src/upstream-gcc-git/gcc/libgcc/.
-I/home/apinski/src/upstream-gcc-git/gcc/libgcc/../gcc
-I/home/apinski/src/upstream-gcc-git/gcc/libgcc/../include
-I/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/i386
-I/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/libbid
-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o bid64_mul.o -MT
bid64_mul.o -MD -MP -MF bid64_mul.dep -c
/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/libbid/bid64_mul.c
-freport-bug
during RTL pass: expand
In file included from
/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/libbid/bid64_mul.c:43:
/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/libbid/bid64_mul.c: In
function ‘__bid64_mul’:
/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/libbid/bid_internal.h:265:23:
internal compiler error: in expand_mult, at expmed.cc:3669
265 | (P).w[1] = PH + (PM>>32); \
| ~~~^~~~~~~~~~
/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/libbid/bid64_mul.c:188:5:
note: in expansion of macro ‘__mul_64x64_to_128’
188 | __mul_64x64_to_128 (P, coefficient_x, coefficient_y);
| ^~~~~~~~~~~~~~~~~~
0x3b337ca internal_error(char const*, ...)
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic-global-context.cc:787
0x3b420db fancy_abort(char const*, int, char const*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostics/context.cc:1813
0x14212e4 expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int, bool)
/home/apinski/src/upstream-gcc-git/gcc/gcc/expmed.cc:3669
0x14579cf expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode,
expand_modifier)
/home/apinski/src/upstream-gcc-git/gcc/gcc/expr.cc:10568
0x145b1b6 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/home/apinski/src/upstream-gcc-git/gcc/gcc/expr.cc:11389
0x145c2d1 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/home/apinski/src/upstream-gcc-git/gcc/gcc/expr.cc:11618
0x14533be expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
/home/apinski/src/upstream-gcc-git/gcc/gcc/expr.cc:9655
0x1259680 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
/home/apinski/src/upstream-gcc-git/gcc/gcc/expr.h:323
0x1458b4f expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode,
expand_modifier)
/home/apinski/src/upstream-gcc-git/gcc/gcc/expr.cc:10829
0x145b1b6 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/home/apinski/src/upstream-gcc-git/gcc/gcc/expr.cc:11389
0x128f425 expand_gimple_stmt_1
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:4356
0x128f6dc expand_gimple_stmt
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:4420
0x1297d53 expand_gimple_basic_block
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:6537
0x129a42f execute
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:7288
/home/apinski/src/upstream-gcc-git/gcc/objdir/./gcc/cc1 -quiet -I . -I . -I
../../.././gcc -I /home/apinski/src/upstream-gcc-git/gcc/libgcc -I
/home/apinski/src/upstream-gcc-git/gcc/libgcc/. -I
/home/apinski/src/upstream-gcc-git/gcc/libgcc/../gcc -I
/home/apinski/src/upstream-gcc-git/gcc/libgcc/../include -I
/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/i386 -I
/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/libbid -imultilib 32
-iprefix
/bajas/pinskia/src/upstream-gcc-git/gcc/objdir/gcc/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
-isystem /home/apinski/src/upstream-gcc-git/gcc/objdir/./gcc/include -isystem
/home/apinski/src/upstream-gcc-git/gcc/objdir/./gcc/include-fixed -MD
bid64_mul.d -MF bid64_mul.dep -MP -MT bid64_mul.o -D IN_GCC -D USE_ELF_SYMVER
-D IN_LIBGCC2 -D USE_ELF_SYMVER -D ENABLE_DECIMAL_BID_FORMAT -D HAVE_CC_TLS -D
USE_TLS -isystem /home/apinski/upstream-gcc/x86_64-pc-linux-gnu/include
-isystem /home/apinski/upstream-gcc/x86_64-pc-linux-gnu/sys-include -isystem
./include
/home/apinski/src/upstream-gcc-git/gcc/libgcc/config/libbid/bid64_mul.c -quiet
-dumpbase bid64_mul.c -dumpbase-ext .c -m32 -mlong-double-80 -mshstk
-mtune=generic -march=x86-64 -g -g -g -O2 -O2 -O2 -Wextra -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wformat=0 -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -fno-checking -fcf-protection=full
-fbuilding-libgcc -fno-stack-protector -fpic -fcf-protection=full -freport-bug
-o /tmp/cciQSthI.s
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Preprocessed source stored into /tmp/ccDGaopm.out file, please attach this to
your bugreport.