From owner-cvs-all Sun Feb 25 1:54:59 2001 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 513ED37B4EC; Sun, 25 Feb 2001 01:54:52 -0800 (PST) (envelope-from bde@zeta.org.au) 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 UAA01585; Sun, 25 Feb 2001 20:54:49 +1100 Date: Sun, 25 Feb 2001 20:50:04 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Peter Wemm Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf Makefile.alpha Makefile.i386 Makefile.pc98 In-Reply-To: <200102250751.f1P7pLd95579@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 24 Feb 2001, Peter Wemm wrote: > peter 2001/02/24 23:51:21 PST > > Modified files: > sys/conf Makefile.alpha Makefile.i386 > Makefile.pc98 > Log: > genassym.sh does not work with a.out because the sizes are rounded up > by the compiler. ie: char foo[0] comes out as 4 bytes on a.out, and > we depended on it coming out as 0 for the script version. :-( > > Make double sure that genassym.o is built and nm'ed in elf mode. Thanks for fixing all this. I knew about the genassym.sh problem, but ISTR testing genassym.sh for aout. I think the rounding up is new behaviour. My version of the aout ld does alignment/padding stuff that is moot with the current behaviour. Possible fix for genassym.sh: use initialized arrays. This stuff is more unportable than I first thought. gcc does the right thing with the following broken code: char x[0] = {}; char y[0] = { 0 }; /* Excess initializers not reported! */ char z[1] = {}; but Tendra C rejects all of these (0-sized arrays aren't in C90, and aggregate initializers must be non-empty in C). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message