From owner-freebsd-stable Sat Jul 27 23: 1:39 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 B0F9837B400 for ; Sat, 27 Jul 2002 23:01:36 -0700 (PDT) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 530AE43E31 for ; Sat, 27 Jul 2002 23:01:36 -0700 (PDT) (envelope-from dmp@pantherdragon.org) Received: from sparx.pantherdragon.org (evrtwa1-ar10-4-61-236-062.evrtwa1.dsl-verizon.net [4.61.236.62]) by spork.pantherdragon.org (Postfix) with ESMTP id 92D85471D8; Sat, 27 Jul 2002 23:01:35 -0700 (PDT) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by sparx.pantherdragon.org (Postfix) with ESMTP id B9677FDA0; Sat, 27 Jul 2002 23:01:33 -0700 (PDT) Message-ID: <3D4388BD.EB384247@pantherdragon.org> Date: Sat, 27 Jul 2002 23:01:33 -0700 From: Darren Pilgrim X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Clifton Royston Cc: freebsd-stable@FreeBSD.org Subject: Re: Is use of -O2 still deprecated for buildworld in -stable? References: <20020727191945.A10231@lava.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message