svn commit: r352899 - releng/12.1/lib/msun/src
Justin Hibbits
jhibbits at FreeBSD.org
Mon Sep 30 14:11:50 UTC 2019
Author: jhibbits
Date: Mon Sep 30 14:11:49 2019
New Revision: 352899
URL: https://svnweb.freebsd.org/changeset/base/352899
Log:
MF stable/12 r352685:
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.
Approved by: re(delphij)
Modified:
releng/12.1/lib/msun/src/s_cbrt.c
releng/12.1/lib/msun/src/s_cproj.c
releng/12.1/lib/msun/src/s_erf.c
Directory Properties:
releng/12.1/ (props changed)
Modified: releng/12.1/lib/msun/src/s_cbrt.c
==============================================================================
--- releng/12.1/lib/msun/src/s_cbrt.c Mon Sep 30 14:05:44 2019 (r352898)
+++ releng/12.1/lib/msun/src/s_cbrt.c Mon Sep 30 14:11:49 2019 (r352899)
@@ -15,6 +15,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <float.h>
#include "math.h"
#include "math_private.h"
Modified: releng/12.1/lib/msun/src/s_cproj.c
==============================================================================
--- releng/12.1/lib/msun/src/s_cproj.c Mon Sep 30 14:05:44 2019 (r352898)
+++ releng/12.1/lib/msun/src/s_cproj.c Mon Sep 30 14:11:49 2019 (r352899)
@@ -30,6 +30,7 @@
__FBSDID("$FreeBSD$");
#include <complex.h>
+#include <float.h>
#include <math.h>
#include "math_private.h"
Modified: releng/12.1/lib/msun/src/s_erf.c
==============================================================================
--- releng/12.1/lib/msun/src/s_erf.c Mon Sep 30 14:05:44 2019 (r352898)
+++ releng/12.1/lib/msun/src/s_erf.c Mon Sep 30 14:11:49 2019 (r352899)
@@ -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