sync config/ between GCC and src

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Sun Aug 16 12:50:00 GMT 2009


I've applied the following patches to the GCC and the src CVS tree in
order to get the config/ directory in sync again.  The change to GCC is
merely a ChangeLog fixup.

Of the diffs added to src, I have checked that none of the changes
impact generated files in the rest of the src tree:
- src does not use the GCC_CHECK_UNWIND_GETIPINFO nor the
  GCC_CHECK_EMUTLS macro anywhere,
- the other changes were either in comments only (license updates),
  or not in files that serve as inputs to generated files.

I've also rebuilt the src tree with these changes on i686-pc-linux-gnu,
but that is pretty pointless in hashing out any potential issues, as the
latter set of changes are confined to ppc-aix, cygwin.

Cheers,
Ralf

GCC:

Index: config/ChangeLog
===================================================================
--- config/ChangeLog	(Revision 150795)
+++ config/ChangeLog	(Arbeitskopie)
@@ -35,11 +35,8 @@
 	* bootstrap-O3.mk: New.
 	* bootstrap-debug.mk: New.
 
-2009-05-07  Paolo Bonzini
+2009-02-02  Doug Evans  <dje@google.com>
 
-	Sync from src:
-	2009-02-02  Doug Evans  <dje@google.com>
-
 	* tcl.m4 (SC_PATH_TCLCONFIG): Don't exit 0 if tclconfig fails.
 	(SC_PATH_TKCONFIG): Don't exit 0 if tkconfig fails.
 	(SC_LOAD_TCLCONFIG): Quote all uses of TCL_BIN_DIR, it may contain



src:

Index: config/ChangeLog
===================================================================
RCS file: /cvs/src/src/config/ChangeLog,v
retrieving revision 1.131
diff -u -r1.131 ChangeLog
--- config/ChangeLog	30 Jul 2009 19:43:16 -0000	1.131
+++ config/ChangeLog	16 Aug 2009 12:36:01 -0000
@@ -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
Index: config/lead-dot.m4
===================================================================
RCS file: /cvs/src/src/config/lead-dot.m4,v
retrieving revision 1.2
diff -u -r1.2 lead-dot.m4
--- config/lead-dot.m4	16 Jul 2005 02:41:34 -0000	1.2
+++ config/lead-dot.m4	16 Aug 2009 12:36:01 -0000
@@ -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
+# <http://www.gnu.org/licenses/>.
 
 # serial 1
 
Index: config/mh-cygwin
===================================================================
RCS file: /cvs/src/src/config/mh-cygwin,v
retrieving revision 1.2
diff -u -r1.2 mh-cygwin
--- config/mh-cygwin	17 Dec 2002 01:55:28 -0000	1.2
+++ config/mh-cygwin	16 Aug 2009 12:36:01 -0000
@@ -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
Index: config/mh-ppc-aix
===================================================================
RCS file: /cvs/src/src/config/mh-ppc-aix,v
retrieving revision 1.2
diff -u -r1.2 mh-ppc-aix
--- config/mh-ppc-aix	4 Jun 2007 09:33:35 -0000	1.2
+++ config/mh-ppc-aix	16 Aug 2009 12:36:01 -0000
@@ -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;`
Index: config/tls.m4
===================================================================
RCS file: /cvs/src/src/config/tls.m4,v
retrieving revision 1.11
diff -u -r1.11 tls.m4
--- config/tls.m4	30 Jul 2009 19:43:16 -0000	1.11
+++ config/tls.m4	16 Aug 2009 12:36:01 -0000
@@ -104,3 +104,21 @@
     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])
Index: config/unwind_ipinfo.m4
===================================================================
RCS file: /cvs/src/src/config/unwind_ipinfo.m4,v
retrieving revision 1.2
diff -u -r1.2 unwind_ipinfo.m4
--- config/unwind_ipinfo.m4	27 Nov 2008 17:22:10 -0000	1.2
+++ config/unwind_ipinfo.m4	16 Aug 2009 12:36:02 -0000
@@ -22,7 +22,13 @@
       *) 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
Index: config/warnings.m4
===================================================================
RCS file: /cvs/src/src/config/warnings.m4,v
retrieving revision 1.6
diff -u -r1.6 warnings.m4
--- config/warnings.m4	11 Jan 2007 15:23:41 -0000	1.6
+++ config/warnings.m4	16 Aug 2009 12:36:02 -0000
@@ -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
+#<http://www.gnu.org/licenses/>.
 
 # ACX_PROG_CC_WARNING_OPTS(WARNINGS, [VARIABLE = WARN_CFLAGS)
 #   Sets @VARIABLE@ to the subset of the given options which the



More information about the Binutils mailing list