aboutsummaryrefslogtreecommitdiff
path: root/gcc/sanitizer.def
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-12-11 11:28:35 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2012-12-11 11:28:35 +0100
commit68a9738af04f4c9fdf37aa48cf16b535eef16c46 (patch)
tree007614e41453c6215b782fce18607934e878b4f2 /gcc/sanitizer.def
parent2b2571c99c923e306bd322533baac4ed4a3b603c (diff)
downloadgcc-68a9738af04f4c9fdf37aa48cf16b535eef16c46.zip
gcc-68a9738af04f4c9fdf37aa48cf16b535eef16c46.tar.gz
gcc-68a9738af04f4c9fdf37aa48cf16b535eef16c46.tar.bz2
sanitizer.def: Add comment about importance of ordering of BUILT_IN_ASAN_REPORT* builtins.
* sanitizer.def: Add comment about importance of ordering of BUILT_IN_ASAN_REPORT* builtins. * cfgcleanup.c (old_insns_match_p): Don't cross-jump __asan_report_* builtins. From-SVN: r194391
Diffstat (limited to 'gcc/sanitizer.def')
-rw-r--r--gcc/sanitizer.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/sanitizer.def b/gcc/sanitizer.def
index 0e5a9cb..fee8f13 100644
--- a/gcc/sanitizer.def
+++ b/gcc/sanitizer.def
@@ -29,6 +29,8 @@ along with GCC; see the file COPYING3. If not see
/* Address Sanitizer */
DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_INIT, "__asan_init",
BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
+/* Do not reorder the BUILT_IN_ASAN_REPORT* builtins, e.g. cfgcleanup.c
+ relies on this order. */
DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD1, "__asan_report_load1",
BT_FN_VOID_PTR, ATTR_NORETURN_NOTHROW_LEAF_LIST)
DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD2, "__asan_report_load2",