https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117185
Bug ID: 117185 Summary: Bootstrap fails with ICE: in operator[], at vec.h:910 with LRA on non-BWX alpha Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: glaubitz at physik dot fu-berlin.de CC: macro at orcam dot me.uk, mcree at orcon dot net.nz, sjames at gcc dot gnu.org, ubizjak at gmail dot com Target Milestone: --- Host: alpha-*-* When trying to bootstrap GCC with the default baseline (non-BWX) on alpha with LRA enabled, the build fails with: during RTL pass: reload ../../../libgomp/team.c: In function 'gomp_team_start': mv -f .deps/bar.Tpo .deps/bar.Plo ../../../libgomp/team.c:940:1: internal compiler error: in operator[], at vec.h:910 940 | } | ^ yes checking for /home/glaubitz/gcc.git/build/./gcc/xgcc -B/home/glaubitz/gcc.git/build/./gcc/ -B/usr/local/alpha-unknown-linux-gnu/bin/ -B/usr/local/alpha-unknown-linux-gnu/lib/ -isystem /usr/local/alpha-unknown-linux-gnu/include -isystem /usr/local/alpha-unknown-linux-gnu/sys-include -fno-checking option to accept ISO C89... libtool: compile: /home/glaubitz/gcc.git/build/./gcc/xgcc -B/home/glaubitz/gcc.git/build/./gcc/ -B/usr/local/alpha-unknown-linux-gnu/bin/ -B/usr/local/alpha-unknown-linux-gnu/lib/ -isystem /usr/local/alpha-unknown-linux-gnu/include -isystem /usr/local/alpha-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../libgomp -I../../../libgomp/config/linux/alpha -I../../../libgomp/config/linux -I../../../libgomp/config/posix -I../../../libgomp -I../../../libgomp/../include -Wall -ftls-model=initial-exec -pthread -DUSING_INITIAL_EXEC_TLS -g -O2 -mieee -MT oacc-init.lo -MD -MP -MF .deps/oacc-init.Tpo -c ../../../libgomp/oacc-init.c -o oacc-init.o >/dev/null 2>&1 libtool: compile: /home/glaubitz/gcc.git/build/./gcc/xgcc -B/home/glaubitz/gcc.git/build/./gcc/ -B/usr/local/alpha-unknown-linux-gnu/bin/ -B/usr/local/alpha-unknown-linux-gnu/lib/ -isystem /usr/local/alpha-unknown-linux-gnu/include -isystem /usr/local/alpha-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../libgomp -I../../../libgomp/config/linux/alpha -I../../../libgomp/config/linux -I../../../libgomp/config/posix -I../../../libgomp -I../../../libgomp/../include -Wall -ftls-model=initial-exec -pthread -DUSING_INITIAL_EXEC_TLS -g -O2 -mieee -MT ordered.lo -MD -MP -MF .deps/ordered.Tpo -c ../../../libgomp/ordered.c -o ordered.o >/dev/null 2>&1 libtool: compile: /home/glaubitz/gcc.git/build/./gcc/xgcc -B/home/glaubitz/gcc.git/build/./gcc/ -B/usr/local/alpha-unknown-linux-gnu/bin/ -B/usr/local/alpha-unknown-linux-gnu/lib/ -isystem /usr/local/alpha-unknown-linux-gnu/include -isystem /usr/local/alpha-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../libgomp -I../../../libgomp/config/linux/alpha -I../../../libgomp/config/linux -I../../../libgomp/config/posix -I../../../libgomp -I../../../libgomp/../include -Wall -ftls-model=initial-exec -pthread -DUSING_INITIAL_EXEC_TLS -g -O2 -mieee -MT loop_ull.lo -MD -MP -MF .deps/loop_ull.Tpo -c ../../../libgomp/loop_ull.c -o loop_ull.o >/dev/null 2>&1 0x1232b5047 internal_error(char const*, ...) ../../gcc/diagnostic-global-context.cc:517 0x1232676eb fancy_abort(char const*, int, char const*) ../../gcc/diagnostic.cc:1533 0x120be06f3 vec<reg_equivs_t, va_gc, vl_embed>::operator[](unsigned int) ../../gcc/vec.h:910 0x121f4eb57 resolve_reload_operand(rtx_def*) ../../gcc/config/alpha/alpha.cc:684 0x122c6bd43 aligned_memory_operand(rtx_def*, machine_mode) ../../gcc/config/alpha/predicates.md:428 0x121f55a0b alpha_expand_mov_nobwx(machine_mode, rtx_def**) ../../gcc/config/alpha/alpha.cc:2294 0x122c4f6d7 gen_movqi(rtx_def*, rtx_def*) ../../gcc/config/alpha/alpha.md:4241 0x120bd8057 rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*>(rtx_def*, rtx_def*) const ../../gcc/recog.h:442 0x120eb866f emit_move_insn_1(rtx_def*, rtx_def*) ../../gcc/expr.cc:4577 0x120eb9747 emit_move_insn(rtx_def*, rtx_def*) ../../gcc/expr.cc:4747 0x12137c6bb lra_emit_move(rtx_def*, rtx_def*) ../../gcc/lra.cc:509 none needed checking whether /home/glaubitz/gcc.git/build/./gcc/xgcc -B/home/glaubitz/gcc.git/build/./gcc/ -B/usr/local/alpha-unknown-linux-gnu/bin/ -B/usr/local/alpha-unknown-linux-gnu/lib/ -isystem /usr/local/alpha-unknown-linux-gnu/include -isystem /usr/local/alpha-unknown-linux-gnu/sys-include -fno-checking understands -c and -o together... 0x1213a523b curr_insn_transform ../../gcc/lra-constraints.cc:4750 0x1213a8ed7 lra_constraints(bool) ../../gcc/lra-constraints.cc:5496 0x121384443 lra(_IO_FILE*, int) ../../gcc/lra.cc:2445 0x1212fa08f do_reload ../../gcc/ira.cc:5977 0x1212fa9a7 execute ../../gcc/ira.cc:6165 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. Passing --with-cpu=ev56 (BWX) makes the build succeed.