https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71539
mednafen at sent dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mednafen at sent dot com --- Comment #1 from mednafen at sent dot com --- test.c:9:17: runtime error: signed integer overflow: 2 * 4611686018427387904 cannot be represented in type 'long int' test.c:9:8: runtime error: signed integer overflow: 2 * -9223372036854775808 cannot be represented in type 'long int' Refer to the C standard, and use -fwrapv https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc/Code-Gen-Options.html#index-fwrapv-2791 if you really need to write such code(or want a safety net against unpredictable future optimizations that take advantage of such undefined behavior).