|
|
8178f7 |
commit 15d5202e75021f2c41b8a1cb344c04b8915e9d4e
|
|
|
8178f7 |
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
|
|
|
8178f7 |
Date: Sun Oct 8 15:44:39 2017 +0000
|
|
|
8178f7 |
|
|
|
8178f7 |
* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
|
|
|
8178f7 |
* gcc.dg/stack-check-6.c: Likewise.
|
|
|
8178f7 |
* gcc.dg/stack-check-6a.c: Likewise.
|
|
|
8178f7 |
|
|
|
8178f7 |
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253527 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
|
8178f7 |
|
|
|
8178f7 |
diff --git a/gcc/testsuite/gcc.dg/stack-check-5.c b/gcc/testsuite/gcc.dg/stack-check-5.c
|
|
|
8178f7 |
index 3178f5d8ce5..850e023ea4e 100644
|
|
|
8178f7 |
--- a/gcc/testsuite/gcc.dg/stack-check-5.c
|
|
|
8178f7 |
+++ b/gcc/testsuite/gcc.dg/stack-check-5.c
|
|
|
8178f7 |
@@ -1,6 +1,7 @@
|
|
|
8178f7 |
/* { dg-do compile } */
|
|
|
8178f7 |
/* { dg-options "-O2 -fstack-clash-protection -fdump-rtl-pro_and_epilogue -fno-optimize-sibling-calls --param stack-clash-protection-probe-interval=12 --param stack-clash-protection-guard-size=12" } */
|
|
|
8178f7 |
/* { dg-require-effective-target supports_stack_clash_protection } */
|
|
|
8178f7 |
+/* { dg-skip-if "" { *-*-* } { "-fstack-protector" } { "" } } */
|
|
|
8178f7 |
|
|
|
8178f7 |
|
|
|
8178f7 |
/* Otherwise the S/390 back-end might save the stack pointer in f2 ()
|
|
|
8178f7 |
diff --git a/gcc/testsuite/gcc.dg/stack-check-6.c b/gcc/testsuite/gcc.dg/stack-check-6.c
|
|
|
8178f7 |
index ad2021c9037..ab4b0e8894c 100644
|
|
|
8178f7 |
--- a/gcc/testsuite/gcc.dg/stack-check-6.c
|
|
|
8178f7 |
+++ b/gcc/testsuite/gcc.dg/stack-check-6.c
|
|
|
8178f7 |
@@ -1,6 +1,7 @@
|
|
|
8178f7 |
/* { dg-do compile } */
|
|
|
8178f7 |
/* { dg-options "-O2 -fstack-clash-protection -fdump-rtl-pro_and_epilogue -fno-optimize-sibling-calls --param stack-clash-protection-probe-interval=12 --param stack-clash-protection-guard-size=12" } */
|
|
|
8178f7 |
/* { dg-require-effective-target supports_stack_clash_protection } */
|
|
|
8178f7 |
+/* { dg-skip-if "" { *-*-* } { "-fstack-protector" } { "" } } */
|
|
|
8178f7 |
|
|
|
8178f7 |
|
|
|
8178f7 |
extern void foo (char *);
|
|
|
8178f7 |
diff --git a/gcc/testsuite/gcc.dg/stack-check-6a.c b/gcc/testsuite/gcc.dg/stack-check-6a.c
|
|
|
8178f7 |
index 6f8e7128921..468d649a4fa 100644
|
|
|
8178f7 |
--- a/gcc/testsuite/gcc.dg/stack-check-6a.c
|
|
|
8178f7 |
+++ b/gcc/testsuite/gcc.dg/stack-check-6a.c
|
|
|
8178f7 |
@@ -4,6 +4,8 @@
|
|
|
8178f7 |
/* { dg-do compile } */
|
|
|
8178f7 |
/* { dg-options "-O2 -fstack-clash-protection -fdump-rtl-pro_and_epilogue -fno-optimize-sibling-calls --param stack-clash-protection-probe-interval=12 --param stack-clash-protection-guard-size=16" } */
|
|
|
8178f7 |
/* { dg-require-effective-target supports_stack_clash_protection } */
|
|
|
8178f7 |
+/* { dg-skip-if "" { *-*-* } { "-fstack-protector" } { "" } } */
|
|
|
8178f7 |
+
|
|
|
8178f7 |
|
|
|
8178f7 |
#include "stack-check-6.c"
|
|
|
8178f7 |
|