https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113100
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Kewen Lin <li...@gcc.gnu.org>: https://gcc.gnu.org/g:cb62101787555b7b32607b431fdfe6fcc8f3830f commit r14-7089-gcb62101787555b7b32607b431fdfe6fcc8f3830f Author: Kewen Lin <li...@linux.ibm.com> Date: Tue Jan 9 23:05:13 2024 -0600 strub: Only unbias stack point for SPARC_STACK_BOUNDARY_HACK [PR113100] As PR113100 shows, the unbiasing introduced by r14-6737 can cause the scrubbing to overrun and screw some critical data on stack like saved toc base consequently cause segfault. By checking PR112917, IMHO we should keep this unbiasing guarded under SPARC_STACK_BOUNDARY_HACK (TARGET_ARCH64 && TARGET_STACK_BIAS), similar to some existing code special treating SPARC stack bias. PR middle-end/113100 gcc/ChangeLog: * builtins.cc (expand_builtin_stack_address): Guard stack point adjustment with SPARC_STACK_BOUNDARY_HACK.