From 50c1f4a5e1d41701ee9fcf251c3ce9ad37a51329 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 8 Feb 2017 09:35:41 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/graphite/pr71824-3.c | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/graphite/pr71824-3.c 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]; + } +}