summaryrefslogtreecommitdiff
path: root/libgcc/config/libbid/bid_conf.h
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2007-07-05 13:19:38 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2007-07-05 06:19:38 -0700
commit6fd2892a68b395f626c97657096e9a80afa9e154 (patch)
treed833506c3b619243c53be1c193b67db7d23e0d3b /libgcc/config/libbid/bid_conf.h
parent3a70f3efefc0128192b8cf482c9999ed28142b83 (diff)
downloadgcc-6fd2892a68b395f626c97657096e9a80afa9e154.tar.gz
Updated from Intel BID library:
2007-07-05 H.J. Lu <hongjiu.lu@intel.com> Updated from Intel BID library: * bid_conf.h (BID_THREAD): Defined. (__bid_IDEC_glbround): Add BID_THREAD in declaration. (__bid_IDEC_glbflags): Likewise. * decimal_globals.c (__bid_IDEC_glbround): Add BID_THREAD in declaration. (__bid_IDEC_glbflags): Likewise. From-SVN: r126369
Diffstat (limited to 'libgcc/config/libbid/bid_conf.h')
-rw-r--r--libgcc/config/libbid/bid_conf.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/libgcc/config/libbid/bid_conf.h b/libgcc/config/libbid/bid_conf.h
index fab4c811743..5af98f3d954 100644
--- a/libgcc/config/libbid/bid_conf.h
+++ b/libgcc/config/libbid/bid_conf.h
@@ -40,6 +40,12 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#define BID_BIG_ENDIAN LIBGCC2_FLOAT_WORDS_BIG_ENDIAN
#endif
+#ifndef BID_THREAD
+#ifdef USE_TLS
+#define BID_THREAD __thread
+#endif
+#endif
+
#define _intptr_t_defined
#define DECIMAL_CALL_BY_REFERENCE 0
#define DECIMAL_GLOBAL_ROUNDING 1
@@ -50,6 +56,10 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#define SET_STATUS_FLAGS
+#ifndef BID_THREAD
+#define BID_THREAD
+#endif
+
// If DECIMAL_CALL_BY_REFERENCE is defined then numerical arguments and results
// are passed by reference otherwise they are passed by value (except that
// a pointer is always passed to the status flags)
@@ -140,11 +150,11 @@ typedef unsigned int _IDEC_flags; // could be a struct with diagnostic info
#endif
#if DECIMAL_GLOBAL_ROUNDING
-extern _IDEC_round __bid_IDEC_glbround;
+extern BID_THREAD _IDEC_round __bid_IDEC_glbround;
#endif
#if DECIMAL_GLOBAL_EXCEPTION_FLAGS
-extern _IDEC_flags __bid_IDEC_glbflags;
+extern BID_THREAD _IDEC_flags __bid_IDEC_glbflags;
#endif
#if DECIMAL_ALTERNATE_EXCEPTION_HANDLING