[PATCH] [committed] fix another leak in tree-into-ssa.c

Andrew Pinski pinskia@physics.uc.edu
Thu May 13 22:56:00 GMT 2004


Patch says it all.

Committed as obvious.

ChangeLog:
2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>

         * tree-into-ssa.c (insert_phi_nodes_for): XFREE
         bitmaps allocated with BITMAP_XMALLOC.


Patch:
Index: tree-into-ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-into-ssa.c,v
retrieving revision 2.2
diff -u -p -r2.2 tree-into-ssa.c
--- tree-into-ssa.c	13 May 2004 15:26:33 -0000	2.2
+++ tree-into-ssa.c	13 May 2004 22:05:13 -0000
@@ -694,7 +694,7 @@ insert_phi_nodes_for (tree var, bitmap *
        create_phi_node (var, BASIC_BLOCK (bb_index));
      });

-  BITMAP_FREE (phi_insertion_points);
+  BITMAP_XFREE (phi_insertion_points);
  }

  /* SSA Rewriting Step 2.  Rewrite every variable used in each 
statement in



More information about the Gcc-patches mailing list