aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2020-03-24 17:55:07 -0700
committerSandra Loosemore <sandra@codesourcery.com>2020-03-24 17:55:07 -0700
commitadaf4b6c66e789d927684003b9ee05ed04c105ea (patch)
treed428c5bca737d39396d6b4ef31933ee5ac9cf776 /gcc/testsuite/lib
parent0c1c8d9f1372a165ca86d584a15e783629fcaf08 (diff)
downloadgcc-adaf4b6c66e789d927684003b9ee05ed04c105ea.zip
gcc-adaf4b6c66e789d927684003b9ee05ed04c105ea.tar.gz
gcc-adaf4b6c66e789d927684003b9ee05ed04c105ea.tar.bz2
Test for sigsetjmp support in analyzer tests requiring that feature.
2020-03-24 Sandra Loosemore <sandra@codesourcery.com> gcc/testsuite/ * gcc.dg/analyzer/sigsetjmp-5.c: Require sigsetjmp support. * gcc.dg/analyzer/sigsetjmp-6.c: Likewise. * lib/target-supports.exp (check_effective_target_sigsetjmp): New.
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/target-supports.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index f9794b6..10353af 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9034,6 +9034,12 @@ proc check_effective_target_stpcpy {} {
return [check_function_available "stpcpy"]
}
+# Returns 1 if "sigsetjmp" is available on the target system.
+
+proc check_effective_target_sigsetjmp {} {
+ return [check_function_available "sigsetjmp"]
+}
+
# Check whether the vectorizer tests are supported by the target and
# append additional target-dependent compile flags to DEFAULT_VECTCFLAGS.
# If a port wants to execute the tests more than once it should append