re PR bootstrap/38607 (AIX error messages about TOC during build)
authorDavid Edelsohn <dje@gcc.gnu.org>
Fri, 14 Sep 2012 23:23:41 +0000 (19:23 -0400)
committerDavid Edelsohn <dje@gcc.gnu.org>
Fri, 14 Sep 2012 23:23:41 +0000 (19:23 -0400)
        PR target/38607
        Merge upstream change.
        * libtool.m4 (_LT_COMPILER_PIC): Add -fPIC to GCC and GXX for AIX.

* configure.ac: Add target-libquadmath to noconfigdirs for AIX.
        Add libgomp*.o to compare_exclusions for AIX.
        * configure: Regenerate.

From-SVN: r191316

ChangeLog
configure.ac
libtool.m4

index ceb5d48e38ff06292f4bc371a4c0bb7255dc4908..ac75547844c0cd5cb5b7032c5ecccecf8d69f17b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,14 @@
-2012-09-06   Diego Novillo  <dnovillo@google.com>
+2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
+
+       PR target/38607
+       Merge upstream change.
+       * libtool.m4 (_LT_COMPILER_PIC): Add -fPIC to GCC and GXX for AIX.
+
+       * configure.ac: Add target-libquadmath to noconfigdirs for AIX.
+       Add libgomp*.o to compare_exclusions for AIX.
+       * configure: Regenerate.
+
+2012-09-06  Diego Novillo  <dnovillo@google.com>
 
        * configure.ac: Bump minimum GMP version to 4.2.3.
        * configure: Re-generate.
index a6f582804394c843e85ccab381bee86ec3c26f19..0eac6a4f13e8c81f53037fb97d9a0a0d653754ab 100644 (file)
@@ -527,6 +527,15 @@ if test -d ${srcdir}/libitm; then
     fi
 fi
 
+# Disable libquadmath for some systems.
+case "${target}" in
+  # libquadmath is unused on AIX and libquadmath build process use of
+  # LD_LIBRARY_PATH can break AIX bootstrap.
+  powerpc-*-aix* | rs6000-*-aix*)
+    noconfigdirs="$noconfigdirs target-libquadmath"
+    ;;
+esac
+
 # Disable libssp for some systems.
 case "${target}" in
   avr-*-*)
@@ -3187,6 +3196,7 @@ compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
 case "$target" in
   hppa*64*-*-hpux*) ;;
   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
+  powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
 esac
 AC_SUBST(compare_exclusions)
 
index a7f99ac7dbc00efaf042713bb13714099b360991..8a14e2b22f9edffde17ebb6d20182fa0f3bd361d 100644 (file)
@@ -3580,6 +3580,7 @@ m4_if([$1], [CXX], [
        # AIX 5 now supports IA64 processor
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
       fi
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
       ;;
 
     amigaos*)
@@ -3891,6 +3892,7 @@ m4_if([$1], [CXX], [
        # AIX 5 now supports IA64 processor
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
       fi
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
       ;;
 
     amigaos*)