From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id DE56B3851C1C; Thu, 15 Apr 2021 17:24:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE56B3851C1C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work048)] Update IBM long double packing in libgcc on PowerPC. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work048 X-Git-Oldrev: 54f3184170836c57adb1c69bf39b83a49f1a58ae X-Git-Newrev: e269b998b07d76d7341fa25fd20d0f2c2e95345a Message-Id: <20210415172423.DE56B3851C1C@sourceware.org> Date: Thu, 15 Apr 2021 17:24:23 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 17:24:24 -0000 https://gcc.gnu.org/g:e269b998b07d76d7341fa25fd20d0f2c2e95345a commit e269b998b07d76d7341fa25fd20d0f2c2e95345a Author: Michael Meissner Date: Thu Apr 15 13:23:47 2021 -0400 Update IBM long double packing in libgcc on PowerPC. Assuming GCC was modified to support __ibm128 on older systems, this patch changes the ibm-ldouble.c function to always use the built-in function __builtin_pack_longdouble. libgcc/ 2021-04-15 Michael Meissner * config/rs6000/ibm-ldouble.c (pack_ldouble): Use __builtin_pack_ibm128 instead of __builtin_pack_longdouble. Diff: --- libgcc/config/rs6000/ibm-ldouble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgcc/config/rs6000/ibm-ldouble.c b/libgcc/config/rs6000/ibm-ldouble.c index 4c13453f975..92b4b4c583d 100644 --- a/libgcc/config/rs6000/ibm-ldouble.c +++ b/libgcc/config/rs6000/ibm-ldouble.c @@ -102,9 +102,9 @@ __asm__ (".symver __gcc_qadd,_xlqadd@GCC_3.4\n\t" static inline IBM128_TYPE pack_ldouble (double dh, double dl) { -#if defined (__LONG_DOUBLE_128__) && defined (__LONG_DOUBLE_IBM128__) \ +#if defined (__LONG_DOUBLE_128__) \ && !(defined (_SOFT_FLOAT) || defined (__NO_FPRS__)) - return __builtin_pack_longdouble (dh, dl); + return __builtin_pack_ibm128 (dh, dl); #else union {