[PATCH] D29355: [asan] Support handle_sigfpe on Darwin
Justin Bogner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 31 17:15:14 PST 2017
bogner updated this revision to Diff 86527.
bogner added a comment.
Move fpe test from Linux to Posix
https://reviews.llvm.org/D29355
Files:
lib/sanitizer_common/sanitizer_mac.cc
test/sanitizer_common/TestCases/Linux/fpe.cc
test/sanitizer_common/TestCases/Posix/fpe.cc
Index: lib/sanitizer_common/sanitizer_mac.cc
===================================================================
--- lib/sanitizer_common/sanitizer_mac.cc
+++ lib/sanitizer_common/sanitizer_mac.cc
@@ -402,6 +402,8 @@
return true;
if (common_flags()->handle_sigill && signum == SIGILL)
return true;
+ if (common_flags()->handle_sigfpe && signum == SIGFPE)
+ return true;
return (signum == SIGSEGV || signum == SIGBUS) && common_flags()->handle_segv;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29355.86527.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170201/632257ec/attachment.bin>
More information about the llvm-commits
mailing list