This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,Testsuite] Check split_stack is ok for target in tree-prof/split-1.c
- From: Paul Hua <paul dot hua dot gm at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 11 Jun 2017 16:13:38 +0800
- Subject: [PATCH,Testsuite] Check split_stack is ok for target in tree-prof/split-1.c
- Authentication-results: sourceware.org; auth=none
Hi:
tree-prof/split-1.c use -fsplit-stack in dg-options but not check is
ok for target.
This patch add "dg-require-effective-target split_stack" for it.
Ok for commit ?
Paul.
----
ChangeLog
2017-06-11 Chenghua Xu <paul.hua.gm@gmail.com>
* gcc.dg/tree-prof/split-1.c: Require split_stack support.
diff --git a/gcc/testsuite/gcc.dg/tree-prof/split-1.c b/gcc/testsuite/gcc.dg/tree-prof/split-1.c
index a42fccf..4b90b63 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/split-1.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/split-1.c
@@ -1,6 +1,7 @@
/* Test case that we don't get a link-time error when using
-fsplit-stack with -freorder-blocks-and-partition. */
/* { dg-require-effective-target freorder } */
+/* { dg-require-effective-target split_stack } */
/* { dg-options "-O2 -fsplit-stack" } */
extern unsigned int sleep (unsigned int);