diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-03-16 11:04:16 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-03-16 11:04:16 +0100 |
commit | 952155629ca1a4dfe7c7b26e53d118a9b853ed4a (patch) | |
tree | 3d59c4d677475bf53a6b6e2259bbf0b6ea0b1b78 /gcc/go | |
parent | 6aef670e486e60e9f492752ff25ff3ed6058bc3b (diff) | |
download | gcc-952155629ca1a4dfe7c7b26e53d118a9b853ed4a.zip gcc-952155629ca1a4dfe7c7b26e53d118a9b853ed4a.tar.gz gcc-952155629ca1a4dfe7c7b26e53d118a9b853ed4a.tar.bz2 |
aarch64: Fix up RTL sharing bug in aarch64_load_symref_appropriately [PR104910]
We unshare all RTL created during expansion, but when
aarch64_load_symref_appropriately is called after expansion like in the
following testcases, we use imm in both HIGH and LO_SUM operands.
If imm is some RTL that shouldn't be shared like a non-sharable CONST,
we get at least with --enable-checking=rtl a checking ICE, otherwise might
just get silently wrong code.
The following patch fixes that by copying it if it can't be shared.
2022-03-16 Jakub Jelinek <jakub@redhat.com>
PR target/104910
* config/aarch64/aarch64.cc (aarch64_load_symref_appropriately): Copy
imm rtx.
* gcc.dg/pr104910.c: New test.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions