This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Allow RTX_UNCHANGING_P on UNSPEC
- From: Richard Henderson <rth at redhat dot com>
- To: Joern Rennecke <joern dot rennecke at superh dot com>
- Cc: janis187 at us dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 May 2002 17:07:44 -0700
- Subject: Re: Allow RTX_UNCHANGING_P on UNSPEC
- References: <3CF400B3.9197D1C4@superh.com>
On Tue, May 28, 2002 at 11:12:03PM +0100, Joern Rennecke wrote:
> The SH port uses RTX_UNCHANGING_P on UNSPECs for PIC references.
> This breaks with the recently introduced rtl type checking for
> RTX_UNCHANGING_P. The attached patch rectifies this.
The normal thing for symbol relocations via unspec is to wrap them
in CONST. This makes the thing CONSTANT_P, which can be important
to REG_EQUIV substitution.
Does anything actually look at the unchanging bit on an unspec?
r~