Blame SOURCES/compat-libstdc++33-v3.patch

6f1b0c
--- Makefile.in	2003-02-03 23:58:12.000000000 +0100
6f1b0c
+++ Makefile.in	2004-10-14 17:42:45.175884656 +0200
6f1b0c
@@ -785,6 +785,7 @@ INSTALL_X11_MODULES = \
6f1b0c
 # using $(TARGET_FLAGS_TO_PASS).
6f1b0c
 ALL_TARGET_MODULES = \
6f1b0c
 	all-target-libstdc++-v3 \
6f1b0c
+	all-target-libstdc++33-v3 \
6f1b0c
 	all-target-librx \
6f1b0c
 	all-target-newlib \
6f1b0c
 	all-target-libf2c \
6f1b0c
@@ -808,6 +809,7 @@ ALL_TARGET_MODULES = \
6f1b0c
 # are compiled using the target tools.
6f1b0c
 CONFIGURE_TARGET_MODULES = \
6f1b0c
 	configure-target-libstdc++-v3 \
6f1b0c
+	configure-target-libstdc++33-v3 \
6f1b0c
 	configure-target-librx \
6f1b0c
 	configure-target-newlib \
6f1b0c
 	configure-target-libf2c \
6f1b0c
@@ -831,6 +833,7 @@ CONFIGURE_TARGET_MODULES = \
6f1b0c
 # compiled using $(TARGET_FLAGS_TO_PASS).
6f1b0c
 CHECK_TARGET_MODULES = \
6f1b0c
 	check-target-libstdc++-v3 \
6f1b0c
+	check-target-libstdc++33-v3 \
6f1b0c
 	check-target-newlib \
6f1b0c
 	check-target-libf2c \
6f1b0c
 	check-target-libobjc \
6f1b0c
@@ -847,6 +850,7 @@ CHECK_TARGET_MODULES = \
6f1b0c
 # compiled using $(TARGET_FLAGS_TO_PASS).
6f1b0c
 INSTALL_TARGET_MODULES = \
6f1b0c
 	install-target-libstdc++-v3 \
6f1b0c
+	install-target-libstdc++33-v3 \
6f1b0c
 	install-target-newlib \
6f1b0c
 	install-target-libf2c \
6f1b0c
 	install-target-libobjc \
6f1b0c
@@ -934,6 +938,7 @@ CLEAN_MODULES = \
6f1b0c
 # All of the target modules that can be cleaned
6f1b0c
 CLEAN_TARGET_MODULES = \
6f1b0c
 	clean-target-libstdc++-v3 \
6f1b0c
+	clean-target-libstdc++33-v3 \
6f1b0c
 	clean-target-librx \
6f1b0c
 	clean-target-newlib \
6f1b0c
 	clean-target-libf2c \
6f1b0c
@@ -1659,6 +1664,7 @@ check-c++:
6f1b0c
 	  $(SET_LIB_PATH) \
6f1b0c
 	  (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
6f1b0c
 	  $(MAKE) check-target-libstdc++-v3; \
6f1b0c
+	  $(MAKE) check-target-libstdc++33-v3; \
6f1b0c
 	else \
6f1b0c
 	  true; \
6f1b0c
 	fi 
6f1b0c
@@ -1703,7 +1709,7 @@ install-dosrel-fake:
6f1b0c
 
6f1b0c
 ALL_GCC = all-gcc
6f1b0c
 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
6f1b0c
-ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
6f1b0c
+ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3 all-target-libstdc++33-v3
6f1b0c
 
6f1b0c
 # This is a list of inter-dependencies among modules.
6f1b0c
 all-apache:
6f1b0c
@@ -1747,7 +1753,7 @@ all-gdb: all-libiberty all-opcodes all-b
6f1b0c
 all-gettext:
6f1b0c
 all-gnuserv:
6f1b0c
 configure-target-gperf: $(ALL_GCC_CXX)
6f1b0c
-all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3
6f1b0c
+all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3 all-target-libstdc++33-v3
6f1b0c
 all-gprof: all-libiberty all-bfd all-opcodes all-intl
6f1b0c
 all-grep: all-libiberty
6f1b0c
 all-grez: all-libiberty all-bfd all-opcodes
6f1b0c
@@ -1776,6 +1782,8 @@ configure-target-librx: $(ALL_GCC_C)
6f1b0c
 all-target-librx: configure-target-librx
6f1b0c
 configure-target-libstdc++-v3: $(ALL_GCC_C)
6f1b0c
 all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty
6f1b0c
+configure-target-libstdc++33-v3: $(ALL_GCC_C)
6f1b0c
+all-target-libstdc++33-v3: configure-target-libstdc++33-v3 all-target-libiberty
6f1b0c
 configure-target-libstub: $(ALL_GCC_C)
6f1b0c
 all-target-libstub: configure-target-libstub
6f1b0c
 all-libtool:
6f1b0c
--- configure.in.jj	2002-09-24 09:06:53.000000000 -0400
6f1b0c
+++ configure.in	2004-10-14 17:53:05.746097559 -0400
6f1b0c
@@ -50,7 +50,7 @@ fi
6f1b0c
 
6f1b0c
 libstdcxx_version="target-libstdc++-v3"
6f1b0c
 # Don't use libstdc++-v3's flags to configure/build itself.
6f1b0c
-libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6f1b0c
+libstdcxx_flags='`case $$dir in libstdc++-v3 | libstdc++33-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` `test x"$$dir" = xlibstdc++33-v3 && echo "-L$$r/$(TARGET_SUBDIR)/libstdc++33-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++33-v3/src/.libs" || echo "-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"`'
6f1b0c
 
6f1b0c
 # these tools are built for the host environment
6f1b0c
 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
6f1b0c
@@ -72,6 +72,7 @@ target_libs="target-libiberty \
6f1b0c
 		target-newlib \
6f1b0c
 		target-librx \
6f1b0c
 		${libstdcxx_version} \
6f1b0c
+		target-libstdc++33-v3 \
6f1b0c
 		target-libf2c \
6f1b0c
 		${libgcj}
6f1b0c
 		target-libobjc"
6f1b0c
@@ -884,7 +885,7 @@ case "${target}" in
6f1b0c
   mcore-*-pe*)
