diff options
| author | Joakim Verona | 2012-12-11 19:31:26 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-11 19:31:26 +0100 |
| commit | 3969dbed6bfc1aa505210e36839a81a2bb41ebdb (patch) | |
| tree | b6bf4dc611b37c8675b4223e51070e08129487bf | |
| parent | 34d8225342adaf408c94a6675cb4da821886ccd3 (diff) | |
| parent | 904dd565a04e0023607740320013542c9f77eae0 (diff) | |
| download | emacs-3969dbed6bfc1aa505210e36839a81a2bb41ebdb.tar.gz emacs-3969dbed6bfc1aa505210e36839a81a2bb41ebdb.zip | |
auto upstream
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | m4/extern-inline.m4 | 20 |
2 files changed, 19 insertions, 7 deletions
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-12-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Merge from gnulib for 'inline' (Bug#13040), incorporating: | ||
| 4 | 2012-12-11 extern-inline: avoid incompatibility with Darwin Libc | ||
| 5 | * m4/extern-inline.m4: Update from gnulib. | ||
| 6 | |||
| 1 | 2012-12-11 Juanma Barranquero <lekktu@gmail.com> | 7 | 2012-12-11 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 8 | ||
| 3 | * lib/makefile.w32-in (SIG2STR_H): New macro. | 9 | * lib/makefile.w32-in (SIG2STR_H): New macro. |
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4 index 24922605e64..0a9fc9a75b6 100644 --- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 | |||
| @@ -16,13 +16,19 @@ AC_DEFUN([gl_EXTERN_INLINE], | |||
| 16 | when FOO is an inline function in the header; see | 16 | when FOO is an inline function in the header; see |
| 17 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>. | 17 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>. |
| 18 | _GL_INLINE_HEADER_END contains useful stuff to put | 18 | _GL_INLINE_HEADER_END contains useful stuff to put |
| 19 | in the same include file, after uses of _GL_INLINE. */ | 19 | in the same include file, after uses of _GL_INLINE. |
| 20 | #if (__GNUC__ \ | 20 | |
| 21 | ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ | 21 | Suppress the use of extern inline on Apple's platforms, |
| 22 | : 199901L <= __STDC_VERSION__) | 22 | as Libc-825.25 (2012-09-19) is incompatible with it; see |
| 23 | <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. | ||
| 24 | Perhaps Apple will fix this some day. */ | ||
| 25 | #if ((__GNUC__ \ | ||
| 26 | ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ | ||
| 27 | : 199901L <= __STDC_VERSION__) \ | ||
| 28 | && !defined __APPLE__) | ||
| 23 | # define _GL_INLINE inline | 29 | # define _GL_INLINE inline |
| 24 | # define _GL_EXTERN_INLINE extern inline | 30 | # define _GL_EXTERN_INLINE extern inline |
| 25 | #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) | 31 | #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__ |
| 26 | # if __GNUC_GNU_INLINE__ | 32 | # if __GNUC_GNU_INLINE__ |
| 27 | /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ | 33 | /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ |
| 28 | # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) | 34 | # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) |
| @@ -31,8 +37,8 @@ AC_DEFUN([gl_EXTERN_INLINE], | |||
| 31 | # endif | 37 | # endif |
| 32 | # define _GL_EXTERN_INLINE extern | 38 | # define _GL_EXTERN_INLINE extern |
| 33 | #else | 39 | #else |
| 34 | # define _GL_INLINE static | 40 | # define _GL_INLINE static _GL_UNUSED |
| 35 | # define _GL_EXTERN_INLINE static | 41 | # define _GL_EXTERN_INLINE static _GL_UNUSED |
| 36 | #endif | 42 | #endif |
| 37 | 43 | ||
| 38 | #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) | 44 | #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) |