From owner-freebsd-stable Mon Oct 2 16:33:12 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.rdc1.va.home.com (ha1.rdc1.va.home.com [24.2.32.66]) by hub.freebsd.org (Postfix) with ESMTP id 1BE9237B680 for ; Mon, 2 Oct 2000 16:33:10 -0700 (PDT) Received: from laptop.baldwin.cx ([24.6.244.187]) by mail.rdc1.va.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001002233308.IJOS26082.mail.rdc1.va.home.com@laptop.baldwin.cx>; Mon, 2 Oct 2000 16:33:08 -0700 Content-Length: 1643 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200009300341.e8U3ffP48330@cwsys.cwsent.com> Date: Mon, 02 Oct 2000 16:33:09 -0700 (PDT) From: John Baldwin To: Cy Schubert - ITSD Open Systems Group Subject: RE: Strange GCC Error Cc: freebsd-stable@FreeBSD.ORG Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 30-Sep-00 Cy Schubert - ITSD Open Systems Group wrote: > I've been working on a PGP 6.5.8 port, however I get the following: > > gcc -O -pipe -DPGP_UNIX=1 -DPGP_COMPILER_GCC=1 -DHAVE_CONFIG_H > -DPGP_DEBUG=1 -DUNFINISHED_CODE_ALLOWED=1 -DUSE_PGP_LEAKS=1 > -I../../.././unix -I../../.././pub/include -I../../.././priv/include > -I../../.././priv/include/opaque -I../../.././priv/external/unix/bsafe/i > nclude/unknown -I../../.././../pfl/common -I../../.././../pfl/common/pre > fs -I../../.././../pfl/common/file -I../../.././../pfl/common/util > -I../../.././../pfl/common/lthread -I../../.././../pfl/common/sorting > -I../../.././../pfl/unix -I. -c -o pgpRandomPool.o pgpRandomPool.c > pgpRandomPool.c: In function `pgpGlobalRandomPoolEntropyWasAdded': > pgpRandomPool.c:470: Invalid `asm' statement: > pgpRandomPool.c:470: fixed or forbidden register 0 (ax) was spilled for > class AREG. > pgpRandomPool.c: In function `sRandAddKeyEntropy': > pgpRandomPool.c:870: Invalid `asm' statement: > pgpRandomPool.c:870: fixed or forbidden register 0 (ax) was spilled for > class AREG. > gmake[4]: *** [pgpRandomPool.o] Error 1 > > It appears that the following statement is the culprit: > >#define UMULH_32(r,a,b) __asm__("mull %2" : "=d"(r) : "%a"(a), "mr"(b) >: "ax") Take out the final ': "ax"'. The %ax (or rather, since it is a mull, %eax) register is already used due to the constraint on the 'a' parameter. > Anyone seen this before? -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message