emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r114403: Work around performance bug on OS X 10.8 an


From: Paul Eggert
Subject: [Emacs-diffs] trunk r114403: Work around performance bug on OS X 10.8 and earlier.
Date: Fri, 20 Sep 2013 03:41:40 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114403
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Thu 2013-09-19 20:41:37 -0700
message:
  Work around performance bug on OS X 10.8 and earlier.
  
  Perhaps Apple will fix this bug some day.
  See the thread starting with Daniel Colascione's email in:
  http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00343.html
  * configure.ac (FORTIFY_SOUR): New verbatim section.
modified:
  ChangeLog                      changelog-20091113204419-o5vbwnq5f7feedwu-1538
  configure.ac                   
configure.in-20091113204419-o5vbwnq5f7feedwu-783
=== modified file 'ChangeLog'
--- a/ChangeLog 2013-09-19 21:40:08 +0000
+++ b/ChangeLog 2013-09-20 03:41:37 +0000
@@ -1,3 +1,11 @@
+2013-09-20  Paul Eggert  <address@hidden>
+
+       Work around performance bug on OS X 10.8 and earlier.
+       Perhaps Apple will fix this bug some day.
+       See the thread starting with Daniel Colascione's email in:
+       http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00343.html
+       * configure.ac (FORTIFY_SOUR): New verbatim section.
+
 2013-09-19  Paul Eggert  <address@hidden>
 
        Merge from gnulib, incorporating:

=== modified file 'configure.ac'
--- a/configure.ac      2013-09-19 08:43:01 +0000
+++ b/configure.ac      2013-09-20 03:41:37 +0000
@@ -4703,6 +4703,24 @@
 AC_SUBST(PRE_ALLOC_OBJ)
 AC_SUBST(POST_ALLOC_OBJ)
 
+dnl Call this 'FORTIFY_SOUR' so that it sorts before the 'FORTIFY_SOURCE'
+dnl verbatim defined above.  The tricky name is apropos, as this hack
+dnl makes Fortify go sour!
+AH_VERBATIM([FORTIFY_SOUR],
+[/* Without the following workaround, Emacs runs slowly on OS X 10.8.
+   The workaround disables some useful run-time checking, so it
+   should be conditional to the platforms with the performance bug.
+   Perhaps Apple will fix this some day; also see m4/extern-inline.m4.  */
+#if defined __APPLE__ && defined __GNUC__
+# ifndef _DONT_USE_CTYPE_INLINE_
+#  define _DONT_USE_CTYPE_INLINE_
+# endif
+# ifndef _FORTIFY_SOURCE
+#  define _FORTIFY_SOURCE 0
+# endif
+#endif
+])
+
 # Configure gnulib.  Although this does not affect CFLAGS or LIBS permanently.
 # it temporarily reverts them to their pre-pkg-config values,
 # because gnulib needs to work with both src (which uses the


reply via email to

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