newlib-cygwin/newlib/libc
Maciej W. Rozycki 963d6c79ea RISC-V: Fix floating-point environment support for soft float
We don't have floating-point exception or non-default rounding mode
support for the RISC-V soft-float environment, `feraiseexcept' and
`fesetround' do nothing unless the `__riscv_flen' macro has been set.
Therefore following ISO C language requirements[1] only define macros
for soft float that correspond to actually supported floating-point
environment features, removing failures from GCC testing such as:

FAIL: gcc.dg/torture/fp-int-convert-timode-3.c   -O0  execution test
FAIL: gcc.dg/torture/fp-int-convert-timode-4.c   -O0  execution test

References:

[1] "Programming languages -- C", ISO/IEC 9899:2023, working draft --
    September 3, 2022, Section 7.6 "Floating-point environment <fenv.h>"

Fixes: 7040b2de08 ("Add RISC-V port for libm")
Signed-off-by: Maciej W. Rozycki <macro@embecosm.com>
2023-01-27 14:25:44 +01:00
..
argz newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
ctype Add _REENT_ERRNO(ptr) 2022-07-13 06:55:41 +02:00
errno Add --enable-newlib-reent-thread-local option 2022-07-13 06:55:46 +02:00
iconv newlib: info: tweak iconv node to avoid collisions 2022-12-13 05:22:09 -05:00
include libc: arm: fix setjmp abi non-conformance 2022-12-13 15:50:35 +00:00
locale Cygwin: fix LC_CTYPE in global locale to be a real C.UTF-8 locale 2022-12-03 16:16:30 +01:00
machine RISC-V: Fix floating-point environment support for soft float 2023-01-27 14:25:44 +01:00
misc Remove __sinit_locks / __sinit_recursive_mutex 2022-05-13 12:31:56 +02:00
posix Fix some Coverity Scan errors. 2022-08-31 15:18:08 -04:00
reent Add --enable-newlib-reent-thread-local option 2022-07-13 06:55:46 +02:00
search newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
signal Add --enable-newlib-reent-thread-local option 2022-07-13 06:55:46 +02:00
ssp nvptx: Don't use global constructor for SSP setup 2023-01-19 21:51:09 +01:00
stdio Fix some Coverity Scan errors. 2022-08-31 15:18:08 -04:00
stdio64 Add _REENT_ERRNO(ptr) 2022-07-13 06:55:41 +02:00
stdlib Implement sysconf for Arm 2022-09-19 15:35:55 -04:00
string Fix memccpy to handle end char >= x80 2023-01-03 14:52:47 -05:00
sys libgloss: arm: break newlib dependency 2023-01-11 01:00:15 -05:00
syscalls newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
time strftime/wcsftime: use STRLEN, not strlen 2022-10-29 20:15:58 +02:00
unix newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
xdr newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
Makefile.inc Silence xsltproc when writing manpages 2022-05-04 17:05:52 -04:00
Makefile.unidata cleanup Unicode data files after generating updated tables 2021-11-16 11:24:29 +01:00
acinclude.m4 newlib: drop phoenix support 2022-03-28 23:17:06 -04:00
libc.in.xml Generate manpages for functions in chapter sys.tex 2022-05-04 17:06:19 -04:00
libc.texi newlib: info: tweak iconv node to avoid collisions 2022-12-13 05:22:09 -05:00
sys.tex Don't include stdio64 functions in reentrant syscalls menu when not bulding stdio64. 2015-08-03 09:54:33 +01:00