From 8287d24ad5a12d6bc015a9c938a47c3ecb8a41f6 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 4 Jan 2005 13:45:42 +0100 Subject: [PATCH] tree-eh.c (replace_goto_queue): Return early if the queue is empty. * tree-eh.c (replace_goto_queue): Return early if the queue is empty. From-SVN: r92893 --- gcc/ChangeLog | 4 ++++ gcc/tree-eh.c | 2 ++ 2 files changed, 6 insertions(+) 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 + + * tree-eh.c (replace_goto_queue): Return early if the queue is empty. + 2005-01-04 Uros Bizjak 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); } -- 2.30.2