summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2016-01-19 14:23:31 +0000
committersunpoet <sunpoet@FreeBSD.org>2016-01-19 14:23:31 +0000
commitfcf28abfe1664b92b47f1ca9e1fd04b3ffd31cc6 (patch)
treeb7571b4fac33d10ef62c9f9e7f7ea4755f81ae1a
parent0d402668f83c435f64bf346b43610285c01acdb3 (diff)
downloadFreeBSD-ports-fcf28abfe1664b92b47f1ca9e1fd04b3ffd31cc6.zip
FreeBSD-ports-fcf28abfe1664b92b47f1ca9e1fd04b3ffd31cc6.tar.gz
- Fix build with Clang 3.7.0+
PR: 206332 Submitted by: dim
-rw-r--r--lang/v8-devel/files/patch-src-x64-disasm-x64.cc11
-rw-r--r--lang/v8-devel/files/patch-src-x64-ic-x64.cc12
2 files changed, 23 insertions, 0 deletions
diff --git a/lang/v8-devel/files/patch-src-x64-disasm-x64.cc b/lang/v8-devel/files/patch-src-x64-disasm-x64.cc
new file mode 100644
index 0000000..eb3d887
--- /dev/null
+++ b/lang/v8-devel/files/patch-src-x64-disasm-x64.cc
@@ -0,0 +1,11 @@
+--- src/x64/disasm-x64.cc.orig 2016-01-17 13:52:37 UTC
++++ src/x64/disasm-x64.cc
+@@ -1894,7 +1894,7 @@ void Disassembler::Disassemble(FILE* f,
+ buffer[0] = '\0';
+ byte* prev_pc = pc;
+ pc += d.InstructionDecode(buffer, pc);
+- fprintf(f, "%p", prev_pc);
++ fprintf(f, "%p", reinterpret_cast<void*>(prev_pc));
+ fprintf(f, " ");
+
+ for (byte* bp = prev_pc; bp < pc; bp++) {
diff --git a/lang/v8-devel/files/patch-src-x64-ic-x64.cc b/lang/v8-devel/files/patch-src-x64-ic-x64.cc
new file mode 100644
index 0000000..e39c3ca
--- /dev/null
+++ b/lang/v8-devel/files/patch-src-x64-ic-x64.cc
@@ -0,0 +1,12 @@
+--- src/x64/ic-x64.cc.orig 2016-01-17 13:52:46 UTC
++++ src/x64/ic-x64.cc
+@@ -1283,7 +1283,8 @@ void PatchInlinedSmiCode(Address address
+ uint8_t delta = *reinterpret_cast<uint8_t*>(delta_address);
+ if (FLAG_trace_ic) {
+ PrintF("[ patching ic at %p, test=%p, delta=%d\n",
+- address, test_instruction_address, delta);
++ reinterpret_cast<void*>(address),
++ reinterpret_cast<void*>(test_instruction_address), delta);
+ }
+
+ // Patch with a short conditional jump. Enabling means switching from a short
OpenPOWER on IntegriCloud