From: John David Anglin Date: Mon, 18 Jan 2021 15:38:40 +0000 (+0000) Subject: Avoid no-stack-protector-attr fails on hppa*-*-*. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66cbe54960c9d5674911ba8af5e873494db8880f;p=gcc.git 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. --- 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 dd9cd4991b6..56a4e74da50 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 e5105bf9478..3314a94bd7b 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() {