From owner-freebsd-stable@FreeBSD.ORG Tue Feb 14 15:51:24 2006 Return-Path: X-Original-To: freebsd-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 9201516A420 for ; Tue, 14 Feb 2006 15:51:24 +0000 (GMT) (envelope-from vinny@tellurian.com) Received: from mail1.tellurian.net (mail1.tellurian.net [216.182.1.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE50843D46 for ; Tue, 14 Feb 2006 15:51:23 +0000 (GMT) (envelope-from vinny@tellurian.com) Received: from cactus.tellurian.com (cactus.tellurian.net [216.182.1.34]) by mail1.tellurian.net ([216.182.1.23] Tellurian Networks Mail Server version 3.7a-14) with ESMTP id 348836545 for ; Tue, 14 Feb 2006 10:51:22 -0500 Message-Id: <7.0.1.0.2.20060214104201.0845a270@tellurian.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Tue, 14 Feb 2006 10:51:22 -0500 To: freebsd-stable@FreeBSD.ORG From: Vinny Abello In-Reply-To: <200602140945.k1E9jxBa048710@lurza.secnetix.de> References: <7.0.1.0.2.20060213212221.04c7da20@tellurian.com> <200602140945.k1E9jxBa048710@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Authenticated-User: vinny@tellurian.com X-Ultimate-Internet-Connection: Tellurian Networks Cc: Subject: Re: clock reverts to epoch on boot? 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, 14 Feb 2006 15:51:24 -0000 At 04:45 AM 2/14/2006, Oliver Fromme wrote: >Vinny Abello wrote: > > CPUTYPE=pentium4 > >Better use "?=". Yes, I saw that error and corrected it. Thanks. That wasn't the source of my problems actually, but I at least have it specified properly now. > > CFLAGS= -O2 -pipe > > COPTFLAGS= -O -pipe > >I recommend not to overide those two at all. Especially >your CFLAGS setting might generate broken code because >there are sources which are not aliasing-clean, which can >break with any optimizations beyond -O, unless you also >specify -fno-strict-aliasing. Really? Are there any current examples of such? I've never run into this myself, but I'm sure you wouldn't be recommending it if it wasn't true. What about -funroll-loops and -ffast-math? I see a lot of people using those options in general as well. I actually found one reference from someone claiming -O3 is good in CFLAGS and -O2 for COPTFLAGS although I have read a lot of things about why not to use -O3 in CFLAGS and that it's not supported at all with buildworld, so I'm not really interested in using that at all, even with ports. >The defaults are "-O2 -fno-strict-aliasing -pipe" for >CFLAGS, and for COPTFLAGS it's "-O -pipe" if DEBUG is >defined (the default in GENERIC), otherwise "-O2 -pipe >-fno-strict-aliasing". Is -O2 safe on COPTFLAGS if you have debugging disabled in the KERNCONF? I usually disable it as I have no interest in debugging the kernel (nor have I had problems where I've needed to... yet). I've found references in the archives that it is desirable to get (keep?) the kernel working with -O2 optimizations. Any pointers appreciated. TIA! Vinny Abello Network Engineer Server Management vinny@tellurian.com (973)300-9211 x 125 (973)940-6125 (Direct) PGP Key Fingerprint: 3BC5 9A48 FC78 03D3 82E0 E935 5325 FBCB 0100 977A Tellurian Networks - The Ultimate Internet Connection http://www.tellurian.com (888)TELLURIAN "Courage is resistance to fear, mastery of fear - not absence of fear" -- Mark Twain