https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57859

--- Comment #3 from Mikael Pettersson <mikpelinux at gmail dot com> ---
-ftrapv seems to be working a bit better in gcc-6: only the first test case
fails (doesn't report the overflow) at -O1/2 for both -m32/-m64, but all other
combinations of test case, -O0 vs -O1/2, and -m32 vs -m64, seem to work.

However, since -fsanitize=undefined works since 4.9, should -ftrapv be
deprecated and this bug be closed as WONTFIX?

Reply via email to