https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93808
--- Comment #10 from Oleg Endo <olegendo at gcc dot gnu.org> --- I've just tried to compile the preprocessed string.i with the current gcc 9 branch sh-elf cross compiler with the following options: sh-elf-gcc -c -mieee -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -Wdate-time -D_FORTIFY_SOURCE=2 -save-temps but the resulting string.s is quite different from the one in #comment 7. It's difficult to see what's going on there. Can you try building this without the stackprotector options and see if still crashes in the same way?