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

Valdis.Kletnieks
2010-11-29T18:11:10Z

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

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 #2: Type: application/pgp-signature, Size: 227 bytes --]