From: Jakub Jelinek Date: Fri, 9 Feb 2018 23:21:35 +0000 (+0100) Subject: re PR rtl-optimization/84308 (Memory leak in spread_components) X-Git-Tag: basepoints/gcc-9~1292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ca8e744641e1b03cc6e4cdbc46e7ece0750240d;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 043972eab936..5766bc518597 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 eda0f06cce85..fd19acec9c1a 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)