From nobody Thu Nov 24 15:39:39 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NJ2HJ1ctLz4hSbh; Thu, 24 Nov 2022 15:39:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NJ2HJ188pz3FwY; Thu, 24 Nov 2022 15:39:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669304380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jT1xXPkgmqY7hjX3T1SushTxTR73LMPy1g31uca3Vkk=; b=brmcKlaTdSc3++zRRf3V3dGQ9mYCoXp9ZPbO4LZL98kdIh1oPMx0nQp6Ozg37byMxKDo/m DrAtEO9bB/QrLhneJY+S7TNsYyjSgzmDgfz9bXr42zx5ebCEguDz7ZtyZsZY3KfLp3MkXB CUXWs27h1VH9dhISv8yXO2+iXtDhJD62aSWYEFbc6nPkEBX9IH/JsdEs/4KHTdkYcaNBjF S8Ceo9gZRrI0sN6ibLEraEtnusNL5Kivtep2tgkiwvwCO/3EuvDpONvAr9K5yjK1gx7AkV 4M8UpmgZ8SbgU7v8WcTzVMByVVtsIWF8TzZsz5djoQwE7I8quYiqN9y0pA6C+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669304380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jT1xXPkgmqY7hjX3T1SushTxTR73LMPy1g31uca3Vkk=; b=pA0bh2q0SQXeMHNTwKm2uxOjJtqN8BRnHgGmJHS5I3BIxaIHS2Roq0v5fukrlLefIFZPRY SnpVIWD4V6BtRAe6bjmqy8wb+XV6UtoEOcI4APZHapSahDsfA7z6r3jk4HaawNIUrtVywT 5B+it+fsOm/FLw4Yw3HQ8CGbgt1Jl7HJFdWxX/cZmMv3Tua1NNOGN1M6gKizL+BtFQ5MIX fl74bVAJP5xb9N5/UH69SEn5r2YthAmppvlefSTQyewHuX5n1nCHY1DmOCabJQ8pUa3/MT MuTlj7y1nop+5s6XJOETT0nrcTtFrATg8COD09AqmNk76d8wndzqmlqGpKlOeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669304380; a=rsa-sha256; cv=none; b=JmqbOzkEEzrjjPzo4FWhlIfqFaToAdBYw5PUlwV9mWT/+zOa8Gm5FSTQL1DzeWM9aDAYhM H9dl3ERaX4I4xGx9qKTgw+7pONhi2oxfiBFUO7TfSsJkqG/Nh1bUGQx4rFDIdhCs1rGUts T2iL+pqwEvkvHpAojD60WGFcnCQJq4vb/CA143x2LPIdF5binuagnQSPV+HFj40wZOYGAL oijlqTSoGbxZWgPHnwr5Q7mTB65sJSUrdeX+hvAquMaFV/gOAJOgyisoMWVFU8/hNx1mKX 3UstXaQVTJZ+lDijvZ5LoyKs+OK0Gvzw+Hky9836IsKU5wwEx1m8xTcg0T7pJg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NJ2HJ0DnQz15x0; Thu, 24 Nov 2022 15:39:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AOFdd44052801; Thu, 24 Nov 2022 15:39:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AOFdd3o052800; Thu, 24 Nov 2022 15:39:39 GMT (envelope-from git) Date: Thu, 24 Nov 2022 15:39:39 GMT Message-Id: <202211241539.2AOFdd3o052800@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Justin Hibbits Subject: git: e09d209d1a74 - stable/13 - libm: Add feenableexcept and fedisableexcept to library on powerpc List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e09d209d1a74a3caca95dea303db9bc605fce1a7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=e09d209d1a74a3caca95dea303db9bc605fce1a7 commit e09d209d1a74a3caca95dea303db9bc605fce1a7 Author: Justin Hibbits AuthorDate: 2022-05-13 22:18:25 +0000 Commit: Justin Hibbits CommitDate: 2022-11-24 15:42:09 +0000 libm: Add feenableexcept and fedisableexcept to library on powerpc Summary: These functions are missing from the library itself, and exist solely in the header. This breaks a few ports that expect libm to have the symbols in the library itself. Reviewers: imp, emaste, kib Reviewed By: kib Differential Revision: https://reviews.freebsd.org/D35204 (cherry picked from commit 448c505c33cc334193590f3844406d6a74f26e2a) --- lib/msun/powerpc/Symbol.map | 5 +++++ lib/msun/powerpc/fenv.c | 2 ++ lib/msun/powerpc/fenv.h | 7 +++---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/msun/powerpc/Symbol.map b/lib/msun/powerpc/Symbol.map index 971112e30c8a..47eca6f99f31 100644 --- a/lib/msun/powerpc/Symbol.map +++ b/lib/msun/powerpc/Symbol.map @@ -11,3 +11,8 @@ FBSD_1.3 { feholdexcept; feupdateenv; }; + +FBSD_1.7 { + feenableexcept; + fedisableexcept; +}; diff --git a/lib/msun/powerpc/fenv.c b/lib/msun/powerpc/fenv.c index 7f7d98515995..f33493a5df2b 100644 --- a/lib/msun/powerpc/fenv.c +++ b/lib/msun/powerpc/fenv.c @@ -54,6 +54,8 @@ extern inline int fegetenv(fenv_t *__envp); extern inline int feholdexcept(fenv_t *__envp); extern inline int fesetenv(const fenv_t *__envp); extern inline int feupdateenv(const fenv_t *__envp); +extern inline int feenableexcept(int __mask); +extern inline int fedisableexcept(int __mask); #ifdef __SPE__ #define PMAX 0x7f7fffff diff --git a/lib/msun/powerpc/fenv.h b/lib/msun/powerpc/fenv.h index 21a70df3d104..83ba6b356af5 100644 --- a/lib/msun/powerpc/fenv.h +++ b/lib/msun/powerpc/fenv.h @@ -264,9 +264,7 @@ feupdateenv(const fenv_t *__envp) #if __BSD_VISIBLE -/* We currently provide no external definitions of the functions below. */ - -static inline int +__fenv_static inline int feenableexcept(int __mask) { union __fpscr __r; @@ -279,7 +277,7 @@ feenableexcept(int __mask) return ((__oldmask & _ENABLE_MASK) << _FPUSW_SHIFT); } -static inline int +__fenv_static inline int fedisableexcept(int __mask) { union __fpscr __r; @@ -292,6 +290,7 @@ fedisableexcept(int __mask) return ((__oldmask & _ENABLE_MASK) << _FPUSW_SHIFT); } +/* We currently provide no external definition of fegetexcept(). */ static inline int fegetexcept(void) {