]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR middle-end/81695
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Aug 2017 11:28:04 +0000 (11:28 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Aug 2017 11:28:04 +0000 (11:28 +0000)
commitbeb53eef62044955be724ae56ab3dbe93b3eb764
tree036d0f437c35140e96e4226f26fbaf9c690128ba
parent4f372c2c895671b2ead5d9eee9e161656725fedb
PR middle-end/81695
* fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
perform the computation in offset_int.

* gcc.dg/pr81695.c: New test.

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