configure.host (aix5+): New stanza.
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 30 Oct 2014 14:20:50 +0000 (14:20 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 30 Oct 2014 14:20:50 +0000 (10:20 -0400)
        * configure.host (aix5+): New stanza.
        (aix4.3+): Do not use -G in link command.

From-SVN: r216935

libstdc++-v3/ChangeLog
libstdc++-v3/configure.host

index 08c44c3e552eb0796c94d0be71af55e48746ee15..4e01b1042ae6ef755f5b2179b39ac0c9076a625f 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-30  David Edelsohn  <dje.gcc@gmail.com>
+
+       * configure.host (aix5+): New stanza.
+       (aix4.3+): Do not use -G in link command.
+
 2014-10-29  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/std/functional: (_Function_base::_Function_base()): Use
index d1298c43cf5b641088e8ef48ea633aac5d949a49..6f7b09d51e92d12aca49bae98fef244aaa542b27 100644 (file)
@@ -212,14 +212,19 @@ cpu_opt_ext_random=cpu/generic/opt/bits/opt_random.h
 # CPU-specifc, set those here too.
 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
 case "${host_os}" in
-  aix4.[3456789]* | aix[56789]*)
+  aix[56789]*)
+    # Newer versions of AIX only support PowerPC architecture, so use
+    # atomic instructions directly.
+    os_include_dir="os/aix"
+    atomic_word_dir="os/aix"
+    ;;
+  aix4.[3456789]*)
     # We set os_include_dir to os/aix only on AIX 4.3 and newer, but
     # os/aix/atomicity.h works on earlier versions of AIX 4.*, so we
     # explicitly duplicate the directory for 4.[<3].
     os_include_dir="os/aix"
     atomicity_dir="os/aix"
     atomic_word_dir="os/aix"
-    OPT_LDFLAGS="-Wl,-G"
     ;;
   aix4.*)
     os_include_dir="os/generic"