patches/gcc/4.2.3/220-libstdc++-namespace.patch
author Remy Bohmer <linux@bohmer.net>
Thu May 27 23:18:19 2010 +0200 (2010-05-27)
changeset 2060 51e4597b07fc
parent 431 8bde4c6ea47a
permissions -rw-r--r--
scripts: add option to strip all toolchain executables

To reduce filesizes of the toolchain and even improve build times
of projects to be build with this toolchain it is usefull to strip
the delivered toolchain executables. Since it is not likely that we
will debug the toolchain executables itself we do not need the
debug information inside the executables itself.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
yann@313
     1
diff -durN gcc-4.2.1.orig/libstdc++-v3/config/locale/uclibc/messages_members.h gcc-4.2.1/libstdc++-v3/config/locale/uclibc/messages_members.h
yann@313
     2
--- gcc-4.2.1.orig/libstdc++-v3/config/locale/uclibc/messages_members.h	2007-08-03 20:31:54.000000000 +0200
yann@313
     3
+++ gcc-4.2.1/libstdc++-v3/config/locale/uclibc/messages_members.h	2007-08-03 20:35:40.000000000 +0200
yann@313
     4
@@ -32,7 +32,8 @@
yann@313
     5
 //
yann@313
     6
 
yann@313
     7
 // Written by Benjamin Kosnik <bkoz@redhat.com>
yann@313
     8
-
yann@313
     9
+namespace std
yann@313
    10
+{
yann@313
    11
 #ifdef __UCLIBC_MJN3_ONLY__
yann@313
    12
 #warning fix prototypes for *textdomain funcs
yann@313
    13
 #endif
yann@313
    14
@@ -115,3 +116,4 @@
yann@313
    15
 	   this->_S_create_c_locale(this->_M_c_locale_messages, __s); 
yann@313
    16
 	 }
yann@313
    17
      }
yann@313
    18
+}
yann@313
    19
diff -durN gcc-4.2.1.orig/libstdc++-v3/config/locale/uclibc/time_members.h gcc-4.2.1/libstdc++-v3/config/locale/uclibc/time_members.h
yann@313
    20
--- gcc-4.2.1.orig/libstdc++-v3/config/locale/uclibc/time_members.h	2007-08-03 20:31:54.000000000 +0200
yann@313
    21
+++ gcc-4.2.1/libstdc++-v3/config/locale/uclibc/time_members.h	2007-08-03 20:35:40.000000000 +0200
yann@313
    22
@@ -33,7 +33,8 @@
yann@313
    23
 //
yann@313
    24
 
yann@313
    25
 // Written by Benjamin Kosnik <bkoz@redhat.com>
yann@313
    26
-
yann@313
    27
+namespace std
yann@313
    28
+{
yann@313
    29
   template<typename _CharT>
yann@313
    30
     __timepunct<_CharT>::__timepunct(size_t __refs) 
yann@313
    31
     : facet(__refs), _M_data(NULL), _M_c_locale_timepunct(NULL), 
yann@313
    32
@@ -74,3 +75,4 @@
yann@313
    33
       delete _M_data; 
yann@313
    34
       _S_destroy_c_locale(_M_c_locale_timepunct); 
yann@313
    35
     }
yann@313
    36
+}