diff options
| author | Paul Eggert | 2013-04-28 21:48:30 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-04-28 21:48:30 -0700 |
| commit | d9774ea487f683440a001d44a1487bbaefe1d310 (patch) | |
| tree | f222c08653e2eb74d01dcb8abd44ae7acaa665c6 | |
| parent | 2ec12cb0f025b5476b8a1d7cacac2456bd5c1115 (diff) | |
| download | emacs-d9774ea487f683440a001d44a1487bbaefe1d310.tar.gz emacs-d9774ea487f683440a001d44a1487bbaefe1d310.zip | |
Merge from gnulib.
This incorporates:
2013-04-28 extern-inline: work around bug in Sun c99
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | m4/extern-inline.m4 | 14 |
2 files changed, 16 insertions, 3 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-04-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Merge from gnulib, incorporating: | ||
| 4 | 2013-04-28 extern-inline: work around bug in Sun c99 | ||
| 5 | |||
| 1 | 2013-04-27 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2013-04-27 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Merge from gnulib, incorporating: | 8 | Merge from gnulib, incorporating: |
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 |