lkml.org 
[lkml]   [2002]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: CONFIG_TINY
    On Thu Oct 31, 2002 at 09:24:40AM +0100, Rasmus Andersen wrote:
    > On Thu, Oct 31, 2002 at 01:53:14AM +0100, Adrian Bunk wrote:
    >
    > Hi Adrian,
    > >
    > > could you try to use "-Os" instead of "-O2" as gcc optimization option
    > > when CONFIG_TINY is enabled? Something like the following (completely
    > > untested) patch:
    >
    > I tried -Os once, and it didn't boot for me. So I dumped it.

    I build all my kernels with -Os and it works just fine for me.

    --- orig/Makefile Tue Aug 20 06:44:25 2002
    +++ linux-2.4.19/Makefile Tue Aug 20 06:44:25 2002
    @@ -88,7 +88,7 @@

    CPPFLAGS := -D__KERNEL__ -I$(HPATH)

    -CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
    +CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
    -fno-strict-aliasing -fno-common
    ifndef CONFIG_FRAME_POINTER
    CFLAGS += -fomit-frame-pointer
    -Erik

    --
    Erik B. Andersen http://codepoet-consulting.com/
    --This message was written using 73% post-consumer electrons--
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:0.020 / U:62.300 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site