bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/4] extern-inline: port to pcc


From: Paul Eggert
Subject: [PATCH 4/4] extern-inline: port to pcc
Date: Mon, 1 May 2023 11:21:39 -0700

* m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to pcc
1.2.0.DEVEL 20220331, which doesn’t support extern inline
even though it claims to be GCC 4.3 and to support C11.
---
 ChangeLog           | 5 +++++
 m4/extern-inline.m4 | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 55f010adac..d3f092b946 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2023-05-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       extern-inline: port to pcc
+       * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to pcc
+       1.2.0.DEVEL 20220331, which doesn’t support extern inline
+       even though it claims to be GCC 4.3 and to support C11.
+
        regex: prefer C23 style overflow checking
        * lib/regex_internal.h: Include stdckdint.h.
        * lib/regexec.c (re_search_2_stub):
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index c001b1cff7..f9894d7fe5 100644
--- a/m4/extern-inline.m4
+++ b/m4/extern-inline.m4
@@ -79,7 +79,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
 # define _GL_EXTERN_INLINE_STDHEADER_BUG
 #endif
 #if ((__GNUC__ \
-      ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
+      ? (defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
+         && !defined __PCC__) \
       : (199901L <= __STDC_VERSION__ \
          && !defined __HP_cc \
          && !defined __PGI \
@@ -89,6 +90,7 @@ AC_DEFUN([gl_EXTERN_INLINE],
 # define _GL_EXTERN_INLINE extern inline
 # define _GL_EXTERN_INLINE_IN_USE
 #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
+       && !defined __PCC__ \
        && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
 # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
    /* __gnu_inline__ suppresses a GCC 4.2 diagnostic.  */
-- 
2.39.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]