summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 03:18:06 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 03:18:06 +0000
commitec20cf723e0fa1d7e9728aa6df401bd9212f9186 (patch)
treef76252be0d7565146e666852381fd37e0d9b37e2
parent29ef8db9e98f5bc2ab10dfab646264fa2e200f55 (diff)
downloadgcc-ec20cf723e0fa1d7e9728aa6df401bd9212f9186.tar.gz
2005-01-25 Ian Lance Taylor <ian@airs.com>
* gimple-low.c (block_may_fallthru): Correct handling of SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94250 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gimple-low.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e693af116a3..8f843be7479 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-25 Ian Lance Taylor <ian@airs.com>
+
+ * gimple-low.c (block_may_fallthru): Correct handling of
+ SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
+
2005-01-26 Hans-Peter Nilsson <hp@axis.com>
* config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c
index 17ba0393c25..fe63addd4a7 100644
--- a/gcc/gimple-low.c
+++ b/gcc/gimple-low.c
@@ -287,7 +287,7 @@ block_may_fallthru (tree block)
branch to a selected label and hence can not fall through.
Otherwise SWITCH_BODY is set, and the switch can fall
through. */
- return SWITCH_LABELS (stmt) != NULL_TREE;
+ return SWITCH_LABELS (stmt) == NULL_TREE;
case COND_EXPR:
if (block_may_fallthru (COND_EXPR_THEN (stmt)))