6.1R: Postgresql 8.1.3 and threadsafe.

Chuck Swiger cswiger at mac.com
Thu Jun 8 04:55:13 UTC 2006

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:


...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.


More information about the freebsd-ports mailing list