From 26b4c8f71f91d22e081b27814782686edde0c90a Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Fri, 1 Jan 2021 10:11:34 +0000 Subject: Revert r559792 to unbreak INDEX and bulk -a It seems a lot of reverse dependencies were missed With hat: portmgr --- lang/spidermonkey185/files/patch-jsstr.cpp | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lang/spidermonkey185/files/patch-jsstr.cpp (limited to 'lang/spidermonkey185/files/patch-jsstr.cpp') diff --git a/lang/spidermonkey185/files/patch-jsstr.cpp b/lang/spidermonkey185/files/patch-jsstr.cpp new file mode 100644 index 000000000000..13ab1ee9f3d4 --- /dev/null +++ b/lang/spidermonkey185/files/patch-jsstr.cpp @@ -0,0 +1,36 @@ +# HG changeset patch +# User Ehsan Akhgari +# Date 1308517488 14400 +# Node ID 284ebc48b2cb8e35dc04482ede700e717d8d214f +# Parent cecc5adfc44068fb6f11b9baa78cb5fddc100b27 +Bug 662961 - Silence the clang warnings issued because of alignment requirements increase when compiling jsstr.cpp; r=Waldo + +--- ./jsstr.cpp.orig 2013-05-26 00:44:33.383765764 +1000 ++++ ./jsstr.cpp 2013-05-26 00:46:35.842211859 +1000 +@@ -3147,7 +3147,7 @@ + */ + #define R(c) { \ + BUILD_LENGTH_AND_FLAGS(1, JSString::FLAT | JSString::ATOMIZED), \ +- { (jschar *)(((char *)(unitStringTable + (c))) + \ ++ { (jschar *)(uintptr_t(unitStringTable + (c)) + \ + offsetof(JSString, inlineStorage)) }, \ + { {(c), 0x00} } } + +@@ -3207,7 +3207,7 @@ + */ + #define R(c) { \ + BUILD_LENGTH_AND_FLAGS(2, JSString::FLAT | JSString::ATOMIZED), \ +- { (jschar *)(((char *)(length2StringTable + (c))) + \ ++ { (jschar *)(uintptr_t(length2StringTable + (c)) + \ + offsetof(JSString, inlineStorage)) }, \ + { {FROM_SMALL_CHAR((c) >> 6), FROM_SMALL_CHAR((c) & 0x3F), 0x00} } } + +@@ -3240,7 +3240,7 @@ + */ + #define R(c) { \ + BUILD_LENGTH_AND_FLAGS(3, JSString::FLAT | JSString::ATOMIZED), \ +- { (jschar *)(((char *)(hundredStringTable + ((c) - 100))) + \ ++ { (jschar *)(uintptr_t(hundredStringTable + ((c) - 100)) + \ + offsetof(JSString, inlineStorage)) }, \ + { {((c) / 100) + '0', ((c) / 10 % 10) + '0', ((c) % 10) + '0', 0x00} } } + -- cgit v1.2.3