From owner-freebsd-commit Fri Aug 11 16:26:23 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id QAA22164 for commit-outgoing; Fri, 11 Aug 1995 16:26:23 -0700 Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id QAA22137 for cvs-share-outgoing; Fri, 11 Aug 1995 16:26:19 -0700 Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id QAA21965 ; Fri, 11 Aug 1995 16:25:23 -0700 Received: from corbin.Root.COM (corbin [198.145.90.34]) by Root.COM (8.6.11/8.6.5) with ESMTP id QAA16027; Fri, 11 Aug 1995 16:24:24 -0700 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.11/8.6.5) with SMTP id QAA26825; Fri, 11 Aug 1995 16:26:10 -0700 Message-Id: <199508112326.QAA26825@corbin.Root.COM> To: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) cc: CVS-commiters@freefall.freebsd.org, cvs-share@freefall.freebsd.org Subject: Re: cvs commit: src/share/mk sys.mk In-reply-to: Your message of "Fri, 11 Aug 95 17:27:46 +0400." From: David Greenman Reply-To: davidg@Root.COM Date: Fri, 11 Aug 1995 16:26:09 -0700 Sender: commit-owner@FreeBSD.org Precedence: bulk >In message <199508111147.EAA17376@freefall.FreeBSD.org> David Greenman > writes: > >>davidg 95/08/11 04:47:31 > >> Modified: share/mk sys.mk >> Log: >> Changed default optimization from -O2 back to -O...gcc 2.6.* has serious >> bugs when using -O2. > >Maybe add -fno-strength-reduce instead? Until the precise reason for the optimization failure is known, it isn't safe to use all of the optimizations in -O2. The fact that -fno-strength-reduce appears to affect the problem doesn't mean that the bug is in the strength reduction code. I saw no measurable improvement in system performance when we went to -O2, and all things considered, I think it is much safer to just stick with -O for now. -DG