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

From: Valdis . Kletnieks
Date: Mon Nov 29 2010 - 13:11:17 EST


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.

Attachment: pgp00000.pgp
Description: PGP signature