https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837

--- Comment #24 from Lukas Grätz <lukas.gra...@tu-darmstadt.de> ---
(In reply to Josh Haberman from comment #23)
> (In reply to Lukas Grätz from comment #22)
> > I think the status should be changed into RESOLVED FIXED now. After PR
> > 119483 and PR 121159 with GCC 16+ and 15.2+, tail call optimization is
> > finally possible for noreturn functions. Just use the musttail attribute
> > introduced by PR 83324.
> 
> That works as long as the function signature of the noreturn function
> precisely matches the function signature of the caller.  In many cases,
> you would need to add a wrapper around the noreturn function to make
> them match.

Sorry, but if I understand you correctly, this has nothing to do with noreturn;
it is a limitation of tail call optimization in general.

So this does not affect the present issue. If I am wrong, please provide an
example to explain.

Reply via email to