| Submitter | Rui Carmo |
|---|---|
| Date | Jan. 10, 2012, 11:18 a.m. |
| Message ID | <D48AE8E3-F40E-40FC-9EF3-09C9512E3BB2@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/135447/ |
| State | New |
| Headers | show |
Comments
On 10 January 2012 11:18, Rui Carmo <rui.carmo@gmail.com> wrote:
> For the record, the way I got it to build was patching fpu/softfloat.h (see below, I think this has been submitted as a formal patch by someone else, but can't find it either) and setting --cc=gcc-4.2 --host-cc=gcc-4.2.
[uint16/int16 typename clashes]
This is still waiting for somebody to get round to doing a basic
noddy FPU-intensive benchmark of (eg) an ARM target on a Linux
host to find out whether int16_t vs int_fast16_t makes any
difference at all to performance. (My suspicion is 'no'.)
-- PMM
On Jan 11, 2012, at 19:24 , Peter Maydell wrote: > This is still waiting for somebody to get round to doing a basic > noddy FPU-intensive benchmark of (eg) an ARM target on a Linux > host to find out whether int16_t vs int_fast16_t makes any > difference at all to performance. (My suspicion is 'no'.) Quite so - I've since exchanged a couple of messages with Andreas and ascertained that. But QEMU not running properly when compiled with LLVM is the real problem here, since that means people won't be able to build it unless they have an outdated compiler around (fresh installs of Xcode don't bundle "normal" gcc anymore). I'm starting to think I'm the only person trying to build it with a current Mac toolchain... R.
Patch
diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 07c2929..229d834 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -57,7 +57,7 @@ typedef uint8_t flag; typedef uint8_t uint8; typedef int8_t int8; #ifndef _AIX -typedef int uint16; +typedef uint16_t uint16; -typedef int int16; +typedef int16_t int16; #endif typedef unsigned int uint32;