Commit bbd6a014 by Rainer Orth Committed by Rainer Orth

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
parent 3e888a5e
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> 2012-02-22 Richard Guenther <rguenther@suse.de>
PR middle-end/52329 PR middle-end/52329
* gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
for GIMPLE_DEBUG stmts. for GIMPLE_DEBUG stmts.
2012-02-22 Martin Jambor <mjambor@suse.cz> 2012-02-22 Martin Jambor <mjambor@suse.cz>
PR middle-end/51782 PR middle-end/51782
......
...@@ -23774,6 +23774,13 @@ fi ...@@ -23774,6 +23774,13 @@ fi
if test $set_have_as_tls = no; then if test $set_have_as_tls = no; then
LIBS= LIBS=
fi 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. # Always define LIB_TLS_SPEC, even without TLS support.
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
......
...@@ -3264,6 +3264,13 @@ case "$target" in ...@@ -3264,6 +3264,13 @@ case "$target" in
if test $set_have_as_tls = no; then if test $set_have_as_tls = no; then
LIBS= LIBS=
fi 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. # Always define LIB_TLS_SPEC, even without TLS support.
AC_DEFINE_UNQUOTED(LIB_TLS_SPEC, "$LIBS", AC_DEFINE_UNQUOTED(LIB_TLS_SPEC, "$LIBS",
[Define to the library containing __tls_get_addr/___tls_get_addr.]) [Define to the library containing __tls_get_addr/___tls_get_addr.])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment