summaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-09 17:43:17 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-09 17:43:17 +0000
commitd7ecac2ed2227fc3db9e50e13aab98bf92bd0e26 (patch)
tree6fef4f7fa04422bce536a2708b9782fb548abd0c /gcc/recog.c
parent44bb68b4767c6f576bf0842efba19606a4f11b6c (diff)
downloadgcc-d7ecac2ed2227fc3db9e50e13aab98bf92bd0e26.tar.gz
* explow.c (memory_address): Use memory_address_p.
* recog.c (general_operand): Likewise. * regrename.c: No need to define REG_OK_STRICT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85720 138bc75d-0d04-0410-961f-82ee72b054a4
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