aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-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 54746d0..c3960db 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 b7ed2ed..a613db7 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);
}