This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/10837] noreturn attribute causes no sibling calling optimization
- From: "luto at mit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 10 Aug 2013 00:16:54 +0000
- Subject: [Bug rtl-optimization/10837] noreturn attribute causes no sibling calling optimization
- Auto-submitted: auto-generated
- References: <bug-10837-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837
Andy Lutomirski <luto at mit dot edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |luto at mit dot edu
--- Comment #9 from Andy Lutomirski <luto at mit dot edu> ---
In this case, perhaps sibling call optimization is the wrong thing here. The
caller of a noreturn function shouldn't pop the stack, but it also shouldn't
save registers (and, if it doesn't need to save registers, it shouldn't create
a stack frame in the first place).