aboutsummaryrefslogtreecommitdiff
path: root/libgomp/configure
diff options
context:
space:
mode:
authorVarvara Rainchik <varvara.rainchik@intel.com>2014-12-10 13:42:20 +0000
committerKirill Yukhin <kyukhin@gcc.gnu.org>2014-12-10 13:42:20 +0000
commitf50eecba1389ff9da5112b2aaeb93c6ebaa38afc (patch)
tree669b9c23b1f8d3be5e8f8ec8a4b43aaee66653da /libgomp/configure
parentd0d7c3578223567be0795ac70f4c26e788fc2387 (diff)
downloadgcc-f50eecba1389ff9da5112b2aaeb93c6ebaa38afc.zip
gcc-f50eecba1389ff9da5112b2aaeb93c6ebaa38afc.tar.gz
gcc-f50eecba1389ff9da5112b2aaeb93c6ebaa38afc.tar.bz2
config.h.in: Regenerate.
libgomp/ * 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. From-SVN: r218576
Diffstat (limited to 'libgomp/configure')
-rwxr-xr-xlibgomp/configure31
1 files changed, 31 insertions, 0 deletions
diff --git a/libgomp/configure b/libgomp/configure
index bff5c62..f5d6b6b 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -15515,6 +15515,37 @@ $as_echo "#define HAVE_TLS 1" >>confdefs.h
fi
+# See if we have emulated thread-local storage.
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
+$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
+if test "${gcc_cv_use_emutls+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ gcc_cv_use_emutls=no
+ echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
+ if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ if grep __emutls_get_address conftest.s > /dev/null; then
+ gcc_cv_use_emutls=yes
+ fi
+ fi
+ rm -f conftest.*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
+$as_echo "$gcc_cv_use_emutls" >&6; }
+ if test "$gcc_cv_use_emutls" = "yes" ; then
+
+$as_echo "#define USE_EMUTLS 1" >>confdefs.h
+
+ fi
+
# See what sort of export controls are available.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5