aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2005-02-03 07:36:15 +0000
committerRichard M. Stallman2005-02-03 07:36:15 +0000
commit799775ff761dae4cc360b2bc273949ef76c29395 (patch)
treeb39890e2b26ee3f3ea91e288ccbbd1b4911c8888 /src
parent85424dea001dd2518ffa7367cae3e9d51f3f7810 (diff)
downloademacs-799775ff761dae4cc360b2bc273949ef76c29395.tar.gz
emacs-799775ff761dae4cc360b2bc273949ef76c29395.zip
(x_error_quitter): On GCC 3 and up, specify noinline.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 2db3379a264..f047c255c69 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7770,10 +7770,18 @@ x_error_handler (display, error)
7770 It kills all frames on the display that we got the error for. 7770 It kills all frames on the display that we got the error for.
7771 If that was the only one, it prints an error message and kills Emacs. */ 7771 If that was the only one, it prints an error message and kills Emacs. */
7772 7772
7773/* It is after x_error_handler so that it won't get inlined in 7773/* .gdbinit puts a breakpoint here, so make sure it is not inlined. */
7774 x_error_handler. */
7775 7774
7776static void 7775#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
7776#define NO_INLINE __attribute__((noinline))
7777#else
7778#define NO_INLINE
7779#endif
7780
7781/* On older GCC versions, just putting x_error_quitter
7782 after x_error_handler prevents inlining into the former. */
7783
7784static void NO_INLINE
7777x_error_quitter (display, error) 7785x_error_quitter (display, error)
7778 Display *display; 7786 Display *display;
7779 XErrorEvent *error; 7787 XErrorEvent *error;