From: H.J. Lu Date: Fri, 5 Aug 2011 22:27:47 +0000 (+0000) Subject: Move gcc.target/i386/pr47364-[12].c gcc.c-torture/compile/pr47364-[12].c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a55e3f6c6232dd48706e135f4db13d26fe93682;p=gcc.git Move gcc.target/i386/pr47364-[12].c gcc.c-torture/compile/pr47364-[12].c. From-SVN: r177489 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 31eae420ba9..6ffd81f38be 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 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 index 00000000000..0a4e82d8564 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr47364-1.c @@ -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 index 00000000000..1697470b965 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr47364-2.c @@ -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 index 49ee6f46c3c..00000000000 --- a/gcc/testsuite/gcc.target/i386/pr47364-1.c +++ /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 index 8c93d6fafb0..00000000000 --- a/gcc/testsuite/gcc.target/i386/pr47364-2.c +++ /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); -}