From owner-freebsd-current Wed Apr 7 11:56: 4 1999 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id C45D81586E for ; Wed, 7 Apr 1999 11:56:01 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id LAA07880; Wed, 7 Apr 1999 11:54:01 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.2/8.9.1) id LAA96158; Wed, 7 Apr 1999 11:54:00 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Wed, 7 Apr 1999 11:54:00 -0700 (PDT) Message-Id: <199904071854.LAA96158@vashon.polstra.com> To: ache@nagual.pp.ru Subject: Re: /sys/boot, egcs vs. gcc, -Os In-Reply-To: <19990407221941.A91075@nagual.pp.ru> References: <19990407193627.A68829@nagual.pp.ru> <370B84A4.3818F8A@newsguy.com> Organization: Polstra & Co., Seattle, WA Cc: current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <19990407221941.A91075@nagual.pp.ru>, Andrey A. Chernov wrote: > On Thu, Apr 08, 1999 at 01:15:32AM +0900, Daniel C. Sobral wrote: > > "Andrey A. Chernov" wrote: > > > > > > Now /sys/boot can't be compiled with gcc due to non-existent -Os added. > > > Is it intentional or can be removed for backward compatibility? > > > > It can be removed for backward compatibility. What it does is > > produce a smaller code. Egcs needs it, gcc doesn't. > > The problem is deeper. When I reemove it, I got this error: > > -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. Why? The compiler in -current is egcs, not gcc. If you want to use the old compiler, then use the old sources for boot too. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-interest is the aphrodisiac of belief." -- James V. DeLong To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message