public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Kill __errno_location PLT slot in --with-tls --with-__thread build
@ 2002-11-15 11:58 Jakub Jelinek
  2002-11-15 12:29 ` Roland McGrath
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jakub Jelinek @ 2002-11-15 11:58 UTC (permalink / raw)
  To: Roland McGrath, Ulrich Drepper; +Cc: Glibc hackers

Hi!

There is an unnecessary __errno_location .plt slot because s_ldexp*.os
is used by both libc.so and libm.so, thus compiled
with -DNOT_IN_libc -DIS_IN_libm (which means it uses __errno_location).
Other fix could be to do something like what is already used for
rtld-%.os for math/Makefile(calls) routines, but I'm afraid it could slow
down the build by adding lots of new rules to sysd-rules.

2002-11-15  Jakub Jelinek  <jakub@redhat.com>

	* math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
	* sysdeps/generic/m_ldexp.c: New file.
	* sysdeps/generic/m_ldexpf.c: New file.
	* sysdeps/generic/m_ldexpl.c: New file.
	* sysdeps/ia64/fpu/m_ldexp.c: New file.
	* sysdeps/ia64/fpu/m_ldexpf.c: New file.
	* sysdeps/ia64/fpu/m_ldexpl.c: New file.

--- libc/math/Makefile.jj	2002-09-10 10:48:12.000000000 +0200
+++ libc/math/Makefile	2002-11-15 10:41:35.000000000 +0100
@@ -46,7 +46,7 @@ libm-calls = e_acos e_acosh e_asin e_ata
 	     e_rem_pio2 e_remainder e_scalb e_sinh e_sqrt e_gamma_r	\
 	     k_cos k_rem_pio2 k_sin k_tan s_asinh s_atan s_cbrt		\
 	     s_ceil s_copysign s_cos s_erf s_expm1 s_fabs s_finite	\
-	     s_floor s_frexp s_ilogb s_ldexp s_log1p s_logb		\
+	     s_floor s_frexp s_ilogb m_ldexp s_log1p s_logb		\
 	     s_modf s_nextafter s_nexttoward s_rint s_scalbn s_scalbln	\
 	     s_significand s_sin s_tan s_tanh w_acos w_acosh w_asin	\
 	     w_atan2 w_atanh w_cosh w_drem w_exp w_exp2 w_exp10 w_fmod	\
--- libc/sysdeps/generic/m_ldexp.c.jj	2002-11-15 10:42:35.000000000 +0100
+++ libc/sysdeps/generic/m_ldexp.c	2002-11-15 10:42:35.000000000 +0100
@@ -0,0 +1 @@
+#include <s_ldexp.c>
--- libc/sysdeps/generic/m_ldexpf.c.jj	2002-11-15 10:42:35.000000000 +0100
+++ libc/sysdeps/generic/m_ldexpf.c	2002-11-15 10:42:35.000000000 +0100
@@ -0,0 +1 @@
+#include <s_ldexpf.c>
--- libc/sysdeps/generic/m_ldexpl.c.jj	2002-11-15 10:42:35.000000000 +0100
+++ libc/sysdeps/generic/m_ldexpl.c	2002-11-15 10:42:35.000000000 +0100
@@ -0,0 +1 @@
+#include <s_ldexpl.c>
--- libc/sysdeps/ia64/fpu/m_ldexp.c.jj	2002-11-15 10:44:41.000000000 +0100
+++ libc/sysdeps/ia64/fpu/m_ldexp.c	2002-11-15 10:44:41.000000000 +0100
@@ -0,0 +1 @@
+/* m_ldexp.c not needed */
--- libc/sysdeps/ia64/fpu/m_ldexpf.c.jj	2002-11-15 10:44:41.000000000 +0100
+++ libc/sysdeps/ia64/fpu/m_ldexpf.c	2002-11-15 10:44:41.000000000 +0100
@@ -0,0 +1 @@
+/* m_ldexpf.c not needed */
--- libc/sysdeps/ia64/fpu/m_ldexpl.c.jj	2002-11-15 10:44:41.000000000 +0100
+++ libc/sysdeps/ia64/fpu/m_ldexpl.c	2002-11-15 10:44:41.000000000 +0100
@@ -0,0 +1 @@
+/* m_ldexpl.c not needed */

	Jakub

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20021115161220.I27455@devserv.devel.redhat.com>]

end of thread, other threads:[~2002-11-15 22:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-15 11:58 [PATCH] Kill __errno_location PLT slot in --with-tls --with-__thread build Jakub Jelinek
2002-11-15 12:29 ` Roland McGrath
2002-11-15 13:06 ` Roland McGrath
2002-11-15 14:46 ` Roland McGrath
     [not found] <20021115161220.I27455@devserv.devel.redhat.com>
2002-11-15 13:17 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).