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.
+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.
+/* { dg-require-effective-target sigsetjmp } */
+
#include <setjmp.h>
#include <stddef.h>
#include "analyzer-decls.h"
+/* { dg-require-effective-target sigsetjmp } */
+
#include <setjmp.h>
#include <stddef.h>
#include <stdlib.h>
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