From owner-freebsd-stable Mon Jul 29 7:34:30 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C503A37B400 for ; Mon, 29 Jul 2002 07:34:26 -0700 (PDT) Received: from news.kiev.sovam.com (news.kiev.sovam.com [212.109.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C2EF43E65 for ; Mon, 29 Jul 2002 07:34:25 -0700 (PDT) (envelope-from gw-bsd-stable@news.kiev.sovam.com) Received: from mail by news.kiev.sovam.com with local (Exim 2.12 #1) id 17ZBbK-00049R-00 for freebsd-stable@freebsd.org; Mon, 29 Jul 2002 17:34:22 +0300 From: Dmitry Alyabyev To: freebsd-stable@freebsd.org Reply-To: dimitry@al.org.ua Subject: Re: Is use of -O2 still deprecated for buildworld in -stable? Date: Mon, 29 Jul 2002 17:34:21 +0300 Message-ID: References: <20020727191945.A10231@lava.net> <3D4388BD.EB384247@pantherdragon.org> X-Organization: Svit Online (post does not reflect views of Golden Telecom) X-Gated-By: news2list v1.4, (c) Vladimir Litovka X-Gated-Date: Mon Jul 29 14:34:22 2002 GMT Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Darren Pilgrim wrote: > Clifton Royston wrote: >> >> I had a vigorous discussion about this with a colleague on Friday >> (yesterday.) We're trying to agree on the proper set of options to use >> in /etc/make.conf for doing "buildworld" and/or "buildkernel" i386 >> servers (Pentium 3.) > > -O -pipe is the recommended for CFLAGS and COPTFLAGS. > >> These machines will be running production services for our customers, >> so they need to be high-reliability; we're running 4.5-release and >> 4.6-release CVSuped to those tags, not trying to track -stable. >> >> My colleague is insistent that because -O2 in gcc will generally >> produce much better code, we should be using it if it's at all possible >> and safe. > > According to everything I've read, the difference between -O and -O2 > is neglible in FreeBSD, at the cost of significantly higher compilation > times. Also, the more the compiler does to the code, the more likely > you'll get unexpected behaviour. If you want stability, then go with > -O. following your discussion - that is the highest reasonable value for optimization ? I mean applications, not kernel ... many packages recomend -O6 or like that -- Dimitry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message