20100423-2_0.c: Include <stdio.h>.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 7 May 2010 09:11:31 +0000 (09:11 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 7 May 2010 09:11:31 +0000 (09:11 +0000)
* gcc.dg/lto/20100423-2_0.c: Include <stdio.h>.
(size_t, stderr): Remove.
(read_error): Replaced __builtin_fprintf by fprintf.

From-SVN: r159146

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/20100423-2_0.c

index 50397eff888afe3508821ea2133eb4786e3726d6..09a98b3699cd01b39030f317257ff2f352518075 100644 (file)
@@ -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.
index 4f98da4a3a7f058b56f4ef2fc5a5613646f83567..791b1bade7a4b2b1deeaf4343c27bfc7994d4b17 100644 (file)
@@ -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);
 }