patches/gcc/4.2.0/302-c99-snprintf.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jul 30 20:02:13 2007 +0000 (2007-07-30)
changeset 305 00a7e6c275da
permissions -rw-r--r--
Remove any reference to libfloat. That has gone once and for all.

Rationale:
Most of the time, soft-float problems are caused by this sucker of gcc:
it has support for soft float for all of the targets I've tried so far,
but does not activate this code until you dwelve into half a dozen of
files to make it accept to build and link the support code...

So, yes: gcc has soft-float support. And again, yes: gcc is a sucker.
     1 --- gcc-4.2.0.orig/libstdc++-v3/include/c_std/std_cstdio.h	2006-12-07 10:33:51.000000000 +0100
     2 +++ gcc-4.2.0/libstdc++-v3/include/c_std/std_cstdio.h	2007-05-20 01:05:38.000000000 +0200
     3 @@ -144,7 +144,7 @@
     4  
     5  _GLIBCXX_END_NAMESPACE
     6  
     7 -#if _GLIBCXX_USE_C99
     8 +#if _GLIBCXX_USE_C99 || defined(__UCLIBC__)
     9  
    10  #undef snprintf
    11  #undef vfscanf