This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [hellogcc] Re: [PATCH] Built kernel without -O2 option
On Mon, 2010-11-29 at 13:10 -0500, Valdis.Kletnieks@vt.edu wrote:
> On Mon, 29 Nov 2010 17:45:15 +0800, ÃÂâÃÂâ said:
>
> > change mycc to this will work,:)
> >
> > #!/bin/sh
> > gcc "$@" -O0 ||
> > gcc "$@" -O1 ||
> > gcc "$@"
>
> That may result in issues - the problem is that there are places in the kernel
> where 'gcc -O0' will *compile* cleanly, but not actually *run* correctly.
>
There may be arch-specific places that cannot be made to run -O0.
See this thread from a few years ago:
http://www.spinics.net/lists/arm-kernel/msg24836.html
------------------------------------------------------------------------
Steven J. Magnani "I claim this network for MARS!
www.digidescorp.com Earthling, return my space modulator!"
#include <standard.disclaimer>