Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2014 12:40:30 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r368308 - head/devel/orc/files
Message-ID:  <201409161240.s8GCeUsb044219@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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),



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