Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jun 2006 22:14:23 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Sam Lawrance <boris@brooknet.com.au>
Cc:        Anish Mistry <amistry@am-productions.biz>, freebsd-ports@freebsd.org, Sten Daniel S?rsdal <lists@wm-access.no>
Subject:   Re: 6.1R: Postgresql 8.1.3 and threadsafe.
Message-ID:  <448787FF.7000400@mac.com>
In-Reply-To: <E02F2680-D193-4D38-B93D-FE843EA471DF@brooknet.com.au>
References:  <447B76FA.1030304@wm-access.no> <20060530020354.GA96718@xor.obsecurity.org> <AA50D674-0D77-4AC0-8F48-F5A303EEF7D4@brooknet.com.au> <200606071412.45003.amistry@am-productions.biz> <E02F2680-D193-4D38-B93D-FE843EA471DF@brooknet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?448787FF.7000400>