aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2012-02-22 11:27:45 +0000
committerRainer Orth <ro@gcc.gnu.org>2012-02-22 11:27:45 +0000
commitbbd6a014640b668d38004deb8f647303e2347ac5 (patch)
tree516bd1a246ebfd6c216cab784c84e746d3f4f3c4 /gcc
parent3e888a5ed4951d9d123e131ed924cd27d9e149c6 (diff)
downloadgcc-bbd6a014640b668d38004deb8f647303e2347ac5.zip
gcc-bbd6a014640b668d38004deb8f647303e2347ac5.tar.gz
gcc-bbd6a014640b668d38004deb8f647303e2347ac5.tar.bz2
Use alternate thread library on Solaris 8 even without TLS
* configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread library on Solaris 8 even without TLS support. * configure: Regenerate. From-SVN: r184467
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rwxr-xr-xgcc/configure7
-rw-r--r--gcc/configure.ac7
3 files changed, 21 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cc6d64c..4fe5259 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,9 +1,15 @@
+2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
+ library on Solaris 8 even without TLS support.
+ * configure: Regenerate.
+
2012-02-22 Richard Guenther <rguenther@suse.de>
PR middle-end/52329
* gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
for GIMPLE_DEBUG stmts.
-
+
2012-02-22 Martin Jambor <mjambor@suse.cz>
PR middle-end/51782
diff --git a/gcc/configure b/gcc/configure
index 2a84fc3..4bca790 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -23774,6 +23774,13 @@ fi
if test $set_have_as_tls = no; then
LIBS=
fi
+ # Even without TLS support on Solaris 8, explicitly link with libthread
+ # to guarantee that the alternate thread library is used.
+ case "$target" in
+ *-*-solaris2.8)
+ LIBS=-lthread
+ ;;
+ esac
# Always define LIB_TLS_SPEC, even without TLS support.
cat >>confdefs.h <<_ACEOF
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 97be57b..57210f4 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3264,6 +3264,13 @@ case "$target" in
if test $set_have_as_tls = no; then
LIBS=
fi
+ # Even without TLS support on Solaris 8, explicitly link with libthread
+ # to guarantee that the alternate thread library is used.
+ case "$target" in
+ *-*-solaris2.8)
+ LIBS=-lthread
+ ;;
+ esac
# Always define LIB_TLS_SPEC, even without TLS support.
AC_DEFINE_UNQUOTED(LIB_TLS_SPEC, "$LIBS",
[Define to the library containing __tls_get_addr/___tls_get_addr.])