From owner-freebsd-hackers Tue Feb 5 15: 1:49 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from patrocles.silby.com (d179.as0.nwbl0.wi.voyager.net [169.207.130.181]) by hub.freebsd.org (Postfix) with ESMTP id 203DB37B421 for ; Tue, 5 Feb 2002 15:01:24 -0800 (PST) Received: from localhost (silby@localhost) by patrocles.silby.com (8.11.6/8.11.6) with ESMTP id g15H4jq03301; Tue, 5 Feb 2002 17:04:47 GMT (envelope-from silby@silby.com) X-Authentication-Warning: patrocles.silby.com: silby owned process doing -bs Date: Tue, 5 Feb 2002 17:04:44 +0000 (GMT) From: Mike Silbersack To: Alfred Perlstein Cc: Bruce Evans , Michal Mertl , , Subject: Re: stack alignment issues In-Reply-To: <20020205121923.O59017@elvis.mu.org> Message-ID: <20020205170020.V1617-100000@patrocles.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 5 Feb 2002, Alfred Perlstein wrote: > * Bruce Evans [020205 12:09] wrote: > > On Tue, 5 Feb 2002, Mike Silbersack wrote: > > > > > On Tue, 5 Feb 2002, Bruce Evans wrote: > > > > foo: > > > > pushl %ebp > > > > movl %esp,%ebp > > > > subl $8,%esp # <- extra instruction for alignment (for foo) > > > > addl $-12,%esp # <- extra instruction for alignment (for f1) > > > > > > What disgusting code. I find it amazing that they didn't even stick in > > > some peephole optimizer to at least limit it to one operation. > > > > It's clearly the result of work in progress :-). > > I see really cruddy stuff like this every time i do a gcc -S, don't > they watch for and try to fix this sort of thing? > > -- > -Alfred Perlstein [alfred@freebsd.org] Did you see that press release about how Microsoft is taking a month off from coding new features and dedicating everyone to fixing bugs? I can see an analogous headline: "FreeBSD developers get sick of gcc's code generation, devote March to compiler rewrite" and in related news: "Brett Glass finds out that FreeBSD developers are working on gcc and suffers a nervous breakdown." Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message