2007-08-21 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Aug 2007 08:23:50 +0000 (08:23 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Aug 2007 08:23:50 +0000 (08:23 +0000)
commit15796f6161bb65cfc2dbe4f21abbf14161fda407
treea051cfbef7bee98d995fa7021f0aa586f2b4e177
parent355c4765491b9968587b823b19400a64d012da99
2007-08-21  Richard Guenther  <rguenther@suse.de>

PR middle-end/33122
* fold-const.c (fold_binary): Remove index +p PTR folding.
Fix types of POINTER_PLUS_EXPR generated by folding of
(PTR +p B) +p A.

        * gcc.c-torture/compile/pr33122.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127659 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr33122.c [new file with mode: 0644]