summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-04 12:45:42 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-04 12:45:42 +0000
commit82a8c0dd31b8a48df3d0d9a862fe36e23f6f36be (patch)
treecae6c8b85c739a5e342cba8936e7053af9942b47
parent10ae67c65749796486193dae61f34f4fb796d539 (diff)
downloadppe42-gcc-82a8c0dd31b8a48df3d0d9a862fe36e23f6f36be.tar.gz
ppe42-gcc-82a8c0dd31b8a48df3d0d9a862fe36e23f6f36be.zip
* tree-eh.c (replace_goto_queue): Return early if the queue is
empty. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92893 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-eh.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 54746d08328..c3960db14f6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index b7ed2edc387..a613db78a92 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -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);
}
OpenPOWER on IntegriCloud