From 5ca8e744641e1b03cc6e4cdbc46e7ece0750240d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 10 Feb 2018 00:21:35 +0100 Subject: [PATCH] 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(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 043972eab93..5766bc51859 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 eda0f06cce8..fd19acec9c1 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) -- 2.30.2