This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Why do call-clobbered local variables make the function not suitablefor tail call optimization?
- From: Jie Zhang <zhangjie at magima dot com dot cn>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 20 Jul 2004 16:34:57 +0800
- Subject: Why do call-clobbered local variables make the function not suitablefor tail call optimization?
Hi,
I'm recently trying to fix the bug #16225 and reading the code in
tree-tailcall.c. I cannot understand the comment in
suitable_for_tail_opt_p (): "No local variable should be
call-clobbered." Can somebody give me a hint why call-clobbered local
variables prevent the function from being tail call optimized?
Thanks
--
Jie