diff mbox series

[commited] Avoid no-stack-protector-attr fails on hppa*-*-*

Message ID dc1527d6-d11d-3991-f25a-2c2d61ae1d23@bell.net
State New
Headers show
Series [commited] Avoid no-stack-protector-attr fails on hppa*-*-* | expand

Commit Message

John David Anglin Jan. 18, 2021, 4:03 p.m. UTC
The stack grows up on hppa and stack protection is not supported.

Committed to master.

Regards,
Dave

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 mbox series

Patch

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()
 {