[PATCH v4 2/3] Add default implementation of fenv.h and all methods

Joseph Myers joseph@codesourcery.com
Wed Aug 7 16:36:00 GMT 2019


On Wed, 7 Aug 2019, Joel Sherrill wrote:

> 	The default implementation of the fenv.h methods return
> 	-EOPNOTSUPP.

There are cases where it is not correct to return error status when no 
exceptions, rounding modes, etc. are supported.  For example, 
feraiseexcept (0) should (trivially) always succeed, and if there is no 
floating-point environment state, fegetenv and fesetenv should also 
trivially always succeed.  Is this implementation intended to be a valid 
default for soft-float-only architectures with no floating-point 
environment, or only as a deliberately nonfunctional version that all 
architectures, whether or not they have hardware floating point, are 
expected to replace?

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Newlib mailing list