summaryrefslogtreecommitdiff
path: root/libgcc/config
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-06 14:00:46 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-06 14:00:46 +0000
commite4cbe54f5caef4e8c1178b7186221dcdfef3be30 (patch)
tree41af967850b0489a1585cb2751cc5c75b0cb21a3 /libgcc/config
parentac9d5119c25ab284634034da65b549a6501a9adb (diff)
downloadgcc-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 'libgcc/config')
-rw-r--r--libgcc/config/libbid/ChangeLog6
-rw-r--r--libgcc/config/libbid/bid_conf.h2
-rw-r--r--libgcc/config/t-tls2
3 files changed, 9 insertions, 1 deletions
diff --git a/libgcc/config/libbid/ChangeLog b/libgcc/config/libbid/ChangeLog
index 96ab3e55225..a660fcb7565 100644
--- a/libgcc/config/libbid/ChangeLog
+++ b/libgcc/config/libbid/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
Updated from Intel BID library:
diff --git a/libgcc/config/libbid/bid_conf.h b/libgcc/config/libbid/bid_conf.h
index 5af98f3d954..b3038d342dd 100644
--- a/libgcc/config/libbid/bid_conf.h
+++ b/libgcc/config/libbid/bid_conf.h
@@ -41,7 +41,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#endif
#ifndef BID_THREAD
-#ifdef USE_TLS
+#if defined (HAVE_CC_TLS) && defined (USE_TLS)
#define BID_THREAD __thread
#endif
#endif
diff --git a/libgcc/config/t-tls b/libgcc/config/t-tls
new file mode 100644
index 00000000000..405128f78bf
--- /dev/null
+++ b/libgcc/config/t-tls
@@ -0,0 +1,2 @@
+# Use thread-local storage
+INTERNAL_CFLAGS += -DUSE_TLS