|
|
446cf2 |
commit 221e4babca17b363df2c56e839572e9f7ab7d127
|
|
|
446cf2 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
446cf2 |
Date: Wed Sep 12 20:31:24 2018 +0000
|
|
|
446cf2 |
|
|
|
446cf2 |
Include most of elf/ modules-names in modules-names-tests.
|
|
|
446cf2 |
|
|
|
446cf2 |
I'm testing a patch to let the compiler expand calls to floor in libm
|
|
|
446cf2 |
as built-in function calls as much as possible, instead of calling
|
|
|
446cf2 |
__floor, so that no architecture-specific __floor inlines are needed,
|
|
|
446cf2 |
and then to arrange for non-inlined calls to end up calling __floor,
|
|
|
446cf2 |
as done with sqrt and __ieee754_sqrt.
|
|
|
446cf2 |
|
|
|
446cf2 |
This shows up elf/tst-relsort1mod2.c calling floor, which must not be
|
|
|
446cf2 |
converted to a call to __floor. Now, while an IS_IN (libm)
|
|
|
446cf2 |
conditional could be added to the existing conditionals on such
|
|
|
446cf2 |
redirections in include/math.h, the _ISOMAC conditional ought to
|
|
|
446cf2 |
suffice (code in other glibc libraries shouldn't be calling floor or
|
|
|
446cf2 |
sqrt anyway, as they aren't provided in libc and the other libraries
|
|
|
446cf2 |
don't link with libm). But while tests are mostly now built with
|
|
|
446cf2 |
_ISOMAC defined, test modules in modules-names aren't unless also
|
|
|
446cf2 |
listed in modules-names-tests.
|
|
|
446cf2 |
|
|
|
446cf2 |
As far as I can see, all the modules in modules-names in elf/ are in
|
|
|
446cf2 |
fact parts of tests and so listing them in modules-names-tests is
|
|
|
446cf2 |
appropriate, so they get built with something closer to the headers
|
|
|
446cf2 |
used for user code, except in a few cases that actually rely on
|
|
|
446cf2 |
something from internal headers. This patch duly sets
|
|
|
446cf2 |
modules-names-tests there accordingly (filtering out those tests that
|
|
|
446cf2 |
fail to build without internal headers).
|
|
|
446cf2 |
|
|
|
446cf2 |
Tested for x86_64, and with build-many-glibcs.py.
|
|
|
446cf2 |
|
|
|
446cf2 |
* elf/Makefile (modules-names-tests): New variable.
|
|
|
446cf2 |
|
|
|
446cf2 |
Conflicts:
|
|
|
446cf2 |
elf/Makefile
|
|
|
446cf2 |
(Different backport order for tests.)
|
|
|
446cf2 |
|
|
|
446cf2 |
diff --git a/elf/Makefile b/elf/Makefile
|
|
|
446cf2 |
index b4b618ce62a9e6df..89dff92adfc417f5 100644
|
|
|
446cf2 |
--- a/elf/Makefile
|
|
|
446cf2 |
+++ b/elf/Makefile
|
|
|
446cf2 |
@@ -306,6 +306,11 @@ modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
|
|
|
446cf2 |
tst-dlopenfailmod3 \
|
|
|
446cf2 |
tst-filterobj-flt tst-filterobj-aux tst-filterobj-filtee
|
|
|
446cf2 |
|
|
|
446cf2 |
+# Most modules build with _ISOMAC defined, but those filtered out
|
|
|
446cf2 |
+# depend on internal headers.
|
|
|
446cf2 |
+modules-names-tests = $(filter-out ifuncmod% tst-libc_dlvsym-dso tst-tlsmod%,\
|
|
|
446cf2 |
+ $(modules-names))
|
|
|
446cf2 |
+
|
|
|
446cf2 |
ifeq (yes,$(have-mtls-dialect-gnu2))
|
|
|
446cf2 |
tests += tst-gnu2-tls1
|
|
|
446cf2 |
modules-names += tst-gnu2-tls1mod
|