On Thu, Aug 28, 2025 at 9:18 AM Ayappan <ayappa...@gmail.com> wrote:

> Hi Team,
> Kindly review the below patch and let me know if any changes are
> required.,
>
> On Thu, Aug 14, 2025 at 3:14 PM Ayappan Perumal <ayappa...@gmail.com>
> wrote:
>
>> From: Ayappan Perumal <ayapp...@in.ibm.com>
>>
>> ---
>> stack-protector is not supported in GCC on AIX. This patch is to fail the
>> compilation if -fstack-protector option is passed.
>>
>>  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 9e7edbb2f22..5b03b068139 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 enabled on AIX}"
>> --
>> 2.41.0
>>
>
Okay.

Thanks, David

Reply via email to