Date: Mon, 13 Jun 2016 18:54:13 +0000 (UTC) From: Michael Gmelin <grembo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416855 - head/lang/beignet/files Message-ID: <201606131854.u5DIsD5X037029@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: grembo Date: Mon Jun 13 18:54:13 2016 New Revision: 416855 URL: https://svnweb.freebsd.org/changeset/ports/416855 Log: Fix build on CURRENT. This is a bit defensive, static_cast<int> might've cut it as well. Approved by: mentors (implicit) Modified: head/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp Modified: head/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp ============================================================================== --- head/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp Mon Jun 13 16:50:13 2016 (r416854) +++ head/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp Mon Jun 13 18:54:13 2016 (r416855) @@ -1,6 +1,16 @@ ---- backend/src/backend/gen_insn_selection.cpp.orig 2015-08-26 11:57:48.961363000 +0200 -+++ backend/src/backend/gen_insn_selection.cpp 2015-08-26 11:58:15.326657000 +0200 -@@ -1752,11 +1752,11 @@ namespace gbe +Error: No word lists can be found for the language "en_US". +--- backend/src/backend/gen_insn_selection.cpp.orig 2015-12-18 07:34:19.000000000 +0000 ++++ backend/src/backend/gen_insn_selection.cpp 2016-06-13 17:37:52.540024000 +0000 +@@ -1153,7 +1153,7 @@ + SelectionInstruction *insn = this->appendInsn(SEL_OP_JMPI, 0, 1); + insn->src(0) = src; + insn->index = index.value(); +- insn->extra.longjmp = abs(index - origin) > 800; ++ insn->extra.longjmp = index.value() > origin.value() ? (index - origin) > 800 : (origin - index) > 800; + return insn->extra.longjmp ? 2 : 1; + } + +@@ -1752,11 +1752,11 @@ // Boiler plate to initialize the selection library at c++ pre-main static SelectionLibrary *selLib = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606131854.u5DIsD5X037029>