]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: configure.ac (*-*-irix6*): Disable set_have_as_tls.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 3 Dec 2010 12:35:37 +0000 (12:35 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 3 Dec 2010 12:35:37 +0000 (12:35 +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: r167417

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 9d09e88775e0e3fdd43860aa7412c2ea1cf06798..bd44fd3cfa93c0c721c32a111915348c360e23e0 100644 (file)
@@ -1,3 +1,12 @@
+2010-12-03  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-11-29  H.J. Lu  <hongjiu.lu@intel.com>
 
        Backport from mainline
index 97c1a5f99aae328e3b5a640cc5d7a75fe3359a8e..9799bab313c0212ea535f148cb02cbc18488c77d 100755 (executable)
@@ -22439,6 +22439,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
 
 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
index 5e5702a553cb86567c00c2400179b95858d8bc36..45d29595cfe300df7d09091a11f2b523acb286cd 100644 (file)
@@ -2992,6 +2992,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.])