Ticket #4053: tmpfixgcsegfault.patch

File tmpfixgcsegfault.patch, 1.5 KB (added by echotangoecho, 8 years ago)
  • libraries/source/spidermonkey/FixGCSegfault.diff

     
     1diff --git a/js/src/configure b/js/src/configure
     2--- a/js/src/configure
     3+++ b/js/src/configure
     4@@ -8886,11 +8886,11 @@ if test "$GNU_CC"; then
     5     if test -z "$DEVELOPER_OPTIONS"; then
     6         CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
     7         CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections"
     8     fi
     9     CFLAGS="$CFLAGS -fno-math-errno"
     10-    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
     11+    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno -fno-delete-null-pointer-checks"
     12 fi
     13 
     14 
     15 # Check whether --enable-icf or --disable-icf was given.
     16 if test "${enable_icf+set}" = set; then
  • libraries/source/spidermonkey/patch.sh

    patch -p1 -i ../FixForOfBailouts.diff  
    2121patch -p1 -i ../FixBug1021171.diff
    2222patch -p1 -i ../FixBug1119228.diff
    2323
    2424# Fix debug build failure on platforms with Ion disabled (eg AArch64)
    2525patch -p1 -i ../FixBug1037470.diff
     26
     27# Temporary fix for segfault occurring in the GC when built with GCC 6
     28patch -p1 -i ../FixGCSegfault.diff