From afaecc23b57e1d6827f071a4d560ca57770b2e25 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 14 Jan 2017 23:59:29 +1030 Subject: [PATCH] Testcase from pr72749 PR target/72749 * gcc.c-torture/compile/pr72749.c: New test. From-SVN: r244466 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/compile/pr72749.c | 21 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr72749.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 02b877ddf82..70ccd17ba72 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-01-14 Alan Modra + + * gcc.c-torture/compile/pr72749.c: New test. + 2017-01-13 David Malcolm PR c/78304 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr72749.c b/gcc/testsuite/gcc.c-torture/compile/pr72749.c new file mode 100644 index 00000000000..2ef4d9a8ae1 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr72749.c @@ -0,0 +1,21 @@ +/* { dg-options "-O2 -fsched2-use-superblocks" } */ + +int as; + +void +ji (int *x4) +{ + if (0) + { + unsigned int pv; + + while (as < 0) + { + for (*x4 = 0; *x4 < 1; ++(*x4)) +yj: + x4 = (int *)&pv; + ++as; + } + } + goto yj; +} -- 2.30.2