This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PR42861, VTA] bind values to expressions upon MO_VAL_USE


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]