diff options
author | Philippe De Muyter <phdm@macqel.be> | 2000-05-31 14:37:38 +0200 |
---|---|---|
committer | Philippe De Muyter <phdm@gcc.gnu.org> | 2000-05-31 12:37:38 +0000 |
commit | 231a2828e175844076109342b8dbe8bcb842a51f (patch) | |
tree | 3a3e35850a0c678fe4cc6c1ecf1fbdbba93ec7c0 /gcc | |
parent | 8c410416207d0fd87d574c621eaacfb74588c47e (diff) | |
download | gcc-231a2828e175844076109342b8dbe8bcb842a51f.zip gcc-231a2828e175844076109342b8dbe8bcb842a51f.tar.gz gcc-231a2828e175844076109342b8dbe8bcb842a51f.tar.bz2 |
* except.c (clear_function_eh_region): Do not free NULL.
From-SVN: r34297
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/except.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8dea693..ca8b022 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed May 31 13:17:20 2000 Philippe De Muyter <phdm@macqel.be> + + * except.c (clear_function_eh_region): Do not free NULL. + Wed May 31 08:07:52 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * flow.c (propagate_block): If block has no successors, stores to diff --git a/gcc/except.c b/gcc/except.c index eb9ad28..ad2e310 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -931,7 +931,8 @@ clear_function_eh_region () next = ptr->next; free (ptr); } - free (function_eh_regions); + if (function_eh_regions) + free (function_eh_regions); num_func_eh_entries = 0; current_func_eh_entry = 0; } |