summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2015-02-05 01:36:53 +0000
committerpeter <peter@FreeBSD.org>2015-02-05 01:36:53 +0000
commitaba31cb69187d41c37c7fa832eb9c8270b8b7227 (patch)
treec7c79b7ce900ffacd191f5c57c07c2f75a974b3c /contrib/llvm/lib/Support/APInt.cpp
parent2bf041e562bd17f6037c0d0def53525a3aa98f1b (diff)
downloadFreeBSD-src-aba31cb69187d41c37c7fa832eb9c8270b8b7227.zip
FreeBSD-src-aba31cb69187d41c37c7fa832eb9c8270b8b7227.tar.gz
Add -fwrapv to CFLAGS for the kernel. This essentially un-reverts r259045.
The C standard undefines behavior when signed integers overflow. The compiler toolchain has become more adept at detecting this and taking advantage of faster undefined behavior. At the current time this has the unfortunate effect of the clock stopping after 24 days of uptime. clang makes no distinction between -fwrapv and -fno-strict-overflow. gcc does treat them differently but -fwrapv is mature in gcc and is the behavior are actually expecting. Obtained from: kib
Diffstat (limited to 'contrib/llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud