]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* stmt.c (unroll_block_trees): Free block_vector if needed.
authorJeffrey A Law <law@cygnus.com>
Mon, 23 Mar 1998 22:49:48 +0000 (22:49 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 23 Mar 1998 22:49:48 +0000 (15:49 -0700)
From-SVN: r18786

gcc/ChangeLog
gcc/stmt.c

index 96fb0ca4af0a03ca5948c5a49d3a79c2d4c260e3..3aaf8a17aa4691cd6b3db6e6e0dcfc54a4c23a93 100644 (file)
@@ -1,3 +1,7 @@
+Mon Mar 23 23:49:47 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * stmt.c (unroll_block_trees): Free block_vector if needed.
+
 Mon Mar 23 23:26:42 1998  Philippe De Muyter  <phdm@macqel.be>
 
        * m68k/m68k.md (zero_extendqidi2, zero_extendhidi2): New patterns.
index 207a4adde4676c2ed813d4655c41be4d5c5ac386..2b518fcfd6952e35e853dabcb5ada65b2e124a8b 100644 (file)
@@ -5684,7 +5684,10 @@ emit_case_nodes (index, node, default_label, index_type)
 /* These routines are used by the loop unrolling code.  They copy BLOCK trees
    so that the debugging info will be correct for the unrolled loop.  */
 
-/* Indexed by block number, contains a pointer to the N'th block node.  */
+/* Indexed by block number, contains a pointer to the N'th block node.
+
+  Allocated by the call to identify_blocks, then released after the call
+  to reorder_blocks in the function unroll_block_trees.  */
 
 static tree *block_vector;
 
@@ -5702,4 +5705,8 @@ unroll_block_trees ()
   tree block = DECL_INITIAL (current_function_decl);
 
   reorder_blocks (block_vector, block, get_insns ());
+
+  /* Release any memory allocated by identify_blocks.  */
+  if (block_vector)
+    free (block_vector);
 }