From 7ecb5d27dcb3fd4bfff5988647d99fc7797655d2 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Tue, 19 May 1998 09:05:27 +0000 Subject: [PATCH] Fix logic on when to generate a new handler label From-SVN: r19868 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 * 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; -- 2.7.4