Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2000 20:41:16 -0700
From:      Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To:        freebsd-stable@freebsd.org
Subject:   Strange GCC Error
Message-ID:  <200009300341.e8U3ffP48330@cwsys.cwsent.com>

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

Anyone seen this before?


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




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