During compilation of the MSP430-GCC-OPENSOURCE toolchain, I noticed several warnings flash up of this type:
e_scalb.c: In function '__ieee754_scalb': e_scalb.c: warning: overflow to conversion fromn 'long int' to 'int' changes value from '-65000' to '536' [-Woverflow]
This is but one example, there are some more, such as in
newlib/libc/search/hash.c
newlib/libc/stdio/open_memstream.c:334
newlib/libc/stdlib/arc4random.c:102
newlib/libm/common/s_round.c (line 71, 16-bit integer constant shifted by 20 places)
gcc/include/demangle.h (line 58, another -Wshift-count-overflow)
libstdc++-v3/libsupc++/hash_bytes.cc:97 (probably okay, as this is only for hash calculations)
Additionally, there are some casts of pointers to smaller integer type warnings.