From e3a72bc5dba4df94f74e6c49849e7b1b0c45ac11 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 2 Mar 2018 17:18:06 +0100 Subject: [PATCH] re PR target/56540 (No __SIZEOF__XXX__ macro for __float128) 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 | 4 ++++ gcc/config/pa/pa.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5269f935216..a2263edadb6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2018-03-02 Jakub Jelinek + 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. diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 7e5542b5f4d..8717ae637b5 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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. */ -- 2.30.2