Subject: Re: sparc kernel (2.0_RCn) doesn't like -mcpu=v8?
To: Joachim Thiemann <jthiem@tsp.ece.mcgill.ca>
From: Thomas Pornin <pornin@bolet.org>
List: port-sparc
Date: 11/23/2004 09:51:59
On Mon, Nov 22, 2004 at 10:34:30PM -0500, Joachim Thiemann wrote:
> This kernel boots.  Thus, there is some part of code that needs -O2.

As far as I know, it is an old (and documented) flaw of gcc: it needs at
least -O in order to get inline assembly correctly (the binding of local
variables to register is not handled properly by the dummy register
allocator used when compiling without optimisations). And the kernel
uses inline assembly to talk to the hardware.


	--Thomas Pornin