This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Java: minor fix.
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] Java: minor fix.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 17 Oct 2000 15:43:31 -0700
- Reply-to: apbianco at redhat dot com
I came across some problems building class files to native. Here's a
fix I'm going to commit.
./A
2000-10-17 Alexandre Petit-Bianco <apbianco@cygnus.com>
* except.c (free_eh_ranges): Don't free `whole_range.'
Index: except.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/except.c,v
retrieving revision 1.24
diff -u -p -r1.24 except.c
--- except.c 2000/10/13 06:26:45 1.24
+++ except.c 2000/10/17 22:06:43
@@ -232,7 +232,8 @@ free_eh_ranges (range)
{
struct eh_range *next = range->next_sibling;
free_eh_ranges (range->first_child);
- free (range);
+ if (range != &whole_range)
+ free (range);
range = next;
}
}