Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2024 00:05:04 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 364133901a8d - stable/13 - msun/riscv: expose fe{disable,enable}except
Message-ID:  <202405210005.44L054hg013410@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=364133901a8dcd228e975e88ded0c3f624992150

commit 364133901a8dcd228e975e88ded0c3f624992150
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-03-21 23:45:53 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-05-20 22:26:02 +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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405210005.44L054hg013410>