OSDN Git Service

2007-04-27 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Apr 2007 11:42:43 +0000 (11:42 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Apr 2007 11:42:43 +0000 (11:42 +0000)
commite71da05f75b758c0b921f2a6046365a8d8f67218
treef5c0aaa63c85a8e22468cb5c55ee2f5e9507d027
parenteca883d12f3f5835c7ce868b38d847d4e506e823
2007-04-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/31715
* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
sure to do computation on the offset in an appropriate
signed type.

* gcc.dg/Warray-bounds-4.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124216 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-4.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c