From: Sandra Loosemore Date: Thu, 2 Apr 2020 20:37:58 +0000 (-0700) Subject: Fix check_effective_target_sigsetjmp for glibc targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a950bb6e95236bb60ec17cda36763945d3d0a714;p=gcc.git 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. --- 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