re PR target/56540 (No __SIZEOF__XXX__ macro for __float128)
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 Mar 2018 16:18:06 +0000 (17:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 2 Mar 2018 16:18:06 +0000 (17:18 +0100)
PR target/56540
* config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Predefine
__SIZEOF_128__ macro if HPUX_LONG_DOUBLE_LIBRARY.

From-SVN: r258139

gcc/ChangeLog
gcc/config/pa/pa.h

index 5269f935216deb3c454211962140aa134369aed0..a2263edadb6570ac62a165887cd7914c9056acdb 100644 (file)
@@ -1,5 +1,9 @@
 2018-03-02  Jakub Jelinek  <jakub@redhat.com>
 
+       PR target/56540
+       * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Predefine
+       __SIZEOF_128__ macro if HPUX_LONG_DOUBLE_LIBRARY.
+
        PR target/56540
        * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Predefine
        __SIZEOF_{FPREG,FLOAT{80,128}}__ macros.
index 7e5542b5f4d85f7bac2a70095438a64e02b31ecc..8717ae637b57879199e68b11fa1fcb6513fb59af 100644 (file)
@@ -177,6 +177,8 @@ do {                                                                \
        builtin_define("_PA_RISC1_1");                          \
      else                                                      \
        builtin_define("_PA_RISC1_0");                          \
+     if (HPUX_LONG_DOUBLE_LIBRARY)                             \
+       builtin_define("__SIZEOF_FLOAT128__=16");               \
 } while (0)
 
 /* An old set of OS defines for various BSD-like systems.  */