OSDN Git Service

Fix logic on when to generate a new handler label
authoramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 1998 09:05:27 +0000 (09:05 +0000)
committeramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 1998 09:05:27 +0000 (09:05 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19868 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/except.c

index 2651fb6..adaa219 100644 (file)
@@ -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.
index 0f65894..a2cee20 100644 (file)
@@ -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;