https://gcc.gnu.org/g:3c19cdc808c6affddfdef3b665ed2597121c4edd
commit r14-12102-g3c19cdc808c6affddfdef3b665ed2597121c4edd Author: Ayappan Perumal <[email protected]> Date: Mon Sep 1 08:27:52 2025 -0500 Error out stack-protector unavailability on AIX stack-protector is not supported in GCC on AIX. This patch is to fail the compilation if -fstack-protector option is passed. gcc/ChangeLog: * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): Error out when stack-protector option is used in AIX as it is not supported on AIX Approved By: Segher Boessenkool <[email protected]> (cherry picked from commit dfb7e97dd214f7d8ca0fa970d81ad5ba805aaa8d) Diff: --- gcc/config/rs6000/aix.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index 03d39b120edb..4e4eca527a67 100644 --- a/gcc/config/rs6000/aix.h +++ b/gcc/config/rs6000/aix.h @@ -281,4 +281,6 @@ #undef SUBTARGET_DRIVER_SELF_SPECS #define SUBTARGET_DRIVER_SELF_SPECS \ "%{m64:-maix64} %<m64", \ -"%{m32:-maix32} %<m32" +"%{m32:-maix32} %<m32", \ +"%{fstack-protector*: %<fstack-protector* \ + %estack-protector not supported on AIX}"
