From cba40f681af46fc114b1c98fcf0a259407410dc7 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 19 Oct 2018 14:28:43 +0000 Subject: [PATCH] re PR tree-optimization/87645 (gcc hangs up on vr_values::vrp_visit_assignment_or_call) 2018-10-19 Richard Biener PR middle-end/87645 * gcc.dg/torture/pr87645.c: New testcase. From-SVN: r265317 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/torture/pr87645.c | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/torture/pr87645.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4fd3f91c860..45b9bce96fe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-10-19 Richard Biener + + PR middle-end/87645 + * gcc.dg/torture/pr87645.c: New testcase. + 2018-10-19 Richard Biener PR target/87657 diff --git a/gcc/testsuite/gcc.dg/torture/pr87645.c b/gcc/testsuite/gcc.dg/torture/pr87645.c new file mode 100644 index 00000000000..5360e380080 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr87645.c @@ -0,0 +1,21 @@ +/* { dg-do compile } */ + +typedef unsigned a[8]; +a b, g; +int c, d, e, f; +int h() { + unsigned i = 2; + for (; i < 8; i++) + b[i] = 0; + for (; f;) { + d = 1; + for (; d < 14; d += 3) { + e = 0; + for (; e < 8; e++) { + i = 2; + for (; i < 8; i++) + b[i] = 5 - (c - g[e] + b[i]); + } + } + } +} -- 2.30.2