From nobody Sat May 14 01:26:07 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 33EA71AD1CB9; Sat, 14 May 2022 01:26:08 +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 4L0SX00wHvz4c9T; Sat, 14 May 2022 01:26:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652491568; 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=YHQsYsS6b0oU9A+4fdfOw8vG428rb24+M9sV2XNf51A=; b=TVHKXiUp5koe2CX+WoQJlr1IRLQHWKUS678lhBnhRw7dNc3rRv9UvZkav4hcOFOG93oV5O 5XUMqKIHVb5YybT0LuNo4jhodu8Ow+S8ei/XcDWf7GSdC+qP84b7naEG/AsQsI2lZVun1n xcUBXHKr+e0IVHGsgVbOWom8opc117rpe6oF3cFusgbT335lRK0Zb+KChnnskg8X8OnLXE 6k7e9JnUMbyLNr79jFwqRTncpX0zJ6iGx4UKV5TbNQvs32dr23U/4hRnKAE3cH1nYTXIw+ L3aNYhq99l3ZCMzWCNEZNDFFdihkiCp4Os4ZeE40lIBl83w8EkxC/JbJNEQ0HQ== 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 F34295F3D; Sat, 14 May 2022 01:26:07 +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 24E1Q7bo080716; Sat, 14 May 2022 01:26:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24E1Q79J080715; Sat, 14 May 2022 01:26:07 GMT (envelope-from git) Date: Sat, 14 May 2022 01:26:07 GMT Message-Id: <202205140126.24E1Q79J080715@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 448c505c33cc - main - 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/main X-Git-Reftype: branch X-Git-Commit: 448c505c33cc334193590f3844406d6a74f26e2a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652491568; 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=YHQsYsS6b0oU9A+4fdfOw8vG428rb24+M9sV2XNf51A=; b=kMns5jPAhhiG/3MHpqSkISlDXXCo8cmZE76oCi9pEgzN3KKanvI+7VoQmuS3kQBnDsBnws 8mwXoYTqgOHcaRjEOsDztELAaLVwgWH2duNOCpgUwflEeb3gL0fxhdPvlkv68i1Lj98rAP GsffhRwAWc8ManWz6R+8L3w/78ZZyQlfB/edJI6F0hlDHaODQ5DKAwgfRecgj3OiC66gTH NPNpWGygTmDC81v45+EmkDix7e2xFLdrYeFFfszm9n1veqRkTNXo4CHhrjLpc3vji3Gt+2 JIx2Tx9uj3U2BGS6g0tjXKk7fsZjR78HhWdDnBhl/NeFSp75xiN36RCiqGZW8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652491568; a=rsa-sha256; cv=none; b=wan8YrCEg3YTcVeg0vqf5rTi9oz4Iy52NWhuCJy2pBG3fsfMrPDW/6sDGNgvjOir45DlLD z/mY7nNTSD8Fi/s9PfR9wEia9xJTTXcFKYNpXYQ4++1xbii8HY3oQI3eyey2Z7dHlSrRrH JWSNZUVdGsam+lltqZj9JcLpiq9jLmDQFyU41uCqGg2+jjdvUMU+9I6pOvdIe77YFTPc7O YzDiZnFs33q939h0bXmj5cciMfnHbEOHL2B2nXz0hNnjJ6KpuTTnRFUSBfebA6V3hn40az hMP0oBlyVOcBVkO2/FcFhvhbX5BlnJb2b51DqPDjYmI/HorhQhYktnQD8ZEqrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=448c505c33cc334193590f3844406d6a74f26e2a commit 448c505c33cc334193590f3844406d6a74f26e2a Author: Justin Hibbits AuthorDate: 2022-05-13 22:18:25 +0000 Commit: Justin Hibbits CommitDate: 2022-05-14 01:24:22 +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. Questions on MFC-ability: Can this be MFC'd to 13.2, and how? Reviewers: imp, emaste, kib Reviewed By: kib Differential Revision: https://reviews.freebsd.org/D35204 --- 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 1a5644547958..7dc186a1d9e5 100644 --- a/lib/msun/powerpc/fenv.c +++ b/lib/msun/powerpc/fenv.c @@ -58,6 +58,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) {