Avoid no-stack-protector-attr fails on hppa*-*-*.
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 18 Jan 2021 15:38:40 +0000 (15:38 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 18 Jan 2021 15:38:40 +0000 (15:38 +0000)
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
gcc/testsuite/g++.dg/no-stack-protector-attr.C

index dd9cd4991b665598fc238f1e21485b8fcf2f9efd..56a4e74da50fd1611aa40077417a19f947a6888a 100644 (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()
 {
index e5105bf9478f5ace24c0e07a856f773e6aaee145..3314a94bd7bc8ee7ec7bbe8b5dd3bb393c4a9b7b 100644 (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()
 {