except.c (free_eh_ranges): Don't free `whole_range.'

2000-10-17  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * except.c (free_eh_ranges): Don't free `whole_range.'

(http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00557.html)

From-SVN: r36915
This commit is contained in:
Alexandre Petit-Bianco 2000-10-17 22:48:59 +00:00 committed by Alexandre Petit-Bianco
parent 832ea3b309
commit 1a2ebe6d57
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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;
}
}