https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83443
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- I can't reproduce the failures with my cross-compilers. For instance, with an arm-none-linux-gnueabihf cross I get the expected output for a test case reduced from the one on line 120: $ cat u.c && /build/arm-none-linux-gnueabihf/gcc-svn/gcc/xgcc -B /build/arm-none-linux-gnueabihf/gcc-svn/gcc -O2 -S -Wall -Wno-format -Wformat-overflow -fexec-charset=IBM1047 u.c void f (char *d) { __builtin_sprintf (d, "%9223372036854775808i", 0); } u.c: In function ‘f’: u.c:3:24: warning: ‘%9223372036854775808i’ directive width out of range [-Wformat-overflow=] 3 | __builtin_sprintf (d, "%9223372036854775808i", 0); | ^~~~~~~~~~~~~~~~~~~~~~~ u.c:3:24: warning: ‘%9223372036854775808i’ directive output of 9223372036854775807 bytes causes result to exceed ‘INT_MAX’ [-Wformat-overflow=]