Avoid no-stack-protector-attr fails on hppa*-*-*.

gcc/testsuite/ChangeLog:

	* g++.dg/no-stack-protector-attr-3.C: Don't compile on hppa*-*-*.
	* g++.dg/no-stack-protector-attr.C: Likewise.
This commit is contained in:
John David Anglin 2021-01-18 15:38:40 +00:00
parent c7e276b869
commit 66cbe54960
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fstack-protector-explicit" } */
/* { dg-do compile } */
/* { dg-do compile { target { ! hppa*-*-* } } } */
int __attribute__((no_stack_protector)) foo()
{

View File

@ -4,7 +4,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fstack-protector-all" } */
/* { dg-do compile } */
/* { dg-do compile { target { ! hppa*-*-* } } } */
int __attribute__((no_stack_protector)) c()
{