1.1 --- a/patches/glibc/2.2.2/glibc-2.2.2-printf-not-macro.patch Tue Aug 14 19:32:22 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,36 +0,0 @@
1.4 -I'm testing toolchains with glibc-2.2.2 now. It looks ok except
1.5 -that glibc-2.2.2 headers contain the gosh-awful line
1.6 - # define printf(fmt, args...) fprintf (stdout, fmt, ##args)
1.7 -which causes builds of programs with methods named 'printf' to fail with
1.8 - error: `stdout' is not a type
1.9 -Feh.
1.10 -
1.11 -Revision 1.8, Thu Aug 2 16:09:51 2001 UTC (3 years, 9 months ago) by aj
1.12 -Branch: MAIN
1.13 -CVS Tags: glibc-2_3_2, glibc-2_2_4, glibc-2-3-1, glibc-2-3, glibc-2-2-branch, glibc-2-2-5
1.14 -
1.15 -(printf): Remove printf optimization since GCC 3.0 can optimize printf.
1.16 -
1.17 -http://sourceware.org/cgi-bin/cvsweb.cgi/libc/libio/bits/stdio.h.diff?r1=1.7&r2=1.8&cvsroot=glibc
1.18 -
1.19 -===================================================================
1.20 -RCS file: /cvs/glibc/libc/libio/bits/stdio.h,v
1.21 -retrieving revision 1.7
1.22 -retrieving revision 1.8
1.23 -diff -u -r1.7 -r1.8
1.24 ---- libc/libio/bits/stdio.h 2001/07/06 04:55:32 1.7
1.25 -+++ libc/libio/bits/stdio.h 2001/08/02 16:09:51 1.8
1.26 -@@ -29,13 +29,6 @@
1.27 -
1.28 -
1.29 - #ifdef __USE_EXTERN_INLINES
1.30 --/* Since version 2.97 GCC knows about `fprintf' and can optimize certain
1.31 -- cases. Help gcc to optimize more code by mapping `printf' to the known
1.32 -- `fprintf' function. Unfortunately we have to use a macro. */
1.33 --# if __GNUC_PREREQ (2,97)
1.34 --# define printf(fmt, args...) fprintf (stdout, fmt, ##args)
1.35 --# endif
1.36 --
1.37 - /* Write formatted output to stdout from argument list ARG. */
1.38 - __STDIO_INLINE int
1.39 - vprintf (__const char *__restrict __fmt, _G_va_list __arg) __THROW