diff options
author | H.J. Lu <hjl@gcc.gnu.org> | 2007-07-06 07:00:46 -0700 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2007-07-06 07:00:46 -0700 |
commit | 6f461e76da5ea2b94ec1f8a9283ca1e2779a5cb0 (patch) | |
tree | 41af967850b0489a1585cb2751cc5c75b0cb21a3 /config | |
parent | 374d961c0df2af3d7fc3367d63daec408b09d148 (diff) | |
download | gcc-6f461e76da5ea2b94ec1f8a9283ca1e2779a5cb0.zip gcc-6f461e76da5ea2b94ec1f8a9283ca1e2779a5cb0.tar.gz gcc-6f461e76da5ea2b94ec1f8a9283ca1e2779a5cb0.tar.bz2 |
tls.m4 (GCC_CHECK_CC_TLS): New.
config/
2007-07-06 H.J. Lu <hongjiu.lu@intel.com>
* tls.m4 (GCC_CHECK_CC_TLS): New.
libgcc/
2007-07-06 H.J. Lu <hongjiu.lu@intel.com>
* config.host (tmake_file): Add t-tls for i[34567]86-*-linux*
and x86_64-*-linux*.
* config/t-tls: New file.
* Makefile.in (INTERNAL_CFLAGS): Add @set_have_cc_tls@.
* configure.ac: Include ../config/enable.m4 and
../config/tls.m4. Use GCC_CHECK_CC_TLS to check if assembler
supports TLS and substitute set_have_cc_tls.
* configure: Regenerated.
libbid/
2007-07-06 H.J. Lu <hongjiu.lu@intel.com>
Updated from Intel BID library:
* bid_conf.h (BID_THREAD): Defined only if both HAVE_CC_TLS
and USE_TLS are defined.
From-SVN: r126416
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 6 | ||||
-rw-r--r-- | config/tls.m4 | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index e75bedd..ffa8a92c 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,7 +1,11 @@ +2007-07-06 H.J. Lu <hongjiu.lu@intel.com> + + * tls.m4 (GCC_CHECK_CC_TLS): New. + 2007-07-05 Sebastian Pop <sebpop@gmail.com> PR bootstrap/32622 - * config/mh-x86omitfp (BOOT_CFLAGS): Add -fomit-frame-pointer, + * mh-x86omitfp (BOOT_CFLAGS): Add -fomit-frame-pointer, don't reset its value. 2007-06-27 Mike Stump <mrs@apple.com> diff --git a/config/tls.m4 b/config/tls.m4 index c8f3ff0..69cf6d4 100644 --- a/config/tls.m4 +++ b/config/tls.m4 @@ -73,3 +73,16 @@ AC_DEFUN([GCC_CHECK_TLS], [ AC_DEFINE(HAVE_TLS, 1, [Define to 1 if the target supports thread-local storage.]) fi]) + +dnl Check whether the target assembler supports TLS. +AC_DEFUN([GCC_CHECK_CC_TLS], [ + GCC_ENABLE(tls, yes, [], [Use thread-local storage]) + AC_CACHE_CHECK([whether the target asssembler upports thread-local storage], + have_cc_tls, [ + AC_COMPILE_IFELSE([__thread int a; int b; int main() { return a = b; }], + [have_cc_tls=yes], [have_cc_tls=no])] + )]) + if test "$enable_tls $have_cc_tls" = "yes yes"; then + AC_DEFINE(HAVE_CC_TLS, 1, + [Define to 1 if the target assembler supports thread-local storage.]) + fi]) |