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.
This commit is contained in:
christos 2020-03-07 14:53:14 +00:00
parent 507e4a62cf
commit 7a11b5a513
2 changed files with 11 additions and 10 deletions

View File

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

View File

@ -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)