https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100494
--- Comment #8 from Andrew Macleod <amacleod at redhat dot com> --- ah. So this is an issue with excessive stack consumption. yeah, we don't really try to reign that in, so certain patterns can get quite deep. I am unfamiliar with what mitigations/flags the compiler has for trying to control this. It would certainly be possible to monitor the call depth and cease at a certain point, but Im not sure what needs to be queried. Is this information communicated by a target in some way? and checked against some criteria for passes which may need to limit their consumption?