diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2014-02-27 17:06:02 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2014-02-27 17:06:02 +0000 |
commit | 93aaa05d1c798bc99f6d26473ec38ba9926a28f2 (patch) | |
tree | 9dd27f9347e5a8a46c1df16eed461f0493922dde /gcc/lra.c | |
parent | 7fce82f5899d4a5a46e52f355518c5bd7bfa4435 (diff) | |
download | gcc-93aaa05d1c798bc99f6d26473ec38ba9926a28f2.zip gcc-93aaa05d1c798bc99f6d26473ec38ba9926a28f2.tar.gz gcc-93aaa05d1c798bc99f6d26473ec38ba9926a28f2.tar.bz2 |
re PR target/59222 (gcc.c-torture/compile/20050622-1.c ICEs at -O1 and above for aarch64-elf ILP32)
2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
PR target/59222
* lra.c (lra_emit_add): Check SUBREG too.
From-SVN: r208201
Diffstat (limited to 'gcc/lra.c')
-rw-r--r-- | gcc/lra.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -340,8 +340,9 @@ lra_emit_add (rtx x, rtx y, rtx z) base = a1; index = a2; } - if (! REG_P (base) - || (index != NULL_RTX && ! REG_P (index)) + if (! (REG_P (base) || GET_CODE (base) == SUBREG) + || (index != NULL_RTX + && ! (REG_P (index) || GET_CODE (index) == SUBREG)) || (disp != NULL_RTX && ! CONSTANT_P (disp)) || (scale != NULL_RTX && ! CONSTANT_P (scale))) { |