PR tree-optimization/69989
* gcc.dg/torture/pr69989.c: New test.
From-SVN: r233792
+2016-02-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR tree-optimization/69989
+ * gcc.dg/torture/pr69989.c: New test.
+
2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
* gcc.target/i386/stack-realign-win.c: New test.
--- /dev/null
+/* { dg-do compile } */
+
+extern int a, b, d;
+extern char c[];
+void
+fn1 (void)
+{
+ for (;;)
+ {
+ if (b)
+ {
+LABEL_T5T5T:
+ for (; d < a; d++)
+ c[d] = 6;
+ }
+ break;
+ }
+ if (a > 6)
+ {
+ a = 4;
+ goto LABEL_T5T5T;
+ }
+}