From 89714e45f0b91eb501e802946862f0ddacb7f6d8 Mon Sep 17 00:00:00 2001 From: Clement Chigot Date: Wed, 8 Apr 2020 16:58:36 -0400 Subject: [PATCH] rs6000: Link with libc128.a for long-double-128. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 * 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 | 9 +++++++++ gcc/config/rs6000/aix61.h | 1 + gcc/config/rs6000/aix71.h | 1 + gcc/config/rs6000/aix72.h | 1 + 4 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 34cbb45548dd..85beb0822036 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2020-05-12 David Edelsohn + + Backport from mainline + 2020-04-08 Clement Chigot + + * 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 Backport from mainline diff --git a/gcc/config/rs6000/aix61.h b/gcc/config/rs6000/aix61.h index 57ea9ecfc473..31e4c48b38dd 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 263cc42b9dda..1ac9d082bebe 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 065e1ebeadcd..5f533228fc14 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 -- 2.47.3