Thanks!
A ping for commit request.
Heiko
On 4/9/26 2:07 PM, Richard Biener wrote:
On Tue, Apr 7, 2026 at 8:24 PM Heiko Eißfeldt <[email protected]> wrote:
As suggested the control flow in pass_warn_recursion::find_function_exit() was
changed
from a recursive to an iterative form. The logic for detecting infinite
recursion is left unchanged.
This avoids stack overflows while handling very large functions
as could be seen with the generated code attached to the PR.
Reg tested OK.
This is OK for stage1.
Richard.
2026-04-07 Heiko Eißfeldt <[email protected]>
PR middle-end/124651
* gimple-warn-recursion.cc (find_function_exit):
replace recursive calls with iteration for lower stack usage