]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/32135 (bogus array-ref fold triggering array overflow warning)
authorJan Hubicka <jh@suse.cz>
Sun, 13 Jan 2008 11:18:08 +0000 (12:18 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 13 Jan 2008 11:18:08 +0000 (11:18 +0000)
commit3097760b308aff6ac9f037495a1ea06255409e15
tree596610cc643347fdf39f40dd6b346e3ca41a7aab
parent42b22da88490c789d74d643de6fe928e3e6ebd83
re PR middle-end/32135 (bogus array-ref fold triggering array overflow warning)

PR middle-end/32135
* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
references above array bounds.  This might trigger bounds checks for
pointers to arrays.

From-SVN: r131502
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr32135.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c