From owner-freebsd-stable Tue Oct 3 13: 0:51 2000 Delivered-To: freebsd-stable@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id C864337B66D; Tue, 3 Oct 2000 13:00:47 -0700 (PDT) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id NAA07974; Tue, 3 Oct 2000 13:00:47 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda07972; Tue Oct 3 13:00:40 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.0/8.9.1) id e93K0dI10137; Tue, 3 Oct 2000 13:00:39 -0700 (PDT) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdo10123; Tue Oct 3 13:00:01 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.0/8.9.1) id e93K01c12859; Tue, 3 Oct 2000 13:00:01 -0700 (PDT) Message-Id: <200010032000.e93K01c12859@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdA12850; Tue Oct 3 12:59:52 2000 X-Mailer: exmh version 2.1.1 10/15/1999 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.1-RELEASE X-Sender: cy To: John Baldwin Cc: Cy Schubert - ITSD Open Systems Group , freebsd-stable@FreeBSD.ORG Subject: Re: Strange GCC Error In-reply-to: Your message of "Mon, 02 Oct 2000 16:33:09 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Oct 2000 12:59:52 -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , John Baldwin writes: > > 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. Thanks. That did the trick. I'll update my update to the PGP6 port accordingly, after appropriate testing of course. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message