aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/except.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 62f03cd..20bd25d 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+2000-10-17 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * except.c (free_eh_ranges): Don't free `whole_range.'
+
2000-10-15 Anthony Green <green@redhat.com>
* decl.c (init_decl_processing): Call init_class_processing before
diff --git a/gcc/java/except.c b/gcc/java/except.c
index 258bbc0..f14d943 100644
--- a/gcc/java/except.c
+++ b/gcc/java/except.c
@@ -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;
}
}