Blame SOURCES/jsproperty-endian.patch

392e97
From a95105b7846c29c5bd3868719621ab3679d9932b Mon Sep 17 00:00:00 2001
392e97
From: rpm-build <rpm-build>
392e97
Date: Sat, 7 Sep 2019 21:45:58 +0200
392e97
Subject: [PATCH] jsproperty-endian.patch
392e97
392e97
Bug 1543659 - fix JSPropertySpec::ValueWrapper on 64-bit big-endian platforms
392e97
392e97
Add some padding to make the union's int32 member correspond to the
392e97
low-order bits of the string member.  This fixes TypedArray tests on
392e97
s390x.
392e97
---
392e97
 js/src/jsapi.h | 7 +++++++
392e97
 1 file changed, 7 insertions(+)
392e97
392e97
diff --git a/js/src/jsapi.h b/js/src/jsapi.h
392e97
index 0f11787f6..f1c084f6a 100644
392e97
--- a/js/src/jsapi.h
392e97
+++ b/js/src/jsapi.h
392e97
@@ -1581,7 +1581,14 @@ struct JSPropertySpec {
392e97
     uintptr_t type;
392e97
     union {
392e97
       const char* string;
392e97
+#if MOZ_BIG_ENDIAN && JS_BITS_PER_WORD == 64
392e97
+      struct {
392e97
+        uint32_t padding;
392e97
+        int32_t int32;
392e97
+      };
392e97
+#else
392e97
       int32_t int32;
392e97
+#endif
392e97
     };
392e97
   };
392e97
 
392e97
-- 
392e97
2.23.0
392e97