0013-invalid-tls-model.diff 792 B

12345678910111213141516171819202122232425262728
  1. diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
  2. index b88bf72fe3d..747d0485bf8 100644
  3. --- a/libgomp/configure.tgt
  4. +++ b/libgomp/configure.tgt
  5. @@ -17,6 +17,9 @@ if test $gcc_cv_have_tls = yes ; then
  6. *-*-k*bsd*-gnu*)
  7. ;;
  8. + *-*-musl*)
  9. + ;;
  10. +
  11. *-*-linux* | *-*-gnu*)
  12. XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS"
  13. ;;
  14. diff --git a/libitm/configure.tgt b/libitm/configure.tgt
  15. index 4c0b602034b..65e1c83550a 100644
  16. --- a/libitm/configure.tgt
  17. +++ b/libitm/configure.tgt
  18. @@ -31,6 +31,9 @@
  19. if test "$gcc_cv_have_tls" = yes ; then
  20. case "${target}" in
  21. + *-*-musl*)
  22. + ;;
  23. +
  24. # For x86, we use slots in the TCB head for most of our TLS.
  25. # The setup of those slots in beginTransaction can afford to
  26. # use the global-dynamic model.