lkml.org 
[lkml]   [2010]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [hellogcc] Re: [PATCH] Built kernel without -O2 option
    From
    Date
    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/

    \
     
     \ /
      Last update: 2010-11-29 19:37    [from the cache]
    ©2003-2014 Jasper Spaans. hosted at Digital Ocean