From owner-svn-ports-head@freebsd.org Tue Jun 19 21:46:27 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7E521010CEE; Tue, 19 Jun 2018 21:46:27 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6644377800; Tue, 19 Jun 2018 21:46:27 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 40AB719562; Tue, 19 Jun 2018 21:46:27 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5JLkQfL046352; Tue, 19 Jun 2018 21:46:26 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5JLkQgx046351; Tue, 19 Jun 2018 21:46:26 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201806192146.w5JLkQgx046351@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Tue, 19 Jun 2018 21:46:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r472824 - in head/lang/v8: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/lang/v8: . files X-SVN-Commit-Revision: 472824 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2018 21:46:27 -0000 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 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 StubCompiler::GetCodeWithFl + Handle name) { + return (FLAG_print_code_stubs && !name.is_null() && name->IsString()) + ? GetCodeWithFlags(flags, *Handle::cast(name)->ToCString()) +- : GetCodeWithFlags(flags, reinterpret_cast(NULL)); ++ : GetCodeWithFlags(flags, static_cast(NULL)); + } + +