rs6000: Link with libc128.a for long-double-128.
authorClement Chigot <clement.chigot@atos.net>
Wed, 8 Apr 2020 20:58:36 +0000 (16:58 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Wed, 8 Apr 2020 21:02:13 +0000 (17:02 -0400)
AIX applications using 128-bit long double must be linked with
libc128.a, in order to have 128-bit compatible routines.

AIX 7.2, 7.1, 6.1: Build/Tests: OK

2020-04-03 ClĂ©ment Chigot <clement.chigot@atos.net>

* config/rs6000/aix61.h (LIB_SPEC): Add -lc128 with -mlong-double-128.
* config/rs6000/aix71.h (LIB_SPEC): Likewise.
* config/rs6000/aix72.h (LIB_SPEC): Likewise.

gcc/ChangeLog
gcc/config/rs6000/aix61.h
gcc/config/rs6000/aix71.h
gcc/config/rs6000/aix72.h

index 20fe7e2ac637398d046c46ac6c0beecca549ae60..d1819da91d8aa69bedfcc21a184ab7b02e53be0b 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-08  Clement Chigot  <clement.chigot@atos.net>
+
+       * config/rs6000/aix61.h (LIB_SPEC): Add -lc128 with -mlong-double-128.
+       * config/rs6000/aix71.h (LIB_SPEC): Likewise.
+       * config/rs6000/aix72.h (LIB_SPEC): Likewise.
+
 2020-04-08  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/94526
index 13c3e099bbda75cdc7e33c1ce78b9a8055832689..5b652d7af113b1179755732438841bf0c31c7551 100644 (file)
@@ -154,6 +154,7 @@ do {                                                                        \
    %{!maix64:%{!shared:%{g*:-lg}}}\
    %{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\
    %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
+   %{mlong-double-128:-lc128}\
    %{pthread:-lpthreads} -lc"
 
 #undef LINK_SPEC
index 3be0cbe9844ba3316a234ec7e4bdcceadd0787e0..5f98eb05fc6f68abb904c7f5fda7d5d841586550 100644 (file)
@@ -162,6 +162,7 @@ do {                                                                        \
    %{!maix64:%{!shared:%{g*:-lg}}}\
    %{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\
    %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
+   %{mlong-double-128:-lc128}\
    %{pthread:-lpthreads} -lc"
 
 #undef LINK_SPEC
index 292e67ffda5db1afa6f0fe9987c969b65eddb4a4..6cb1673cc902337f565e7bc606ee137a5fdb03ca 100644 (file)
@@ -163,6 +163,7 @@ do {                                                                        \
    %{!maix64:%{!shared:%{g*:-lg}}}\
    %{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\
    %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
+   %{mlong-double-128:-lc128}\
    %{pthread:-lpthreads} -lc"
 
 #undef LINK_SPEC