From owner-svn-ports-head@FreeBSD.ORG Tue Sep 16 12:40:30 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8CA09D25; Tue, 16 Sep 2014 12:40:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 784C57D5; Tue, 16 Sep 2014 12:40:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8GCeUYE044220; Tue, 16 Sep 2014 12:40:30 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8GCeUsb044219; Tue, 16 Sep 2014 12:40:30 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201409161240.s8GCeUsb044219@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Tue, 16 Sep 2014 12:40:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r368308 - head/devel/orc/files X-SVN-Group: ports-head 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.18-1 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, 16 Sep 2014 12:40:30 -0000 Author: sbruno Date: Tue Sep 16 12:40:29 2014 New Revision: 368308 URL: http://svnweb.freebsd.org/changeset/ports/368308 QAT: https://qat.redports.org/buildarchive/r368308/ Log: Fixup for qemu assisted builds. This float handling seems to be an unhandled qemu bug, but the code itself is arguably wrong as well. Apply this patch atop the tar ball and move on. Phabric: https://reviews.freebsd.org/D746 Submitted by: nox Reviewed by: kwm Approved by: bapt (mentor) Added: head/devel/orc/files/patch-orc-orcprogram-c.c (contents, props changed) Added: head/devel/orc/files/patch-orc-orcprogram-c.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/orc/files/patch-orc-orcprogram-c.c Tue Sep 16 12:40:29 2014 (r368308) @@ -0,0 +1,15 @@ +# This works around a fatal error in qemu-bsd-user dealing with floats in a +# very complex way. This is arguably a bug in this code too, but for now +# patch around it so that we can get ports building via qemu-bsd-user and +# get more testing. sbruno 16SEP2014 +--- orc/orcprogram-c.c.orig ++++ orc/orcprogram-c.c +@@ -823,7 +823,7 @@ c_rule_loadpX (OrcCompiler *p, void *use + ORC_ASM_CODE(p," %s = (int)0x%08x; /* %d or %gf */\n", dest, + (unsigned int)p->vars[insn->src_args[0]].value.i, + (int)p->vars[insn->src_args[0]].value.i, +- p->vars[insn->src_args[0]].value.f); ++ p->vars[insn->src_args[0]].value.x2f[0]); + } else { + ORC_ASM_CODE(p," %s = ORC_UINT64_C(0x%08x%08x); /* %gf */\n", dest, + (orc_uint32)(((orc_uint64)p->vars[insn->src_args[0]].value.i)>>32),