Subject: Re: arm26 compiler fun
To: Richard Earnshaw <>
From: Ben Harris <>
List: tech-toolchain
Date: 05/16/2000 00:10:23
On Mon, 15 May 2000, Richard Earnshaw wrote:

> Are you sure?  Check doubles.  These are returned from soft-float as a 
> struct containing two words.  Removing the above definitions will bring 
> the compiler into line with the APCS and will make -freg-struct-return the 
> default, but that mandates that such structures are returned in memory, 
> not in a pair of registers as a double should be.

Right, so the way to arrange this is to get the SoftFloat code to return
long longs, since they also get returned in two registers.  It looks as if
the current version of SoftFloat (version 2a) supports doing this.  Is
there any reason not to go over to using this?

Ben Harris                                                   <>
Portmaster, NetBSD/arm26               <URL:>