6f1b0c
   # The EPOC C++ environment does not support exceptions or rtti,
6f1b0c
   # and so building libstdc++-v3 tends not to always work.
6f1b0c
-    noconfigdirs="$noconfigdirs target-libstdc++-v3"
6f1b0c
+    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libstdc++33-v3"
6f1b0c
     ;;
6f1b0c
   mmix-*-*)
6f1b0c
     noconfigdirs="$noconfigdirs ${libgcj}"
6f1b0c
@@ -1557,7 +1558,7 @@ elif test -d ${topsrcdir}/gcc; then
6f1b0c
   # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
6f1b0c
   # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
6f1b0c
   # default whereas gcc does not.
6f1b0c
-  CXX_FOR_TARGET='$$r/gcc/`case $$dir in libstdc++-v3 | libjava) echo xgcc -shared-libgcc ;; *) echo g++ ;; esac` -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
6f1b0c
+  CXX_FOR_TARGET='$$r/gcc/`case $$dir in libstdc++-v3 | libstdc++33-v3 | libjava) echo xgcc -shared-libgcc ;; *) echo g++ ;; esac` -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
6f1b0c
 elif test "$host" = "$target"; then
6f1b0c
   CXX_FOR_TARGET='$(CXX)'
6f1b0c
 else
6f1b0c
--- libstdc++33-v3/acinclude.m4.jj	2004-10-14 17:08:50.000000000 -0400
6f1b0c
+++ libstdc++33-v3/acinclude.m4	2004-10-14 17:08:50.000000000 -0400
6f1b0c
@@ -72,7 +72,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
6f1b0c
   AC_ARG_WITH(cross-host,
6f1b0c
   [  --with-cross-host=HOST  configuring with a cross compiler])
6f1b0c
 
6f1b0c
-  glibcpp_basedir=$srcdir/$toprel/$1/libstdc++-v3
6f1b0c
+  glibcpp_basedir=$srcdir/$toprel/$1/libstdc++33-v3
6f1b0c
   AC_SUBST(glibcpp_basedir)
6f1b0c
 
6f1b0c
   # Never versions of autoconf add an underscore to these functions.
6f1b0c
--- libstdc++33-v3/aclocal.m4.jj	2004-10-14 17:09:05.000000000 -0400
6f1b0c
+++ libstdc++33-v3/aclocal.m4	2004-10-14 17:09:05.000000000 -0400
6f1b0c
@@ -84,7 +84,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
6f1b0c
   AC_ARG_WITH(cross-host,
6f1b0c
   [  --with-cross-host=HOST  configuring with a cross compiler])
6f1b0c
 
6f1b0c
-  glibcpp_basedir=$srcdir/$toprel/$1/libstdc++-v3
6f1b0c
+  glibcpp_basedir=$srcdir/$toprel/$1/libstdc++33-v3
6f1b0c
   AC_SUBST(glibcpp_basedir)
6f1b0c
 
6f1b0c
   # Never versions of autoconf add an underscore to these functions.
