aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1998-05-19 09:05:27 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1998-05-19 09:05:27 +0000
commit7ecb5d27dcb3fd4bfff5988647d99fc7797655d2 (patch)
treef7f85af39ad2982bc3183d7d9bd84a7e38b0824f /gcc
parent487a6e06cec4f057438ef9933852d8ee536077ff (diff)
downloadgcc-7ecb5d27dcb3fd4bfff5988647d99fc7797655d2.zip
gcc-7ecb5d27dcb3fd4bfff5988647d99fc7797655d2.tar.gz
gcc-7ecb5d27dcb3fd4bfff5988647d99fc7797655d2.tar.bz2
Fix logic on when to generate a new handler label
From-SVN: r19868
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/except.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2651fb6..adaa219 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Tue May 19 11:51:00 EDT 1998 Andrew MacLeod (amacleod@cygnus.com)
+
+ * except.c (expand_start_catch): Correct logic for when to
+ generate a new handler label, and when to use the old one.
+
Tue May 19 11:08:52 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (print-rtl.o): Depend on bitmap.h.
diff --git a/gcc/except.c b/gcc/except.c
index 0f65894..a2cee20 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1491,7 +1491,7 @@ expand_start_catch (rtime)
int eh_region_entry = find_func_region (insn_region_num);
/* If we've already issued this label, pick a new one */
- if (catchstack.top->entry->label_used == 0)
+ if (catchstack.top->entry->label_used)
handler_label = gen_exception_label ();
else
catchstack.top->entry->label_used = 1;