From owner-freebsd-current Thu Mar 23 20:39:59 2000 Delivered-To: freebsd-current@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id 3516C37B5CD; Thu, 23 Mar 2000 20:39:50 -0800 (PST) (envelope-from rcarter@pinyon.org) Received: (from daemon@localhost) by smtp03.primenet.com (8.9.3/8.9.3) id VAA18533; Thu, 23 Mar 2000 21:39:18 -0700 (MST) Received: from ip-26-023.prc.gblx.net(206.165.26.23), claiming to be "pinyon.org" via SMTP by smtp03.primenet.com, id smtpdAAANsaadK; Thu Mar 23 21:39:09 2000 Received: from chomsky.Pinyon.ORG (localhost [127.0.0.1]) by pinyon.org (Postfix) with ESMTP id 1681F7F; Thu, 23 Mar 2000 21:38:30 -0700 (MST) X-Mailer: exmh version 2.1.0 09/18/1999 To: Chuck Robey Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: Optimisation patch In-Reply-To: Message from Chuck Robey of "Thu, 23 Mar 2000 18:39:30 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 23 Mar 2000 21:38:30 -0700 From: "Russell L. Carter" Message-Id: <20000324043830.1681F7F@pinyon.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, %On Thu, 23 Mar 2000, Kris Kennaway wrote: % %> Any objections to the following? % %I don't mind at all ... I was wondering about just taking out the ability %to even USE -O2 in the compiler, but there're probably *some* non-kernel %related reasons for using it, and we shouldn't block it at that %point. Not for FreeBSD, but for some users doing their own code on %FreeBSD. Wrong solution to the problem. Don't even consider it. Let me tell you a 4 line story: Long long time ago a low level research guy with time to burn benchmarked *every* RISC system compiler option against *every* GNU compiler option and determined that the GNU compiler was best. Thus in 1992 a trusting closed source default dude was converted to open source. Right solution: "Kernel behavior with optimization flags other than -O are strictly unsupported!" prominantly displayed in make.conf and the various kernel config option files. The proposed patch below is too mild. And then, the bike shed painting people have to be stamped down some how, when the issue arises. Russell %> %> Index: make.conf %> =================================================================== %> RCS file: /home/ncvs/src/etc/defaults/make.conf,v %> retrieving revision 1.101 %> diff -u -u -r1.101 make.conf %> --- make.conf 2000/03/22 00:49:20 1.101 %> +++ make.conf 2000/03/23 23:33:13 %> @@ -9,7 +9,13 @@ %> # You have to find the things you can put here in the Makefiles and %> # documentation of the source tree. %> # %> -# One, and probably the most common, use could be: %> +# CFLAGS controls the compiler settings used when compiling C code. %> +# Note that optimisation settings above -O (-O2, ...) are not recommended %> +# or supported for compiling the world or the kernel - please revert any %> +# nonstandard optimisation settings to "-O" before submitting bug reports %> +# to the developers. %> +# Note also that at this time the -O2 setting is known to produce BROKEN %> +# CODE on the Alpha platform. %> # %> #CFLAGS= -O -pipe %> # %> %> ---- %> In God we Trust -- all others must submit an X.509 certificate. %> -- Charles Forsythe %> %> %> %> To Unsubscribe: send mail to majordomo@FreeBSD.org %> with "unsubscribe freebsd-current" in the body of the message %> % %---------------------------------------------------------------------------- %Chuck Robey | Interests include C & Java programming, FreeBSD, %chuckr@picnic.mat.net | electronics, communications, and signal processing. % %New Year's Resolution: I will not sphroxify gullible people into looking up %fictitious words in the dictionary. %---------------------------------------------------------------------------- % % % %To Unsubscribe: send mail to majordomo@FreeBSD.org %with "unsubscribe freebsd-current" in the body of the message % To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message