diff options
author | bjs <bjs@pkgsrc.org> | 2008-08-17 07:56:11 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-08-17 07:56:11 +0000 |
commit | a9d0388552f59eec0de74724f87e3be63f3fc211 (patch) | |
tree | d296e42dd5aef393e501a698bec7aac6fc6fc4be /devel/gmp/patches | |
parent | fd4278fbc416e506addd43e242584bc513f8f601 (diff) | |
download | pkgsrc-a9d0388552f59eec0de74724f87e3be63f3fc211.tar.gz |
Update to gmp-4.2.3.
Changes between GMP version 4.2.2 and 4.2.3:
Bugs:
* Fix x86 CPU recognition code to properly identify recent AMD and Intel
64-bit processors.
* The >> operator of the C++ wrapper gmpxx.h now does floor rounding, not
truncation.
* Inline semantics now follow the C99 standard, and works with recent GCC
releases.
* C++ bitwise logical operations work for more types.
* For C++, gmp.h now includes cstdio, improving compiler compatibility.
* Bases > 36 now work properly in mpf_set_str.
Speedups:
* None, except that proper processor recognition helps affected processors.
Features:
* The allocation functions now detect overflow of the mpz_t type. This means
that overflow will now cause an abort, except when the allocation
computation itself overflows. (Such overflow can probably only happen in
powering functions; we will detect powering overflow in the future.)
Diffstat (limited to 'devel/gmp/patches')
-rw-r--r-- | devel/gmp/patches/patch-ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/gmp/patches/patch-ac b/devel/gmp/patches/patch-ac index df28de9a89a..6793d507e82 100644 --- a/devel/gmp/patches/patch-ac +++ b/devel/gmp/patches/patch-ac @@ -1,11 +1,11 @@ -$NetBSD: patch-ac,v 1.7 2008/07/14 13:06:23 tonio Exp $ +$NetBSD: patch-ac,v 1.8 2008/08/17 07:56:11 bjs Exp $ Apple's gcc build >5400 (since Xcode 3.0) doesn't support GNU inline in C99 mode ---- gmp-h.in.orig 2007-09-03 18:05:40.000000000 +0200 +--- gmp-h.in.orig 2008-07-23 06:22:16.000000000 -0400 +++ gmp-h.in @@ -423,8 +423,11 @@ typedef __mpq_struct *mpq_ptr; - #ifdef __GNUC_STDC_INLINE__ + #if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__)) #else +#if defined(__APPLE_CC__) && __APPLE_CC__ > 5400 && __STDC_VERSION__ >= 199901L |