aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-10-03 08:39:21 -0700
committerDan Nicolaescu2010-10-03 08:39:21 -0700
commit4777478a50f6de9634d2d5b81ad2bac191d569b6 (patch)
tree697546b453ef2da09dbf221df77ef4b0ab5aa11e /src
parenta3d5088daa2e78d9dc2d7eddc4ac9c56cfe11caa (diff)
downloademacs-4777478a50f6de9634d2d5b81ad2bac191d569b6.tar.gz
emacs-4777478a50f6de9634d2d5b81ad2bac191d569b6.zip
* configure.in (NO_INLINE, noinline): Move here from src/xterm.c.
* src/xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/config.in11
-rw-r--r--src/xterm.c12
3 files changed, 13 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c535c2fc64a..0ed868b7d3a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12010-10-03 Dan Nicolaescu <dann@ics.uci.edu> 12010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4
3 Include <fcntl.h> unconditionally. 5 Include <fcntl.h> unconditionally.
4 * termcap.c: 6 * termcap.c:
5 * sysdep.c: 7 * sysdep.c:
diff --git a/src/config.in b/src/config.in
index d5eaada59bb..a09ebeabcec 100644
--- a/src/config.in
+++ b/src/config.in
@@ -1206,6 +1206,17 @@ typedef unsigned size_t;
1206#define NO_RETURN /* nothing */ 1206#define NO_RETURN /* nothing */
1207#endif 1207#endif
1208 1208
1209#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
1210#define NO_INLINE __attribute__((noinline))
1211#else
1212#define NO_INLINE
1213#endif
1214
1215/* Some versions of GNU/Linux define noinline in their headers. */
1216#ifdef noinline
1217#undef noinline
1218#endif
1219
1209/* These won't be used automatically yet. We also need to know, at least, 1220/* These won't be used automatically yet. We also need to know, at least,
1210 that the stack is continuous. */ 1221 that the stack is continuous. */
1211#ifdef __GNUC__ 1222#ifdef __GNUC__
diff --git a/src/xterm.c b/src/xterm.c
index f9dd21c87fe..abeb7712bc8 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7729,18 +7729,6 @@ x_error_handler (Display *display, XErrorEvent *error)
7729 7729
7730/* .gdbinit puts a breakpoint here, so make sure it is not inlined. */ 7730/* .gdbinit puts a breakpoint here, so make sure it is not inlined. */
7731 7731
7732#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
7733#define NO_INLINE __attribute__((noinline))
7734#else
7735#define NO_INLINE
7736#endif
7737
7738/* Some versions of GNU/Linux define noinline in their headers. */
7739
7740#ifdef noinline
7741#undef noinline
7742#endif
7743
7744/* On older GCC versions, just putting x_error_quitter 7732/* On older GCC versions, just putting x_error_quitter
7745 after x_error_handler prevents inlining into the former. */ 7733 after x_error_handler prevents inlining into the former. */
7746 7734