Bug#1050589: gcc-13: [x32] -fbuiltin-strchr miscompiles

2023-08-26 Thread Thorsten Glaser
Dixi quod… >Package: gcc-13 >Version: 13.2.0-1 This is a regression against gcc-12 (= 12.3.0-8); if I install that and export CC='diet -Os gcc-12' it works. >./mksh -c 'x=q; x=${ echo a; typeset e=2; return 3; echo x$e;}; echo .$x.' In case this is relevant: that codepath uses setjmp/longjmp qu

Bug#1050589: gcc-13: [x32] -fbuiltin-strchr miscompiles

2023-08-26 Thread Thorsten Glaser
Package: gcc-13 Version: 13.2.0-1 Severity: normal X-Debbugs-Cc: t...@mirbsd.de I've got miscompiles of mksh with gcc-13 on x32 with dietlibc. I could reproduce this in a chroot by doing… export CC='diet -Os gcc' export CFLAGS='-g -Wformat -Werror=format-security -Wall -Wextra' export CPPFLAGS='