Linus has committed a different solution: replacing -fwrapv by -fno-strict-overflow. See upstream commit a137802ee839ace40079bebde24cfb416f73208a.