This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix overflow handling for expm1/expm1f/expm1l on x86


On Mon, 19 Oct 2009, Andreas Schwab wrote:

> 2009-10-19  Andreas Schwab  <schwab@redhat.com>
> 
> 	* include/math.h: Add hidden protos for __exp/__expf/__expl.
> 	* sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
> 	* sysdeps/ieee754/flt-32/w_expf.c: Likewise.
> 	* sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.

Although the libm_hidden_proto (__expl) is added unless 
__NO_LONG_DOUBLE_MATH, the corresponding hidden_def is not added for all 
long double formats by this patch.  In particular, this results in the 
expl@@GLIBC_2.4 symbol disappearing from libm for PowerPC (only 
expl@GLIBC_2.0 remaining).  This patch fixes this (the remaining versions 
of w_expf.c include the ldbl-128 file so it seems only this one needs to 
be changed).

2009-10-24  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).

diff --git a/sysdeps/ieee754/ldbl-128/w_expl.c b/sysdeps/ieee754/ldbl-128/w_expl.c
index 816ce3c..d6205d3 100644
--- a/sysdeps/ieee754/ldbl-128/w_expl.c
+++ b/sysdeps/ieee754/ldbl-128/w_expl.c
@@ -55,4 +55,5 @@ u_threshold= -1.1433462743336297878837243843452621503410E4;
 	return z;
 #endif
 }
+hidden_def (__expl)
 weak_alias (__expl, expl)

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]