[Bug tree-optimization/31715] [4.3 Regression] Array calculation done incorrectly
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 27 11:43:00 GMT 2007
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-04-27 12:42 -------
Subject: Bug 31715
Author: rguenth
Date: Fri Apr 27 12:42:43 2007
New Revision: 124216
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124216
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/Warray-bounds-4.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-ccp.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31715
More information about the Gcc-bugs
mailing list