From 7eb07bdb5009fed93ff5164aed7a26d2c58cfc5f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 13 Apr 2001 21:47:07 +0000 Subject: [PATCH] pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM fp mode addresses. 2001-04-13 Alan Modra * pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM fp mode addresses. From-SVN: r41343 --- gcc/ChangeLog | 5 +++++ gcc/config/pa/pa.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f34c8a04c16..e5a1cbf1aa9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-04-13 Alan Modra + + * pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM + fp mode addresses. + 2001-04-13 Kaveh R. Ghazi * Makefile.in (reg-stack.o): Depend on reload.h. diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 3b9eaf027b7..6b3eceea903 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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; \ } -- 2.30.2