pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM fp mode addresses.
authorAlan Modra <alan@linuxcare.com.au>
Fri, 13 Apr 2001 21:47:07 +0000 (21:47 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 13 Apr 2001 21:47:07 +0000 (15:47 -0600)
2001-04-13  Alan Modra  <alan@linuxcare.com.au>

        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM
        fp mode addresses.

From-SVN: r41343

gcc/ChangeLog
gcc/config/pa/pa.h

index f34c8a04c16be322f309366f63ca9567e2bcd724..e5a1cbf1aa97c7a64f548324c82e6f7801351e0c 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-13  Alan Modra  <alan@linuxcare.com.au>
+
+        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM
+        fp mode addresses.
+
 2001-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * Makefile.in (reg-stack.o): Depend on reload.h.
index 3b9eaf027b7703d5c296982505ef260ef2159416..6b3eceea903bee23a243055345cc63249ecdae59 100644 (file)
@@ -1332,7 +1332,11 @@ extern int may_call_alloca;
   else if (GET_CODE (X) == LO_SUM                      \
           && GET_CODE (XEXP (X, 0)) == REG             \
           && REG_OK_FOR_BASE_P (XEXP (X, 0))           \
-          && GET_CODE (XEXP (X, 1)) == UNSPEC)         \
+          && GET_CODE (XEXP (X, 1)) == UNSPEC          \
+          && (TARGET_SOFT_FLOAT                        \
+              || TARGET_PA_20                          \
+              || ((MODE) != SFmode                     \
+                  && (MODE) != DFmode)))               \
     goto ADDR;                                         \
 }