re PR lto/65515 (FAIL: gcc.c-torture/compile/limits-fndefn.c -O2 -flto -flto-partit...
authorJakub Jelinek <jakub@redhat.com>
Wed, 25 Mar 2015 09:58:18 +0000 (10:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 25 Mar 2015 09:58:18 +0000 (10:58 +0100)
commitbbf043c2d27b67d949912a3cdb2f9eb6fabcd51f
tree8113424d7db51b59ce435d864dcea6727fee41de
parentea348bbe596297d82466a2000dc4c14d2ddc5eac
re PR lto/65515 (FAIL: gcc.c-torture/compile/limits-fndefn.c   -O2 -flto -flto-partition=none  (ICE) -- SIGSEGV for stack growth failure)

PR lto/65515
* lto-streamer-out.c (DFS::worklist): New struct.
(DFS::worklist_vec): New data member.
(DFS::next_dfs_num): Remove.
(DFS::DFS): Rewritten using worklist instead of recursion,
using most of code from DFS::DFS_write_tree.
(DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
pass it to DFS_write_tree calls.
(DFS::DFS_write_tree): Remove SINGLE_P argument, after
quick initial checks push it into worklist_vec and return.

From-SVN: r221656
gcc/ChangeLog
gcc/lto-streamer-out.c