mozilla-disable-wasm-emulate-arm-unaligned-fp-access.patch
branchfirefox93
changeset 1164 bb219fd0d646
parent 1163 849d6343405b
child 1165 e009fde1282b
equal deleted inserted replaced
1163:849d6343405b 1164:bb219fd0d646
     1 # HG changeset patch
       
     2 # Parent  9bc02ee6567ae3f1dad1f8578e650c0a1faa0179
       
     3 
       
     4 diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp
       
     5 --- a/js/src/wasm/WasmSignalHandlers.cpp
       
     6 +++ b/js/src/wasm/WasmSignalHandlers.cpp
       
     7 @@ -240,17 +240,17 @@ using mozilla::DebugOnly;
       
     8  // Those definitions are however not present in the headers of every Linux
       
     9  // distro - Raspbian is known to be a problem, for example.  However those
       
    10  // distros are tier-3 platforms.
       
    11  //
       
    12  // If you run into compile problems on a tier-3 platform, you can disable the
       
    13  // emulation here.
       
    14  
       
    15  #if defined(__linux__) && defined(__arm__)
       
    16 -#  define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
       
    17 +// #  define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
       
    18  #endif
       
    19  
       
    20  #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
       
    21  #  include <sys/user.h>
       
    22  #endif
       
    23  
       
    24  #if defined(ANDROID)
       
    25  // Not all versions of the Android NDK define ucontext_t or mcontext_t.