summaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/recog.c')
-rw-r--r--gcc/recog.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/recog.c b/gcc/recog.c
index 12b0fbf68a1..5bd8458baf6 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -975,14 +975,11 @@ general_operand (rtx op, enum machine_mode mode)
return 0;
/* Use the mem's mode, since it will be reloaded thus. */
- mode = GET_MODE (op);
- GO_IF_LEGITIMATE_ADDRESS (mode, y, win);
+ if (memory_address_p (GET_MODE (op), y))
+ return 1;
}
return 0;
-
- win:
- return 1;
}
/* Return 1 if OP is a valid memory address for a memory reference