aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert2018-08-05 17:40:22 -0700
committerPaul Eggert2018-08-05 17:40:48 -0700
commitba8eb994f86206f69cbf9743a67b9d86ef9b1d8f (patch)
tree2ea9d68624a5061629897ef28116ca528f6c8cd2 /m4
parent56683b139b8480198b167ef61cf1b32c528d1070 (diff)
downloademacs-ba8eb994f86206f69cbf9743a67b9d86ef9b1d8f.tar.gz
emacs-ba8eb994f86206f69cbf9743a67b9d86ef9b1d8f.zip
Update from gnulib
This incorporates: 2018-08-05 Fix link error regarding 'rpl_environ' * build-aux/config.guess, lib/unistd.in.h, lib/warn-on-use.h: * m4/extern-inline.m4: Copy from Gnulib.
Diffstat (limited to 'm4')
-rw-r--r--m4/extern-inline.m416
1 files changed, 14 insertions, 2 deletions
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index da8a2cc01c7..3661cbda5ed 100644
--- a/m4/extern-inline.m4
+++ b/m4/extern-inline.m4
@@ -25,7 +25,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
25 if isdigit is mistakenly implemented via a static inline function, 25 if isdigit is mistakenly implemented via a static inline function,
26 a program containing an extern inline function that calls isdigit 26 a program containing an extern inline function that calls isdigit
27 may not work since the C standard prohibits extern inline functions 27 may not work since the C standard prohibits extern inline functions
28 from calling static functions. This bug is known to occur on: 28 from calling static functions (ISO C 99 section 6.7.4.(3).
29 This bug is known to occur on:
29 30
30 OS X 10.8 and earlier; see: 31 OS X 10.8 and earlier; see:
31 https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html 32 https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html
@@ -38,7 +39,18 @@ AC_DEFUN([gl_EXTERN_INLINE],
38 39
39 OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and 40 OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and
40 for clang but remains for g++; see <https://trac.macports.org/ticket/41033>. 41 for clang but remains for g++; see <https://trac.macports.org/ticket/41033>.
41 Assume DragonFly and FreeBSD will be similar. */ 42 Assume DragonFly and FreeBSD will be similar.
43
44 GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
45 inline semantics, unless -fgnu89-inline is used. It defines a macro
46 __GNUC_STDC_INLINE__ to indicate this situation or a macro
47 __GNUC_GNU_INLINE__ to indicate the opposite situation.
48 GCC 4.2 with -std=c99 or -std=gnu99 implements the GNU C inline
49 semantics but warns, unless -fgnu89-inline is used:
50 warning: C99 inline functions are not supported; using GNU89
51 warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
52 It defines a macro __GNUC_GNU_INLINE__ to indicate this situation.
53 */
42#if (((defined __APPLE__ && defined __MACH__) \ 54#if (((defined __APPLE__ && defined __MACH__) \
43 || defined __DragonFly__ || defined __FreeBSD__) \ 55 || defined __DragonFly__ || defined __FreeBSD__) \
44 && (defined __header_inline \ 56 && (defined __header_inline \