]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix ICE on riscv_gpr_save_operation_p [PR95683]
authorKito Cheng <kito.cheng@sifive.com>
Tue, 16 Jun 2020 02:14:13 +0000 (10:14 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 9 Jul 2020 07:22:44 +0000 (15:22 +0800)
commit01b774ff3adcae0e72548f050795c1cf6bf5b8fe
tree4936c72e53d31f5d3a1d4435014685d3f0c5a4a4
parentd009e1d33a737d86681ec611cc2097f36a01b8eb
RISC-V: Fix ICE on riscv_gpr_save_operation_p [PR95683]

 - riscv_gpr_save_operation_p might try to match parallel on other
   patterns like inline asm pattern, and then it might trigger ther
   assertion checking there, so we could trun it into a early exit check.

gcc/ChangeLog:

PR target/95683
* config/riscv/riscv.c (riscv_gpr_save_operation_p): Remove
assertion and turn it into a early exit check.

gcc/testsuite/ChangeLog

PR target/95683
* gcc.target/riscv/pr95683.c: New.

(cherry picked from commit beaf12b49ae030505194cdcac18b5c8533a43921)
gcc/config/riscv/riscv.c
gcc/testsuite/gcc.target/riscv/pr95683.c [new file with mode: 0644]