This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Build a bi-arch compiler on s390-linux-gnu


This patch is mostly what we already use in Debian to build a bi-arch
31/64-bit compiler in our s390 port. Regtesting is currently running.
OK for trunk when stage1 opens?


2009-03-23  Arthur Loiret  <>

	* config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
	a bi-arch compiler defaulting to 31-bit. In this case:
	(tmake_file): Add s390/t-linux64.
	* doc/install.texi: Add s390-linux to the list of targets supporting
 gcc/config.gcc       |    3 +++
 gcc/doc/install.texi |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1965,6 +1965,9 @@ rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*)
 	tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
 	tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux"
+	if test x$enable_targets = xall; then
+		tmake_file="${tmake_file} s390/t-linux64"
+	fi
 	tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -1255,8 +1255,8 @@ powerpc-linux for powerpc64-linux, only generates 32-bit code.  This
 option enables the 32-bit target to be a bi-arch compiler, which is
 useful when you want a bi-arch compiler that defaults to 32-bit, and
 you are building a bi-arch or multi-arch binutils in a combined tree.
-Currently, this option only affects sparc-linux, powerpc-linux and
+Currently, this option only affects sparc-linux, powerpc-linux,
+x86-linux and s390-linux.
 @item --enable-secureplt
 This option enables @option{-msecure-plt} by default for powerpc-linux.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]