From 9b305d55bf262d8896f15f6766bbf77c7f4aeb12 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Mon, 9 Aug 2004 17:43:17 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 10 ++++++++-- gcc/explow.c | 3 ++- gcc/recog.c | 7 ++----- gcc/regrename.c | 2 -- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 86630ec35d5..924532b8889 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-08-09 Zack Weinberg + + * 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 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM): @@ -172,7 +178,7 @@ (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC. 2004-08-06 Roman Zippel - + * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New. * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand, pre_dec_operand. @@ -215,7 +221,7 @@ (dllimport): Likewise. * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention handle_dll_attribute. - + 2004-08-05 Zdenek Dvorak * tree-ssa-loop-manip.c: New file. diff --git a/gcc/explow.c b/gcc/explow.c index 515778f5e6b..f58873a3527 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -456,7 +456,8 @@ memory_address (enum machine_mode mode, rtx x) x = break_out_memory_refs (x); /* 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, use it the old way. */ 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 diff --git a/gcc/regrename.c b/gcc/regrename.c index 7168d4c9bc6..80cbcaafd37 100644 --- a/gcc/regrename.c +++ b/gcc/regrename.c @@ -18,8 +18,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define REG_OK_STRICT - #include "config.h" #include "system.h" #include "coretypes.h" -- 2.30.2