r250871 - in /trunk/gcc: ChangeLog fold-const.c...
mpolacek@gcc.gnu.org
mpolacek@gcc.gnu.org
Fri Aug 4 11:28:00 GMT 2017
Author: mpolacek
Date: Fri Aug 4 11:28:04 2017
New Revision: 250871
URL: https://gcc.gnu.org/viewcvs?rev=250871&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr81695.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list