6f1b0c
--- libstdc++33-v3/configure.jj	2004-10-14 17:09:31.000000000 -0400
6f1b0c
+++ libstdc++33-v3/configure	2004-10-14 17:09:31.000000000 -0400
6f1b0c
@@ -922,7 +922,7 @@ if test "${with_cross_host+set}" = set; 
6f1b0c
 fi
6f1b0c
 
6f1b0c
 
6f1b0c
-  glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
6f1b0c
+  glibcpp_basedir=$srcdir/$toprel/./libstdc++33-v3
6f1b0c
   
6f1b0c
 
6f1b0c
   # Never versions of autoconf add an underscore to these functions.
6f1b0c
--- libstdc++33-v3/testsuite/18_support/numeric_limits.cc.jj	2002-12-19 06:44:30.000000000 -0500
6f1b0c
+++ libstdc++33-v3/testsuite/18_support/numeric_limits.cc	2004-10-15 05:12:43.000000000 -0400
6f1b0c
@@ -260,6 +260,10 @@ bool test03()
6f1b0c
 {
6f1b0c
   bool test = true;
6f1b0c
 
6f1b0c
+#ifndef __CHAR_BIT__
6f1b0c
+ #define __CHAR_BIT__ 8
6f1b0c
+#endif
6f1b0c
+
6f1b0c
   VERIFY( std::numeric_limits<bool>::digits10 == 0 );
6f1b0c
   if (__CHAR_BIT__ == 8)
6f1b0c
     {
6f1b0c
--- libstdc++33-v3/testsuite/lib/libstdc++-v3-dg.exp.jj	2003-12-19 04:18:43.000000000 -0500
6f1b0c
+++ libstdc++33-v3/testsuite/lib/libstdc++-v3-dg.exp	2004-10-15 05:04:58.000000000 -0400
6f1b0c
@@ -49,7 +49,7 @@ proc libstdc++-v3-init { args } {
6f1b0c
     global original_ld_library_path
6f1b0c
     global tool_root_dir
6f1b0c
 
6f1b0c
-    set blddir [lookfor_file [get_multilibs] libstdc++-v3]
6f1b0c
+    set blddir [lookfor_file [get_multilibs] libstdc++33-v3]
6f1b0c
 
6f1b0c
     # By default, we assume we want to run program images.
6f1b0c
     global dg-do-what-default
6f1b0c
--- libstdc++33-v3/testsuite_flags.in.jj	2003-05-15 18:08:03.000000000 -0400
6f1b0c
+++ libstdc++33-v3/testsuite_flags.in	2004-10-15 04:56:36.000000000 -0400
6f1b0c
@@ -43,7 +43,7 @@ case ${query} in
6f1b0c
       echo ${CXX}
6f1b0c
       ;;
6f1b0c
     --build-cxx)
6f1b0c
-      CXX_build="@glibcpp_CXX@ ${PCHFLAGS}"
6f1b0c
+      CXX_build=`echo "@glibcpp_CXX@ ${PCHFLAGS}" | sed 's,libstdc++-v3,libstdc++33-v3,g'`
6f1b0c
       CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
6f1b0c
       echo ${CXX}
6f1b0c
       ;;
6f1b0c
--- libstdc++33-v3/Makefile.am.jj	2003-07-09 05:08:57.000000000 -0400
6f1b0c
+++ libstdc++33-v3/Makefile.am	2004-10-15 09:20:31.000000000 -0400
6f1b0c
@@ -136,7 +136,7 @@ AM_MAKEFLAGS = \
6f1b0c
 	"includedir=$(includedir)" \
6f1b0c
 	"prefix=$(prefix)" \
6f1b0c
 	"tooldir=$(tooldir)" \
6f1b0c
-	"gxx_include_dir=$(gxx_include_dir)" \
6f1b0c
+	"gxx_include_dir=@gxx_include_dir@" \
6f1b0c
 	"AR=$(AR)" \
6f1b0c
 	"AS=$(AS)" \
6f1b0c
 	"LD=$(LD)" \
6f1b0c
--- libstdc++33-v3/Makefile.in.jj	2004-10-14 12:28:01.000000000 -0400
6f1b0c
+++ libstdc++33-v3/Makefile.in	2004-10-15 09:20:55.000000000 -0400
6f1b0c
@@ -195,7 +195,7 @@ AM_MAKEFLAGS = \
6f1b0c
 	"includedir=$(includedir)" \
6f1b0c
 	"prefix=$(prefix)" \
6f1b0c
 	"tooldir=$(tooldir)" \
6f1b0c
-	"gxx_include_dir=$(gxx_include_dir)" \
6f1b0c
+	"gxx_include_dir=@gxx_include_dir@" \
6f1b0c
 	"AR=$(AR)" \
6f1b0c
 	"AS=$(AS)" \
6f1b0c
 	"LD=$(LD)" \