Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2019 14:33:09 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r352685 - stable/12/lib/msun/src
Message-ID:  <201909251433.x8PEX9D4057615@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909251433.x8PEX9D4057615>