This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: how can RETURN_ADDR_RTX possibly do its work?
- From: "Dave Korn" <dk at artimi dot com>
- To: "'David Edelsohn'" <dje at watson dot ibm dot com>,"'Nathan Sidwell'" <nathan at codesourcery dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 25 May 2004 15:30:12 +0100
- Subject: RE: how can RETURN_ADDR_RTX possibly do its work?
> -----Original Message-----
> From: David Edelsohn
> Sent: 25 May 2004 15:05
> To: Nathan Sidwell; Dave Korn
> Cc: gcc
> Subject: Re: how can RETURN_ADDR_RTX possibly do its work?
> >>>>> Nathan Sidwell writes:
>
> Nathan> rtx
> Nathan> XXX_return_addr (void)
> Nathan> {
> Nathan> return get_hard_reg_initial_val (Pmode, LINK_REGNUM);
> Nathan> }
>
> The rs6000 port uses this method as well?
>
> David
Oh, good grief, what's up with my eyes today? Yes, in fact it does; it's
only when doing PIC or when trying to find out enclosing frames' return
addresses that it uses that flag. Sorry for the misinformation.
cheers,
DaveK
--
Can't think of a witty .sigline today....