Skip to content

Commit 90dc8bd

Browse files
Disable UBSan alignment check in configure's aligned-access test (#161012)
1 parent 2cf2dd6 commit 90dc8bd

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎configure‎

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎configure.ac‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4466,6 +4466,11 @@ esac
44664466
# check for systems that require aligned memory access
44674467
AC_CACHE_CHECK([aligned memory access is required], [ac_cv_aligned_required],
44684468
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
4469+
#ifdef __has_attribute
4470+
# if __has_attribute(no_sanitize)
4471+
__attribute__((no_sanitize("alignment")))
4472+
# endif
4473+
#endif
44694474
int main(void)
44704475
{
44714476
char s[16];

0 commit comments

Comments
 (0)