https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108198
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 54151 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54151&action=edit patch which should fix/improve -fno-checking case Note the formating on the code needs to be fixed but this should improve the situtation for -fno-checking case. Instead of being recusive, we have a worklist. Should reduce the stack usage.