[Bug c/70779] -trapv does not generate trapping vode for integer conversions
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 25 08:02:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70779
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
conversions from unsigned to signed are not undefined but implementation
defined
and not covered by -ftrapv. Instead GCC documents its implementation defined
behavior as modulo-2 reduction.
More information about the Gcc-bugs
mailing list