re PR tree-optimization/31715 (Array calculation done incorrectly)
authorRichard Guenther <rguenther@suse.de>
Fri, 27 Apr 2007 11:42:43 +0000 (11:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 27 Apr 2007 11:42:43 +0000 (11:42 +0000)
commit891fc5e9f1b6a88f9147b68e670f0cc172acfe21
treef5c0aaa63c85a8e22468cb5c55ee2f5e9507d027
parent8c74fb06c66b569a26f93c0d569d4437fdcfd415
re PR tree-optimization/31715 (Array calculation done incorrectly)

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.

From-SVN: r124216
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-4.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c