Commit 9b305d55 by Zack Weinberg Committed by Zack Weinberg

explow.c (memory_address): Use memory_address_p.

	* explow.c (memory_address): Use memory_address_p.
	* recog.c (general_operand): Likewise.
	* regrename.c: No need to define REG_OK_STRICT.

From-SVN: r85720
parent 702d4b73
2004-08-09 Zack Weinberg <zack@codesourcery.com>
* explow.c (memory_address): Use memory_address_p.
* recog.c (general_operand): Likewise.
* regrename.c: No need to define REG_OK_STRICT.
2004-08-09 Steven Bosscher <stevenb@suse.de> 2004-08-09 Steven Bosscher <stevenb@suse.de>
* timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM): * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
......
...@@ -456,7 +456,8 @@ memory_address (enum machine_mode mode, rtx x) ...@@ -456,7 +456,8 @@ memory_address (enum machine_mode mode, rtx x)
x = break_out_memory_refs (x); x = break_out_memory_refs (x);
/* At this point, any valid address is accepted. */ /* At this point, any valid address is accepted. */
GO_IF_LEGITIMATE_ADDRESS (mode, x, win); if (memory_address_p (mode, x))
goto win;
/* If it was valid before but breaking out memory refs invalidated it, /* If it was valid before but breaking out memory refs invalidated it,
use it the old way. */ use it the old way. */
......
...@@ -975,14 +975,11 @@ general_operand (rtx op, enum machine_mode mode) ...@@ -975,14 +975,11 @@ general_operand (rtx op, enum machine_mode mode)
return 0; return 0;
/* Use the mem's mode, since it will be reloaded thus. */ /* Use the mem's mode, since it will be reloaded thus. */
mode = GET_MODE (op); if (memory_address_p (GET_MODE (op), y))
GO_IF_LEGITIMATE_ADDRESS (mode, y, win); return 1;
} }
return 0; return 0;
win:
return 1;
} }
/* Return 1 if OP is a valid memory address for a memory reference /* Return 1 if OP is a valid memory address for a memory reference
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
Software Foundation, 59 Temple Place - Suite 330, Boston, MA Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */ 02111-1307, USA. */
#define REG_OK_STRICT
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
#include "coretypes.h" #include "coretypes.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment