#2971 assigned defect

Add fenv.h to newlib

Reported by: Joel Sherrill Owned by: Needs Funding
Priority: normal Milestone: Indefinite
Component: unspecified Version:
Severity: normal Keywords: POSIX-Compliance
Cc: Blocked By:

Description (last modified by Joel Sherrill)

fenv.h is not present.

  • http://pubs.opengroup.org/onlinepubs/9699919799/
  • feclearexcept, fegetenv, fegetexceptflag, fegetround, feholdexcept, feraiseexcept, fesetenv, fesetexceptflag, fesetround, fetestexcept, feupdateenv
  • Cygwin has x86 implementation. FreeBSD should be source for ARM and some other architectures. The implementation is architecture specific.

When completed, see psxtests/Makefile.am and enable the fenv.h POSIX API Compliance Tests.

Change History (5)

comment:1 Changed on Apr 3, 2017 at 11:54:51 PM by Joel Sherrill

Keywords: POSIX-Compliance added

comment:2 Changed on Mar 16, 2018 at 6:37:28 PM by Joel Sherrill

Summary: Add fenv,h to newlibAdd fenv.h to newlib

comment:3 Changed on Dec 6, 2018 at 3:34:17 PM by Joel Sherrill

Description: modified (diff)
Owner: set to Needs Funding
Status: newassigned
Version: 5

comment:4 Changed on Dec 6, 2018 at 3:34:31 PM by ABR290B <abhimanyuraghuvanshi29@…>

In da262164/rtems:

POSIX Signature Test for fenv.h (GCI 2018)

Updates #2971.

comment:5 Changed on Jun 6, 2020 at 8:36:54 PM by Eshan dhawan <eshandhawan51@…>

In e845873/rtems:

tests for fenv.h functions

added tests for fesetexeptflag(), fegetexeptflag(),
fegetround(), fesetround().

In the test fegetround() does not return any flag
other then FE_TONEAREST in tests.
This is probably due to soft float.

The test complies successfully and returns assert
at fegetround()

Other tests run without any errors
tested on RISCV/rv32imac

The test prints nothing if runs successfully.

updates #2971

Signed-off-by: Eshan dhawan <eshandhawan51@…>

Note: See TracTickets for help on using tickets.