From 6ea93a64ff1e9204d0366e359876a30682ff7c0c Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Wed, 12 Jul 2017 07:53:28 +0000 Subject: [PATCH] [testsuite] Fix dg-require-stack-check 2017-07-12 Christophe Lyon * lib/target-supports.exp (check_stack_check_available): Make testcase name depend on stack_kind. From-SVN: r250149 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 78bcef9bd7a..cf8c5adf844 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-07-12 Christophe Lyon + + * lib/target-supports.exp (check_stack_check_available): Make + testcase name depend on stack_kind. + 2017-07-11 Michael Collison * testsuite/gcc.target/aarch64/cmp-2.c: New testcase. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7fb51ccb3e2..97d834c63fc 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1069,7 +1069,7 @@ proc check_stack_check_available { stack_kind } { set stack_opt "-fstack-check" } else { set stack_opt "-fstack-check=$stack_kind" } - return [check_no_compiler_messages stack_check executable { + return [check_no_compiler_messages stack_check_$stack_kind executable { int main (void) { return 0; } } "$stack_opt"] } -- 2.30.2