diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2010-05-07 09:11:31 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2010-05-07 09:11:31 +0000 |
commit | 9009be85ea7829f005edcfad8084c2427b7b9d2a (patch) | |
tree | d636cd8ef218fd1f11ca12c7650c982d40ddbbed | |
parent | d42ba3b80a51696ae5e68602d1170b05a56af27e (diff) | |
download | gcc-9009be85ea7829f005edcfad8084c2427b7b9d2a.zip gcc-9009be85ea7829f005edcfad8084c2427b7b9d2a.tar.gz gcc-9009be85ea7829f005edcfad8084c2427b7b9d2a.tar.bz2 |
20100423-2_0.c: Include <stdio.h>.
* gcc.dg/lto/20100423-2_0.c: Include <stdio.h>.
(size_t, stderr): Remove.
(read_error): Replaced __builtin_fprintf by fprintf.
From-SVN: r159146
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/20100423-2_0.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 50397ef..09a98b3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * gcc.dg/lto/20100423-2_0.c: Include <stdio.h>. + (size_t, stderr): Remove. + (read_error): Replaced __builtin_fprintf by fprintf. + 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com> * gcc.dg/ordered-comparison-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/lto/20100423-2_0.c b/gcc/testsuite/gcc.dg/lto/20100423-2_0.c index 4f98da4..791b1ba 100644 --- a/gcc/testsuite/gcc.dg/lto/20100423-2_0.c +++ b/gcc/testsuite/gcc.dg/lto/20100423-2_0.c @@ -1,8 +1,8 @@ /* { dg-lto-do link } */ /* { dg-lto-options {{-O2 -flto} {-O2 -fwhopr} {-O3 -flto} {-O3 -fwhopr}} } */ -typedef unsigned int size_t; -extern struct _IO_FILE *stderr; +#include <stdio.h> + typedef unsigned char uch; extern uch inbuf[]; unsigned insize; @@ -20,6 +20,6 @@ int fill_inbuf(int eof_ok) } void read_error(void) { - __builtin_fprintf(stderr, "\n%s: ", progname); + fprintf(stderr, "\n%s: ", progname); } |