diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-01-09 20:37:05 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-01-09 20:37:05 +0000 |
commit | b27ac2c9ddff3364079b4a8c1d08b6f98219cea4 (patch) | |
tree | fd3bb1ebd348fa7ba75b8e507b353928891e0fab /security | |
parent | Activate new ports/devel/str port. (diff) |
Make the inline ASM gcc 2.95 clean.
Notes
Notes:
svn path=/head/; revision=24610
Diffstat (limited to 'security')
-rw-r--r-- | security/pgp5/files/patch-ae | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/pgp5/files/patch-ae b/security/pgp5/files/patch-ae new file mode 100644 index 000000000000..a39611bb87df --- /dev/null +++ b/security/pgp5/files/patch-ae @@ -0,0 +1,19 @@ +--- lib/pgp/random/pgpRndPool.c.orig Sat Aug 9 14:45:13 1997 ++++ lib/pgp/random/pgpRndPool.c Sun Jan 9 12:23:07 2000 +@@ -292,13 +292,14 @@ + * safely underestimated if desired, if a 64-bit product is difficult to + * compute. + * +-* The simplest snd safest definition is ++* The simplest and safest definition is + * #define UMULH_32(r,a,b) (r) = 0 + */ + #ifndef UMULH_32 + #if defined(__GNUC__) && defined(__i386__) + /* Inline asm goodies */ +-#define UMULH_32(r,a,b) __asm__("mull %2" : "=d"(r) : "%a"(a), "mr"(b) : "ax") ++/* WAS: #define UMULH_32(r,a,b) __asm__("mull %2" : "=d"(r) : "%a"(a), "mr"(b) : "ax") */ ++#define UMULH_32(r,a,b) __asm__("mull %2" : "=d"(r), "=a"(a)/*unused, but needed due to new clobberlist restrictions*/ : "%1"(a), "mr"(b)) + #elif HAVE64 + #define UMULH_32(r,a,b) ((r) = (word32)((word64)(a) * (b) >> 32)) + #else |