]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/44069 (optimization bug initializing from cast array)
authorRichard Guenther <rguenther@suse.de>
Tue, 25 May 2010 15:49:34 +0000 (15:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 25 May 2010 15:49:34 +0000 (15:49 +0000)
commitc946a318432341ea470c5f7540490a87823aaedd
tree73a47c9d393c96ebe9abf0772ccfbfc4fc116624
parent50ee30d539971a73447f01f61c1e66302c3c91d0
re PR middle-end/44069 (optimization bug initializing from cast array)

2010-05-25  Richard Guenther  <rguenther@suse.de>

PR middle-end/44069
* gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
out-of-bounds array accesses.

* g++.dg/torture/pr44069.C: New testcase.

From-SVN: r159824
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr44069.C [new file with mode: 0644]