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

Joseph Myers <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.