From 8008102813dc5fc95925453a06c5f88a269dc0ab Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 5 Jun 2002 14:35:23 -0600 Subject: [PATCH] pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it rejects (mem (lo_sum (reg) (unspec)))... * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it rejects (mem (lo_sum (reg) (unspec))), but will allow (mem (lo_sum (reg) (symbol_ref)) for PA2.0. From-SVN: r54294 --- gcc/ChangeLog | 6 ++++++ gcc/config/pa/pa.h | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a51e8cfcced..8fa7a5d489f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-06-05 Jeffrey Law + + * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it + rejects (mem (lo_sum (reg) (unspec))), but will allow + (mem (lo_sum (reg) (symbol_ref)) for PA2.0. + 2002-06-05 Neil Booth * cpphash.h (_cpp_create_definition): Update prototype. diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 9dd93f4a0c1..336703e3446 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -1173,7 +1173,11 @@ extern int may_call_alloca; ? GET_MODE (OP) \ : DFmode), \ XEXP (OP, 0)) \ - && GET_CODE (XEXP (OP, 0)) != LO_SUM \ + && !(GET_CODE (XEXP (OP, 0)) == LO_SUM \ + && GET_CODE (XEXP (XEXP (OP, 0), 0)) == REG \ + && REG_OK_FOR_BASE_P (XEXP (XEXP (OP, 0), 0))\ + && GET_CODE (XEXP (XEXP (OP, 0), 1)) == UNSPEC\ + && GET_MODE (XEXP (OP, 0)) == Pmode) \ && !(GET_CODE (XEXP (OP, 0)) == PLUS \ && (GET_CODE (XEXP (XEXP (OP, 0), 0)) == MULT\ || GET_CODE (XEXP (XEXP (OP, 0), 1)) == MULT)))\