https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116962
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by H.J. Lu <h...@gcc.gnu.org>: https://gcc.gnu.org/g:7a51946e00fa2fb2ffacdd7c8d0a80e056c1f7ff commit r12-10742-g7a51946e00fa2fb2ffacdd7c8d0a80e056c1f7ff Author: H.J. Lu <hjl.to...@gmail.com> Date: Fri Oct 4 16:21:15 2024 +0800 x86: Disable stack protector for naked functions Since naked functions should not enable stack protector, define TARGET_STACK_PROTECT_RUNTIME_ENABLED_P to disable stack protector for naked functions. gcc/ PR target/116962 * config/i386/i386.cc (ix86_stack_protect_runtime_enabled_p): New function. (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): New. gcc/testsuite/ PR target/116962 * gcc.target/i386/pr116962.c: New file. Signed-off-by: H.J. Lu <hjl.to...@gmail.com> (cherry picked from commit 7d2845da112214f064e7b24531cc67e256b5177e)