[PATCH v2 11/12] arch: sparc32 on SunOS/Solaris uses 128-bit long doubles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 32-bit sparc running SunOS or Solaris, long doubles
are 128-bit, not 64-bit.

Add a special case to handle this.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 target.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/target.c b/target.c
index 64e6533f6..ebc7d493b 100644
--- a/target.c
+++ b/target.c
@@ -116,11 +116,14 @@ void init_target(void)
 	}
 
 	switch (arch_mach) {
+	case MACH_SPARC32:
+		if (arch_os == OS_SUNOS)
+			break;
+		/* fall through */
 	case MACH_ARM:
 	case MACH_MIPS32:
 	case MACH_S390:
 	case MACH_S390X:
-	case MACH_SPARC32:
 		bits_in_longdouble = 64;
 		max_fp_alignment = 8;
 		break;
-- 
2.24.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux