This is the mail archive of the gcc-patches@gcc.gnu.org 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


Hi!

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?


Thanks,
Arthur.


2009-03-23  Arthur Loiret  <aloiret@debian.org>

	* 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
	--enable-targets=all.
---
 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].*)
 s390-*-linux*)
 	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
 	;;
 s390x-*-linux*)
 	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
-x86-linux.
+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]