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] S390: Clean up cross-compile for S390.


The attached patch cleans up cross compilation as discussed here:
https://gcc.gnu.org/ml/gcc-patches/2015-07/msg01929.html
on top of the fixes that have already been committed; see here:
https://gcc.gnu.org/ml/gcc-patches/2015-07/msg01545.html

This is only cleanup work, there is no compile problem at the
moment.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany

Attachment: 0001-ChangeLog
Description: Text document

>From fdf3a1f9ccffdbf89e9b262e657ac77765a6be1f Mon Sep 17 00:00:00 2001
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
Date: Thu, 23 Jul 2015 14:28:51 +0100
Subject: [PATCH] S390: Clean up cross-compile for S390.

---
 gcc/config.host | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/config.host b/gcc/config.host
index 4e456a1..3f7d594 100644
--- a/gcc/config.host
+++ b/gcc/config.host
@@ -173,8 +173,12 @@ case ${host} in
     esac
     ;;
   s390-*-* | s390x-*-*)
-    host_extra_gcc_objs="driver-native.o"
-    host_xmake_file="${host_xmake_file} s390/x-native"
+    case ${target} in
+      s390-*-* | s390x-*-*)
+        host_extra_gcc_objs="driver-native.o"
+        host_xmake_file="${host_xmake_file} s390/x-native"
+        ;;
+    esac
     ;;
   sparc*-*-solaris2*)
     case ${target} in
-- 
2.3.0


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