tree-eh.c (replace_goto_queue): Return early if the queue is empty.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Tue, 4 Jan 2005 12:45:42 +0000 (13:45 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 4 Jan 2005 12:45:42 +0000 (12:45 +0000)
* tree-eh.c (replace_goto_queue): Return early if the queue is
          empty.

From-SVN: r92893

gcc/ChangeLog
gcc/tree-eh.c

index 54746d0832882a6158c6ba30cd2c61f2240ba154..c3960db14f6bebc4bb49016ad66111a615d38d46 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
+
 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
 
        PR target/19240
index b7ed2edc38797f9605bbeb6cde4c32ce41a2ab5d..a613db78a92c14ce26815d9ece4c71526549ca05 100644 (file)
@@ -443,6 +443,8 @@ replace_goto_queue_stmt_list (tree t, struct leh_tf_state *tf)
 static void
 replace_goto_queue (struct leh_tf_state *tf)
 {
+  if (tf->goto_queue_active == 0)
+    return;
   replace_goto_queue_stmt_list (*tf->top_p, tf);
 }