aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgomp/config.h.in
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2014-12-18 16:46:17 +0300
committerAlexander Ivchenko <alexander.ivchenko@intel.com>2014-12-18 16:49:24 +0300
commit866bd0b46cd84957df84e7a3e674d9777807b7f7 (patch)
treedc68ae6f6dc6c1af108a9b790c31d84c02db0ed8 /gcc-4.9/libgomp/config.h.in
parent10a15a8a1fc940f47b008004b9180c0852c3e143 (diff)
downloadtoolchain_gcc-866bd0b46cd84957df84e7a3e674d9777807b7f7.tar.gz
toolchain_gcc-866bd0b46cd84957df84e7a3e674d9777807b7f7.tar.bz2
toolchain_gcc-866bd0b46cd84957df84e7a3e674d9777807b7f7.zip
[4.8, 4.9] Fix crash of omp loops that are not in the main thread.
Issue happens only when gcc is configured with "--disable-tls". Backport from trunk for fixing PR42616 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com> * config.h.in: Regenerate. * configure: Regenerate. * configure.ac: Add GCC_CHECK_EMUTLS. * libgomp.h: Add check for USE_EMUTLS: this case is equal to HAVE_TLS. * team.c: Likewise. Change-Id: Iee574d1a7888b3bcbd01718669eac34fdd116abb Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
Diffstat (limited to 'gcc-4.9/libgomp/config.h.in')
-rw-r--r--gcc-4.9/libgomp/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc-4.9/libgomp/config.h.in b/gcc-4.9/libgomp/config.h.in
index 14c7e2a9a..9c26e6d98 100644
--- a/gcc-4.9/libgomp/config.h.in
+++ b/gcc-4.9/libgomp/config.h.in
@@ -76,6 +76,9 @@
/* Define to 1 if the target supports thread-local storage. */
#undef HAVE_TLS
+/* Define to 1 if the target use emutls for thread-local storage. */
+#undef USE_EMUTLS
+
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H