[committed] Fix shrink-wrapping memory leak (PR rtl-optimization/84308)

Message ID 20180209232356.GO5867@tucnak
State New
Headers show
Series
  • [committed] Fix shrink-wrapping memory leak (PR rtl-optimization/84308)
Related show

Commit Message

Jakub Jelinek Feb. 9, 2018, 11:23 p.m.
Hi!

We are leaking the todo vector in spread_components, fixed thusly,
bootstrapped/regtested on x86_64-linux and i686-linux, committed to
trunk as obvious.

2018-02-10  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/84308
	* shrink-wrap.c (spread_components): Release todo vector.


	Jakub

Patch

--- gcc/shrink-wrap.c.jj	2018-01-03 10:19:55.000000000 +0100
+++ gcc/shrink-wrap.c	2018-02-09 13:19:10.019553075 +0100
@@ -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)