Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2019 14:11:49 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r352899 - releng/12.1/lib/msun/src
Message-ID:  <201909301411.x8UEBn2W052367@repo.freebsd.org>

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



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