diff options
| author | christos <christos@NetBSD.org> | 2020-03-07 14:53:14 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2020-03-07 14:53:14 +0000 |
| commit | 0394bcf7bbabdeb8b6314b2ade8efc751d5437aa (patch) | |
| tree | a4f7bc8fee5ba9281779ebdc0cb76ff5e5dd3cba /tests/lib/libc/sys | |
| parent | bccf484af5a624f539b7f68e571d0d5acfe4b9cf (diff) | |
Try to fix the build. This is why all those inlines should really be in a
separate file as regular function. The code is too large and hard to manage
this way, and only increases in complexity as time goes by.
Diffstat (limited to 'tests/lib/libc/sys')
| -rw-r--r-- | tests/lib/libc/sys/t_ptrace_wait.c | 9 | ||||
| -rw-r--r-- | tests/lib/libc/sys/t_ptrace_wait.h | 12 |
2 files changed, 11 insertions, 10 deletions
diff --git a/tests/lib/libc/sys/t_ptrace_wait.c b/tests/lib/libc/sys/t_ptrace_wait.c index bf03230cafb..fc61cf119ca 100644 --- a/tests/lib/libc/sys/t_ptrace_wait.c +++ b/tests/lib/libc/sys/t_ptrace_wait.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_ptrace_wait.c,v 1.168 2020/03/06 14:06:56 kamil Exp $ */ +/* $NetBSD: t_ptrace_wait.c,v 1.169 2020/03/07 14:53:14 christos Exp $ */ /*- * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_ptrace_wait.c,v 1.168 2020/03/06 14:06:56 kamil Exp $"); +__RCSID("$NetBSD: t_ptrace_wait.c,v 1.169 2020/03/07 14:53:14 christos Exp $"); #define __LEGACY_PT_LWPINFO @@ -60,11 +60,6 @@ __RCSID("$NetBSD: t_ptrace_wait.c,v 1.168 2020/03/06 14:06:56 kamil Exp $"); #include <time.h> #include <unistd.h> -#include <fenv.h> -#if (__arm__ && !__SOFTFP__) || __aarch64__ -#include <ieeefp.h> /* only need for ARM Cortex/Neon hack */ -#endif - #if defined(__i386__) || defined(__x86_64__) #include <cpuid.h> #include <x86/cpu_extended_state.h> diff --git a/tests/lib/libc/sys/t_ptrace_wait.h b/tests/lib/libc/sys/t_ptrace_wait.h index a7412361903..8ff14076a3f 100644 --- a/tests/lib/libc/sys/t_ptrace_wait.h +++ b/tests/lib/libc/sys/t_ptrace_wait.h @@ -1,4 +1,4 @@ -/* $NetBSD: t_ptrace_wait.h,v 1.24 2020/03/06 17:03:35 kamil Exp $ */ +/* $NetBSD: t_ptrace_wait.h,v 1.25 2020/03/07 14:53:14 christos Exp $ */ /*- * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc. @@ -654,10 +654,14 @@ trigger_ill(void) #endif } +#include <fenv.h> + +#if (__arm__ && !__SOFTFP__) || __aarch64__ +#include <ieeefp.h> /* only need for ARM Cortex/Neon hack */ + static bool __used are_fpu_exceptions_supported(void) { -#if (__arm__ && !__SOFTFP__) || __aarch64__ /* * Some NEON fpus do not trap on IEEE 754 FP exceptions. * Skip these tests if running on them and compiled for @@ -665,9 +669,11 @@ are_fpu_exceptions_supported(void) */ if (0 == fpsetmask(fpsetmask(FP_X_INV))) return false; -#endif return true; } +#else +#define are_fpu_exceptions_supporter() 1 +#endif static void __used trigger_fpe(void) |
