musl: Fix invalid tls model in libgomp and libitm PR91938
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 3 Dec 2019 11:13:38 +0000 (11:13 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Tue, 3 Dec 2019 11:13:38 +0000 (11:13 +0000)
Musl does not support initial-exec tls in dynamically loaded shared
libraries.

libgomp/ChangeLog:

2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR libgomp/91938
* configure.tgt: Avoid IE tls on *-*-musl*.

libitm/ChangeLog:

2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR libgomp/91938
* configure.tgt: Avoid IE tls on *-*-musl*.

From-SVN: r278932

libgomp/ChangeLog
libgomp/configure.tgt
libitm/ChangeLog
libitm/configure.tgt

index 01da5ef..86761d3 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR libgomp/91938
+       * configure.tgt: Avoid IE tls on *-*-musl*.
+
 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
 
        * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
index 06ee115..4790a31 100644 (file)
@@ -17,6 +17,9 @@ if test $gcc_cv_have_tls = yes ; then
     *-*-k*bsd*-gnu*)
        ;;
 
+    *-*-musl*)
+       ;;
+
     *-*-linux* | *-*-gnu*)
        XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS"
        ;;
index 21035c0..53085d1 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR libgomp/91938
+       * configure.tgt: Avoid IE tls on *-*-musl*.
+
 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
 
        * configure: Regenerate.
index eea865d..0bdca11 100644 (file)
@@ -31,6 +31,9 @@
 if test "$gcc_cv_have_tls" = yes ; then
   case "${target}" in
 
+    *-*-musl*)
+       ;;
+
     # For x86, we use slots in the TCB head for most of our TLS.
     # The setup of those slots in beginTransaction can afford to
     # use the global-dynamic model.