Re: [hellogcc] Re: [PATCH] Built kernel without -O2 option

Steven J. Magnani
2010-11-29T18:35:08Z

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>