re PR tree-optimization/84526 (ICE in generic_overlap at gcc/gimple-ssa-warn-restrict...
authorMartin Sebor <msebor@redhat.com>
Fri, 9 Mar 2018 19:06:26 +0000 (19:06 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 9 Mar 2018 19:06:26 +0000 (12:06 -0700)
commit8286793a2b050a9c51501b0b3737ff73c71d189d
treecc73b1389589bc7c3249fa1b253487085b72d0a7
parent998fd1413977a70cfeb7bf9180f3b462a7731237
re PR tree-optimization/84526 (ICE in generic_overlap at gcc/gimple-ssa-warn-restrict.c:927 since r257860)

gcc/ChangeLog:

PR tree-optimization/84526
* gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
Remove dead code.
(builtin_access::generic_overlap): Be prepared to handle non-array
base objects.

gcc/testsuite/ChangeLog:

PR tree-optimization/84526
* gcc.dg/Wrestrict-10.c: New test.
* gcc.dg/Wrestrict-11.c: New test.

From-SVN: r258394
gcc/ChangeLog
gcc/gimple-ssa-warn-restrict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wrestrict-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wrestrict-11.c [new file with mode: 0644]