summaryrefslogtreecommitdiff
path: root/gcc/asan.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/asan.h')
-rw-r--r--gcc/asan.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/asan.h b/gcc/asan.h
index 511da9a5bbc..66f7e901a5a 100644
--- a/gcc/asan.h
+++ b/gcc/asan.h
@@ -43,7 +43,11 @@ extern hash_set <tree> *asan_used_labels;
/* Shadow memory is found at
(address >> ASAN_SHADOW_SHIFT) + asan_shadow_offset (). */
+#if defined(ASAN_SHADOW_SCALE)
+#define ASAN_SHADOW_SHIFT ASAN_SHADOW_SCALE
+#else
#define ASAN_SHADOW_SHIFT 3
+#endif
#define ASAN_SHADOW_GRANULARITY (1UL << ASAN_SHADOW_SHIFT)
/* Red zone size, stack and global variables are padded by ASAN_RED_ZONE_SIZE