diff options
author | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-07-01 16:11:05 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-07-01 16:20:54 -0700 |
commit | 6dcbadf525763339c0d061f23e156b719c2f1cc2 (patch) | |
tree | 55153f0ffe35e940c9bc9e0c3bb8fd193144f161 /newlib | |
parent | 8ec335a7382c0fdbd6e5d9148f32180719361b2c (diff) | |
download | riscv-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.c | 2 |
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) |