Patchwork libtool update for powerpc64le-linux

login
register
mail settings
Submitter Alan Modra
Date Sept. 16, 2013, 7:17 a.m.
Message ID <20130916071740.GB15467@bubble.grove.modra.org>
Download mbox | patch
Permalink /patch/275122/
State New
Headers show

Comments

Alan Modra - Sept. 16, 2013, 7:17 a.m.
I guess I can't really expect to gain an approval to import the
upstream libtool into gcc.  Even *I* don't really trust me, although
having looked at it a little I think I could even update
libjava/libltdl.  So how about just continuing the status quo and
applying a libtool patch that is already upstream?  Bootstrapped
powerpc64le-linux and powerpc64-linux.  OK to apply?

 	* libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical
	ppc host match.  Support little-endian powerpc linux hosts.
libjava/libltdl/
 	* acinclude.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical
	ppc host match.  Support little-endian powerpc linux hosts.
 	* configure: Regenerate.
boehm-gc/
	* configure: Regenerate.
gcc/
	* configure: Regenerate.
	* aclocal.m4: Regenerate.
fixincludes/
	* configure: Regenerate.
libatomic/
	* configure: Regenerate.
libbacktrace/
	* configure: Regenerate.
libffi/
	* configure: Regenerate.
libgfortran/
	* configure: Regenerate.
libgomp/
	* configure: Regenerate.
libitm/
	* configure: Regenerate.
libjava/
	* configure: Regenerate.
libjava/classpath/
	* configure: Regenerate.
libmudflap/
	* configure: Regenerate.
libobjc/
	* configure: Regenerate.
libquadmath/
	* configure: Regenerate.
libsanitizer/
	* configure: Regenerate.
libssp/
	* configure: Regenerate.
libstdc++-v3/
	* configure: Regenerate.
libvtv/
	* configure: Regenerate.
lto-plugin/
	* configure: Regenerate.
zlib/
	* configure: Regenerate.

Patch

Index: libtool.m4
===================================================================
--- libtool.m4	(revision 202428)
+++ libtool.m4	(working copy)
@@ -1220,7 +1220,7 @@  ia64-*-hpux*)
   rm -rf conftest*
   ;;
 
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   # Find out which ABI we are using.
   echo 'int i;' > conftest.$ac_ext
@@ -1241,7 +1241,10 @@  s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 		;;
 	    esac
 	    ;;
-	  ppc64-*linux*|powerpc64-*linux*)
+	  powerpc64le-*linux*)
+	    LD="${LD-ld} -m elf32lppclinux"
+	    ;;
+	  powerpc64-*linux*)
 	    LD="${LD-ld} -m elf32ppclinux"
 	    ;;
 	  s390x-*linux*)
@@ -1260,7 +1263,10 @@  s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 	  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*|s390*-*tpf*)
Index: libjava/libltdl/acinclude.m4
===================================================================
--- libjava/libltdl/acinclude.m4	(revision 202428)
+++ libjava/libltdl/acinclude.m4	(working copy)
@@ -519,7 +519,7 @@  ia64-*-hpux*)
   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 @@  ia64-*-hpux*)
         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 @@  ia64-*-hpux*)
         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*)