From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 13 19:09:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C885C16A4CE; Fri, 13 Feb 2004 19:09:42 -0800 (PST) Received: from saturn.criticalmagic.com (saturn.criticalmagic.com [68.213.16.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 985D743D1F; Fri, 13 Feb 2004 19:09:42 -0800 (PST) (envelope-from richardcoleman@mindspring.com) Received: from mindspring.com (titan.criticalmagic.com [68.213.16.23]) by saturn.criticalmagic.com (Postfix) with ESMTP id E0C9F3BD2A; Fri, 13 Feb 2004 22:09:41 -0500 (EST) Message-ID: <402D917D.30009@mindspring.com> Date: Fri, 13 Feb 2004 22:09:49 -0500 From: Richard Coleman Organization: Critical Magic, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Seniura References: <20040213001703.616C75C3B@techpc04.okladot.state.ok.us><20040213011324.GA55948@xor.obsecurity.org><20040213035608.3AA11A38EA@scifi.homeip.net><20040213040929.GA58196@xor.obsecurity.org> <20040213170347.DC19E5C3B@techpc04.okladot.state.ok.us> In-Reply-To: <20040213170347.DC19E5C3B@techpc04.okladot.state.ok.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org cc: Kris Kennaway Subject: Re: need help on CFLAGS in /etc/make.conf please X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: richardcoleman@mindspring.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2004 03:09:42 -0000 Paul Seniura wrote: > Chapter 2 of "FreeBSD Developers' Handbook": > > | 2.4 Compiling with cc > | > | -O > | Create an optimized version of the executable. The compiler > | performs various clever tricks to try and produce an executable > | that runs faster than normal. You can add a number after the -O > | to specify a higher level of optimization, but this often exposes > | bugs in the compiler's optimizer. For instance, the version of cc > | that comes with the 2.1.0 release of FreeBSD is known to produce > | bad code with the -O2 option in some circumstances. > | > | Optimization is usually only turned on when compiling a release > | version. > |[...] > > HUH?!? "the version of cc that comes with 2.1.0" has those -O bugs???? > Good grief, we're running 5.x (-Current, actually)! > I can't find any mention of any such bugs with GCC 3.x on i386. Unless there is evidence of more recent gcc bugs, that part of the handbook should really be removed. I can easily imagine the reaction on this list if the reverse were true, and the gcc handbook was knocking FreeBSD for a bug in release 3.0 (or whatever). Richard Coleman richardcoleman@mindspring.com