summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-06-03 00:22:39 -0500
committerIan Stakenvicius <axs@gentoo.org>2016-06-10 19:55:13 -0400
commite4cd861a39c8552ded3bdfefafbe5d0413ac6990 (patch)
treed0b4d00f43749bd0b0ad3fb5262c500cfb59454c /dev-lang/spidermonkey/files
parentapp-misc/qlcplus: Version bump. (diff)
downloadgentoo-e4cd861a39c8552ded3bdfefafbe5d0413ac6990.tar.gz
gentoo-e4cd861a39c8552ded3bdfefafbe5d0413ac6990.tar.bz2
gentoo-e4cd861a39c8552ded3bdfefafbe5d0413ac6990.zip
dev-lang/spidermonkey: fix building with clang
Gentoo-Bug: https://bugs.gentoo.org/458142 Closes: https://github.com/gentoo/gentoo/pull/1589
Diffstat (limited to 'dev-lang/spidermonkey/files')
-rw-r--r--dev-lang/spidermonkey/files/spidermonkey-17-clang.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-lang/spidermonkey/files/spidermonkey-17-clang.patch b/dev-lang/spidermonkey/files/spidermonkey-17-clang.patch
new file mode 100644
index 000000000000..062bd06b7772
--- /dev/null
+++ b/dev-lang/spidermonkey/files/spidermonkey-17-clang.patch
@@ -0,0 +1,18 @@
+Fix compilation of spidermonkey-17 with clang
+
+Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=458142
+Upstream-Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=887645
+
+b/js/src/js-config.in
+--- a/js/src/jsinterp.cpp 2016-06-03 00:08:04.376312080 -0500
++++ b/js/src/jsinterp.cpp 2016-06-03 00:12:17.740329180 -0500
+@@ -3664,7 +3664,9 @@
+ BEGIN_CASE(JSOP_LEAVEFORLETIN)
+ BEGIN_CASE(JSOP_LEAVEBLOCKEXPR)
+ {
++ #ifdef DEBUG
+ DebugOnly<uint32_t> blockDepth = regs.fp()->blockChain().stackDepth();
++ #endif
+
+ regs.fp()->popBlock(cx);
+