This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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: Dynamic VFP support and math/test-fpucw


On Mon, 17 Jun 2013, Roland McGrath wrote:

> You could override the test with a sysdeps/arm/test-fpucw.c.
> You could override the installed fpu_control.h with a
> sysdeps/arm/include/fpu_control.h that tests NOT_IN_libc or something.

The trouble is, those options seem rather fragile as well.  Maybe the 
least bad is overriding the test with a file that just defines e.g. 
_LIBC_TEST and includes the main test-fpucw.c (with fpu_control.h then 
checking _LIBC_TEST).  The difficulty with the second is that dynamic VFP 
detection is used in both libc and libm, so NOT_IN_libc isn't sufficient 
on its own.  Really I suppose what's wanted, in the absence of not 
defining _LIBC for tests, would be a macro such as IN_tests that gets 
automatically defined for testcase code; then at least fpu_control.h could 
test that after _LIBC (if it's only tested conditional on _LIBC, namespace 
issues wouldn't matter for IN_tests because no user application should 
ever define _LIBC).

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