This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH v4 2/3] Add default implementation of fenv.h and all methods
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Joel Sherrill <joel at rtems dot org>
- Cc: <newlib at sourceware dot org>
- Date: Wed, 7 Aug 2019 16:36:01 +0000
- Subject: Re: [PATCH v4 2/3] Add default implementation of fenv.h and all methods
- Ironport-sdr: thfHgsySV+MRsxrqLtR0p1Dc6RtbO1l/iL8lq5ka70M/4joqSTqG0U1q9AnnunGv1hrMvfUPoD UaDywYHhOmpqP/+X1mwmOFMxgdUGiW7U8OGhns6pG6li+O63Cg5zSw8e3GI+5RimswCtqU5er8 gF7F7ZCruUeSyQCxXyOQfAnkqzN9Vyp3nKg3+zAS8JrZFTLYeGwMMC1SCUMpqJ8eOikVVASQ9U dfNc3tW6v4oo+DinszILbztV2KzEzC/3ayPULeQndaWzUOlfjkAirbIZvZLOXdmpS7Ub8zbyXJ oVY=
- Ironport-sdr: 7EMmkN5/XsOXTG7Sawh38Md4F3EoU3pVK1lBccSiOH6d2ak0tOQSNsMOJXqi2ONDdEgYt/nNj0 KEVBA7LDx688/+RhDxfzY81tjeDlpYdGRLEWABYCiYHi1CT+g8FxSwndxsowfsMrz6U6FBHzHE q3IxNkDJncL27a1TxHfnT1k7xHNkTiTohL8FSAzlKYBBuv4Q+B17SF/ii67JBFbGkgHlUM0oOf /YZ3WtMwIKzz+wc7JOs3Lgo10B1JbsS5Lyb5fNx4keqP6g3lU7Jf9X1Ei6nUmYiYk7bvbbwaVg mkI=
- References: <1565194471-21861-1-git-send-email-joel@rtems.org>
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