diff options
| author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-12 21:02:24 +0000 |
|---|---|---|
| committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-12 21:02:24 +0000 |
| commit | 295a8b81c84427deede101bacbba85cb24ab86f0 (patch) | |
| tree | c09264915a380c9c33fd01f4eafe57c4dce2b6e4 | |
| parent | 8916275cffc51cb13c7e9622adc824ef109a20bc (diff) | |
| download | ppe42-gcc-295a8b81c84427deede101bacbba85cb24ab86f0.tar.gz ppe42-gcc-295a8b81c84427deede101bacbba85cb24ab86f0.zip | |
* reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
is not a valid memory_operand.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50681 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/reload1.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87e5ca1afcf..5f02f153583 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-03-12 Ulrich Weigand <uweigand@de.ibm.com> + + * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent + is not a valid memory_operand. + 2002-03-12 Bob Wilson <bob.wilson@acm.org> * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS. diff --git a/gcc/reload1.c b/gcc/reload1.c index a3519efe3c4..fce489da0d0 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 |

