]> Savannah Git Hosting - gnulib.git/commitdiff
extern-inline: port to pcc
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 May 2023 18:19:05 +0000 (11:19 -0700)
committerBruno Haible <bruno@clisp.org>
Fri, 5 May 2023 10:23:55 +0000 (12:23 +0200)
* 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
m4/extern-inline.m4

index 4f3148227681ce0d3c2c8322fe054c7ee53ef71e..5862bb1a932d321dde71b939edb9aed4921691e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +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.
+
 2023-04-28  Bruno Haible  <bruno@clisp.org>
 
        stdio: Avoid different configure results in different testdirs.
index c001b1cff7d62957952cbe7fb66c61791df35dd4..f9894d7fe5c555540a24e8d2b2885cf178de4b3b 100644 (file)
@@ -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.  */