Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2026 17:15:43 +0000
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d15733065c42 - main - msun: remove requirement to have C99 inline semantic
Message-ID:  <69caafbf.42681.4bf1f330@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by kib:

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

commit d15733065c4221dcd5bb3622d225760f271f6fc9
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-03-29 01:30:03 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-03-30 16:57:01 +0000

    msun: remove requirement to have C99 inline semantic
    
    The 'extern inline' usage is removed.
    
    PR:     277958
    Reviewed by:    dim
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D56139
---
 lib/msun/aarch64/fenv.c | 5 -----
 lib/msun/amd64/fenv.c   | 5 -----
 lib/msun/arm/fenv.c     | 5 -----
 lib/msun/i387/fenv.c    | 5 -----
 lib/msun/powerpc/fenv.c | 5 -----
 lib/msun/riscv/fenv.c   | 5 -----
 6 files changed, 30 deletions(-)

diff --git a/lib/msun/aarch64/fenv.c b/lib/msun/aarch64/fenv.c
index 5d626f66516f..a428a9d8a271 100644
--- a/lib/msun/aarch64/fenv.c
+++ b/lib/msun/aarch64/fenv.c
@@ -25,7 +25,6 @@
  * SUCH DAMAGE.
  */
 
-#define	__fenv_static
 #include "fenv.h"
 
 /*
@@ -34,10 +33,6 @@
  */
 const fenv_t __fe_dfl_env = 0;
 
-#ifdef __GNUC_GNU_INLINE__
-#error "This file must be compiled with C99 'inline' semantics"
-#endif
-
 int
 (feclearexcept)(int excepts)
 {
diff --git a/lib/msun/amd64/fenv.c b/lib/msun/amd64/fenv.c
index 5dd122cf457c..fe9ecfff3b83 100644
--- a/lib/msun/amd64/fenv.c
+++ b/lib/msun/amd64/fenv.c
@@ -29,13 +29,8 @@
 #include <sys/types.h>
 #include <machine/fpu.h>
 
-#define	__fenv_static
 #include "fenv.h"
 
-#ifdef __GNUC_GNU_INLINE__
-#error "This file must be compiled with C99 'inline' semantics"
-#endif
-
 const fenv_t __fe_dfl_env = {
 	{ 0xffff0000 | __INITIAL_FPUCW__,
 	  0xffff0000,
diff --git a/lib/msun/arm/fenv.c b/lib/msun/arm/fenv.c
index 620a05d51b90..2cf5bbdea28f 100644
--- a/lib/msun/arm/fenv.c
+++ b/lib/msun/arm/fenv.c
@@ -27,7 +27,6 @@
  * SUCH DAMAGE.
  */
 
-#define	__fenv_static
 #include "fenv.h"
 
 #include <machine/acle-compat.h>
@@ -66,10 +65,6 @@ const fenv_t __fe_dfl_env = 0;
 #include "fenv-softfloat.h"
 #endif
 
-#ifdef __GNUC_GNU_INLINE__
-#error "This file must be compiled with C99 'inline' semantics"
-#endif
-
 int
 (feclearexcept)(int excepts)
 {
diff --git a/lib/msun/i387/fenv.c b/lib/msun/i387/fenv.c
index d3cdc2e1cafb..bae8de2fb969 100644
--- a/lib/msun/i387/fenv.c
+++ b/lib/msun/i387/fenv.c
@@ -29,13 +29,8 @@
 #include <sys/types.h>
 #include <machine/npx.h>
 
-#define	__fenv_static
 #include "fenv.h"
 
-#ifdef __GNUC_GNU_INLINE__
-#error "This file must be compiled with C99 'inline' semantics"
-#endif
-
 const fenv_t __fe_dfl_env = {
 	__INITIAL_NPXCW__,
 	0x0000,
diff --git a/lib/msun/powerpc/fenv.c b/lib/msun/powerpc/fenv.c
index d1926155d087..3104b59d4dfb 100644
--- a/lib/msun/powerpc/fenv.c
+++ b/lib/msun/powerpc/fenv.c
@@ -26,13 +26,8 @@
  * SUCH DAMAGE.
  */
 
-#define	__fenv_static
 #include "fenv.h"
 
-#ifdef __GNUC_GNU_INLINE__
-#error "This file must be compiled with C99 'inline' semantics"
-#endif
-
 const fenv_t __fe_dfl_env = 0x00000000;
 
 int
diff --git a/lib/msun/riscv/fenv.c b/lib/msun/riscv/fenv.c
index 1f1f8eddc2d6..7fdedca1f09c 100644
--- a/lib/msun/riscv/fenv.c
+++ b/lib/msun/riscv/fenv.c
@@ -24,13 +24,8 @@
  * SUCH DAMAGE.
  */
 
-#define	__fenv_static
 #include "fenv.h"
 
-#ifdef __GNUC_GNU_INLINE__
-#error "This file must be compiled with C99 'inline' semantics"
-#endif
-
 /*
  * Hopefully the system ID byte is immutable, so it's valid to use
  * this as a default environment.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69caafbf.42681.4bf1f330>