diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-06 14:00:46 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-06 14:00:46 +0000 |
commit | e4cbe54f5caef4e8c1178b7186221dcdfef3be30 (patch) | |
tree | 41af967850b0489a1585cb2751cc5c75b0cb21a3 /config | |
parent | ac9d5119c25ab284634034da65b549a6501a9adb (diff) | |
download | gcc-e4cbe54f5caef4e8c1178b7186221dcdfef3be30.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126416 138bc75d-0d04-0410-961f-82ee72b054a4
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 e75beddecb1..ffa8a92cd74 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 c8f3ff0a373..69cf6d4f9d2 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]) |