From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: [PATCH 1/1] Add "&" asm constraint modifier to ASM_MUL outputs Date: Fri, 19 Sep 2014 17:42:28 -0500 Message-ID: <1411166548-28853-1-git-send-email-rlb@defaultvalue.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411166574 7205 80.91.229.3 (19 Sep 2014 22:42:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 22:42:54 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Sep 20 00:42:48 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XV6t5-000463-St for guile-devel@m.gmane.org; Sat, 20 Sep 2014 00:42:47 +0200 Original-Received: from localhost ([::1]:60950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV6t5-0001mq-Ib for guile-devel@m.gmane.org; Fri, 19 Sep 2014 18:42:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV6sy-0001lm-Sy for guile-devel@gnu.org; Fri, 19 Sep 2014 18:42:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XV6st-0002LK-AH for guile-devel@gnu.org; Fri, 19 Sep 2014 18:42:40 -0400 Original-Received: from defaultvalue.org ([70.85.129.156]:41102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV6st-0002Hk-5B for guile-devel@gnu.org; Fri, 19 Sep 2014 18:42:35 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id BC36A202D2 for ; Fri, 19 Sep 2014 17:42:28 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 1A07314E189; Fri, 19 Sep 2014 17:42:28 -0500 (CDT) X-Mailer: git-send-email 2.1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 70.85.129.156 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17490 Archived-At: Without this change, building for arm{hf,el} with gcc-4.9 (Debian 4.9.1-14) fails as follows: /tmp/ccdZTkXQ.s:14591: rdhi, rdlo and rm must all be different Thanks to Mark H Weaver for the suggestion. --- This should apply against 2.0.11. libguile/vm-i-scheme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libguile/vm-i-scheme.c b/libguile/vm-i-scheme.c index 587aa95..35e618b 100644 --- a/libguile/vm-i-scheme.c +++ b/libguile/vm-i-scheme.c @@ -363,7 +363,7 @@ VM_DEFINE_FUNCTION (149, ge, "ge?", 2) { \ scm_t_signed_bits rlo, rhi; \ asm ("smull %0, %1, %2, %3\n" \ - : "=r" (rlo), "=r" (rhi) \ + : "=&r" (rlo), "=&r" (rhi) \ : "r" (SCM_UNPACK (x) - scm_tc2_int), \ "r" (SCM_I_INUM (y))); \ if (SCM_LIKELY (SCM_SRS (rlo, 31) == rhi)) \ -- 2.1.0