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: rs6000 sibcall test


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;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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