From owner-cvs-all Thu May 9 21: 8:17 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by hub.freebsd.org (Postfix) with ESMTP id 62DDB37B405 for ; Thu, 9 May 2002 21:08:12 -0700 (PDT) Received: (qmail 10843 invoked from network); 10 May 2002 04:08:11 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 May 2002 04:08:11 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g4A48BF40740; Fri, 10 May 2002 00:08:11 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200205100405.g4A45ge05730@freefall.freebsd.org> Date: Fri, 10 May 2002 00:08:08 -0400 (EDT) From: John Baldwin To: John Baldwin Subject: RE: cvs commit: src/sys/boot/i386/boot2 Makefile Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 10-May-2002 John Baldwin wrote: > jhb 2002/05/09 21:05:42 PDT > > Modified files: > sys/boot/i386/boot2 Makefile > Log: > - Axe -mpreferred-stack-boundary=2 as -Os turns this on by default. > - Axe -fdata-sections as turning it on or off makes no difference. If > it did make a difference it would serve to bloat boot2 even further with > extra padding. > - Axe -fforce-addr. This gets us 32 bytes so we are down to only being > 64-bytes over. > > We still can't compile this with gcc 3.1. The problem seems to be that > the -fno-align-foo options don't actually work. Comparing the new and > old output it turns out that gcc is 4-byte padding all the functions and > labels and what not despite the passed in arguments thus adding the > unfortunate bloat to boot2. AFAICT, the problem is that gcc 3.1 is not properly respecting the -fno-align-foo arguments. My guess is that this is a bug in gcc, but I have no idea if it is a bug in general or if it is i386-specific. Using alignment values greater than 4 noticably bloated the binary further, but values <= 4 make no difference. (no-align-foo is supposedly equivalent to align-foo=1, and align-foo=0 is some MD default value). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message