From 66cbe54960c9d5674911ba8af5e873494db8880f Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Mon, 18 Jan 2021 15:38:40 +0000 Subject: 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. --- gcc/testsuite/g++.dg/no-stack-protector-attr-3.C | 2 +- gcc/testsuite/g++.dg/no-stack-protector-attr.C | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C b/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C index dd9cd49..56a4e74 100644 --- a/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C +++ b/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C @@ -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() { diff --git a/gcc/testsuite/g++.dg/no-stack-protector-attr.C b/gcc/testsuite/g++.dg/no-stack-protector-attr.C index e5105bf..3314a94 100644 --- a/gcc/testsuite/g++.dg/no-stack-protector-attr.C +++ b/gcc/testsuite/g++.dg/no-stack-protector-attr.C @@ -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() { -- cgit v1.1