compiling world with optimization
David O'Brien
obrien at freebsd.org
Sun Jan 18 14:17:25 PST 2004
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.
More information about the freebsd-current
mailing list