RFC: (Unconditionally) enable -fno-strict-overflow for kernel builds

Peter Wemm peter at wemm.org
Sun Dec 1 04:26:20 UTC 2013


On Sat, Nov 30, 2013 at 4:33 PM, Adrian Chadd <adrian at freebsd.org> wrote:
[..]
> Are you able to have clang/llvm/gcc tell us where/when code is relying
> on undefined behaviour? So we can, like, fix them?

It wasn't all that long ago that we had this wonderful thing called
-Werror and had a clean kernel build.

The problem is that gcc and clang have different warning sets.  I seem
to recall we had -Werror on for gcc and off for clang.  IMHO it would
be more useful to do it the other way around.

-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com; KI6FJV
UTF-8: for when a ' just won\342\200\231t do.


More information about the freebsd-current mailing list