Re: [PATCH] D13351: [Power PC] add soft float support for ppc32

2015-10-02 Thread Konstantin Tokarev via cfe-commits


02.10.2015, 00:00, "Alex Rosenberg via cfe-commits" 
:
> alexr added a subscriber: alexr.
> alexr added a comment.
>
> PowerPC has floating point hardware by definition. Is this some new variant?

Some cores from ppc400 series do not have hardware FP (for example, ppc 405)

-- 
Regards,
Konstantin
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


Re: [PATCH]: Allow the use of i386/darwin with ELF

2015-12-14 Thread Konstantin Tokarev via cfe-commits


13.12.2015, 17:54, "Luboš Doležel via cfe-commits" :
> Hello,
>
> I'm the developer of Darling, a translation layer for running OS X
> binaries on Linux.
>
> I'm facing many difficulties due to the following differences in i386
> ABI between Darwin and Linux:
>
> * size_t on Darwin/i386 is 'unsigned long', but Linux/i386 uses
> 'unsigned int' (=> different mangled names).
> * long double on Darwin/i386 is 128 bits long, but Linux/i386 uses only
> 96 bits.
>
> This problem can be overcome by specifying '-target
> i386-unknown-darwin-elf', but this currently fails due to a different
> data layout string (Darwin specifies Mach-O).
>
> The attached patch allows the use of ELF with the DarwinI386 target. It
> is identical to what is already done in the WindowsX86_32 target.
>
> Pretty please, include my patch, as it would be very helpful and it's a
> rather small change.

I think it would be more logical to use ELF when isOSBinFormatELF is true,
than when isOSBinFormatMachO is false

-- 
Regards,
Konstantin
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits