[gcc(refs/users/meissner/heads/work037)] Update IBM long double packing in libgcc on PowerPC.

Michael Meissner meissner@gcc.gnu.org
Thu Feb 18 19:08:50 GMT 2021


https://gcc.gnu.org/g:786379895cd647359bf4d86feaf885e4760140b8

commit 786379895cd647359bf4d86feaf885e4760140b8
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Thu Feb 18 14:05:58 2021 -0500

    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-02-18  Michael Meissner  <meissner@linux.ibm.com>
    
            * 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
   {


More information about the Gcc-cvs mailing list