From owner-freebsd-ports@FreeBSD.ORG Thu Jun 8 04:55:13 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 911CC1704E2 for ; Thu, 8 Jun 2006 02:14:47 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00B3843D58 for ; Thu, 8 Jun 2006 02:14:46 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/8.12.11/smtpout11/MantshX 4.0) with ESMTP id k582EYln014099; Wed, 7 Jun 2006 19:14:34 -0700 (PDT) Received: from [192.168.1.251] (pool-68-160-201-170.ny325.east.verizon.net [68.160.201.170]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id k582EVG8020691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Jun 2006 19:14:33 -0700 (PDT) Message-ID: <448787FF.7000400@mac.com> Date: Wed, 07 Jun 2006 22:14:23 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Sam Lawrance References: <447B76FA.1030304@wm-access.no> <20060530020354.GA96718@xor.obsecurity.org> <200606071412.45003.amistry@am-productions.biz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Anish Mistry , freebsd-ports@freebsd.org, Sten Daniel S?rsdal Subject: Re: 6.1R: Postgresql 8.1.3 and threadsafe. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 04:55:13 -0000 Sam Lawrance wrote: > On 08/06/2006, at 4:12 AM, Anish Mistry wrote: [ ... ] >>> Not to mention compiling the kernel with -O2 is unsupported, and >>> generally considered a bad idea. >> Not true. For kernel compiling -O2 has been supported since 6.0. > > I'm not aware of it. Got a pointer to some documentation or list > archives so I can read up? Please see cvsweb: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/kern.pre.mk ...and search for "-O2". Seems to have been first enabled on the AMD64 platform in v1.45, and on i386 since v1.6: Revision 1.61 / (download) - annotate - [select for diffs], Tue Jan 18 03:32:53 2005 UTC (16 months, 2 weeks ago) by obrien Branch: MAIN Changes since 1.60: +1 -1 lines Diff to previous 1.60 (colored) While we're building kernels -g (ie, makeoptions DEBUG=-g), use -O as it provides truer debugger stack traces. For those that want to stick with -O2 kernel builds, one should probably add -fno-optimize-sibling-calls so that each stack frame as a frame pointer. It is semi-promissed by the Release Engineers that when RELENG_6 is created we go back to -O2. Desired by: scottl, jhb Revision 1.60 / (download) - annotate - [select for diffs], Mon Oct 25 18:24:39 2004 UTC (19 months, 1 week ago) by obrien Branch: MAIN Changes since 1.59: +1 -7 lines Diff to previous 1.59 (colored) Don the teflon coated jacket and use the same -O2 optimization options on the 'i386' kernel that we do all our 64-bit kernels. -- -Chuck