aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2005-12-07 16:39:33 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2005-12-07 16:39:33 +0000
commitb0d008ab0e8cfa3761f28102aebc88a31971421d (patch)
tree666c99faa9027eabbc0169da5f4201dceefb0364
parent9024f4b86c494813249c6bae473e832f0bc8863a (diff)
downloadgcc-b0d008ab0e8cfa3761f28102aebc88a31971421d.zip
gcc-b0d008ab0e8cfa3761f28102aebc88a31971421d.tar.gz
gcc-b0d008ab0e8cfa3761f28102aebc88a31971421d.tar.bz2
re PR tree-optimization/25291 (ICE in tree-check add_call_clobber_ops)
2005-12-07 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/25291 * tree-ssa-operands.c (add_call_clobber_ops): Remove redundant and crashing check. From-SVN: r108168
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-operands.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e40ffd9..45178f7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-07 Daniel Berlin <dberlin@dberlin.org>
+
+ Fix PR tree-optimization/25291
+ * tree-ssa-operands.c (add_call_clobber_ops): Remove
+ redundant and crashing check.
+
2005-12-08 Alan Modra <amodra@bigpond.net.au>
PR target/25212
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index b987331..9edc840 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -1868,9 +1868,7 @@ add_call_clobber_ops (tree stmt, tree callee)
bool not_written
= not_written_b ? bitmap_bit_p (not_written_b, u) : false;
- if ((TREE_READONLY (var)
- && (TREE_STATIC (var) || DECL_EXTERNAL (var)))
- || not_written)
+ if (not_written)
{
if (!not_read)
add_stmt_operand (&var, &empty_ann, opf_none);