2025-09-10 Bruno Haible <bruno@clisp.org>
+ fmal: Remove support for IRIX.
+ * m4/fmal.m4 (gl_FUNC_FMAL): Don't test whether fmal is declared.
+ (gl_FUNC_FMAL_WORKS): Remove IRIX <float.h> workaround.
+
fmaf: Remove support for IRIX.
* m4/fmaf.m4 (gl_FUNC_FMAF): Don't test whether fmaf is declared.
# fmal.m4
-# serial 13
+# serial 14
dnl Copyright (C) 2011-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
])
if test $gl_cv_func_fmal_no_libm = yes \
|| test $gl_cv_func_fmal_in_libm = yes; then
- dnl Also check whether it's declared.
- dnl IRIX 6.5 has fmal() in libm but doesn't declare it in <math.h>,
- dnl and the function is buggy.
- AC_CHECK_DECL([fmal], , [REPLACE_FMAL=1], [[#include <math.h>]])
- if test $REPLACE_FMAL = 0; then
- gl_FUNC_FMAL_WORKS
- case "$gl_cv_func_fmal_works" in
- *no) REPLACE_FMAL=1 ;;
- esac
- fi
+ gl_FUNC_FMAL_WORKS
+ case "$gl_cv_func_fmal_works" in
+ *no) REPLACE_FMAL=1 ;;
+ esac
else
HAVE_FMAL=0
fi
# undef LDBL_MIN_EXP
# define LDBL_MIN_EXP DBL_MIN_EXP
#endif
-#if defined __sgi && (LDBL_MANT_DIG >= 106)
-# undef LDBL_MANT_DIG
-# define LDBL_MANT_DIG 106
-# if defined __GNUC__
-# undef LDBL_MIN_EXP
-# define LDBL_MIN_EXP DBL_MIN_EXP
-# endif
-#endif
long double (* volatile my_fmal) (long double, long double, long double) = fmal;
long double p0 = 0.0L;
int main()