Re: compiling world with optimization

From: David O'Brien <obrien_at_freebsd.org>
Date: Sun, 18 Jan 2004 14:17:18 -0800
On Fri, Jan 16, 2004 at 11:52:17AM +0200, Sheldon Hearn wrote:
> On (2004/01/15 16:43), Dag-Erling Sm?rgrav wrote:
> 
> > > I dont know if you care, but buildworld will fail with some
> > > optimizations.
> > 
> > No, we don't care.  See /usr/share/examples/etc/make.conf:
> > 
> > # CFLAGS controls the compiler settings used when compiling C code.
> > # Note that optimization settings above -O (-O2, ...) are not recommended
> > # or supported for compiling the world or the kernel
> 
> It's true that most of us don't care.  However, I remember some folks
> (kan and obrien?) saying that they have an interest in seeing these
> fixed in the gcc distribution.
> 
> Have I misremembered?

Yep.  In my opinion -O2 bad code production bugs are due to bugs in
FreeBSD code that breaks standards (alias bugs, etc..) or has bugs in the
inline assembly.  This is no long a GCC problem -- if it is give me a
test case and I'll see it gets fixed.
Received on Sun Jan 18 2004 - 13:17:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:38 UTC