From patchwork Tue Dec 30 19:28:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lynn A. Boger" X-Patchwork-Id: 424680 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 336D31400F1 for ; Wed, 31 Dec 2014 06:28:32 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=QNqB1IWCc+MqOFMy+eZZIk8BMIFfl7CbSpLCld5J+T3CCE NKGu+5s/vSXFSXddL0qmyEwwxSgHnbBbEmvIbgsG2QYbAcXfdwuJEGU7gHgJNozl GPcZvXih+uBX+VlPh5FLolOrJIrm7Uxq8IAFR0mtVOogzjKvrYo7WNgKf1Ud8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=LPeDUKjJKGrWrbVMf/NAUIJxqJo=; b=TOiP2AfgtU9VLK7ozGF7 kkuoU2vxuxYuml/Q+vi7ma6ruSArb2F1yI34ByhPxNQ6itD7AHsxlnq1E4qAUule 6eSzy9Ov/1dwDjJtBIHiOwGVSobhcOYPkGGYA8R6WiDI1s5IP1eBRVWQfEAEIEII P3yBAz/dnWYXO01qfIGvSus= Received: (qmail 15077 invoked by alias); 30 Dec 2014 19:28:24 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 15059 invoked by uid 89); 30 Dec 2014 19:28:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e7.ny.us.ibm.com Received: from e7.ny.us.ibm.com (HELO e7.ny.us.ibm.com) (32.97.182.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 30 Dec 2014 19:28:19 +0000 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Dec 2014 14:28:17 -0500 Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Dec 2014 14:28:16 -0500 Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 77AB5C90026 for ; Tue, 30 Dec 2014 14:20:18 -0500 (EST) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sBUJSFPK27263166 for ; Tue, 30 Dec 2014 19:28:15 GMT Received: from d01av03.pok.ibm.com (localhost [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sBUJSFuE032757 for ; Tue, 30 Dec 2014 14:28:15 -0500 Received: from oc2602623110.ibm.com (oc2602623110.ibm.com.rchland.ibm.com [9.10.86.28]) by d01av03.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sBUJSFgq032741; Tue, 30 Dec 2014 14:28:15 -0500 Message-ID: <54A2FCCF.3040407@linux.vnet.ibm.com> Date: Tue, 30 Dec 2014 13:28:15 -0600 From: "Lynn A. Boger" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: gcc-patches , "gofrontend-dev@googlegroups.com" , Ian Taylor Subject: [PATCH, libgo] Backport to gcc 4.9 GOARCH setting for ppc64le X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14123019-0037-0000-0000-0000003C5423 X-IsSubscribed: yes Hi, Please backport this change to the gcc 4.9 branch so that the GOARCH value setting for ppc64le is consistent with trunk. This has been bootstrapped and regression tested on ppc64le and ppc64 (along with the other patches submitted for the 4.9 branch today). 2014-12-30 Lynn Boger * gcc/testsuite/go.test/go-test.exp: Recognize goarch value pp64le * libgo/configure.ac: Set GOARCH ppc64le where appropriate * libgo/go/go/build/syslist.go: Add ppc64le to the goarchList * libgo/configure: regenerate Index: gcc/testsuite/go.test/go-test.exp =================================================================== --- gcc/testsuite/go.test/go-test.exp (revision 218817) +++ gcc/testsuite/go.test/go-test.exp (working copy) @@ -241,7 +241,11 @@ proc go-set-goarch { } { if [check_effective_target_ilp32] { set goarch "ppc" } else { - set goarch "ppc64" + if [istarget "powerpc64le-*-*"] { + set goarch "ppc64le" + } else { + set goarch "ppc64" + } } } "sparc*-*-*" { Index: libgo/configure.ac =================================================================== --- libgo/configure.ac (revision 218817) +++ libgo/configure.ac (working copy) @@ -179,6 +179,7 @@ is_m68k=no mips_abi=unknown is_ppc=no is_ppc64=no +is_ppc64le=no is_sparc=no is_sparc64=no is_x86_64=no @@ -249,11 +250,18 @@ changequote([,])dnl #ifdef _ARCH_PPC64 #error 64-bit #endif], -[is_ppc=yes], [is_ppc64=yes]) +[is_ppc=yes], + [AC_COMPILE_IFELSE([ +#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__) +#error 64be +#endif], +[is_ppc64le=yes],[is_ppc64=yes])]) if test "$is_ppc" = "yes"; then GOARCH=ppc + elif test "$is_ppc64" = "yes"; then + GOARCH=ppc64 else - GOARCH=ppc64 + GOARCH=ppc64le fi ;; sparc*-*-*) @@ -281,6 +289,7 @@ AM_CONDITIONAL(LIBGO_IS_MIPSN64, test $mips_abi = AM_CONDITIONAL(LIBGO_IS_MIPSO64, test $mips_abi = o64) AM_CONDITIONAL(LIBGO_IS_PPC, test $is_ppc = yes) AM_CONDITIONAL(LIBGO_IS_PPC64, test $is_ppc64 = yes) +AM_CONDITIONAL(LIBGO_IS_PPC64LE, test $is_ppc64le = yes) AM_CONDITIONAL(LIBGO_IS_SPARC, test $is_sparc = yes) AM_CONDITIONAL(LIBGO_IS_SPARC64, test $is_sparc64 = yes) AM_CONDITIONAL(LIBGO_IS_X86_64, test $is_x86_64 = yes) Index: libgo/go/go/build/syslist.go =================================================================== --- libgo/go/go/build/syslist.go (revision 218817) +++ libgo/go/go/build/syslist.go (working copy) @@ -5,4 +5,4 @@ package build const goosList = "darwin dragonfly freebsd linux netbsd openbsd plan9 windows solaris " -const goarchList = "386 amd64 arm arm64 alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 " +const goarchList = "386 amd64 arm arm64 alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 ppc64le sparc sparc64 "