aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-05-30 21:35:48 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-30 21:35:48 +0000
commita97386ac1dda0f73043715539b131b630dd5854b (patch)
tree1fb5b9bc446890c0a5d263a5000439d63699b19c
parent6334191e7f34f5fd4d12e034bcb46f68f89bd20e (diff)
downloadglibc-a97386ac1dda0f73043715539b131b630dd5854b.tar
glibc-a97386ac1dda0f73043715539b131b630dd5854b.tar.gz
glibc-a97386ac1dda0f73043715539b131b630dd5854b.tar.bz2
glibc-a97386ac1dda0f73043715539b131b630dd5854b.zip
Define FP_TRAPPING_EXCEPTIONS and remove FP_EX_DENORM for powerpc-nofpu.
-rw-r--r--ChangeLog.powerpc5
-rw-r--r--sysdeps/powerpc/soft-fp/sfp-machine.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog.powerpc b/ChangeLog.powerpc
index 5e32abd390..1f7ac977a0 100644
--- a/ChangeLog.powerpc
+++ b/ChangeLog.powerpc
@@ -1,3 +1,8 @@
+2012-05-30 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/powerpc/soft-fp/sfp-machine.h (FP_EX_DENORM): Remove.
+ (FP_TRAPPING_EXCEPTIONS): Define.
+
2012-05-21 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist
diff --git a/sysdeps/powerpc/soft-fp/sfp-machine.h b/sysdeps/powerpc/soft-fp/sfp-machine.h
index e7eafe21fd..8a9afad3e6 100644
--- a/sysdeps/powerpc/soft-fp/sfp-machine.h
+++ b/sysdeps/powerpc/soft-fp/sfp-machine.h
@@ -46,12 +46,12 @@
#define FP_EX_INVALID (1 << (31 - 2))
#define FP_EX_OVERFLOW (1 << (31 - 3))
#define FP_EX_UNDERFLOW (1 << (31 - 4))
-#define FP_EX_DENORM FP_EX_UNDERFLOW
#define FP_EX_DIVZERO (1 << (31 - 5))
#define FP_EX_INEXACT (1 << (31 - 6))
#define FP_HANDLE_EXCEPTIONS __simulate_exceptions (_fex)
#define FP_ROUNDMODE __sim_round_mode
+#define FP_TRAPPING_EXCEPTIONS (~__sim_disabled_exceptions & 0x3e000000)
extern int __sim_exceptions;
libc_hidden_proto (__sim_exceptions);