aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2020-07-22 21:32:34 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2020-07-22 21:32:34 +0900
commit7bf5edc4f2f225cf5d7030ff824fd3944735bbf9 (patch)
tree5cad65cd24944f70df99a581f1c267dae618d5d6
parent7423582705d6c9d71e1caf8a1f892e8995bcd63e (diff)
downloadportable-7bf5edc4f2f225cf5d7030ff824fd3944735bbf9.tar.gz
portable-7bf5edc4f2f225cf5d7030ff824fd3944735bbf9.tar.bz2
portable-7bf5edc4f2f225cf5d7030ff824fd3944735bbf9.zip
Add architecture define for s390/s390x and remove redundant sparc check
-rw-r--r--configure.ac1
-rw-r--r--include/compat/machine/endian.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index acfe307..75b88fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,7 +76,6 @@ AC_ARG_ENABLE([tests],
76AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) 76AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes])
77 77
78AS_CASE([$host_cpu], 78AS_CASE([$host_cpu],
79 [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"],
80 [*arm*], [host_cpu=arm], 79 [*arm*], [host_cpu=arm],
81 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], 80 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel],
82 [i?86], [HOSTARCH=intel], 81 [i?86], [HOSTARCH=intel],
diff --git a/include/compat/machine/endian.h b/include/compat/machine/endian.h
index 54267a8..4dcb60d 100644
--- a/include/compat/machine/endian.h
+++ b/include/compat/machine/endian.h
@@ -41,6 +41,7 @@
41#define __STRICT_ALIGNMENT 41#define __STRICT_ALIGNMENT
42#if defined(__i386) || defined(__i386__) || \ 42#if defined(__i386) || defined(__i386__) || \
43 defined(__x86_64) || defined(__x86_64__) || \ 43 defined(__x86_64) || defined(__x86_64__) || \
44 defined(__s390__) || defined(__s390x__) || \
44 defined(__aarch64__) || \ 45 defined(__aarch64__) || \
45 ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6) 46 ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6)
46#undef __STRICT_ALIGNMENT 47#undef __STRICT_ALIGNMENT