Date: Fri, 10 May 2002 00:08:08 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: John Baldwin <jhb@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/boot/i386/boot2 Makefile Message-ID: <XFMail.20020510000808.jhb@FreeBSD.org> In-Reply-To: <200205100405.g4A45ge05730@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020510000808.jhb>