patches/gcc/4.3.0/850-306-libstdc++-namespace.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 26 15:29:51 2008 +0000 (2008-07-26)
changeset 734 9416a82ef7b4
permissions -rw-r--r--
Add two new patches to glibc-2.7 to make it build for Alpha.
Patches propagated to me from the net by Ioannis E. VENETIS.

/trunk/patches/glibc/2.7/230-glibc-2.7-alpha-atfcts.patch | 12 12 0 0 ++
/trunk/patches/glibc/2.7/240-glibc-2.7-alpha-ptr_mangle.patch | 94 94 0 0 +++++++++++++++++
2 files changed, 106 insertions(+)
     1 Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.0/uclibc/90_all_306-libstdc++-namespace.patch
     2 diff -rup gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h gcc-4.2/libstdc++-v3/config/locale/uclibc/messages_members.h
     3 diff -durN gcc-4.3.0.orig/libstdc++-v3/config/locale/uclibc/messages_members.h gcc-4.3.0/libstdc++-v3/config/locale/uclibc/messages_members.h
     4 --- gcc-4.3.0.orig/libstdc++-v3/config/locale/uclibc/messages_members.h	2008-06-10 14:45:50.000000000 +0200
     5 +++ gcc-4.3.0/libstdc++-v3/config/locale/uclibc/messages_members.h	2008-06-10 14:46:05.000000000 +0200
     6 @@ -32,7 +32,8 @@
     7  //
     8  
     9  // Written by Benjamin Kosnik <bkoz@redhat.com>
    10 -
    11 +namespace std
    12 +{
    13  #ifdef __UCLIBC_MJN3_ONLY__
    14  #warning fix prototypes for *textdomain funcs
    15  #endif
    16 @@ -115,3 +116,4 @@
    17  	   this->_S_create_c_locale(this->_M_c_locale_messages, __s); 
    18  	 }
    19       }
    20 +}
    21 diff -durN gcc-4.3.0.orig/libstdc++-v3/config/locale/uclibc/time_members.h gcc-4.3.0/libstdc++-v3/config/locale/uclibc/time_members.h
    22 --- gcc-4.3.0.orig/libstdc++-v3/config/locale/uclibc/time_members.h	2008-06-10 14:45:50.000000000 +0200
    23 +++ gcc-4.3.0/libstdc++-v3/config/locale/uclibc/time_members.h	2008-06-10 14:46:05.000000000 +0200
    24 @@ -33,7 +33,8 @@
    25  //
    26  
    27  // Written by Benjamin Kosnik <bkoz@redhat.com>
    28 -
    29 +namespace std
    30 +{
    31    template<typename _CharT>
    32      __timepunct<_CharT>::__timepunct(size_t __refs) 
    33      : facet(__refs), _M_data(NULL), _M_c_locale_timepunct(NULL), 
    34 @@ -74,3 +75,4 @@
    35        delete _M_data; 
    36        _S_destroy_c_locale(_M_c_locale_timepunct); 
    37      }
    38 +}