]> 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 11:03:00 +0000 (13:03 +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 6a2930e01a064bcb23018e6335afd5243bf070a7..4bc4f9eb122f935e2bf12a1eeeac4ae22614adbe 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 8a12bddd5719d9704e6123a16db82ccf10ccfbd5..f9894d7fe5c555540a24e8d2b2885cf178de4b3b 100644 (file)
@@ -1,6 +1,6 @@
 dnl 'extern inline' a la ISO C99.
 
-dnl Copyright 2012-2022 Free Software Foundation, Inc.
+dnl Copyright 2012-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -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.  */