emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r112422: Merge from gnulib.


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r112422: Merge from gnulib.
Date: Sun, 28 Apr 2013 21:48:30 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 112422
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2013-04-28 21:48:30 -0700
message:
  Merge from gnulib.
  
  This incorporates:
  2013-04-28 extern-inline: work around bug in Sun c99
modified:
  ChangeLog
  m4/extern-inline.m4
=== modified file 'ChangeLog'
--- a/ChangeLog 2013-04-27 19:30:33 +0000
+++ b/ChangeLog 2013-04-29 04:48:30 +0000
@@ -1,3 +1,8 @@
+2013-04-29  Paul Eggert  <address@hidden>
+
+       Merge from gnulib, incorporating:
+       2013-04-28 extern-inline: work around bug in Sun c99
+
 2013-04-27  Paul Eggert  <address@hidden>
 
        Merge from gnulib, incorporating:

=== modified file 'm4/extern-inline.m4'
--- a/m4/extern-inline.m4       2013-03-01 15:16:43 +0000
+++ b/m4/extern-inline.m4       2013-04-29 04:48:30 +0000
@@ -21,13 +21,21 @@
    Suppress extern inline with HP-UX cc, as it appears to be broken; see
    <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
 
-   Suppress the use of extern inline on Apple's platforms,
-   as Libc-825.25 (2012-09-19) is incompatible with it; see
+   Suppress extern inline with Sun C in standards-conformance mode, as it
+   mishandles inline functions that call each other.  E.g., for 'inline void f
+   (void) { } inline void g (void) { f (); }', c99 incorrectly complains
+   'reference to static identifier "f" in extern inline function'.
+   This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16.
+
+   Suppress the use of extern inline on Apple's platforms, as Libc at least
+   through Libc-825.26 (2013-04-09) is incompatible with it; see, e.g.,
    <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
    Perhaps Apple will fix this some day.  */
 #if ((__GNUC__ \
       ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
-      : 199901L <= __STDC_VERSION__ && !defined __HP_cc) \
+      : (199901L <= __STDC_VERSION__ \
+         && !defined __HP_cc \
+         && !(defined __SUNPRO_C && __STDC__))) \
      && !defined __APPLE__)
 # define _GL_INLINE inline
 # define _GL_EXTERN_INLINE extern inline


reply via email to

[Prev in Thread] Current Thread [Next in Thread]