PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
authorMartin Sebor <msebor@redhat.com>
Tue, 22 May 2018 15:22:16 +0000 (15:22 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 22 May 2018 15:22:16 +0000 (09:22 -0600)
commit9f855c10d6be14e4ac73fc55625d4799ca939cf8
tree26f442f9bb35bd3f8a13db2039ee7a8396748413
parentf141b40a181eea1546d0b6930c4eb386cd28241f
PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on

PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
   a variable-length struct

gcc/ChangeLog:

PR tree-optimization/85826
* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Avoid
assuming that a DECL necesarily has a constant size.

gcc/testsuite/ChangeLog:

PR tree-optimization/85826
* gcc.dg/Wrestrict-17.c: New test.

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