pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/nasm Only use __builtin_ctzl if it is available;...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c34f44dc214
branches:  trunk
changeset: 523473:1c34f44dc214
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Mon Jan 08 13:21:43 2007 +0000

description:
Only use __builtin_ctzl if it is available; minimum gcc version number taken
from http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00828.html, so I guess it
is right.

Should fix PR pkg/35380 by tron@, which reports build failure under
NetBSD 3.1/i386 (it worked in -current, though).

diffstat:

 devel/nasm/distinfo         |  4 ++--
 devel/nasm/patches/patch-ad |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 9bf394c45c5d -r 1c34f44dc214 devel/nasm/distinfo
--- a/devel/nasm/distinfo       Mon Jan 08 12:21:43 2007 +0000
+++ b/devel/nasm/distinfo       Mon Jan 08 13:21:43 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2007/01/06 15:11:58 jmmv Exp $
+$NetBSD: distinfo,v 1.10 2007/01/08 13:21:43 jmmv Exp $
 
 SHA1 (nasm-0.98.39.tar.bz2) = 73d64812bb95774355f737c0fb0271382d23db67
 RMD160 (nasm-0.98.39.tar.bz2) = b5587b1b81f58cef3a50e438e8efb365945df587
@@ -6,5 +6,5 @@
 SHA1 (patch-aa) = 27409c3b71634dc5c3aa02b3cae49ebad2db6579
 SHA1 (patch-ab) = bbe1d7219dd2e5ade8f97a4f3070bc87d3a7d4b5
 SHA1 (patch-ac) = 7ae622ab78b1cf30ca027d652476d7d48deae182
-SHA1 (patch-ad) = 1f572247b2b6b46b4b8c4c2c055010459def496b
+SHA1 (patch-ad) = 63e36d38c04006ff1730171714ea3e84fa640af9
 SHA1 (patch-ae) = f6029c8574c4e11d59d161819a379e9f687bc346
diff -r 9bf394c45c5d -r 1c34f44dc214 devel/nasm/patches/patch-ad
--- a/devel/nasm/patches/patch-ad       Mon Jan 08 12:21:43 2007 +0000
+++ b/devel/nasm/patches/patch-ad       Mon Jan 08 13:21:43 2007 +0000
@@ -207,7 +207,7 @@
 +    if (align != (align & -align)) {
 +      return -1;
 +    } else {
-+#ifdef __GNUC__
++#if defined(__GNUC__) && GCC_VERSION >= 3004
 +      return (align ? __builtin_ctzl (align) : 0);
 +#else
 +      unsigned long result = 0;



Home | Main Index | Thread Index | Old Index