From 275d82e0eebdfb32a4bfda9517ad21cdbedcc5f0 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Tue, 12 Dec 2006 15:31:26 +0000 Subject: [PATCH] tree-ssa-structalias.c (handle_ptr_arith): Return false when we can't handle the pointer arithmetic. 2006-12-12 Daniel Berlin * tree-ssa-structalias.c (handle_ptr_arith): Return false when we can't handle the pointer arithmetic. From-SVN: r119791 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-structalias.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d96987d2c812..6c7c0d97132e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-12-12 Daniel Berlin + + * tree-ssa-structalias.c (handle_ptr_arith): Return false when we + can't handle the pointer arithmetic. + 2006-12-12 Jakub Jelinek PR libstdc++/11953 diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 0195c5bd8ba8..876e7ef90f3a 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -3303,7 +3303,8 @@ handle_ptr_arith (VEC (ce_s, heap) *lhsc, tree expr) { rhsoffset = TREE_INT_CST_LOW (op1) * BITS_PER_UNIT; } - + else + return false; for (i = 0; VEC_iterate (ce_s, lhsc, i, c); i++) for (j = 0; VEC_iterate (ce_s, temp, j, c2); j++)