blob: 14b04f7c2d7cca0a6ff9d15b47a10583d0d75a72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-acinclude.m4,v 1.2 2020/01/20 21:25:24 adam Exp $
Fixed detection of __attribute__((__mode__(XX))) for sunpro.
--- acinclude.m4.orig 2016-12-17 00:45:27.000000000 +0900
+++ acinclude.m4 2017-06-14 13:05:04.000000000 +0900
@@ -3228,7 +3228,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
|