This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
sibcall vs PIC
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 6 Sep 2002 08:38:14 +1000
- Subject: sibcall vs PIC
Currently on x86 GCC does not do any sibling call optimization with -fpic.
The source contains the following comment:
"If PIC, we cannot make sibling calls to global
functions because the PLT requires %ebx live."
Could anyone elaborate on this comment?
Why exactly does this prevents sibling calls?
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.