From: Richard Biener Date: Wed, 8 Feb 2017 09:35:41 +0000 (+0000) Subject: re PR tree-optimization/71824 (ICE when compiling libiberty with Graphite loop optimi... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50c1f4a5e1d41701ee9fcf251c3ce9ad37a51329;p=gcc.git re PR tree-optimization/71824 (ICE when compiling libiberty with Graphite loop optimizations) 2017-02-08 Richard Biener PR tree-optimization/71824 PR tree-optimization/79409 * gcc.dg/graphite/pr71824-3.c: New testcase. From-SVN: r245274 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0f0517de97a..d599c1a3274 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-02-08 Richard Biener + + PR tree-optimization/71824 + PR tree-optimization/79409 + * gcc.dg/graphite/pr71824-3.c: New testcase. + 2017-02-08 Jakub Jelinek PR tree-optimization/79408 diff --git a/gcc/testsuite/gcc.dg/graphite/pr71824-3.c b/gcc/testsuite/gcc.dg/graphite/pr71824-3.c new file mode 100644 index 00000000000..37e5c3ba34d --- /dev/null +++ b/gcc/testsuite/gcc.dg/graphite/pr71824-3.c @@ -0,0 +1,19 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -ftree-loop-distribution -floop-nest-optimize" } */ + +struct +{ + int bz; +} od, ka[2]; + +int fw; + +void +pc (void) +{ + for (od.bz = 0; od.bz < 2; ++od.bz) + { + ++fw; + ka[0] = ka[1]; + } +}