This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
3.3.2 PATCH: Support Solaris 10
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: java-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Mon, 29 Sep 2003 19:36:20 +0200 (MEST)
- Subject: 3.3.2 PATCH: Support Solaris 10
This is the equivalent of
http://gcc.gnu.org/ml/gcc-patches/2003-09/msg01801.html
for the 3.3 branch. As has been suggested, Solaris 10 might hit the
streets while GCC 3.3 is still in widespread use, so it may be useful to
have that patch on the branch, too. It seems harmless enough, touching
only Solaris 2 configure bits. The only change from the mainline patch is
the use of libstdc++-v3/configure.target instead of configure.host.
Bootstrapped without regressions on sparc-sun-solaris2.10.
Ok for 3.3 branch?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Fri Aug 8 00:00:31 2003 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
libstdc++-v3:
* configure.target: Handle Solaris 2.5 micro releases explicitly.
Remove wildcards from Solaris 2.6, 7-9: there were no
micro releases.
Treat Solaris 10 and up like 7-9.
boehm-gc:
* configure.in: Remove wildcard from Solaris 8-9/Intel and Solaris
2.3/SPARC, there are no micro versions.
Treat Solaris 10 and up alike.
* configure: Regenerate.
gcc:
* config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
Solaris 7-9.
* fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
wildcards which explicitly match micro versions.
* fixinc/fixincl.x: Regenerate.
Index: boehm-gc/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/configure.in,v
retrieving revision 1.43.14.3
diff -u -p -r1.43.14.3 configure.in
--- boehm-gc/configure.in 28 Apr 2003 20:55:07 -0000 1.43.14.3
+++ boehm-gc/configure.in 29 Sep 2003 17:29:20 -0000
@@ -174,7 +174,7 @@ case "$host" in
alpha*-*-*)
machdep="alpha_mach_dep.lo"
;;
- i?86-*-solaris2.[[89]]*)
+ i?86-*-solaris2.[[89]] | i?86-*-solaris2.1?)
AC_DEFINE(SOLARIS25_PROC_VDB_BUG_FIXED)
;;
mipstx39-*-elf*)
@@ -191,7 +191,7 @@ case "$host" in
machdep="mips_sgi_mach_dep.lo"
AC_DEFINE(NO_EXECUTE_PERMISSION)
;;
- sparc-sun-solaris2.3*)
+ sparc-sun-solaris2.3)
machdep="sparc_mach_dep.lo"
AC_DEFINE(SUNOS53_SHARED_LIB)
;;
Index: gcc/config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.266.2.16
diff -u -p -r1.266.2.16 config.gcc
--- gcc/config.gcc 19 Sep 2003 13:29:45 -0000 1.266.2.16
+++ gcc/config.gcc 29 Sep 2003 17:29:21 -0000
@@ -2523,7 +2523,7 @@ sparc-*-solaris2*)
tm_file="${tm_file} sparc/sol26-sld.h"
fi
;;
- *-*-solaris2.[789])
+ *-*-solaris2.[789] | *-*-solaris2.1[0-9])
tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
if test x$gnu_ld = xyes; then
tm_file="${tm_file} sparc/sol2-gld-bi.h"
Index: gcc/fixinc/inclhack.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.139.4.10
diff -u -p -r1.139.4.10 inclhack.def
--- gcc/fixinc/inclhack.def 12 Aug 2003 02:45:16 -0000 1.139.4.10
+++ gcc/fixinc/inclhack.def 29 Sep 2003 17:29:48 -0000
@@ -2424,7 +2424,8 @@ fix = {
fix = {
hackname = solaris_widec;
files = widec.h;
- mach = '*-*-solaris2.[0-5]*';
+ mach = '*-*-solaris2.[0-5]';
+ mach = '*-*-solaris2.[0-5].*';
bypass = "include.*wchar\\.h";
select = "#include <euc.h>";
c_fix = format;
Index: libstdc++-v3/configure.target
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/Attic/configure.target,v
retrieving revision 1.56.2.4
diff -u -p -r1.56.2.4 configure.target
--- libstdc++-v3/configure.target 24 Jun 2003 04:14:45 -0000 1.56.2.4
+++ libstdc++-v3/configure.target 29 Sep 2003 17:30:20 -0000
@@ -154,13 +154,13 @@ case "${target_os}" in
netbsd*)
os_include_dir="os/bsd/netbsd"
;;
- solaris2.5*)
+ solaris2.5 | solaris2.5.[0-9])
os_include_dir="os/solaris/solaris2.5"
;;
- solaris2.6*)
+ solaris2.6)
os_include_dir="os/solaris/solaris2.6"
;;
- solaris2.[789]*)
+ solaris2.[789] | solaris2.1[0-9])
os_include_dir="os/solaris/solaris2.7"
;;
windiss*)