aboutsummaryrefslogtreecommitdiff
path: root/core/gcc/patches/invalid_tls_model.patch
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-02-10 10:17:39 +0300
committerCem Keylan <cem@ckyln.com>2020-02-10 10:17:39 +0300
commitf8414ac2b5ef5120417d6f3f945f7059cdddabeb (patch)
treefa17bfd4b029111d23d7e5d67970d36fc31e8f0e /core/gcc/patches/invalid_tls_model.patch
parenta7670f4dc14b6909d4ac2a06e312afc40926e33b (diff)
downloadrepository-f8414ac2b5ef5120417d6f3f945f7059cdddabeb.tar.gz
gcc: https://github.com/kisslinux/repo#96ad6fb
Diffstat (limited to 'core/gcc/patches/invalid_tls_model.patch')
-rw-r--r--core/gcc/patches/invalid_tls_model.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/gcc/patches/invalid_tls_model.patch b/core/gcc/patches/invalid_tls_model.patch
new file mode 100644
index 00000000..b47a67d1
--- /dev/null
+++ b/core/gcc/patches/invalid_tls_model.patch
@@ -0,0 +1,26 @@
+--- a/gcc/libgomp/configure.tgt 2018-11-08 18:13:04.000000000 +0100
++++ b/gcc/libgomp/configure.tgt 2019-06-29 20:06:31.972950350 +0200
+@@ -10,23 +10,6 @@
+ # XCFLAGS Add extra compile flags to use.
+ # XLDFLAGS Add extra link flags to use.
+
+-# Optimize TLS usage by avoiding the overhead of dynamic allocation.
+-if test $gcc_cv_have_tls = yes ; then
+- case "${target}" in
+-
+- *-*-k*bsd*-gnu*)
+- ;;
+-
+- *-*-linux* | *-*-gnu*)
+- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS"
+- ;;
+-
+- *-*-rtems*)
+- XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
+- ;;
+- esac
+-fi
+-
+ # Since we require POSIX threads, assume a POSIX system by default.
+ config_path="posix"
+