aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Chigot <clement.chigot@atos.net>2020-04-08 16:58:36 -0400
committerDavid Edelsohn <dje.gcc@gmail.com>2020-04-08 17:02:13 -0400
commit48242b2c3ac96c0bd5265e77013583ac9ceee97d (patch)
tree836be95b20fabd3b566abe6255f133fbd6979e6a
parent72c136c9007e37b76426b847e8b239c0708b8da7 (diff)
downloadgcc-48242b2c3ac96c0bd5265e77013583ac9ceee97d.zip
gcc-48242b2c3ac96c0bd5265e77013583ac9ceee97d.tar.gz
gcc-48242b2c3ac96c0bd5265e77013583ac9ceee97d.tar.bz2
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.
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/aix61.h1
-rw-r--r--gcc/config/rs6000/aix71.h1
-rw-r--r--gcc/config/rs6000/aix72.h1
4 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 20fe7e2..d1819da 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/rs6000/aix61.h b/gcc/config/rs6000/aix61.h
index 13c3e09..5b652d7 100644
--- a/gcc/config/rs6000/aix61.h
+++ b/gcc/config/rs6000/aix61.h
@@ -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
diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h
index 3be0cbe..5f98eb0 100644
--- a/gcc/config/rs6000/aix71.h
+++ b/gcc/config/rs6000/aix71.h
@@ -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
diff --git a/gcc/config/rs6000/aix72.h b/gcc/config/rs6000/aix72.h
index 292e67f..6cb1673 100644
--- a/gcc/config/rs6000/aix72.h
+++ b/gcc/config/rs6000/aix72.h
@@ -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