http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60229
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #4 f
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60229
--- Comment #3 from Mikael Pettersson ---
Technically there is an overflow there. But GCC defines conversion to a
smaller signed integer type, when the value cannot be represented in that
smaller type, as a non-signalling truncation. Still, port
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60229
--- Comment #2 from Andrew Pinski ---
Note there is no overflow happening here at all. In that a++ is the same as a
= a + 1 which is the same as a = (short)(((int)a) + 1) due to promotion rules
in C.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60229
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---