diff options
author | Dan Horák <dan@danny.cz> | 2019-07-09 13:27:42 +0200 |
---|---|---|
committer | Dan Horák <dan@danny.cz> | 2019-07-09 13:27:42 +0200 |
commit | 12ce2e0048b0845bdc8f6898d35b0b7d0798182f (patch) | |
tree | 10b77793c2838f5fa315806f1e193e433daa84f1 /mozilla-1512162.patch | |
parent | Updated to build 3 (diff) | |
download | librewolf-fedora-ff-12ce2e0048b0845bdc8f6898d35b0b7d0798182f.tar.gz librewolf-fedora-ff-12ce2e0048b0845bdc8f6898d35b0b7d0798182f.tar.bz2 librewolf-fedora-ff-12ce2e0048b0845bdc8f6898d35b0b7d0798182f.zip |
- Fix crash on ppc64le (mozilla#1512162)
Diffstat (limited to 'mozilla-1512162.patch')
-rw-r--r-- | mozilla-1512162.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mozilla-1512162.patch b/mozilla-1512162.patch new file mode 100644 index 0000000..a246a3e --- /dev/null +++ b/mozilla-1512162.patch @@ -0,0 +1,26 @@ +diff --git a/js/xpconnect/src/XPCWrappedNative.cpp b/js/xpconnect/src/XPCWrappedNative.cpp +--- a/js/xpconnect/src/XPCWrappedNative.cpp ++++ b/js/xpconnect/src/XPCWrappedNative.cpp +@@ -1157,6 +1157,10 @@ + return helper.get().Call(); + } + ++#if (__GNUC__ && __linux__ && __PPC64__ && _LITTLE_ENDIAN) ++// Work around a compiler bug on ppc64le (bug 1512162). ++__attribute__ ((noinline,noclone)) ++#endif + bool CallMethodHelper::Call() { + mCallContext.SetRetVal(JS::UndefinedValue()); + +@@ -1315,6 +1319,10 @@ + return true; + } + ++#if (__GNUC__ && __linux__ && __PPC64__ && _LITTLE_ENDIAN) ++// Work around a compiler bug on ppc64le (bug 1512162). ++__attribute__ ((noinline,noclone)) ++#endif + bool CallMethodHelper::GatherAndConvertResults() { + // now we iterate through the native params to gather and convert results + uint8_t paramCount = mMethodInfo->GetParamCount(); + |