aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-02-19 13:05:47 +0100
committerJakub Jelinek <jakub@redhat.com>2021-02-19 13:05:47 +0100
commit1a132c4d7cdb22cbab85b8596418daa2c3157812 (patch)
tree8cb548532a88091b386d0663eb9e9c5a50e860bc /gcc/tree-inline.c
parent37bde2f87267908a93c07856317a28827f8284f7 (diff)
downloadgcc-1a132c4d7cdb22cbab85b8596418daa2c3157812.zip
gcc-1a132c4d7cdb22cbab85b8596418daa2c3157812.tar.gz
gcc-1a132c4d7cdb22cbab85b8596418daa2c3157812.tar.bz2
arm: Fix ICE with -fstack-protector -mpure-code [PR98998]
The vla15.C testcase ICEs with -mcpu=cortex-m1 -mpure-code -fstack-protector -mthumb as what force_const_mem returns (a SYMBOL_REF) is not a valid memory address. Previously the code was moving the address of the force_const_mem into a register rather than the content of that MEM, so that instruction must have been supported and loading from a MEM with a single REG base ought to be valid too. 2021-02-19 Jakub Jelinek <jakub@redhat.com> PR target/98998 * config/arm/arm.md (*stack_protect_combined_set_insn, *stack_protect_combined_test_insn): If force_const_mem result is not valid general operand, force its address into the destination register first. * gcc.target/arm/pure-code/pr98998.c: New test.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions