On Sun, 2015-11-15 at 15:39 -0500, Rich Felker wrote:

> > This is basically the same as above ... it's not possible to
> > conditionally construct/modify pattern descriptions in the .md. 
> >  However, it's possible to modify the CALL_INSN_FUNCTION_USAGE
> > field of
> > call insns -- for some examples see 'grep -r
> > CALL_INSN_FUNCTION_USAGE
> > gcc/config/*'.  Also, it seems the SH backend doesn't make use of
> > some
> > existing libcall related parameters and target hooks/macros.  Maybe
> > those could be helpful.
> 
> I'll take a look at this. Let me know if you turn up anything
> interesting.

I'm currently working on other things, sorry.


> > 
> > Maybe TARGET_USE_PSEUDO_PIC_REG could be useful?
> 
> Yes. Is there any documentation on using it? I came across that but
> couldn't figure out how it compares to just doing the pseudo yourself
> in the target files. Is non-target-specific code affected by this?

Yes, non-target-specific code seems to be affected by this in some way,
although I don't know any details.  Due to lack of documentation you'll
have to grep yourself through it by looking for "USE_PSEUDO_PIC_REG"
and "use_pseudo_pic_reg" to find the places where it's used.

Cheers,
Oleg

Reply via email to