aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/arm/fegetexcept.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-09 10:04:56 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-09 10:04:56 -0700
commita4ca51951804c14a5a8e331747649ca767bd8524 (patch)
tree76447f78f204b8b3f6e2ee21b10b00c2e224835c /ports/sysdeps/arm/fegetexcept.c
parent33b4a91e5b7935d68c50047f37b55056e5545b09 (diff)
downloadglibc-a4ca51951804c14a5a8e331747649ca767bd8524.tar
glibc-a4ca51951804c14a5a8e331747649ca767bd8524.tar.gz
glibc-a4ca51951804c14a5a8e331747649ca767bd8524.tar.bz2
glibc-a4ca51951804c14a5a8e331747649ca767bd8524.zip
Don't check HWCAP_ARM_VFP in OS-generic code.
Presume VFP if compiled without __SOFTFP__ defined.
Diffstat (limited to 'ports/sysdeps/arm/fegetexcept.c')
-rw-r--r--ports/sysdeps/arm/fegetexcept.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ports/sysdeps/arm/fegetexcept.c b/ports/sysdeps/arm/fegetexcept.c
index 929d6c5cfa..a71e7dad6c 100644
--- a/ports/sysdeps/arm/fegetexcept.c
+++ b/ports/sysdeps/arm/fegetexcept.c
@@ -1,5 +1,5 @@
/* Get floating-point exceptions.
- Copyright (C) 2001, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2001-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Philip Blundell <philb@gnu.org>, 2001
@@ -19,16 +19,13 @@
#include <fenv.h>
#include <fpu_control.h>
+#include <arm-features.h>
-#include <unistd.h>
-#include <ldsodefs.h>
-#include <dl-procinfo.h>
-#include <sysdep.h>
int
fegetexcept (void)
{
- if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
+ if (ARM_HAVE_VFP)
{
unsigned long temp;