]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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>
Tue, 12 May 2020 16:27:03 +0000 (12:27 -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 34cbb45548dd7bdf925bbed52845a720a496102a..85beb08220361c2fc29aea9b9eb6ad8f187106e1 100644 (file)
@@ -1,3 +1,12 @@
+2020-05-12  David Edelsohn  <dje.gcc@gmail.com>
+
+       Backport from mainline
+       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-05-12  David Edelsohn  <dje.gcc@gmail.com>
 
        Backport from mainline
index 57ea9ecfc4733e81333c07b3aae71e71d916844d..31e4c48b38dded75911e9a40af68b0c54f7a0cf7 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 263cc42b9dda18c373b4394da3b772d9bfb8af4a..1ac9d082bebe4d0d8df1500b8136c2e7c60e4406 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 065e1ebeadcdb8cab9f7d1b652da458f427e51a4..5f533228fc1434169ed49089dff39aa99f425f8f 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