linux-mips
[Top] [All Lists]

Re: Kernel compile with -O0

To: Andre.Messerschmidt@infineon.com
Subject: Re: Kernel compile with -O0
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Thu, 21 Mar 2002 17:24:58 -0800
Cc: linux-mips@oss.sgi.com
In-reply-to: <86048F07C015D311864100902760F1DD01B5E828@dlfw003a.dus.infineon.com>; from Andre.Messerschmidt@infineon.com on Thu, Mar 21, 2002 at 07:36:06PM +0100
References: <86048F07C015D311864100902760F1DD01B5E828@dlfw003a.dus.infineon.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Thu, Mar 21, 2002 at 07:36:06PM +0100, Andre.Messerschmidt@infineon.com 
wrote:

> When I try to compile my 2.4.3 Kernel with -O0 I get a lot of undefined
> references to functions like __cli, clear_bit etc. during linking. With -O1
> it works.
> 
> Do I have to provide some special compile option to make this work?

Stupid answer: Yes, -O.

Less stupid answer - -O1 and higher imply function inlining which is
required to build the kernel.

  Ralf

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