FreeBSD Bugzilla – Attachment 221660 Details for
Bug 252720
powerpc64 gcc toolchain missing __BYTE_ORDER__ et. al.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Avoid __BYTE_ORDER__
patch.diff (text/plain), 1.40 KB, created by
Julio Merino,+1 347 694 0576,New York City
on 2021-01-17 05:44:35 UTC
(
hide
)
Description:
Avoid __BYTE_ORDER__
Filename:
MIME Type:
Creator:
Julio Merino,+1 347 694 0576,New York City
Created:
2021-01-17 05:44:35 UTC
Size:
1.40 KB
patch
obsolete
>diff --git a/contrib/elftoolchain/libelf/_libelf_config.h b/contrib/elftoolchain/libelf/_libelf_config.h >index 05869757f66..c26b7446bdd 100644 >--- a/contrib/elftoolchain/libelf/_libelf_config.h >+++ b/contrib/elftoolchain/libelf/_libelf_config.h >@@ -94,7 +94,7 @@ > #elif defined(__powerpc64__) > > #define LIBELF_ARCH EM_PPC64 >-#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ >+#if __LITTLE_ENDIAN__ > #define LIBELF_BYTEORDER ELFDATA2LSB > #else > #define LIBELF_BYTEORDER ELFDATA2MSB >diff --git a/contrib/libucl/src/mum.h b/contrib/libucl/src/mum.h >index 9c719e51553..230bef08156 100644 >--- a/contrib/libucl/src/mum.h >+++ b/contrib/libucl/src/mum.h >@@ -169,9 +169,9 @@ _mum (uint64_t v, uint64_t p) { > > static inline uint64_t > _mum_le (uint64_t v) { >-#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ || !defined(MUM_TARGET_INDEPENDENT_HASH) >+#if __LITTLE_ENDIAN__ || !defined(MUM_TARGET_INDEPENDENT_HASH) > return v; >-#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ >+#elif __BIG_ENDIAN__ > return _mum_bswap64 (v); > #else > #error "Unknown endianess" >@@ -180,9 +180,9 @@ _mum_le (uint64_t v) { > > static inline uint32_t > _mum_le32 (uint32_t v) { >-#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ || !defined(MUM_TARGET_INDEPENDENT_HASH) >+#if __LITTLE_ENDIAN__ || !defined(MUM_TARGET_INDEPENDENT_HASH) > return v; >-#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ >+#elif __BIG_ENDIAN__ > return _mum_bswap32 (v); > #else > #error "Unknown endianess"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252720
: 221660