aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr72749.c21
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 02b877d..70ccd17 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-14 Alan Modra <amodra@gmail.com>
+
+ * gcc.c-torture/compile/pr72749.c: New test.
+
2017-01-13 David Malcolm <dmalcolm@redhat.com>
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 0000000..2ef4d9a
--- /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;
+}