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 05/13] powerpc64le: link tests against ld.so


On Fri, 6 Mar 2020, Paul E. Murphy wrote:

> In preparation for the transition of the format of long double - from
> IBM Extended Precision to IEEE 754 128-bits floating-point - on
> powerpc64le, this patch adds the linking of the loader to the tests for
> long double, since after the switch they will also depend on
> __parse_hwcap_and_convert_at_platform.

I'm afraid this patch looks unmaintainable.

It adds a duplicate list of libm tests, with no obvious logic for what 
goes in that list, to an architecture-specific Makefile.  That seems like 
a recipe for patches that add a libm test, changing only 
architecture-independent code, accidentally breaking the build for 
powerpc64le.

Things should be designed in such a way that normal 
architecture-independent changes, such as adding new libm tests, do not 
require any knowledge of the existence of such a powerpc64le-specific 
list.

As these are generally normal tests, not tests in tests-internal, I 
presume they do not in fact use any internal glibc interfaces and so would 
work fine when built with an installed compiler and glibc.  So I think you 
need to identify exactly what is different (to cause the problem this 
patch is addressing) between normal builds of user code with installed 
tools, and the build of tests as part of the glibc testsuite build, and 
fix that difference (globally, not limited to these particular tests or 
this particular architecture) in such a way that these tests just work 
without a duplicate architecture-specific list of tests being needed.

-- 
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]