re PR rtl-optimization/84308 (Memory leak in spread_components)
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Feb 2018 23:21:35 +0000 (00:21 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Feb 2018 23:21:35 +0000 (00:21 +0100)
PR rtl-optimization/84308
* shrink-wrap.c (spread_components): Release todo vector.

From-SVN: r257544

gcc/ChangeLog
gcc/shrink-wrap.c

index 043972eab936cead95fe835111fdb166fc10c417..5766bc518597217f1178fbb39691eea92af0b000 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-10  Jakub Jelinek  <jakub@redhat.com>
+
+       PR rtl-optimization/84308
+       * shrink-wrap.c (spread_components): Release todo vector.
+
 2018-02-09  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR rtl-optimization/57193
index eda0f06cce856c3daa83d3b2c6ec89f3ffb9063d..fd19acec9c1af6855322aaf3af0415cfee5951a1 100644 (file)
@@ -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)