aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2010-05-20 22:14:39 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2010-05-20 22:14:39 +0200
commit69610617532427076944e5bdb0e723ee81b5655c (patch)
treef4e5ee5d5bae62b604337533e409cc902f901dcc
parent00b97acd1bfd6400cca3ea6e280a1a16baa1fe2c (diff)
downloadgcc-69610617532427076944e5bdb0e723ee81b5655c.zip
gcc-69610617532427076944e5bdb0e723ee81b5655c.tar.gz
gcc-69610617532427076944e5bdb0e723ee81b5655c.tar.bz2
ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
2010-05-20 Segher Boessenkool <segher@kernel.crashing.org> * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond. From-SVN: r159639
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-prop.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 520bbb6..5ab1bca 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * ipa-prop.c (compute_complex_ancestor_jump_func): Bail
+ out if !cond.
+
2010-05-20 Uros Bizjak <ubizjak@gmail.com>
PR target/43733
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index d977242..db2a470 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -576,7 +576,8 @@ compute_complex_ancestor_jump_func (struct ipa_node_params *info,
cond_bb = single_pred (assign_bb);
cond = last_stmt (cond_bb);
- if (gimple_code (cond) != GIMPLE_COND
+ if (!cond
+ || gimple_code (cond) != GIMPLE_COND
|| gimple_cond_code (cond) != NE_EXPR
|| gimple_cond_lhs (cond) != parm
|| !integer_zerop (gimple_cond_rhs (cond)))