From a950bb6e95236bb60ec17cda36763945d3d0a714 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Thu, 2 Apr 2020 13:37:58 -0700 Subject: [PATCH] Fix check_effective_target_sigsetjmp for glibc targets. 2020-04-02 Sandra Loosemore gcc/testsuite/ * lib/target-supports.exp (check_effective_target_sigsetjmp): Test for __sigsetjmp as well as sigsetjmp. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 050cecd6159..cd8d7e1548d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-04-02 Sandra Loosemore + + * lib/target-supports.exp (check_effective_target_sigsetjmp): Test + for __sigsetjmp as well as sigsetjmp. + 2020-04-02 Fritz Reese PR fortran/85982 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 3654e7bc232..0dfe3ae0651 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -9036,9 +9036,15 @@ proc check_effective_target_stpcpy {} { } # Returns 1 if "sigsetjmp" is available on the target system. +# Also check if "__sigsetjmp" is defined since that's what glibc +# uses. proc check_effective_target_sigsetjmp {} { - return [check_function_available "sigsetjmp"] + if { [check_function_available "sigsetjmp"] + || [check_function_available "__sigsetjmp"] } { + return 1 + } + return 0 } # Check whether the vectorizer tests are supported by the target and -- 2.30.2