Commit 48242b2c by Clement Chigot Committed by David Edelsohn

rs6000: Link with libc128.a for long-double-128.

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.
parent 72c136c9
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> 2020-04-08 Jakub Jelinek <jakub@redhat.com>
PR middle-end/94526 PR middle-end/94526
......
...@@ -154,6 +154,7 @@ do { \ ...@@ -154,6 +154,7 @@ do { \
%{!maix64:%{!shared:%{g*:-lg}}}\ %{!maix64:%{!shared:%{g*:-lg}}}\
%{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\ %{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\
%{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
%{mlong-double-128:-lc128}\
%{pthread:-lpthreads} -lc" %{pthread:-lpthreads} -lc"
#undef LINK_SPEC #undef LINK_SPEC
......
...@@ -162,6 +162,7 @@ do { \ ...@@ -162,6 +162,7 @@ do { \
%{!maix64:%{!shared:%{g*:-lg}}}\ %{!maix64:%{!shared:%{g*:-lg}}}\
%{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\ %{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\
%{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
%{mlong-double-128:-lc128}\
%{pthread:-lpthreads} -lc" %{pthread:-lpthreads} -lc"
#undef LINK_SPEC #undef LINK_SPEC
......
...@@ -163,6 +163,7 @@ do { \ ...@@ -163,6 +163,7 @@ do { \
%{!maix64:%{!shared:%{g*:-lg}}}\ %{!maix64:%{!shared:%{g*:-lg}}}\
%{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\ %{fprofile-arcs|fprofile-generate*|coverage:-lpthreads}\
%{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
%{mlong-double-128:-lc128}\
%{pthread:-lpthreads} -lc" %{pthread:-lpthreads} -lc"
#undef LINK_SPEC #undef LINK_SPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment