summaryrefslogtreecommitdiff
path: root/dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-07 01:56:04 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-07 01:56:04 +0100
commit854735ef34c730eec54571f1d694a68c10e21c81 (patch)
treec2b0e2fef394452b1e1fb8a371dfbb948b2fca6c /dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch
parent533feecd029facba89f4a4a6c754ccfd5baec747 (diff)
dev-lang/spidermonkey : import from gentoo, compile with clang-12
Diffstat (limited to 'dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch')
-rw-r--r--dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch b/dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch
new file mode 100644
index 00000000..c7eb0f62
--- /dev/null
+++ b/dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch
@@ -0,0 +1,24 @@
+From 311fc467219ab6ee9eed60759b58a8066c4bf36d Mon Sep 17 00:00:00 2001
+From:
+Date: Thu, 25 Jul 2019 10:00:33 -0500
+Subject: [PATCH] gcc-9 overflow fix
+
+---
+ js/src/jsapi-tests/testPrintf.cpp | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/js/src/jsapi-tests/testPrintf.cpp b/js/src/jsapi-tests/testPrintf.cpp
+index 51486856..03cc118d 100644
+--- a/js/src/jsapi-tests/testPrintf.cpp
++++ b/js/src/jsapi-tests/testPrintf.cpp
+@@ -55,7 +55,6 @@ BEGIN_TEST(testPrintf)
+ CHECK(print_one("27270", "%zu", (size_t) 27270));
+ CHECK(print_one("27270", "%" PRIuSIZE, (size_t) 27270));
+ CHECK(print_one("hello", "he%so", "ll"));
+- CHECK(print_one("(null)", "%s", zero()));
+ CHECK(print_one("0", "%p", (char *) 0));
+ CHECK(print_one("h", "%c", 'h'));
+ CHECK(print_one("1.500000", "%f", 1.5f));
+--
+2.22.0
+