diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-15 12:59:16 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-15 12:59:16 +0000 |
commit | 844461a04b34befc788423c32e719b07f5aa37c4 (patch) | |
tree | 95da352c99960acc5c32f6a65c5870ee2a4d40aa /gcc/tree-ssa-ccp.c | |
parent | 6f9a62a18045d260098f8f872d0904b17fb0b7cc (diff) | |
download | gcc-844461a04b34befc788423c32e719b07f5aa37c4.tar.gz |
2008-08-15 Richard Guenther <rguenther@suse.de>
* tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
strip components for unknown size accesses.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139129 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index ff8af4f14dd..2e34bd99d6b 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; |