patches/glibc/2.2.2/glibc-2.2.2-printf-not-macro.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 I'm testing toolchains with glibc-2.2.2 now.  It looks ok except
     2 that glibc-2.2.2 headers contain the gosh-awful line
     3   #  define printf(fmt, args...) fprintf (stdout, fmt, ##args)
     4 which causes builds of programs with methods named 'printf' to fail with
     5   error: `stdout' is not a type
     6 Feh.
     7 
     8 Revision 1.8, Thu Aug 2 16:09:51 2001 UTC (3 years, 9 months ago) by aj
     9 Branch: MAIN
    10 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
    11 
    12 (printf): Remove printf optimization since GCC 3.0 can optimize printf.
    13 
    14 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/libio/bits/stdio.h.diff?r1=1.7&r2=1.8&cvsroot=glibc
    15 
    16 ===================================================================
    17 RCS file: /cvs/glibc/libc/libio/bits/stdio.h,v
    18 retrieving revision 1.7
    19 retrieving revision 1.8
    20 diff -u -r1.7 -r1.8
    21 --- libc/libio/bits/stdio.h	2001/07/06 04:55:32	1.7
    22 +++ libc/libio/bits/stdio.h	2001/08/02 16:09:51	1.8
    23 @@ -29,13 +29,6 @@
    24  
    25  
    26  #ifdef __USE_EXTERN_INLINES
    27 -/* Since version 2.97 GCC knows about `fprintf' and can optimize certain
    28 -   cases.  Help gcc to optimize more code by mapping `printf' to the known
    29 -   `fprintf' function.  Unfortunately we have to use a macro.  */
    30 -# if __GNUC_PREREQ (2,97)
    31 -#  define printf(fmt, args...) fprintf (stdout, fmt, ##args)
    32 -# endif
    33 -
    34  /* Write formatted output to stdout from argument list ARG.  */
    35  __STDIO_INLINE int
    36  vprintf (__const char *__restrict __fmt, _G_va_list __arg) __THROW