Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2001 23:29:34 +0100
From:      Dirk Froemberg <dirk@freebsd.org>
To:        Sergei Golubchik <sergii@pisem.net>
Cc:        Maxim Sobolev <sobomax@freebsd.org>, John Baldwin <jhb@freebsd.org>, cvs-all@freebsd.org, cvs-committers@freebsd.org
Subject:   Re: cvs commit: ports/databases/mysql323-server Makefile
Message-ID:  <20011218232934.D42190@physik.TU-Berlin.DE>
In-Reply-To: <20011218194420.A31061@serg.mysql.com>; from sergii@pisem.net on Tue, Dec 18, 2001 at 07:44:20PM %2B0000
References:  <XFMail.011217145311.jhb@FreeBSD.org> <1008630359.5329.2.camel@notebook> <20011218194420.A31061@serg.mysql.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

On Tue, Dec 18, 2001 at 07:44:20PM +0000, Sergei Golubchik wrote:
> I would like to jump in as these options were taken
> from our script.
> 
> On Dec 18, Maxim Sobolev wrote:
> > On Tue, 2001-12-18 at 00:53, John Baldwin wrote:
> > > On 17-Dec-01 Dirk Froemberg wrote:
> > > > dirk        2001/12/17 14:50:46 PST
> ...
> > > >   - add BUILD_OPTIMIZED to add -mcpu=pentiumpro -O3 -fno-omit-frame-pointer
> > > >     to CFLAGS (and thus to CXXFLAGS)
> > > 
> > > You should not use -O3, it is known to produce buggy code.  Use -O only, not
> > > even -O2.
> > 
> > I agree with John - we should discourage anything above -O, not to
> > encourage it. Especially this applies to the databases, when the buggy
> > compiler output could do a lot of damage to the user's data. I think
> > BUILD_OPTIMIZED should be removed.
> 
> Generally I agree. And I do prefer the program that works slow
> to the program that crashes fast.
> 
> But these options were takes from the script that we (at MySQL AB)
> use to generate our official binaries. Every possible precausion
> is taken to ensure that our binaries are as stable is possible.
> 
> So, -O3 is, most probably, very safe here.

Thanks!

I think the best would be a warning for BUILD_STATIC, then.

	Regards Dirk

-- 
Dirk Froemberg

FreeBSD: The Power to Serve!		http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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