[PATCH] Predefine __SIZEOF_FLOAT128__ on hppa hpux (PR target/56540)

Jakub Jelinek jakub@redhat.com
Fri Mar 2 15:07:00 GMT 2018


Hi!

Similarly to the ia64 patch, on hppa __float128 seems to be conditionally
provided (guarded with HPUX_LONG_DOUBLE_LIBRARY), so this patch also
conditionally predefines __SIZEOF_FLOAT128__.

Ok for trunk?

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.

--- gcc/config/pa/pa.h.jj	2018-01-17 11:54:19.035804335 +0100
+++ gcc/config/pa/pa.h	2018-03-02 15:34:11.080879742 +0100
@@ -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.  */

	Jakub



More information about the Gcc-patches mailing list