Subject: Re: Cross-compile on i386
To: Miles Nordin <carton@Ivy.NET>
From: Alex Poylisher <sher@komkon.org>
List: port-hpcmips
Date: 05/17/2003 10:38:01
On Fri, May 16, 2003 at 10:29:10AM -0400, Miles Nordin wrote:
> >>>>> "ap" == Alex Poylisher <sher@komkon.org> writes:
> 
>     ap> I'd like to build a release for z50 and give -mcpu=r4000
>     ap> -mips2 etc.
> 
> This doesn't work.  It almost works, but there is some floating point
> problem that causes a lot of programs to crash and causes
> sprintf("%f",...) to put out garbage.
>

I found out the hard way yesterday ;-)

> The way I did it was to hack gcc to assume similar options to what the
> kernel uses as the default.  I figured it is not very neighborly to
> install a userland build with some obscure incantation, then deliver a
> compiler so that when users compile their own programs they aren't
> built with the ``correct'' options for this machine, so really gcc
> should by default build whatever is a ``default'' binary on this
> machine, not one optimized for DECstations.  I will try to post my
> diff if you really want it.

Yes, please.

-- 
Alex Poylisher
sher{at}komkon{dot}org