diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-12-12 13:01:09 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-12-12 13:01:09 +0000 |
commit | 458a05dfce28c3a00330c3bbf2bbcc853091ca0b (patch) | |
tree | 4d2efe95cd5fac66ba8cc028203cd12be779c8cf /gcc/recog.c | |
parent | 1b117c60bee21ceab4a5e9b88e9c97276e0eba03 (diff) | |
download | ppe42-gcc-458a05dfce28c3a00330c3bbf2bbcc853091ca0b.tar.gz ppe42-gcc-458a05dfce28c3a00330c3bbf2bbcc853091ca0b.zip |
(indirect_operand): Verify mode of OP is correct.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6222 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index 2232db29a1e..b3ae3507095 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -1088,6 +1088,9 @@ indirect_operand (op, mode) - MIN (UNITS_PER_WORD, GET_MODE_SIZE (GET_MODE (inner)))); #endif + if (mode != VOIDmode && GET_MODE (op) != mode) + return 0; + /* The only way that we can have a general_operand as the resulting address is if OFFSET is zero and the address already is an operand or if the address is (plus Y (const_int -OFFSET)) and Y is an |