OSDN Git Service

* config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Apr 2004 14:18:39 +0000 (14:18 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Apr 2004 14:18:39 +0000 (14:18 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80903 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm.c

index 4ac809b..9c58eed 100644 (file)
@@ -1,5 +1,9 @@
 2004-04-20  Paul Brook  <paul@codesourcery.com>
 
+       * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
+
+2004-04-20  Paul Brook  <paul@codesourcery.com>
+
        * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
 
 2004-04-20  Paolo Bonzini  <bonzini@gnu.org>
index 9bd88b9..d6c0c3d 100644 (file)
@@ -2994,7 +2994,7 @@ arm_legitimate_address_p (enum machine_mode mode, rtx x, RTX_CODE outer,
           && GET_MODE_SIZE (mode) <= 4
           && arm_address_register_rtx_p (XEXP (x, 0), strict_p)
           && GET_CODE (XEXP (x, 1)) == PLUS
-          && XEXP (XEXP (x, 1), 0) == XEXP (x, 0))
+          && rtx_equal_p (XEXP (XEXP (x, 1), 0), XEXP (x, 0)))
     return arm_legitimate_index_p (mode, XEXP (XEXP (x, 1), 1), outer,
                                   strict_p);