linux-mips
[Top] [All Lists]

Re: Cross Compiler again

To: Andre.Messerschmidt@infineon.com
Subject: Re: Cross Compiler again
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Tue, 27 Nov 2001 00:48:04 +1100
Cc: linux-mips@oss.sgi.com
In-reply-to: <86048F07C015D311864100902760F1DD01B5E418@dlfw003a.dus.infineon.com>; from Andre.Messerschmidt@infineon.com on Mon, Nov 26, 2001 at 02:38:39PM +0100
References: <86048F07C015D311864100902760F1DD01B5E418@dlfw003a.dus.infineon.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Mon, Nov 26, 2001 at 02:38:39PM +0100, Andre.Messerschmidt@infineon.com 
wrote:

> > Shit in, shit out.  You must be invoking the compiler with some option for
> > GP relative optimization.  Won't work.
> > 
> A typical gcc call is like this:
> gcc -Wall -Wstrict-prototypes -O2 -mno-abicalls -fno-pic -mcpu=r4000 -D_32_
> -mips2 -Wa,--trap -pipe -c foo.c -o foo.o
> 
> Is there any option missing that might me defaulting to such an
> optimization?

-G 0.

> I have played with the different -O# options without success.

What compiler are you using?  All compilers I've ever released did default
to -G 0.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>