tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not strip components for unknown size accesses.

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.

From-SVN: r139129
This commit is contained in:
Richard Guenther 2008-08-15 12:59:16 +00:00 committed by Richard Biener
parent e1046890e7
commit a214f4d615
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.
2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
* config/s390/2097.md New file.

View File

@ -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;