summaryrefslogtreecommitdiffstats
path: root/http/firefox/patches/2006_pgo_gcc_spellchecker.patch
diff options
context:
space:
mode:
Diffstat (limited to 'http/firefox/patches/2006_pgo_gcc_spellchecker.patch')
-rw-r--r--http/firefox/patches/2006_pgo_gcc_spellchecker.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/http/firefox/patches/2006_pgo_gcc_spellchecker.patch b/http/firefox/patches/2006_pgo_gcc_spellchecker.patch
new file mode 100644
index 0000000000..2ecfa46b4d
--- /dev/null
+++ b/http/firefox/patches/2006_pgo_gcc_spellchecker.patch
@@ -0,0 +1,21 @@
+# HG changeset patch
+# Parent dad467be4860095b6bd0efdf58e60e975e12d3c5
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88561
+
+diff --git a/extensions/spellcheck/src/moz.build b/extensions/spellcheck/src/moz.build
+--- a/extensions/spellcheck/src/moz.build
++++ b/extensions/spellcheck/src/moz.build
+@@ -26,8 +26,13 @@ LOCAL_INCLUDES += [
+ ]
+ EXPORTS.mozilla += [
+ 'mozInlineSpellChecker.h',
+ 'mozSpellChecker.h',
+ ]
+
+ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
+ CXXFLAGS += ['-Wno-error=shadow']
++
++# spell checker triggers bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88561
++# in gcc 7 and 8. It will be fixed in GCC 7.5 and 8.3
++if CONFIG['CC_TYPE'] in ('gcc'):
++ CXXFLAGS += ['-fno-devirtualize']