aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2010-10-03 08:39:21 -0700
committerDan Nicolaescu2010-10-03 08:39:21 -0700
commit4777478a50f6de9634d2d5b81ad2bac191d569b6 (patch)
tree697546b453ef2da09dbf221df77ef4b0ab5aa11e
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.
-rw-r--r--ChangeLog4
-rw-r--r--configure.in11
-rw-r--r--src/ChangeLog2
-rw-r--r--src/config.in11
-rw-r--r--src/xterm.c12
5 files changed, 28 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index c3bb32c2ade..fc541930c4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * configure.in (NO_INLINE, noinline): Move here from src/xterm.c.
4
12010-10-01 Dan Nicolaescu <dann@ics.uci.edu> 52010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2 6
3 * configure.in: Include stdlib.h and string.h unconditionally. 7 * configure.in: Include stdlib.h and string.h unconditionally.
diff --git a/configure.in b/configure.in
index e52bb2bd22e..7b9677f27c1 100644
--- a/configure.in
+++ b/configure.in
@@ -3643,6 +3643,17 @@ typedef unsigned size_t;
3643#define NO_RETURN /* nothing */ 3643#define NO_RETURN /* nothing */
3644#endif 3644#endif
3645 3645
3646#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
3647#define NO_INLINE __attribute__((noinline))
3648#else
3649#define NO_INLINE
3650#endif
3651
3652/* Some versions of GNU/Linux define noinline in their headers. */
3653#ifdef noinline
3654#undef noinline
3655#endif
3656
3646/* These won't be used automatically yet. We also need to know, at least, 3657/* These won't be used automatically yet. We also need to know, at least,
3647 that the stack is continuous. */ 3658 that the stack is continuous. */
3648#ifdef __GNUC__ 3659#ifdef __GNUC__
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