aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1993-02-26 11:58:20 -0700
committerJeff Law <law@gcc.gnu.org>1993-02-26 11:58:20 -0700
commitcabeca29785da14dd9eb13a529b5d53364769037 (patch)
tree2a7dfd973c548fb1f151a715e60bcdcb5baae887 /gcc/explow.c
parent80f251fec1abf16d7443e88033ad5a285f3d0e93 (diff)
downloadgcc-cabeca29785da14dd9eb13a529b5d53364769037.zip
gcc-cabeca29785da14dd9eb13a529b5d53364769037.tar.gz
gcc-cabeca29785da14dd9eb13a529b5d53364769037.tar.bz2
explow.c (memory_address): Use CONSTANT_ADDRESS_P instead of LEGITIMATE_CONSTANT_P.
* explow.c (memory_address): Use CONSTANT_ADDRESS_P instead of LEGITIMATE_CONSTANT_P. (break_out_memrefs): Likewise. From-SVN: r3540
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index d2519c6..2cc6461 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -267,7 +267,7 @@ break_out_memory_refs (x)
register rtx x;
{
if (GET_CODE (x) == MEM
- || (CONSTANT_P (x) && LEGITIMATE_CONSTANT_P (x)
+ || (CONSTANT_P (x) && CONSTANT_ADDRESS_P (x)
&& GET_MODE (x) != VOIDmode))
{
register rtx temp = force_reg (GET_MODE (x), x);
@@ -333,7 +333,7 @@ memory_address (mode, x)
/* By passing constant addresses thru registers
we get a chance to cse them. */
- if (! cse_not_expected && CONSTANT_P (x) && LEGITIMATE_CONSTANT_P (x))
+ if (! cse_not_expected && CONSTANT_P (x) && CONSTANT_ADDRESS_P (x))
return force_reg (Pmode, x);
/* Accept a QUEUED that refers to a REG