This is the mail archive of the gcc@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]

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


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