Fix c-c++-common/fhardened-[12].c test fails on hppa
commit458e7c937924bbcef80eb006af0b61420dbfc1c1
authorJohn David Anglin <danglin@gcc.gnu.org>
Wed, 6 Dec 2023 15:38:50 +0000 (6 15:38 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 6 Dec 2023 15:38:50 +0000 (6 15:38 +0000)
tree971c857f36b3678ab5a1ce70f556d69eee46b34e
parentc9d5b46a25547035e381b0246de5cb553ca8b02d
Fix c-c++-common/fhardened-[12].c test fails on hppa

The -fstack-protector and -fstack-protector-strong options are
not supported on hppa since the stack grows up.

2023-12-06  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

* c-c++-common/fhardened-1.c: Ignore __SSP_STRONG__ define
if __hppa__ is defined.
* c-c++-common/fhardened-2.c: Ignore __SSP__ define
if __hppa__ is defined.
gcc/testsuite/c-c++-common/fhardened-1.c
gcc/testsuite/c-c++-common/fhardened-2.c