aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2015-07-01 16:11:05 -0700
committerPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2015-07-01 16:20:54 -0700
commit6dcbadf525763339c0d061f23e156b719c2f1cc2 (patch)
tree55153f0ffe35e940c9bc9e0c3bb8fd193144f161 /newlib
parent8ec335a7382c0fdbd6e5d9148f32180719361b2c (diff)
downloadriscv-gnu-toolchain-6dcbadf525763339c0d061f23e156b719c2f1cc2.zip
riscv-gnu-toolchain-6dcbadf525763339c0d061f23e156b719c2f1cc2.tar.gz
riscv-gnu-toolchain-6dcbadf525763339c0d061f23e156b719c2f1cc2.tar.bz2
Have fesetmask return -1 on RISC-V
You're only supposed to return 0 if the exception mask was set correctly, and this doesn't set the mask at all.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/newlib/libc/machine/riscv/ieeefp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/newlib/libc/machine/riscv/ieeefp.c b/newlib/newlib/libc/machine/riscv/ieeefp.c
index 4851e6e..ffa57a5 100644
--- a/newlib/newlib/libc/machine/riscv/ieeefp.c
+++ b/newlib/newlib/libc/machine/riscv/ieeefp.c
@@ -30,7 +30,7 @@ fp_except fpgetsticky(void)
fp_except fpsetmask(fp_except mask)
{
- return 0;
+ return -1;
}
fp_rnd fpsetround(fp_rnd rnd_dir)