mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-26 07:40:26 +08:00
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.
This commit is contained in:
parent
0c1c8d9f13
commit
adaf4b6c66
gcc/testsuite
@ -1,3 +1,9 @@
|
||||
2020-03-24 Sandra Loosemore <sandra@codesourcery.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2020-03-24 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
PR c++/94190 - wrong no post-decrement operator error in template.
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* { dg-require-effective-target sigsetjmp } */
|
||||
|
||||
#include <setjmp.h>
|
||||
#include <stddef.h>
|
||||
#include "analyzer-decls.h"
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* { dg-require-effective-target sigsetjmp } */
|
||||
|
||||
#include <setjmp.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user