aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-04-16 20:33:57 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-04-16 20:33:57 +0000
commit73cc28d4e7afd539934e7033d0e6dea6c8265852 (patch)
treee260111252f06f4287732263aeffb954aca02ee2 /libgo
parent1dbdb7561806589afa85316032156d988cb9a060 (diff)
downloadgcc-73cc28d4e7afd539934e7033d0e6dea6c8265852.zip
gcc-73cc28d4e7afd539934e7033d0e6dea6c8265852.tar.gz
gcc-73cc28d4e7afd539934e7033d0e6dea6c8265852.tar.bz2
libgo: Remove Solaris 8 & 9 support.
From Rainer Orth. From-SVN: r209448
Diffstat (limited to 'libgo')
-rw-r--r--libgo/config.h.in3
-rwxr-xr-xlibgo/configure19
-rw-r--r--libgo/configure.ac20
-rw-r--r--libgo/go/math/ldexp.go10
-rw-r--r--libgo/runtime/proc.c3
5 files changed, 0 insertions, 55 deletions
diff --git a/libgo/config.h.in b/libgo/config.h.in
index 7385435..ca5dcb2 100644
--- a/libgo/config.h.in
+++ b/libgo/config.h.in
@@ -341,9 +341,6 @@
*/
#undef LT_OBJDIR
-/* Define if makecontext expects top of stack in uc_stack. */
-#undef MAKECONTEXT_STACK_TOP
-
/* Name of package */
#undef PACKAGE
diff --git a/libgo/configure b/libgo/configure
index f4b8c10..81936a8 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -13889,11 +13889,6 @@ case "$target" in
# msghdr in <sys/socket.h>.
OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
;;
- *-*-solaris2.[89])
- # Solaris 8/9 need this so struct msghdr gets the msg_control
- # etc. fields in <sys/socket.h> (_XPG4_2).
- OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
- ;;
*-*-solaris2.1[01])
# Solaris 10+ needs this so struct msghdr gets the msg_control
# etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
@@ -15053,20 +15048,6 @@ $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
fi
-case "$target" in
- sparc*-*-solaris2.[89]*)
- libgo_cv_lib_makecontext_stack_top=yes
- ;;
- *)
- libgo_cv_lib_makecontext_stack_top=no
- ;;
-esac
-if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
-
-$as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
-
-fi
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
diff --git a/libgo/configure.ac b/libgo/configure.ac
index 4480261..6f59c03 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -316,11 +316,6 @@ case "$target" in
# msghdr in <sys/socket.h>.
OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
;;
- *-*-solaris2.[[89]])
- # Solaris 8/9 need this so struct msghdr gets the msg_control
- # etc. fields in <sys/socket.h> (_XPG4_2).
- OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
- ;;
*-*-solaris2.1[[01]])
# Solaris 10+ needs this so struct msghdr gets the msg_control
# etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
@@ -662,21 +657,6 @@ if test "$libgo_has_struct_exception" = "yes"; then
[Define to 1 if <math.h> defines struct exception])
fi
-dnl Check if makecontext expects the uc_stack member of ucontext to point
-dnl to the top of the stack.
-case "$target" in
- sparc*-*-solaris2.[[89]]*)
- libgo_cv_lib_makecontext_stack_top=yes
- ;;
- *)
- libgo_cv_lib_makecontext_stack_top=no
- ;;
-esac
-if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
- AC_DEFINE(MAKECONTEXT_STACK_TOP, 1,
- [Define if makecontext expects top of stack in uc_stack.])
-fi
-
dnl See whether setcontext changes the value of TLS variables.
AC_CACHE_CHECK([whether setcontext clobbers TLS variables],
[libgo_cv_lib_setcontext_clobbers_tls],
diff --git a/libgo/go/math/ldexp.go b/libgo/go/math/ldexp.go
index 4c63edd..2898f5d 100644
--- a/libgo/go/math/ldexp.go
+++ b/libgo/go/math/ldexp.go
@@ -17,16 +17,6 @@ func libc_ldexp(float64, int) float64
func Ldexp(frac float64, exp int) float64 {
r := libc_ldexp(frac, exp)
-
- // Work around a bug in the implementation of ldexp on Solaris
- // 9. If multiplying a negative number by 2 raised to a
- // negative exponent underflows, we want to return negative
- // zero, but the Solaris 9 implementation returns positive
- // zero. This workaround can be removed when and if we no
- // longer care about Solaris 9.
- if r == 0 && frac < 0 && exp < 0 {
- r = Copysign(0, frac)
- }
return r
}
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 1bc0876..ed0c1a0 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -1212,9 +1212,6 @@ runtime_newextram(void)
// here we need to set up the context for g0.
getcontext(&mp->g0->context);
mp->g0->context.uc_stack.ss_sp = g0_sp;
-#ifdef MAKECONTEXT_STACK_TOP
- mp->g0->context.uc_stack.ss_sp += g0_spsize;
-#endif
mp->g0->context.uc_stack.ss_size = g0_spsize;
makecontext(&mp->g0->context, kickoff, 0);