From owner-freebsd-current Wed Apr 7 17:25:50 1999 Delivered-To: freebsd-current@freebsd.org Received: from ceia.nordier.com (m2-11-dbn.dial-up.net [196.34.155.75]) by hub.freebsd.org (Postfix) with ESMTP id D75C814F28 for ; Wed, 7 Apr 1999 17:25:36 -0700 (PDT) (envelope-from rnordier@nordier.com) Received: (from rnordier@localhost) by ceia.nordier.com (8.8.7/8.6.12) id CAA26034; Thu, 8 Apr 1999 02:18:07 +0200 (SAT) From: Robert Nordier Message-Id: <199904080018.CAA26034@ceia.nordier.com> Subject: Re: /sys/boot, egcs vs. gcc, -Os In-Reply-To: <19990408040432.A74787@nagual.pp.ru> from "Andrey A. Chernov" at "Apr 8, 99 04:04:32 am" To: ache@nagual.pp.ru (Andrey A. Chernov) Date: Thu, 8 Apr 1999 02:18:05 +0200 (SAT) Cc: dcs@newsguy.com, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrey A. Chernov wrote: > On Thu, Apr 08, 1999 at 08:09:43AM +0900, Daniel C. Sobral wrote: > > > -2100 bytes available > > > > > > it seems that boot2 needs to be reduced, and I don't know why it becomes > > > that big and what can be reduced. First candidates are static cmd[512] and > > > kernel[1024]. Please fix so it can be still compiled with gcc. > > > > I didn't see any changes to loader/boot[012] lately. EGCS requires > > -Os, but gcc should be able to compile it within limits, just like > > in -stable. Are you sure you didn't test with egcs after removing > > -Os? > > Yes, of course I am shure. BTW, I see lots of malign options in cc call, > maybe they play role. > > cc -elf -I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -fno-builtin > -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd -Wall > -Waggregate-return -Wbad-function-cast -Wcast-align > -Wmissing-declarations -Wmissing-prototypes -Wnested-externs > -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -c > /usr/src/sys/boot/i386/boot2/boot2.c Revision 1.12 of the Makefile contains option changes for egcs. If you want to use gcc, use rev 1.11 of the Makefile. (Jeez, guys!) -- Robert Nordier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message