Messages in this thread | | | Subject | Re: [hellogcc] Re: [PATCH] Built kernel without -O2 option | From | "Steven J. Magnani" <> | Date | Mon, 29 Nov 2010 12:34:49 -0600 |
| |
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>
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |