diff options
Diffstat (limited to 'devel/gmp/patches/patch-ab')
-rw-r--r-- | devel/gmp/patches/patch-ab | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/gmp/patches/patch-ab b/devel/gmp/patches/patch-ab new file mode 100644 index 00000000000..7b59eece3ed --- /dev/null +++ b/devel/gmp/patches/patch-ab @@ -0,0 +1,23 @@ +$NetBSD: patch-ab,v 1.7 2007/11/25 08:35:32 rillig Exp $ + +Fixed detection of __attribute__((__mode__(XX))) for sunpro. + +--- acinclude.m4.orig 2007-09-01 12:09:03.000000000 +0200 ++++ acinclude.m4 2007-11-25 09:26:07.000000000 +0100 +@@ -3016,7 +3016,15 @@ dnl Introduced in gcc 2.2, but perhaps + AC_DEFUN([GMP_C_ATTRIBUTE_MODE], + [AC_CACHE_CHECK([whether gcc __attribute__ ((mode (XX))) works], + gmp_cv_c_attribute_mode, +-[AC_TRY_COMPILE([typedef int SItype __attribute__ ((mode (SI)));], , ++[AC_TRY_COMPILE([ ++ typedef int SItype __attribute__ ((mode (SI))); ++ typedef int QItype __attribute__ ((mode (QI))); ++], [ ++ switch (1) { ++ case sizeof(SItype): ++ case sizeof(QItype): ; ++ } ++], + gmp_cv_c_attribute_mode=yes, gmp_cv_c_attribute_mode=no) + ]) + if test $gmp_cv_c_attribute_mode = yes; then |