https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128330
--- Comment #2 from Ian Pike <ianpike98cs at gmail dot com> --- I confirmed by bisection that r174519 (6807da97b7a1) is the first bad revision on x86_64-linux-gnu and arm-linux-gnueabi (ARMv5TE, soft float). I used ARM64-hosted cross builds for both. With -O2 -flto -fstack-protector, r174518 still emits the canary check and __stack_chk_fail call for the plain char array, but r174519 drops both. Reverting the change brings the protection back and reapplying it reproduces the failure. I also reproduced this with native aarch64-linux-gnu GCC 12.4.0 and 14.2.0, including GCC 14's default PIE build. The non-LTO, signed-char, unsigned-char, and -fstack-protector-all cases behaved as expected on each target.
