Move gcc.target/i386/pr47364-[12].c gcc.c-torture/compile/pr47364-[12].c.
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 5 Aug 2011 22:27:47 +0000 (22:27 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 5 Aug 2011 22:27:47 +0000 (15:27 -0700)
From-SVN: r177489

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr47364-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr47364-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr47364-1.c [deleted file]
gcc/testsuite/gcc.target/i386/pr47364-2.c [deleted file]

index 31eae420ba9fe0be2b55f9780e98597227e42788..6ffd81f38bea8f678add187e3cbc117f439c0509 100644 (file)
@@ -2,8 +2,8 @@
 
        PR middle-end/47364
        * gcc.dg/torture/pr47364-1.c: New.
-       * gcc.target/i386/pr47364-1.c: Likewise.
-       * gcc.target/i386/pr47364-2.c: Likewise.
+       * gcc.c-torture/compile/pr47364-1.c: Likewise.
+       * gcc.c-torture/compile/pr47364-2.c: Likewise.
 
 2011-08-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr47364-1.c b/gcc/testsuite/gcc.c-torture/compile/pr47364-1.c
new file mode 100644 (file)
index 0000000..0a4e82d
--- /dev/null
@@ -0,0 +1,9 @@
+static unsigned char foo[256];
+
+arc4_init(void)
+{
+  int n;
+
+  for (n = 0; n < 256; n++)
+    foo[n] = n;
+}
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr47364-2.c b/gcc/testsuite/gcc.c-torture/compile/pr47364-2.c
new file mode 100644 (file)
index 0000000..1697470
--- /dev/null
@@ -0,0 +1,8 @@
+extern __SIZE_TYPE__ strlen (const char *);
+void foo (char *, const char *);
+int bar (const char *prefix)
+{
+    char buff[256];
+    foo (buff, prefix);
+    return strlen(buff);
+}
diff --git a/gcc/testsuite/gcc.target/i386/pr47364-1.c b/gcc/testsuite/gcc.target/i386/pr47364-1.c
deleted file mode 100644 (file)
index 49ee6f4..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O" } */
-
-static unsigned char foo[256];
-
-arc4_init(void)
-{
-  int n;
-
-  for (n = 0; n < 256; n++)
-    foo[n] = n;
-}
diff --git a/gcc/testsuite/gcc.target/i386/pr47364-2.c b/gcc/testsuite/gcc.target/i386/pr47364-2.c
deleted file mode 100644 (file)
index 8c93d6f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O2" } */
-
-extern __SIZE_TYPE__ strlen (const char *);
-void foo (char *, const char *);
-int bar (const char *prefix)
-{
-    char buff[256];
-    foo (buff, prefix);
-    return strlen(buff);
-}