From 458a05dfce28c3a00330c3bbf2bbcc853091ca0b Mon Sep 17 00:00:00 2001 From: kenner Date: Sun, 12 Dec 1993 13:01:09 +0000 Subject: (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 --- gcc/recog.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/recog.c') 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 -- cgit v1.2.1