[Bug middle-end/103950] [9/10/11/12 Regression] printf("\xff") incorrectly optimized to putchar(-1)

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 8 18:18:06 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103950

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>That happens even if -funsigned-char is used.

Yes because in this case, GCC is using char internally and forgetting it is
signed by default when calling a function as shown by my patch.


More information about the Gcc-bugs mailing list