git: 7ad17751074c - stable/14 - msun/riscv: expose fe{disable,enable}except

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Mon, 20 May 2024 21:16:18 UTC
The branch stable/14 has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=7ad17751074ca79a89ca503f5ac647819579e858

commit 7ad17751074ca79a89ca503f5ac647819579e858
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-03-21 23:45:53 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-05-20 20:49:06 +0000

    msun/riscv: expose fe{disable,enable}except
    
    This is required for GCC to build.
    
    PR:             272759
    Reported by:    dgilbert@eicat.ca
    Submitted by:   jrtc27
    Differential Revision:  https://reviews.freebsd.org/D44333
    
    (cherry picked from commit 1947a9383ec3a048e334022365aa199a6ae55289)
---
 lib/msun/riscv/Symbol.map | 10 ++++------
 lib/msun/riscv/fenv.h     |  7 +++----
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/lib/msun/riscv/Symbol.map b/lib/msun/riscv/Symbol.map
index 2bc6215688bb..c3d72443cb2c 100644
--- a/lib/msun/riscv/Symbol.map
+++ b/lib/msun/riscv/Symbol.map
@@ -1,15 +1,13 @@
-/*
- */
-FBSD_1.0 {
-};
-
 FBSD_1.3 {
 	fesetexceptflag;
 	feraiseexcept;
 	fegetenv;
 	feholdexcept;
 	feupdateenv;
+	fegetexcept;
+};
+
+FBSD_1.8 {
 	feenableexcept;
 	fedisableexcept;
-	fegetexcept;
 };
diff --git a/lib/msun/riscv/fenv.h b/lib/msun/riscv/fenv.h
index 1971e976645c..36abb7b00b7d 100644
--- a/lib/msun/riscv/fenv.h
+++ b/lib/msun/riscv/fenv.h
@@ -216,14 +216,12 @@ feupdateenv(const fenv_t *__envp)
 
 #if __BSD_VISIBLE
 
-/* We currently provide no external definitions of the functions below. */
-
 #ifdef __riscv_float_abi_soft
 int feenableexcept(int __mask);
 int fedisableexcept(int __mask);
 int fegetexcept(void);
 #else
-static inline int
+__fenv_static inline int
 feenableexcept(int __mask __unused)
 {
 
@@ -232,7 +230,7 @@ feenableexcept(int __mask __unused)
 	return (0);
 }
 
-static inline int
+__fenv_static inline int
 fedisableexcept(int __mask __unused)
 {
 
@@ -241,6 +239,7 @@ fedisableexcept(int __mask __unused)
 	return (0);
 }
 
+/* We currently provide no external definition of fegetexcept(). */
 static inline int
 fegetexcept(void)
 {