From 6334191e7f34f5fd4d12e034bcb46f68f89bd20e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 30 May 2012 21:35:11 +0000 Subject: Define FP_TRAPPING_EXCEPTIONS for MIPS. --- ChangeLog.mips | 3 +++ sysdeps/mips/mips64/soft-fp/sfp-machine.h | 1 + 2 files changed, 4 insertions(+) diff --git a/ChangeLog.mips b/ChangeLog.mips index 7d07aa6..a63f051 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,5 +1,8 @@ 2012-05-30 Joseph Myers + * sysdeps/mips/mips64/soft-fp/sfp-machine.h + (FP_TRAPPING_EXCEPTIONS): Define. + * sysdeps/unix/sysv/linux/mips/Makefile (syscall-list-variants): Rename to abi-variants. (syscall-list-includes): Rename to abi-includes. diff --git a/sysdeps/mips/mips64/soft-fp/sfp-machine.h b/sysdeps/mips/mips64/soft-fp/sfp-machine.h index 9c1ee3b..c81067d 100644 --- a/sysdeps/mips/mips64/soft-fp/sfp-machine.h +++ b/sysdeps/mips/mips64/soft-fp/sfp-machine.h @@ -69,6 +69,7 @@ do { \ if (__builtin_expect (_fex, 0)) \ _FPU_SETCW (_fcw | _fex | (_fex << 10)); \ } while (0) +#define FP_TRAPPING_EXCEPTIONS ((_fcw >> 5) & 0x7c) #else #define FP_INIT_ROUNDMODE _fcw = FP_RND_NEAREST #endif -- cgit v1.1