[Bug tree-optimization/100494] [11/12 Regression] Unterminated recursion in gimple-range.cc (x86_64-w64-mingw32)

john at thesnappy dot net gcc-bugzilla@gcc.gnu.org
Tue Jun 15 14:23:16 GMT 2021


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

--- Comment #9 from J.M. Eubank <john at thesnappy dot net> ---
> 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?

+1, this would be nice?

I'm running a build with -Wl,--stack=10485760 (10 MiB) to see if this
alleviates the problem. However, I'm definitely curious to see how this might
be handled for other actually constrained targets where that's not an option -
do they simply recommend not to use -O2?


More information about the Gcc-bugs mailing list