aboutsummaryrefslogtreecommitdiff
path: root/gcc/asan.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/asan.h')
-rw-r--r--gcc/asan.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/asan.h b/gcc/asan.h
index 590cf35..699820b 100644
--- a/gcc/asan.h
+++ b/gcc/asan.h
@@ -1,5 +1,5 @@
/* AddressSanitizer, a fast memory error detector.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011, 2012 Free Software Foundation, Inc.
Contributed by Kostya Serebryany <kcc@google.com>
This file is part of GCC.
@@ -23,4 +23,8 @@ along with GCC; see the file COPYING3. If not see
extern void asan_finish_file(void);
+/* Shadow memory is found at
+ (address >> ASAN_SHADOW_SHIFT) | targetm.asan_shadow_offset (). */
+#define ASAN_SHADOW_SHIFT 3
+
#endif /* TREE_ASAN */