From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14687 invoked by alias); 23 Aug 2013 00:36:02 -0000 Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org Received: (qmail 14661 invoked by uid 89); 23 Aug 2013 00:36:02 -0000 X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients Received: from mail-pa0-f45.google.com (HELO mail-pa0-f45.google.com) (209.85.220.45) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 23 Aug 2013 00:36:01 +0000 Received: by mail-pa0-f45.google.com with SMTP id bg4so1408068pad.32 for ; Thu, 22 Aug 2013 17:35:59 -0700 (PDT) X-Received: by 10.66.27.43 with SMTP id q11mr8048524pag.97.1377218159713; Thu, 22 Aug 2013 17:35:59 -0700 (PDT) Received: from bubble.grove.modra.org ([101.166.26.37]) by mx.google.com with ESMTPSA id dg3sm17612864pbc.24.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 17:35:58 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 47BA3EA00C7; Fri, 23 Aug 2013 10:05:54 +0930 (CST) Date: Fri, 23 Aug 2013 00:36:00 -0000 From: Alan Modra To: gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org, golang-nuts@googlegroups.com Subject: Re: libtool update for powerpc64le-linux Message-ID: <20130823003554.GX3430@bubble.grove.modra.org> Mail-Followup-To: gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org, golang-nuts@googlegroups.com References: <20130816084805.GF4024@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130816084805.GF4024@bubble.grove.modra.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-q3/txt/msg00013.txt.bz2 On Fri, Aug 16, 2013 at 06:18:05PM +0930, Alan Modra wrote: > I'd like to apply the following patch to the gcc repository (well, > excluding the libgo part which I'm hoping someone will apply for me to > the master go repository). I know the normal procedure for autotools > is to submit upstream then update when the patch is in the upstream > autotools repository, but this simple libtool patch has been awaiting > review for over two months. The libtool.m4 patch has finally been reviewed and accepted upstream. I'd like to import upstream libtool into gcc to support powerpc64le, and please, can someone do the same for upstream libgo? The reason we need this patch is that on a powerpc64le linux host where the compiler defaulted to producing 64-bit objects (which is how we generally build compilers nowadays) libtool added -m elf64ppc to $LD. Being the option for 64-bit big-endian, that caused complete failure for 64-bit little-endian. libjava is using a rather old version of libtool. Importing doesn't seem an option there, so for libjava patch acinclude.m4. Please don't ask me to modify libjava configure and makefiles to use current libtool. I tried, and failed. * libtool.m4: Import upstream version. libgo/ * config/libtool.m4: Import upstream version. * libgo/configure: Regenerate. libjava/libltdl/ * acinclude.m4 (_LT_ENABLE_LOCK ): Remove non-canonical ppc host match. Support little-endian powerpc linux hosts. * configure: Regenerate. gcc/ * configure: Regenerate. libobjc/ * configure: Regenerate. libgfortran/ * configure: Regenerate. libffi/ * configure: Regenerate. libssp/ * configure: Regenerate. libitm/ * configure: Regenerate. libgomp/ * configure: Regenerate. libquadmath/ * configure: Regenerate. libsanitizer/ * configure: Regenerate. zlib/ * configure: Regenerate. libstdc++-v3/ * configure: Regenerate. libmudflap/ * configure: Regenerate. boehm-gc/ * configure: Regenerate. lto-plugin/ * configure: Regenerate. libatomic/ * configure: Regenerate. libbacktrace/ * configure: Regenerate. libjava/ * configure: Regenerate. libjava/classpath/ * configure: Regenerate. Index: libjava/libltdl/acinclude.m4 =================================================================== --- libjava/libltdl/acinclude.m4 (revision 200501) +++ libjava/libltdl/acinclude.m4 (working copy) @@ -519,7 +519,7 @@ rm -rf conftest* ;; -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) +x86_64-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then @@ -529,7 +529,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -545,7 +548,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) -- Alan Modra Australia Development Lab, IBM