From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John David Anglin" To: dave@hiauly1.hia.nrc.ca (John David Anglin) Cc: gcc-patches@gcc.gnu.org Subject: Re: Patch to rtx_varies_p to improve pic code on PA Date: Fri, 16 Mar 2001 21:50:00 -0000 Message-id: <200103170550.AAA27490@hiauly1.hia.nrc.ca> References: X-SW-Source: 2001-03/msg01241.html > 2001-03-09 John David Anglin > > * explow.c (stabilize): Call rtx_varies_p instead of rtx_unstable_p. > * regmove.c (stable_and_no_regs_but_for_p): Likewise. > * rtlanal.c (rtx_varies_p): Treat an unchanging register operand as > constant for alias analysis. Treat the pic offset table register as > constant even when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined. > Update comments. In looking at test results with and without this patch, I see that that the patch does in fact eliminate at least one failing test case under i686 linux. For example, compare these results: < http://gcc.gnu.org/ml/gcc-testresults/2001-03/msg00243.html > and < http://gcc.gnu.org/ml/gcc-testresults/2001-03/msg00245.html >. I don't see any failures of 20001226-1.c with the patch installed. Dave -- J. David Anglin dave.anglin@nrc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6605)