This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] ldbl-128ibm/s_copysignl.c should include <math_ldbl_opt.h>
- From: Steven Munroe <munroesj at us dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 14 Jun 2006 16:09:23 -0500
- Subject: [PATCH] ldbl-128ibm/s_copysignl.c should include <math_ldbl_opt.h>
Looks like we missed this one in the scramble to get long double in.
Seems all the arches we tested had an arch specific override for
copysign, but the soft-fp implementation does not. The result was a link
failure because the long_double_symbol macro was missing.
2006-06-01 Steven Munroe <sjmunroe@us.ibm.com>
[BZ #2749]
* sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
<math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
diff -urN libc24-cvstip-20060512/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c libc24/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c
--- libc24-cvstip-20060512/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c 2006-01-27 18:07:25.000000000 -0600
+++ libc24/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c 2006-05-25 16:47:16.000000000 -0500
@@ -25,6 +25,7 @@
#include "math.h"
#include "math_private.h"
+#include <math_ldbl_opt.h>
#ifdef __STDC__
long double __copysignl(long double x, long double y)
@@ -42,4 +43,9 @@
x = -x;
return x;
}
-weak_alias (__copysignl, copysignl)
+
+#ifdef IS_IN_libm
+long_double_symbol (libm, __copysignl, copysignl);
+#else
+long_double_symbol (libc, __copysignl, copysignl);
+#endif