From a214f4d615c7c7e6720db5d579eaf8e97aefb216 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 15 Aug 2008 12:59:16 +0000 Subject: [PATCH] tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not strip components for unknown size accesses. 2008-08-15 Richard Guenther * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not strip components for unknown size accesses. From-SVN: r139129 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-ccp.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d25df32..d823e22 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-08-15 Richard Guenther + + * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not + strip components for unknown size accesses. + 2008-08-15 Wolfgang Gellerich * config/s390/2097.md New file. diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index ff8af4f..2e34bd9 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -1976,6 +1976,7 @@ maybe_fold_offset_to_reference (tree base, tree offset, tree orig_type) &size, &maxsize); gcc_assert (newbase); if (size == maxsize + && size != -1 && !(sub_offset & (BITS_PER_UNIT - 1))) { base = newbase; -- 2.7.4