]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: configure.ac (*-*-irix6*): Disable set_have_as_tls.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 13 Dec 2010 18:19:43 +0000 (18:19 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 13 Dec 2010 18:19:43 +0000 (18:19 +0000)
Backport from mainline:
2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* configure.ac (*-*-irix6*): Disable set_have_as_tls.
(*-*-osf*): Likewise.
* configure: Regenerate.

From-SVN: r167759

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 2a9a61fa0cf36cf577ed09d3a64d4c438ec05a1d..2c796c40836eaa71412a218affbe973d010b9204 100644 (file)
@@ -1,3 +1,12 @@
+2010-12-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       Backport from mainline:
+       2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * configure.ac (*-*-irix6*): Disable set_have_as_tls.
+       (*-*-osf*): Likewise.
+       * configure: Regenerate.
+
 2010-12-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/46534
index 64cdd91332ff23f120566cdfcb52eae57dde62a3..3d434a8196c3613d1885290f76b32ebbdda5e0af 100755 (executable)
@@ -22423,6 +22423,18 @@ if test $gcc_cv_as_tls = yes; then
   set_have_as_tls=yes
 fi
 fi
+case "$target" in
+  *-*-irix6*)
+    # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
+    # with TLS support are in use, native TLS cannot work.
+    set_have_as_tls=no
+    ;;
+  *-*-osf*)
+    # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
+    # gld with TLS support are in use, native TLS cannot work.
+    set_have_as_tls=no
+    ;;
+esac
 if test $set_have_as_tls = yes ; then
 
 cat >>confdefs.h <<\_ACEOF
index 01b6c5634727b2bebd8d69a0608eb74cff6f07b8..47f39ac7eb2b82d54a0cf8108ac257ebc720bbc9 100644 (file)
@@ -2838,6 +2838,18 @@ else
   [$tls_first_major,$tls_first_minor,0], [$tls_as_opt], [$conftest_s],,
   [set_have_as_tls=yes])
 fi
+case "$target" in
+  *-*-irix6*)
+    # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
+    # with TLS support are in use, native TLS cannot work.
+    set_have_as_tls=no
+    ;;
+  *-*-osf*)
+    # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
+    # gld with TLS support are in use, native TLS cannot work.
+    set_have_as_tls=no
+    ;;
+esac
 if test $set_have_as_tls = yes ; then
   AC_DEFINE(HAVE_AS_TLS, 1,
            [Define if your assembler supports thread-local storage.])