https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93321
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:6fc2f9337311c11dabcc464c808cbef205f17a52 commit r10-6106-g6fc2f9337311c11dabcc464c808cbef205f17a52 Author: Andrew Pinski <apin...@marvell.com> Date: Tue Jan 21 08:34:42 2020 +0000 Change recursive prepare_block_for_update to use a worklist Reported as PR 93321, prepare_block_for_update with some huge recusive inlining can go past the stack limit. Transforming this recursive into worklist improves the stack usage here and we no longer seg fault for the testcase. Note the order we walk the siblings change. ChangeLog: PR tree-opt/93321 * tree-into-ssa.c (prepare_block_for_update_1): Split out from ... (prepare_block_for_update): This. Use a worklist instead of recursing.