svn commit: r352685 - stable/12/lib/msun/src
Justin Hibbits
jhibbits at FreeBSD.org
Wed Sep 25 14:33:10 UTC 2019
Author: jhibbits
Date: Wed Sep 25 14:33:08 2019
New Revision: 352685
URL: https://svnweb.freebsd.org/changeset/base/352685
Log:
MFC r342563:
libm: Include float.h to get LDBL_MANT_DIG
The long double aliases of double functions are only exposed as aliases if
LDBL_MANT_DIG is 53 (same as DBL_MANT_DIG). Without float.h included these
files were not exposing weak aliases as expected, leading to link failures
if programs use the *l functions. This should fix editors/calligra on
targets with 64-bit long double, which uses erfl and erfcl. Found on
powerpc64.
Modified:
stable/12/lib/msun/src/s_cbrt.c
stable/12/lib/msun/src/s_cproj.c
stable/12/lib/msun/src/s_erf.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/lib/msun/src/s_cbrt.c
==============================================================================
--- stable/12/lib/msun/src/s_cbrt.c Wed Sep 25 13:36:56 2019 (r352684)
+++ stable/12/lib/msun/src/s_cbrt.c Wed Sep 25 14:33:08 2019 (r352685)
@@ -15,6 +15,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <float.h>
#include "math.h"
#include "math_private.h"
Modified: stable/12/lib/msun/src/s_cproj.c
==============================================================================
--- stable/12/lib/msun/src/s_cproj.c Wed Sep 25 13:36:56 2019 (r352684)
+++ stable/12/lib/msun/src/s_cproj.c Wed Sep 25 14:33:08 2019 (r352685)
@@ -30,6 +30,7 @@
__FBSDID("$FreeBSD$");
#include <complex.h>
+#include <float.h>
#include <math.h>
#include "math_private.h"
Modified: stable/12/lib/msun/src/s_erf.c
==============================================================================
--- stable/12/lib/msun/src/s_erf.c Wed Sep 25 13:36:56 2019 (r352684)
+++ stable/12/lib/msun/src/s_erf.c Wed Sep 25 14:33:08 2019 (r352685)
@@ -107,7 +107,7 @@ __FBSDID("$FreeBSD$");
* erfc/erf(NaN) is NaN
*/
-
+#include <float.h>
#include "math.h"
#include "math_private.h"
More information about the svn-src-all
mailing list