+2003-10-12 Kelley Cook <kcook@gcc.gnu.org>
+
+ PR optimization/8750
+ * gcc.c-torture/execute/20031012-1.c: New test case.
+
2003-10-11 Roger Sayle <roger@eyesopen.com>
* gcc.c-torture/execute/string-opt-8.c: Don't test optimizations
* gcc.c-torture/compile/20031011-1.c: New test.
-Sat Oct 11 12:26:16 CEST 2003 Jan Hubicka <jh@suse.cz>
+2003-10-11 Jan Hubicka <jh@suse.cz>
* g++.dg/other/first-global.C: New test.
* gcc.c-torture/execute/20000917-1.c: New test.
* gcc.c-torture/execute/20000917-1.x: XFAIL.
-Sat 16-Sep-2000 08:14:58 BST Neil Booth <NeilB@earthling.net>
+2000-09-16 Neil Booth <NeilB@earthling.net>
* gcc.dg/cpp/macro2.c: Testcase for multi-context arguments
in nested macro bug.
-Fri 15-Sep-2000 06:50:11 BST Neil Booth <NeilB@earthling.net>
+2000-09-15 Neil Booth <NeilB@earthling.net>
* gcc.dg/cpp/paste10.c: Testcase for PASTE_LEFT buglet.
--- /dev/null
+/* PR optimization/8750\r
+ Used to fail under Cygwin with \r
+ -O2 -fomit-frame-pointer \r
+ Testcase by David B. Trout */\r
+\r
+#if defined(STACK_SIZE) && STACK_SIZE < 16000\r
+#define ARRAY_SIZE (STACK_SIZE / 2)\r
+#define STRLEN (ARRAY_SIZE - 9)\r
+#else\r
+#define ARRAY_SIZE 15000\r
+#define STRLEN 13371\r
+#endif\r
+\r
+extern void *memset (void *, int, __SIZE_TYPE__);\r
+extern void abort (void);\r
+\r
+static void foo ()\r
+{\r
+ char a[ARRAY_SIZE];\r
+\r
+ a[0]=0;\r
+ memset( &a[0], 0xCD, STRLEN );\r
+ a[STRLEN]=0;\r
+ if (strlen(a) != STRLEN)\r
+ abort ();\r
+}\r
+\r
+int main ( int argc, char* argv[] )\r
+{\r
+ foo();\r
+ return 0;\r
+}\r