From owner-cvs-all Thu May 9 22:33:55 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 75AAE37B401; Thu, 9 May 2002 22:33:50 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id PAA04451; Fri, 10 May 2002 15:33:47 +1000 Date: Fri, 10 May 2002 15:35:46 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: John Baldwin Cc: cvs-all@FreeBSD.org, Subject: RE: cvs commit: src/sys/boot/i386/boot2 Makefile In-Reply-To: Message-ID: <20020510151516.Q7524-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message