From owner-cvs-all Fri May 10 5: 5:25 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id CCB0537B40B for ; Fri, 10 May 2002 05:05:12 -0700 (PDT) Received: (qmail 18022 invoked from network); 10 May 2002 12:05:11 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 May 2002 12:05: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 g4AC5AF42132; Fri, 10 May 2002 08:05:10 -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: <20020510151516.Q7524-100000@gamplex.bde.org> Date: Fri, 10 May 2002 08:05:08 -0400 (EDT) From: John Baldwin To: Bruce Evans Subject: RE: cvs commit: src/sys/boot/i386/boot2 Makefile Cc: cvs-committers@FreeBSD.org, cvs-all@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 Bruce Evans wrote: > On Fri, 10 May 2002, John Baldwin wrote: > >> 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). > > Alignment to 4-byte boundaries only accounts for half of the bloat. I get > the following amounts free with gcc-old and various alignment options: > > -malign-foo=0 (default) 148 > -malign-foo=1 116 (bloat = 32) > -malign-foo=2 20 (bloat = 128) > -malign-foo=3 -108 (bloat = 256) > -malign-foo=4 -428 (bloat = 576) > > Unbreaking the Makefile to include so that my > -mno-align-long-strings flag is put in CFLAGS and fixing the syntax errors > exposed by -ansi gives: > > -malign-foo=0 -mno-align-long-strings 212 (bloat = -64) Right, I'm at -64 with with new gcc now w/o -mno-align-strings. There is a bug in gcc31 though. It does alignment for -malign-foo=0 that it didn't used to. > Bruce -- 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