0016-invalid_tls_model.diff 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --- gcc-7.3.0/libgomp/configure.tgt.orig 2018-09-25 13:44:16.654561098 -0400
  2. +++ gcc-7.3.0/libgomp/configure.tgt 2018-09-25 13:44:50.452688100 -0400
  3. @@ -10,23 +10,6 @@
  4. # XCFLAGS Add extra compile flags to use.
  5. # XLDFLAGS Add extra link flags to use.
  6. -# Optimize TLS usage by avoiding the overhead of dynamic allocation.
  7. -if test $gcc_cv_have_tls = yes ; then
  8. - case "${target}" in
  9. -
  10. - *-*-k*bsd*-gnu*)
  11. - ;;
  12. -
  13. - *-*-linux* | *-*-gnu*)
  14. - XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
  15. - ;;
  16. -
  17. - *-*-rtems*)
  18. - XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
  19. - ;;
  20. - esac
  21. -fi
  22. -
  23. # Since we require POSIX threads, assume a POSIX system by default.
  24. config_path="posix"
  25. --- gcc-7.3.0/libitm/configure.tgt.orig 2018-09-25 13:47:31.019296903 -0400
  26. +++ gcc-7.3.0/libitm/configure.tgt 2018-09-25 13:47:37.676322335 -0400
  27. @@ -27,22 +27,6 @@
  28. # XCFLAGS Add extra compile flags to use.
  29. # XLDFLAGS Add extra link flags to use.
  30. -# Optimize TLS usage by avoiding the overhead of dynamic allocation.
  31. -if test "$gcc_cv_have_tls" = yes ; then
  32. - case "${target}" in
  33. -
  34. - # For x86, we use slots in the TCB head for most of our TLS.
  35. - # The setup of those slots in beginTransaction can afford to
  36. - # use the global-dynamic model.
  37. - i[456]86-*-linux* | x86_64-*-linux*)
  38. - ;;
  39. -
  40. - *-*-linux*)
  41. - XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
  42. - ;;
  43. - esac
  44. -fi
  45. -
  46. # Map the target cpu to an ARCH sub-directory. At the same time,
  47. # work out any special compilation flags as necessary.
  48. case "${target_cpu}" in