diff options
| author | Eli Zaretskii | 2013-05-01 20:47:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-05-01 20:47:50 +0300 |
| commit | b1cb82edff21abfefd68af18370dddfd8cc1fec0 (patch) | |
| tree | fd8d8a1e1d99af024b52158a471457fc796238bc /m4/extern-inline.m4 | |
| parent | 10f81f3ac90f98160f611787e20dcad96bb500e9 (diff) | |
| parent | 2640d52e4e7873e41b0f0f1144177f84c345917e (diff) | |
| download | emacs-b1cb82edff21abfefd68af18370dddfd8cc1fec0.tar.gz emacs-b1cb82edff21abfefd68af18370dddfd8cc1fec0.zip | |
Merge from trunk.
Diffstat (limited to 'm4/extern-inline.m4')
| -rw-r--r-- | m4/extern-inline.m4 | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4 index 0152f29326b..94b46dde07d 100644 --- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 | |||
| @@ -21,13 +21,21 @@ AC_DEFUN([gl_EXTERN_INLINE], | |||
| 21 | Suppress extern inline with HP-UX cc, as it appears to be broken; see | 21 | Suppress extern inline with HP-UX cc, as it appears to be broken; see |
| 22 | <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. | 22 | <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. |
| 23 | 23 | ||
| 24 | Suppress the use of extern inline on Apple's platforms, | 24 | Suppress extern inline with Sun C in standards-conformance mode, as it |
| 25 | as Libc-825.25 (2012-09-19) is incompatible with it; see | 25 | mishandles inline functions that call each other. E.g., for 'inline void f |
| 26 | (void) { } inline void g (void) { f (); }', c99 incorrectly complains | ||
| 27 | 'reference to static identifier "f" in extern inline function'. | ||
| 28 | This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16. | ||
| 29 | |||
| 30 | Suppress the use of extern inline on Apple's platforms, as Libc at least | ||
| 31 | through Libc-825.26 (2013-04-09) is incompatible with it; see, e.g., | ||
| 26 | <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. | 32 | <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. |
| 27 | Perhaps Apple will fix this some day. */ | 33 | Perhaps Apple will fix this some day. */ |
| 28 | #if ((__GNUC__ \ | 34 | #if ((__GNUC__ \ |
| 29 | ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ | 35 | ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ |
| 30 | : 199901L <= __STDC_VERSION__ && !defined __HP_cc) \ | 36 | : (199901L <= __STDC_VERSION__ \ |
| 37 | && !defined __HP_cc \ | ||
| 38 | && !(defined __SUNPRO_C && __STDC__))) \ | ||
| 31 | && !defined __APPLE__) | 39 | && !defined __APPLE__) |
| 32 | # define _GL_INLINE inline | 40 | # define _GL_INLINE inline |
| 33 | # define _GL_EXTERN_INLINE extern inline | 41 | # define _GL_EXTERN_INLINE extern inline |