Re: [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 27/11/2019 02:06, Luc Van Oostenryck wrote:
> 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;
> 

OK, I had to check that 'bits_in_longdouble' was initialised
to 128 and 'max_fp_alignment' to 16 at the top of the file ...

ATB,
Ramsay Jones





[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