Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2018 21:46:26 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r472824 - in head/lang/v8: . files
Message-ID:  <201806192146.w5JLkQgx046351@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Jun 19 21:46:26 2018
New Revision: 472824
URL: https://svnweb.freebsd.org/changeset/ports/472824

Log:
  Fix build with Clang 6
  
  PR:		228320
  Submitted by:	Matthew Grooms <mgrooms@shrew.net>

Added:
  head/lang/v8/files/extra-patch-src-stub-cache.cc   (contents, props changed)
Modified:
  head/lang/v8/Makefile

Modified: head/lang/v8/Makefile
==============================================================================
--- head/lang/v8/Makefile	Tue Jun 19 21:08:33 2018	(r472823)
+++ head/lang/v8/Makefile	Tue Jun 19 21:46:26 2018	(r472824)
@@ -39,6 +39,10 @@ CXXFLAGS+=	-Wno-unused-const-variable
 CXXFLAGS+=	-Wno-tautological-undefined-compare
 .if ${COMPILER_VERSION} >= 36
 CXXFLAGS+=	-Wno-unused-local-typedef
+.if ${COMPILER_VERSION} >= 60
+CXXFLAGS+=	-Wno-null-pointer-arithmetic -Wno-vexing-parse
+EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-src-stub-cache.cc
+.endif
 .endif
 .endif
 .endif

Added: head/lang/v8/files/extra-patch-src-stub-cache.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/v8/files/extra-patch-src-stub-cache.cc	Tue Jun 19 21:46:26 2018	(r472824)
@@ -0,0 +1,11 @@
+--- src/stub-cache.cc.orig	2013-05-01 12:56:29 UTC
++++ src/stub-cache.cc
+@@ -1474,7 +1474,7 @@ Handle<Code> StubCompiler::GetCodeWithFl
+                                             Handle<Name> name) {
+   return (FLAG_print_code_stubs && !name.is_null() && name->IsString())
+       ? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString())
+-      : GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL));
++      : GetCodeWithFlags(flags, static_cast<char*>(NULL));
+ }
+ 
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806192146.w5JLkQgx046351>