This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Spell exp2l correctly
- From: Mark Mitchell <mark at codesourcery dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Sun, 27 Mar 2005 17:40:16 -0800
- Subject: PATCH: Spell exp2l correctly
- Organization: CodeSourcery, LLC
I noticed today that GLIBC was failing to define exp2l. This turned out
to be due to a typo; we were creating an alias for expl2 instead.
The expl2 function was not being exported from GLIBC, so I don't think
that there is any backwards-compatibility problem with simply correcting
the typo.
I've attached the obvious patch, which I tested by rebuilding the
library (on the 2.3 branch) with this patch, and verifying that exp2l is
now defined.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304
2005-03-27 Mark Mitchell <mark@codesourcery.com>
* sysdeps/generic/w_exp2.c (__exp2l): Define this instead of ...
(__expl2): ... this
(exp2l): Define this instead of ....
(expl2): ... this.
Index: sysdeps/generic/w_exp2.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/generic/w_exp2.c,v
retrieving revision 1.2
diff -c -5 -p -r1.2 w_exp2.c
*** sysdeps/generic/w_exp2.c 6 Jun 2001 12:40:16 -0000 1.2
--- sysdeps/generic/w_exp2.c 28 Mar 2005 00:39:53 -0000
*************** __exp2 (double x) /* wrapper exp2 */
*** 29,36 ****
return z;
#endif
}
weak_alias (__exp2, exp2)
#ifdef NO_LONG_DOUBLE
! strong_alias (__exp2, __expl2)
! weak_alias (__exp2, expl2)
#endif
--- 29,36 ----
return z;
#endif
}
weak_alias (__exp2, exp2)
#ifdef NO_LONG_DOUBLE
! strong_alias (__exp2, __exp2l)
! weak_alias (__exp2, exp2l)
#endif