aboutsummaryrefslogtreecommitdiff
path: root/gcc/sanitizer.def
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-12-11 11:26:56 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2012-12-11 11:26:56 +0100
commit2b2571c99c923e306bd322533baac4ed4a3b603c (patch)
tree8e60fd8543bd4d759ad6427455b8332b261445fa /gcc/sanitizer.def
parent477a24c1c7313bf2a3ee06d2b19ad59724058b83 (diff)
downloadgcc-2b2571c99c923e306bd322533baac4ed4a3b603c.zip
gcc-2b2571c99c923e306bd322533baac4ed4a3b603c.tar.gz
gcc-2b2571c99c923e306bd322533baac4ed4a3b603c.tar.bz2
sanitizer.def (BUILT_IN_ASAN_HANDLE_NO_RETURN): New builtin.
* sanitizer.def (BUILT_IN_ASAN_HANDLE_NO_RETURN): New builtin. * asan.c (instrument_builtin_call): Change is_gimple_builtin_call gcc_assert to gcc_checking_assert. (maybe_instrument_call): Imit __builtin___asan_handle_no_return () before noreturn calls other than __builtin_trap () and __builtin_unreachable (). * c-c++-common/asan/clone-test-1.c: Remove bogus dg-shouldfail. From-SVN: r194390
Diffstat (limited to 'gcc/sanitizer.def')
-rw-r--r--gcc/sanitizer.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/sanitizer.def b/gcc/sanitizer.def
index 1739e7a..0e5a9cb 100644
--- a/gcc/sanitizer.def
+++ b/gcc/sanitizer.def
@@ -55,6 +55,9 @@ DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REGISTER_GLOBALS,
DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_UNREGISTER_GLOBALS,
"__asan_unregister_globals",
BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
+DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_HANDLE_NO_RETURN,
+ "__asan_handle_no_return",
+ BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
/* Thread Sanitizer */
DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_INIT, "__tsan_init",