This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa mudflap] ggc bug fix


Hi -

The attached patch fixes the SEGV encountered by Eyal.

- FChE


+2003-06-16  Frank Ch. Eigler  <fche@redhat.com>
+
+	* tree-mudflap.c (mf_mark): Use GC-compatible htab_create_ggc.
+

Index: tree-mudflap.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-mudflap.c,v
retrieving revision 1.1.2.47
diff -u -p -r1.1.2.47 tree-mudflap.c
--- tree-mudflap.c	13 Jun 2003 21:09:13 -0000	1.1.2.47
+++ tree-mudflap.c	16 Jun 2003 18:02:18 -0000
@@ -81,7 +81,7 @@ mf_mark (t)
   void **slot;
 
   if (marked_trees == NULL)
-    marked_trees = htab_create (31, htab_hash_pointer, htab_eq_pointer, NULL);
+    marked_trees = htab_create_ggc (31, htab_hash_pointer, htab_eq_pointer, NULL);
 
   slot = htab_find_slot (marked_trees, t, INSERT);
   *slot = t;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]