This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for PR 6394
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mark at codesourcery dot com, law at redhat dot com
- Date: Wed, 1 May 2002 19:37:23 -0400 (EDT)
- Subject: Patch for PR 6394
The enclosed patch resolves PR 6394.
Jeff tested it with 32 and 64 bit gcc builds. They successfully compile
the test code in the PR. Jeff also did full builds of perl in both 32
and 64 mode.
I tested the patch with a 32-bit gcc build on hppa2.0w-hp-hpux11.11 with
BOOT_CFLAGS="-g -O2 -mpa-risc-2-0 -fPIC". This should have exercised
the bug if still present. I have done a standard build on
hppa2.0w-hp-hpux11.00. I also did a build of perl in 64 bit mode.
Applied to the trunk. I am closing the PR.
Mark,
OK for the 3.1 branch?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2002-05-01 Jeff Law <law@redhat.com>
* pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
'T' constraint.
Index: pa.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa.h,v
retrieving revision 1.138.2.4
diff -c -3 -p -r1.138.2.4 pa.h
*** pa.h 26 Apr 2002 18:40:47 -0000 1.138.2.4
--- pa.h 1 May 2002 17:13:32 -0000
*************** extern int may_call_alloca;
*** 1238,1243 ****
--- 1238,1244 ----
? GET_MODE (OP) \
: DFmode), \
XEXP (OP, 0)) \
+ && GET_CODE (XEXP (OP, 0)) != LO_SUM \
&& !(GET_CODE (XEXP (OP, 0)) == PLUS \
&& (GET_CODE (XEXP (XEXP (OP, 0), 0)) == MULT\
|| GET_CODE (XEXP (XEXP (OP, 0), 1)) == MULT)))\