This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR42861, VTA] bind values to expressions upon MO_VAL_USE
- From: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Steve Ellcey <sje at cup dot hp dot com>, Alexandre Oliva <aoliva at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 2 Feb 2010 14:39:25 -0500
- Subject: Re: [PR42861, VTA] bind values to expressions upon MO_VAL_USE
- References: <4B606A19.80008@redhat.com> <201001281950.o0SJoqe16769@lucas.cup.hp.com> <20100128201220.GI2817@tyan-ft48-01.lab.bos.redhat.com>
- Reply-to: John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>
On Thu, 28 Jan 2010, Jakub Jelinek wrote:
> > I looked at the rtx in output_operand_const where I get this error and I see:
> >
> > (unspec:DI [
> > (symbol_ref:DI ("environ") [flags 0x240] <var_decl 800003ffbfdcedc0 environ>)
> > ] 2)
>
> Likely pa needs to add a delegitimize_address hook to delegitimize this back
> to a simpler constant. See the hook that has been recently added for
> rs6000.
It's not clear how to do this as GCC doesn't understand PA indirect
relocations. The result of the insn using the above is the address
of the symbol_ref.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)