]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix --enable-checking=rtl ICE on rv32gc bootstrap
authorPatrick O'Neill <patrick@rivosinc.com>
Tue, 19 Sep 2023 17:03:35 +0000 (10:03 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 19 Sep 2023 21:17:31 +0000 (14:17 -0700)
commit5b554c559d0103bfc1a68777907945ec3035a2bd
treea12c934a17e80ebcf6eaa626552ed656d243ba41
parent7a4e57ffc9a97f172487dab81123ad62bebd4997
RISC-V: Fix --enable-checking=rtl ICE on rv32gc bootstrap

Resolves PR 111461.

during RTL pass: expand
offtime.c: In function '__offtime':
offtime.c:79:6: internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'w' (rtx const_int) in riscv_legitimize_const_move, at config/riscv/riscv.cc:2176
   79 |   ip = __mon_yday[__isleap(y)];

Tested on rv32gc glibc with --enable-checking=rtl.

2023-09-19 Juzhe Zhong <juzhe.zhong@rivai.ai>

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_legitimize_const_move): Eliminate
src_op_0 var to avoid rtl check error.

Tested-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/config/riscv/riscv.cc