re PR sanitizer/55679 (new asan tests from r194458 fail on x86_64-apple-darwin10)
PR sanitizer/55679 * g++.dg/asan/interception-test-1.C: Skip on darwin. * lib/target-supports.exp (check_effective_target_swapcontext): Use check_no_compiler_messages to test support in ucontext.h. (check_effective_target_setrlimit): Return 0 for Darwin's non-posix compliant RLIMIT_AS. From-SVN: r195281
This commit is contained in:
parent
1bd3f7500b
commit
ec03e9e945
@ -1,3 +1,12 @@
|
||||
2013-01-17 Jack Howarth <howarth@bromo.med.uc.edu>
|
||||
|
||||
PR sanitizer/55679
|
||||
* g++.dg/asan/interception-test-1.C: Skip on darwin.
|
||||
* lib/target-supports.exp (check_effective_target_swapcontext): Use
|
||||
check_no_compiler_messages to test support in ucontext.h.
|
||||
(check_effective_target_setrlimit): Return 0 for Darwin's non-posix
|
||||
compliant RLIMIT_AS.
|
||||
|
||||
2013-01-17 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
PR rtl-optimization/55833
|
||||
|
@ -3,6 +3,7 @@
|
||||
// { dg-do run }
|
||||
// { dg-options "-fno-builtin-malloc -fno-builtin-free" }
|
||||
// { dg-shouldfail "asan" }
|
||||
// { dg-skip-if "Darwin uses mac function interposition" { *-*-darwin* } }
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -730,12 +730,23 @@ proc check_effective_target_clone {} {
|
||||
|
||||
# Return 1 if the target supports setrlimit, 0 otherwise.
|
||||
proc check_effective_target_setrlimit {} {
|
||||
# Darwin has non-posix compliant RLIMIT_AS
|
||||
if { [istarget *-*-darwin*] } {
|
||||
return 0
|
||||
}
|
||||
return [check_function_available "setrlimit"]
|
||||
}
|
||||
|
||||
# Return 1 if the target supports swapcontext, 0 otherwise.
|
||||
proc check_effective_target_swapcontext {} {
|
||||
return [check_function_available "swapcontext"]
|
||||
return [check_no_compiler_messages swapcontext executable {
|
||||
#include <ucontext.h>
|
||||
int main (void)
|
||||
{
|
||||
ucontext_t orig_context,child_context;
|
||||
if (swapcontext(&child_context, &orig_context) < 0) { }
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
# Return 1 if compilation with -pthread is error-free for trivial
|
||||
|
Loading…
Reference in New Issue
Block a user