https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67298
--- Comment #4 from Alexander Fomin <afomin.mailbox at gmail dot com> --- Yep, looks like -fwrapv fixes this issue.
afomin.mailbox at gmail dot com Mon, 24 Aug 2015 14:10:11 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67298
--- Comment #4 from Alexander Fomin <afomin.mailbox at gmail dot com> --- Yep, looks like -fwrapv fixes this issue.