From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72707 invoked by alias); 7 Aug 2019 16:36:08 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 72694 invoked by uid 89); 7 Aug 2019 16:36:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy= X-HELO: esa2.mentor.iphmx.com Received: from esa2.mentor.iphmx.com (HELO esa2.mentor.iphmx.com) (68.232.141.98) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Aug 2019 16:36:07 +0000 IronPort-SDR: thfHgsySV+MRsxrqLtR0p1Dc6RtbO1l/iL8lq5ka70M/4joqSTqG0U1q9AnnunGv1hrMvfUPoD UaDywYHhOmpqP/+X1mwmOFMxgdUGiW7U8OGhns6pG6li+O63Cg5zSw8e3GI+5RimswCtqU5er8 gF7F7ZCruUeSyQCxXyOQfAnkqzN9Vyp3nKg3+zAS8JrZFTLYeGwMMC1SCUMpqJ8eOikVVASQ9U dfNc3tW6v4oo+DinszILbztV2KzEzC/3ayPULeQndaWzUOlfjkAirbIZvZLOXdmpS7Ub8zbyXJ oVY= Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 07 Aug 2019 08:36:05 -0800 IronPort-SDR: 7EMmkN5/XsOXTG7Sawh38Md4F3EoU3pVK1lBccSiOH6d2ak0tOQSNsMOJXqi2ONDdEgYt/nNj0 KEVBA7LDx688/+RhDxfzY81tjeDlpYdGRLEWABYCiYHi1CT+g8FxSwndxsowfsMrz6U6FBHzHE q3IxNkDJncL27a1TxHfnT1k7xHNkTiTohL8FSAzlKYBBuv4Q+B17SF/ii67JBFbGkgHlUM0oOf /YZ3WtMwIKzz+wc7JOs3Lgo10B1JbsS5Lyb5fNx4keqP6g3lU7Jf9X1Ei6nUmYiYk7bvbbwaVg mkI= Date: Wed, 07 Aug 2019 16:36:00 -0000 From: Joseph Myers To: Joel Sherrill CC: Subject: Re: [PATCH v4 2/3] Add default implementation of fenv.h and all methods In-Reply-To: <1565194471-21861-1-git-send-email-joel@rtems.org> Message-ID: References: <1565194471-21861-1-git-send-email-joel@rtems.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-Path: joseph@codesourcery.com X-SW-Source: 2019/txt/msg00426.txt.bz2 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