diff options
author | Jie Zhang <jie.zhang@analog.com> | 2009-01-23 04:58:03 +0000 |
---|---|---|
committer | Jie Zhang <jiez@gcc.gnu.org> | 2009-01-23 04:58:03 +0000 |
commit | 5cf9cc965f9307beeed14acf4814677041e5bad7 (patch) | |
tree | 6ddfe08d3b1988039a3b83beaf42660efeaa2cc4 /libmudflap/configure | |
parent | 27a3239ec7c821bec0e3eafa544d46dcfc7a26bf (diff) | |
download | gcc-5cf9cc965f9307beeed14acf4814677041e5bad7.tar.gz |
mf-impl.h (__mf_get_state, [...]): Don't use __thread when TLS support is emulated.
libmudflap/
* mf-impl.h (__mf_get_state, __mf_set_state): Don't use
__thread when TLS support is emulated.
* mf-hooks3.c (__mf_get_state, __mf_set_state): Likewise.
* mf-runtime.c (__mf_state_1): Likewise.
* configure.ac: Use GCC_CHECK_EMUTLS.
* configure: Regenerate.
* config.h.in: Regenerate.
config/
* tls.m4 (GCC_CHECK_EMUTLS): Define.
From-SVN: r143583
Diffstat (limited to 'libmudflap/configure')
-rwxr-xr-x | libmudflap/configure | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libmudflap/configure b/libmudflap/configure index ad10a2c238d..758ac8f0a30 100755 --- a/libmudflap/configure +++ b/libmudflap/configure @@ -13028,6 +13028,37 @@ _ACEOF fi + echo "$as_me:$LINENO: checking whether the thread-local storage support is from emutls" >&5 +echo $ECHO_N "checking whether the thread-local storage support is from emutls... $ECHO_C" >&6 +if test "${gcc_cv_use_emutls+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + if grep __emutls_get_address conftest.s > /dev/null; then + gcc_cv_use_emutls=yes + fi + fi + rm -f conftest.* + +fi +echo "$as_me:$LINENO: result: $gcc_cv_use_emutls" >&5 +echo "${ECHO_T}$gcc_cv_use_emutls" >&6 + if test "$gcc_cv_use_emutls" = "yes" ; then + +cat >>confdefs.h <<\_ACEOF +#define USE_EMUTLS 1 +_ACEOF + + fi + ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp" cat >confcache <<\_ACEOF |