1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-14 07:30:21 +00:00

Disallow UNALIGNED_FETCH_OK on ARM, not LINUX. (#258)

UNALIGNED_FETCH_OK shouldn't be set for an entire OS, but
based on the CPU architecture.

Some ARM systems don't allow unaligned reads. x86 and x86_64
do, so update how we configure this.
This commit is contained in:
Bruce Mitchener 2021-01-21 09:26:47 +07:00 committed by GitHub
parent 819f1c6c0a
commit 0010a02cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ error Must specify RELEASE to build Medley.
/* Not all platforms want to do unaligned reads, so
* we will disable those here. */
#if defined(MAIKO_ARCH_SPARC)
#if defined(MAIKO_ARCH_SPARC) || defined(MAIKO_ARCH_ARM)
#undef UNALIGNED_FETCH_OK
#endif
@ -232,17 +232,6 @@ error Must specify RELEASE to build Medley.
/********************************************************/
/* */
/********************************************************/
#ifdef LINUX
/* LINUX, the free POSIX-compliant Unix */
#undef UNALIGNED_FETCH_OK
#endif /* LINUX */
/********************************************************/
/* */
/********************************************************/