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...@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);

Reply via email to