mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Avoid build failure when building without -fsanitize=address.
* src/lisp.h (UNALIGNED_LOAD_SIZE): Only use the sanitizer version of the macro when USE_SANITIZER_UNALIGNED_LOAD is defined, avoiding link errors when building without -fsanitize=address.
This commit is contained in:
parent
b9495c3713
commit
8043ba186d
1 changed files with 5 additions and 1 deletions
|
|
@ -5296,8 +5296,12 @@ __lsan_ignore_object (void const *p)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* If built with USE_SANITIZER_UNALIGNED_LOAD defined, use compiler
|
||||
provided ASan functions to perform unaligned loads, allowing ASan
|
||||
to catch bugs which it might otherwise miss. */
|
||||
#if defined HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H \
|
||||
&& defined ADDRESS_SANITIZER
|
||||
&& defined ADDRESS_SANITIZER \
|
||||
&& defined USE_SANITIZER_UNALIGNED_LOAD
|
||||
# include <sanitizer/common_interface_defs.h>
|
||||
# if (SIZE_MAX == UINT64_MAX)
|
||||
# define UNALIGNED_LOAD_SIZE(a, i) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue