Subject: Re: Other backend than gcc (was: Optimisations break software?)
To: None <port-macppc@netbsd.org>
From: Xavier HUMBERT <xavier@xavhome.fr.eu.org>
List: port-macppc
Date: 04/07/2002 20:50:58
In message <Pine.WNT.4.43.0204071310400.96-100000@todd>,
Todd Vierling wrote:

>In the second, did your compile *leave out* the "-O2" default option?  That
>would account for the huge increase in size, if so.  Adding -m* options are
>fine, but you have to make sure the -O* optimize option is still there.

Yes, you're right.

Putting COPTIONS+=blah in mk.conf disables -O2

With :
/usr/tools/bin/powerpc--netbsd-gcc  -msoft-float  -ffreestanding 
    -mcpu=7400 -mtune=7400 -Wreturn-type -Werror -Wall -Wno-main
    -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
    -Wno-uninitialized  -Dmacppc

Without :
/usr/tools/bin/powerpc--netbsd-gcc  -msoft-float  -ffreestanding  -O2
    -Wreturn-type -Werror -Wall -Wno-main -Wpointer-arith
    -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized  -Dmacppc
    

Why does this happen ? the "+=" stands for "keep previous options, then add",
doesn't it ?

-- 
Xav
http://www.freetibet.org
http://www.tibet.fr/