]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/20216 (Simple loop runs out of stack at -O1)
authorGeoffrey Keating <geoffk@apple.com>
Tue, 26 Jun 2007 01:18:08 +0000 (01:18 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 26 Jun 2007 01:18:08 +0000 (01:18 +0000)
PR 20216
* gcc.dg/pr20216.c: New.

From-SVN: r126014

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr20216.c [new file with mode: 0644]

index 8cd252119100ebab11ac89d78687cc3d0526941e..0a25d051c09d67cc42afa7b5cf32f0b01f84417d 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-25  Geoffrey Keating  <geoffk@apple.com>
+
+       PR 20216
+       * gcc.dg/pr20216.c: New.
+
 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
 
        PR tree-opt/32421
diff --git a/gcc/testsuite/gcc.dg/pr20216.c b/gcc/testsuite/gcc.dg/pr20216.c
new file mode 100644 (file)
index 0000000..1014ef3
--- /dev/null
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-O1" } */
+
+static unsigned int *buffer;
+
+void FUNC (void)
+{
+ unsigned int *base;
+ int i, j;
+
+ for (i = 0; i < 4; i++)
+  for (j = 0; j < 1600000; j++)
+   *base++ = buffer[j];
+}