HomeFreeBSD

Add -fwrapv to CFLAGS for the kernel. This essentially un-reverts r259045.

Description

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

Details

Provenance
peterAuthored on
Parents
rS278228: Add support for probing the SCSI VPD Extended Inquiry page (0x86).
Branches
Unknown
Tags
Unknown

Event Timeline