On Mon, Jun 05, 2006 at 10:12:27PM -0500, Jonathan A.
Kollasch wrote:
> I'm inclined to believe, based on my previous
experience with GCC's
> optimizer, and that INSTALL kernels are compiled with
-Os, that GCC
> is not doing the right thing when told to optimize for
size.
>
> Or, am I, as usual, doing something wrong?
Nope, almost certainly gcc.
I got around this with:
TOOLDIR=/home/jakllsch/build-1150230364/src/tooldir.NetBSD-3
.0-x86_64 ./build.sh -U -u -m i386 kernel=INSTALL
./tooldir.NetBSD-3.0-x86_64/bin/i386--netbsdelf-mdsetimage
sys/arch/i386/compile/obj/INSTALL/netbsd
distrib/i386/ramdisks/ramdisk-big/obj/ramdisk-big.fs
after setting up an override $MAKECONF with "COPTS+=
-O2" in addition
to the stuff that was in the $MAKECONF that the original
./build.sh
release was run with.
I've send-pr(1)ed.
Jonathan Kollasch
|