aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.cc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2024-12-20 18:01:53 -0300
committerAlexandre Oliva <oliva@gnu.org>2024-12-20 18:01:53 -0300
commite7108c34a3685eaf9edd3b1fefbd3645b9bd8def (patch)
tree345c1b9905566d32e2d240c7634ae94fe875518b /gcc/fortran/trans-expr.cc
parent0dc35fe5a095d9205da80cba976357cb71f8cb88 (diff)
downloadgcc-e7108c34a3685eaf9edd3b1fefbd3645b9bd8def.zip
gcc-e7108c34a3685eaf9edd3b1fefbd3645b9bd8def.tar.gz
gcc-e7108c34a3685eaf9edd3b1fefbd3645b9bd8def.tar.bz2
avoid trying to set block in barriers [PR113506]
When we emit a sequence before a preexisting insn and naming a BB to store in the insns, we will attempt to store the BB even in barriers present in the sequence. Barriers don't expect blocks, and rtl checking catches the problem. When emitting after a preexisting insn, we skip the block setting in barriers. Change the before emitter to do so as well. for gcc/ChangeLog PR middle-end/113506 * emit-rtl.cc (add_insn_before): Don't set the block of a barrier. for gcc/testsuite/ChangeLog PR middle-end/113506 * gcc.target/riscv/pr113506.c: New.
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
0 files changed, 0 insertions, 0 deletions