Merge pull request #1818 from glaubitz/arch-support

Add support for multiple currently unsupported architectures (#1818)
This commit is contained in:
matt335672 2021-03-04 10:14:51 +00:00 committed by GitHub
commit e1586a76ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,8 @@ typedef int bool_t;
#if !(defined(L_ENDIAN) || defined(B_ENDIAN)) #if !(defined(L_ENDIAN) || defined(B_ENDIAN))
#if defined(__sparc__) || \ #if defined(__sparc__) || \
defined(__hppa__) || \ defined(__s390__) || defined (__s390x__) || \
defined(__hppa__) || defined (__m68k__) || \
(defined(__PPC__) && defined(__BIG_ENDIAN__)) || \ (defined(__PPC__) && defined(__BIG_ENDIAN__)) || \
(defined(__ppc__) && defined(__BIG_ENDIAN__)) (defined(__ppc__) && defined(__BIG_ENDIAN__))
#define B_ENDIAN #define B_ENDIAN
@ -77,14 +78,16 @@ typedef int bool_t;
/* check if we need to align data */ /* check if we need to align data */
#if !(defined(NEED_ALIGN) || defined(NO_NEED_ALIGN)) #if !(defined(NEED_ALIGN) || defined(NO_NEED_ALIGN))
#if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \ #if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
defined(__AIX__) || defined(__mips__) || \ defined(__AIX__) || defined(__m68k__) || defined(__mips__) || \
defined(__ia64__) || defined(__arm__) || \ defined(__ia64__) || defined(__arm__) || defined(__sh__) || \
(defined(__PPC__) && defined(__BIG_ENDIAN__)) || \ (defined(__PPC__) && defined(__BIG_ENDIAN__)) || \
(defined(__ppc__) && defined(__BIG_ENDIAN__)) (defined(__ppc__) && defined(__BIG_ENDIAN__))
#define NEED_ALIGN #define NEED_ALIGN
#elif defined(__x86__) || defined(__x86_64__) || \ #elif defined(__x86__) || defined(__x86_64__) || \
defined(__AMD64__) || defined(_M_IX86) || defined (_M_AMD64) || \ defined(__AMD64__) || defined(_M_IX86) || defined (_M_AMD64) || \
defined(__i386__) || defined(__aarch64__) || \ defined(__i386__) || defined(__aarch64__) || \
defined(__PPC__) || defined(__LITTLE_ENDIAN__) || \
defined(__s390__) || defined (__s390x__) || \
defined(__riscv) defined(__riscv)
#define NO_NEED_ALIGN #define NO_NEED_ALIGN
#else #else