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

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 60863
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60863&action=edit
gcc15-pr119376-c11.patch

Untested patch for the #c11 issue.  I agree it is desirable to diagnose this
only in the last tail pass (i.e. tail_calls pass, rather than tail_recursion
passes).
Plus, given that tail_calls pass uses a dbg_cnt and isn't done for -O0 or -Og,
having musttail pass depend on just !flag_optimize_sibling_calls isn't correct.

Reply via email to