From 5ca8e744641e1b03cc6e4cdbc46e7ece0750240d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 10 Feb 2018 00:21:35 +0100 Subject: re PR rtl-optimization/84308 (Memory leak in spread_components) PR rtl-optimization/84308 * shrink-wrap.c (spread_components): Release todo vector. From-SVN: r257544 --- gcc/ChangeLog | 5 +++++ gcc/shrink-wrap.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 043972e..5766bc5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-02-10 Jakub Jelinek + + PR rtl-optimization/84308 + * shrink-wrap.c (spread_components): Release todo vector. + 2018-02-09 Vladimir Makarov PR rtl-optimization/57193 diff --git a/gcc/shrink-wrap.c b/gcc/shrink-wrap.c index eda0f06..fd19ace 100644 --- a/gcc/shrink-wrap.c +++ b/gcc/shrink-wrap.c @@ -1370,6 +1370,8 @@ spread_components (sbitmap components) bitmap_clear_bit (seen, bb->index); } + todo.release (); + /* Finally, mark everything not not needed both forwards and backwards. */ FOR_EACH_BB_FN (bb, cfun) -- cgit v1.1