diff mbox series

Predefine __SIZEOF_FLOAT128__ on hppa hpux (PR target/56540)

Message ID 20180302150714.GF5867@tucnak
State New
Headers show
Series Predefine __SIZEOF_FLOAT128__ on hppa hpux (PR target/56540) | expand

Commit Message

Jakub Jelinek March 2, 2018, 3:07 p.m. UTC
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.


	Jakub

Comments

Jeff Law March 2, 2018, 4:08 p.m. UTC | #1
On 03/02/2018 08:07 AM, Jakub Jelinek wrote:
> 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.
OK.
jeff
diff mbox series

Patch

--- 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.  */