Re: [rfc] a few kern.mk and bsd.sys.mk related changes

2011-05-28 Thread Bruce Cran
On Sat, May 28, 2011 at 06:23:26PM +, Alexander Best wrote:
> 
> well i'm not an expert on this. but are we 100% sure that a kernel on amd64
> compiled with -O2 frename-registers can be debugged the same way as one with
> -O? if that is the case: sure...-O2 is fine. ;)
> 
> however i've often read messages - mostly by bruce evans - claiming that
> anything greater than -O will in fact decrease a kernel's ability to be
> debugged just as well as a kernel with -O.
> 

The critical option when -O2 is used is -fno-omit-frame-pointers, since removing
frame pointers makes debugging impossible (on i386). With -O2 code is moved 
around and
removed, so debugging is more difficult, but can still provide useful
information.

-- 
Bruce Cran
___
freebsd-toolchain@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


WITH_CLANG_IS_CC and unrecognized command line options

2012-05-20 Thread Bruce Cran
I've done a fresh install of FreeBSD 9.0, upgraded to 10-CURRENT and 
have just tried doing a rebuild with CLANG_IS_CC=yes in src.conf.  
However there's an error building ncurses:


cc: unrecognized option '-Qunused-arguments'
cc: unrecognized option '-Qunused-arguments'
cc1: error: unrecognized command line option "-Wno-empty-body"
cc1: error: unrecognized command line option "-Wno-string-plus-int"
cc1: error: unrecognized command line option "-Wno-tautological-compare"
cc1: error: unrecognized command line option "-Wno-parentheses-equality"
cc1: error: unrecognized command line option "-Wno-empty-body"
cc1: error: unrecognized command line option "-Wno-string-plus-int"
cc1: error: unrecognized command line option "-Wno-tautological-compare"
cc1: error: unrecognized command line option "-Wno-parentheses-equality"
*** [make_hash] Error code 1
*** [make_keys] Error code 1

Is there some configuration I've missed?

--
Bruce Cran
___
freebsd-toolchain@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"