From owner-freebsd-stable@FreeBSD.ORG Tue Sep 12 20:23:31 2006 Return-Path: X-Original-To: stable@freebsd.org 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 48F0F16A403 for ; Tue, 12 Sep 2006 20:23:31 +0000 (UTC) (envelope-from fcash@ocis.net) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0605143DA8 for ; Tue, 12 Sep 2006 20:19:57 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id F1C1C18CCCD for ; Tue, 12 Sep 2006 13:29:04 -0700 (PDT) X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WVZn-jmw50-o for ; Tue, 12 Sep 2006 13:29:03 -0700 (PDT) Received: from webmail.sd73.bc.ca (unknown [10.10.10.17]) by smtp.sd73.bc.ca (Postfix) with ESMTP id CF56718CCC7 for ; Tue, 12 Sep 2006 13:29:03 -0700 (PDT) Received: from 142.24.8.227 (SquirrelMail authenticated user fcash) by webmail.sd73.bc.ca with HTTP; Tue, 12 Sep 2006 13:19:49 -0700 (PDT) Message-ID: <50575.142.24.8.227.1158092389.squirrel@webmail.sd73.bc.ca> In-Reply-To: <20060912161603.R1031@ganymede.hub.org> References: <20060912161603.R1031@ganymede.hub.org> Date: Tue, 12 Sep 2006 13:19:49 -0700 (PDT) From: "Freddie Cash" To: stable@freebsd.org User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: optimization levels for 6-STABLE build{kernel,world} X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2006 20:23:31 -0000 On Tue, September 12, 2006 12:22 pm, Marc G. Fournier wrote: > What are ppl currently using for CFLAGS/COPTFLAGS in /etc/make.conf > for building kernel/world? I know awhile back it wasn't recommended > to go above -O2, for instance, but suspect that has changed ... ? The defaults are "-O2 -pipe -fno-strict-aliasing". I stopped manually setting CFLAGS/COPTFLAGS around the time of 5.1 and haven't really noticed any changes in performance. Prior to that, I used "-Os -pipe". There are reported problems with not using -fno-strict-aliasing with parts of the base and/or kernel. And, the first thing anyone will tell you if you run into any compile/runtime errors is to put CFLAGS/COPTFLAGS back to the defaults. :) ---- Freddie Cash fcash@ocis.net