This is the mail archive of the
mailing list for the GCC project.
Re: rs6000 sibcall test
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Sep 2002 10:09:10 +0930
- Subject: Re: rs6000 sibcall test
- References: <firstname.lastname@example.org> <200209082324.TAA22964@makai.watson.ibm.com>
On Sun, Sep 08, 2002 at 07:24:05PM -0400, David Edelsohn wrote:
> >>>>> Alan Modra writes:
> Alan> What optimization is that? It makes no difference to ELF binding
> Alan> rules whether a call displacement is positive or negative.
> If the function were declared external but defined earlier in the
> file (TREE_ASM_WRITTEN), and not flag_pic, then we know that function is
> local and cannot be overridden even though it is external.
Oh, I see. I'm hung up on the flag_pic case. :) Isn't DECL_EXTERNAL
reset when we hit a function definition? See c-decl.c:start_function
DECL_EXTERNAL (decl1) = current_extern_inline;
IBM OzLabs - Linux Technology Centre