From faf5bbda6a6d129d14fa4aa2c685f661b0c700256b995929b6a93e9c1517e22b Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Sun, 9 Oct 2022 20:45:53 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=1006 --- mozilla-bmo531915.patch | 10 +++++++--- mozilla-i686-build.patch | 25 ++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/mozilla-bmo531915.patch b/mozilla-bmo531915.patch index 52235040..faa32980 100644 --- a/mozilla-bmo531915.patch +++ b/mozilla-bmo531915.patch @@ -1,11 +1,11 @@ # HG changeset patch # User Wolfgang Rosenauer -# Parent bf1b6555518cfc5ea794a63078739cdf0bd8c73d +# Parent 5573047016750e02413781dac0ac4c2361946ed2 diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h --- a/modules/fdlibm/src/math_private.h +++ b/modules/fdlibm/src/math_private.h -@@ -25,17 +25,21 @@ +@@ -25,19 +25,24 @@ #include "fdlibm.h" @@ -16,14 +16,18 @@ diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private +#ifdef __i386__ +typedef long double __double_t; ++typedef long double __float_t; +#else typedef double __double_t; ++typedef float __float_t; +#endif typedef __double_t double_t; - typedef float __float_t; +-typedef float __float_t; typedef __float_t float_t; /* * The original fdlibm code used statements like: * n0 = ((*(int*)&one)>>29)^1; * index of high word * * ix0 = *(n0+(int*)&x); * high word of x * + * ix1 = *((1-n0)+(int*)&x); * low word of x * + * to dig two 32 bit words out of the 64 bit IEEE floating point diff --git a/mozilla-i686-build.patch b/mozilla-i686-build.patch index f30d7f50..7a56e00e 100644 --- a/mozilla-i686-build.patch +++ b/mozilla-i686-build.patch @@ -1,7 +1,30 @@ # HG changeset patch # User Wolfgang Rosenauer -# Parent 265eaf654a30dd08d5d35428fde308ccdb6142ec +# Parent 63af48397aee6985bb8d711bd918a201e5c8c282 +# References: bmo#1792159 - Add missing includes to AtomicOperationsGenerated.h +diff --git a/js/src/jit/GenerateAtomicOperations.py b/js/src/jit/GenerateAtomicOperations.py +--- a/js/src/jit/GenerateAtomicOperations.py ++++ b/js/src/jit/GenerateAtomicOperations.py +@@ -702,16 +702,18 @@ HEADER_TEMPLATE = """\ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + + #ifndef jit_AtomicOperationsGenerated_h + #define jit_AtomicOperationsGenerated_h + + /* This file is generated by jit/GenerateAtomicOperations.py. Do not edit! */ + ++#include "mozilla/Attributes.h" ++ + namespace js { + namespace jit { + + %(contents)s + + } // namespace jit + } // namespace js + diff --git a/mozglue/misc/SIMD_avx2.cpp b/mozglue/misc/SIMD_avx2.cpp --- a/mozglue/misc/SIMD_avx2.cpp +++ b/mozglue/misc/SIMD_avx2.cpp