diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-08-16 12:49:48 +0000 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-08-16 12:49:48 +0000 |
commit | ca892441083947f02cbf7559893732712e77e0eb (patch) | |
tree | 1c3ae0666017a512b043ff748d9cccd9ddb71191 /config/tls.m4 | |
parent | 1d2755acd0ac66978e0d00b3cab0112cf1488bbe (diff) | |
download | gdb-ca892441083947f02cbf7559893732712e77e0eb.zip gdb-ca892441083947f02cbf7559893732712e77e0eb.tar.gz gdb-ca892441083947f02cbf7559893732712e77e0eb.tar.bz2 |
Sync config/ from GCC:
--- config/ChangeLog
+++ config/ChangeLog
@@ -19,6 +19,10 @@
* tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
cross-compiling.
+2009-06-25 Olivier Hainque <hainque@adacore.com>
+
+ * config/mh-ppc-aix (BOOT_ADAFLAGS): Remove -mminimal-toc.
+
2009-05-26 Rafael Avila de Espindola <espindola@google.com>
* plugins.m4: New.
@@ -39,6 +43,27 @@
"# no Tcl configs found".
(SC_LOAD_TKCONFIG): Similarily for TK_BIN_DIR.
+2009-04-09 Jakub Jelinek <jakub@redhat.com>
+
+ * lead-dot.m4: Change copyright header to refer to version
+ 3 of the GNU General Public License and to point readers at the
+ COPYING3 file and the FSF's license web page.
+ * warnings.m4: Likewise.
+
+2009-02-11 Kai Tietz <kai.tietz@onevision.com>
+
+ * mh-cygwin (LDFLAGS): Add linker option to increase stack limit
+ up to 8MB.
+
+2009-01-23 Jie Zhang <jie.zhang@analog.com>
+
+ * tls.m4 (GCC_CHECK_EMUTLS): Define.
+
+2008-12-21 Andrew Pinski <pinskia@gmail.com>
+
+ PR target/38300
+ * unwind_ipinfo.m4: Darwin before 9 does not have _Unwind_GetIPInfo.
+
2008-11-21 Kai Tietz <kai.tietz@onevision.com>
Fix PR/25502
Diffstat (limited to 'config/tls.m4')
-rw-r--r-- | config/tls.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config/tls.m4 b/config/tls.m4 index 79cf382..ef7e6d0 100644 --- a/config/tls.m4 +++ b/config/tls.m4 @@ -104,3 +104,21 @@ AC_DEFUN([GCC_CHECK_CC_TLS], [ AC_DEFINE(HAVE_CC_TLS, 1, [Define to 1 if the target assembler supports thread-local storage.]) fi]) + +dnl Check whether TLS is emulated. +AC_DEFUN([GCC_CHECK_EMUTLS], [ + AC_CACHE_CHECK([whether the thread-local storage support is from emutls], + gcc_cv_use_emutls, [ + gcc_cv_use_emutls=no + echo '__thread int a; int b; int main() { return a = b; }' > conftest.c + if AC_TRY_COMMAND(${CC-cc} -Werror -S -o conftest.s conftest.c 1>&AS_MESSAGE_LOG_FD); then + if grep __emutls_get_address conftest.s > /dev/null; then + gcc_cv_use_emutls=yes + fi + fi + rm -f conftest.* + ]) + if test "$gcc_cv_use_emutls" = "yes" ; then + AC_DEFINE(USE_EMUTLS, 1, + [Define to 1 if the target use emutls for thread-local storage.]) + fi]) |