From 0ad8a5906cd65758e6050bdf59b893a0b1c20bc9 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sun, 16 Aug 2009 12:49:48 +0000 Subject: 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 + + * config/mh-ppc-aix (BOOT_ADAFLAGS): Remove -mminimal-toc. + 2009-05-26 Rafael Avila de Espindola * plugins.m4: New. @@ -39,6 +43,27 @@ "# no Tcl configs found". (SC_LOAD_TKCONFIG): Similarily for TK_BIN_DIR. +2009-04-09 Jakub Jelinek + + * 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 + + * mh-cygwin (LDFLAGS): Add linker option to increase stack limit + up to 8MB. + +2009-01-23 Jie Zhang + + * tls.m4 (GCC_CHECK_EMUTLS): Define. + +2008-12-21 Andrew Pinski + + PR target/38300 + * unwind_ipinfo.m4: Darwin before 9 does not have _Unwind_GetIPInfo. + 2008-11-21 Kai Tietz Fix PR/25502 --- config/tls.m4 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'config/tls.m4') diff --git a/config/tls.m4 b/config/tls.m4 index 79cf3820664..ef7e6d0b555 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]) -- cgit v1.2.1