From b17d0de47603c35132bec259ab68651420d434d4 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/ChangeLog | 25 +++++++++++++++++++++++++ config/lead-dot.m4 | 9 ++++----- config/mh-cygwin | 3 +++ config/mh-ppc-aix | 13 ++++++------- config/tls.m4 | 18 ++++++++++++++++++ config/unwind_ipinfo.m4 | 8 +++++++- config/warnings.m4 | 9 ++++----- 7 files changed, 67 insertions(+), 18 deletions(-) (limited to 'config') diff --git a/config/ChangeLog b/config/ChangeLog index 809275e20..c9a51dc98 100644 --- a/config/ChangeLog +++ b/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 diff --git a/config/lead-dot.m4 b/config/lead-dot.m4 index e019030e0..123f541bb 100644 --- a/config/lead-dot.m4 +++ b/config/lead-dot.m4 @@ -1,9 +1,9 @@ # -*- Autoconf -*- -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2003, 2009 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, @@ -12,9 +12,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program; see the file COPYING3. If not see +# . # serial 1 diff --git a/config/mh-cygwin b/config/mh-cygwin index 6c3ab8034..3a9698b38 100644 --- a/config/mh-cygwin +++ b/config/mh-cygwin @@ -1,6 +1,9 @@ EXTRA_TARGET_HOST_ALL_MODULES=maybe-all-libtermcap EXTRA_TARGET_HOST_INSTALL_MODULES=maybe-install-libtermcap +# Increase stack limit to same as Linux default. +LDFLAGS += -Wl,--stack,8388608 + all-gdb: maybe-all-libtermcap install-gdb: maybe-all-libtermcap diff --git a/config/mh-ppc-aix b/config/mh-ppc-aix index a56985fa9..4a97d8172 100644 --- a/config/mh-ppc-aix +++ b/config/mh-ppc-aix @@ -1,9 +1,8 @@ - -# Compile Ada files with minimal-toc in addition to the default flags (at -# least -gnatg is required to compile language defined units). The primary -# focus is gnatlib, so that the library does not use nearly the entire TOC of -# applications until gnatlib is built as a shared library on AIX. Compiling -# the compiler with -mminimal-toc does not cause any harm. -BOOT_ADAFLAGS = -gnatapg -mminimal-toc +# To prevent the Ada static runtime library from using nearly the entire +# TOC, we used to compile Ada files with minimal-toc in addition to -gnatg +# (mandatory to compile language defined units). This incured a performance +# penalty and is not required with section anchors enabled by default so we +# don't do it any more. +BOOT_ADAFLAGS = -gnatapg BOOT_LDFLAGS = -Wl,-bbigtoc LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;` diff --git a/config/tls.m4 b/config/tls.m4 index 79cf38206..ef7e6d0b5 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]) diff --git a/config/unwind_ipinfo.m4 b/config/unwind_ipinfo.m4 index a1dc6352b..efc79903b 100644 --- a/config/unwind_ipinfo.m4 +++ b/config/unwind_ipinfo.m4 @@ -22,7 +22,13 @@ AC_DEFUN([GCC_CHECK_UNWIND_GETIPINFO], [ *) have_unwind_getipinfo=yes ;; esac else - have_unwind_getipinfo=yes + # Darwin before version 9 does not have _Unwind_GetIPInfo. + changequote(,) + case ${target} in + *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; + *) have_unwind_getipinfo=yes ;; + esac + changequote([,]) fi if test x$have_unwind_getipinfo = xyes; then diff --git a/config/warnings.m4 b/config/warnings.m4 index d3358b6a8..3801c856b 100644 --- a/config/warnings.m4 +++ b/config/warnings.m4 @@ -1,12 +1,12 @@ # Autoconf include file defining macros related to compile-time warnings. -# Copyright 2004, 2005, 2007 Free Software Foundation, Inc. +# Copyright 2004, 2005, 2007, 2009 Free Software Foundation, Inc. #This file is part of GCC. #GCC is free software; you can redistribute it and/or modify it under #the terms of the GNU General Public License as published by the Free -#Software Foundation; either version 2, or (at your option) any later +#Software Foundation; either version 3, or (at your option) any later #version. #GCC is distributed in the hope that it will be useful, but WITHOUT @@ -15,9 +15,8 @@ #for more details. #You should have received a copy of the GNU General Public License -#along with GCC; see the file COPYING. If not, write to the Free -#Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA -#02110-1301, USA. +#along with GCC; see the file COPYING3. If not see +#. # ACX_PROG_CC_WARNING_OPTS(WARNINGS, [VARIABLE = WARN_CFLAGS) # Sets @VARIABLE@ to the subset of the given options which the -- cgit v1.2.3