misc/118121: [build] RELENG_7 kernel compile fails with -Os

arundel at FreeBSD.org arundel at FreeBSD.org
Wed Nov 24 00:20:20 UTC 2010


Synopsis: [build] RELENG_7 kernel compile fails with -Os

State-Changed-From-To: open->closed
State-Changed-By: arundel
State-Changed-When: Wed Nov 24 00:14:35 UTC 2010
State-Changed-Why: 
I tried to reproduce this under HEAD (r215432; amd64) and TARGET buildkernel
still fails!
HOWEVER: since share/examples/etc/make.conf states the following:

# CFLAGS controls the compiler settings used when compiling C code.
# Note that optimization settings other than -O and -O2 are not recommended
# or supported for compiling the world or the kernel - please revert any
# nonstandard optimization settings to "-O" or "-O2 -fno-strict-aliasing"
# before submitting bug reports without patches to the developers.

i'm closing this PR. quite obviosly that statement applies even more so to
COPTFLAGS. two more reasons for closing this PR are:

1) nobody will care to fix code that gets broken by -Os
2) gcc will eventually be removed from the src in favour if clang

http://www.freebsd.org/cgi/query-pr.cgi?pr=118121


More information about the freebsd-bugs mailing list