diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2002-03-12 21:02:24 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2002-03-12 21:02:24 +0000 |
commit | 6a45951fb24c1e9196b11f68d7c3ad79a54512cf (patch) | |
tree | c09264915a380c9c33fd01f4eafe57c4dce2b6e4 /gcc/reload1.c | |
parent | b3dd43df63398076775e3100971de43c61af3fd1 (diff) | |
download | gcc-6a45951fb24c1e9196b11f68d7c3ad79a54512cf.zip gcc-6a45951fb24c1e9196b11f68d7c3ad79a54512cf.tar.gz gcc-6a45951fb24c1e9196b11f68d7c3ad79a54512cf.tar.bz2 |
reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent is not a valid memory_operand.
* reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
is not a valid memory_operand.
From-SVN: r50681
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index a3519ef..fce489d 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -790,7 +790,12 @@ reload (first, global) i = REGNO (SET_DEST (set)); if (i > LAST_VIRTUAL_REGISTER) { - if (GET_CODE (x) == MEM) + /* It can happen that a REG_EQUIV note contains a MEM + that is not a legitimate memory operand. As later + stages of reload assume that all addresses found + in the reg_equiv_* arrays were originally legitimate, + we ignore such REG_EQUIV notes. */ + if (memory_operand (x, VOIDmode)) { /* Always unshare the equivalence, so we can substitute into this insn without touching the |