comparison src/xterm.c @ 59893:c7a28d8cfff9

(x_error_quitter): On GCC 3 and up, specify noinline.
author Richard M. Stallman <rms@gnu.org>
date Thu, 03 Feb 2005 07:36:15 +0000
parents 06038cdb686a
children c3fe3363f1c7 3dcba0bc766b 72cf6261961e
comparison
equal deleted inserted replaced
59892:212069a54aca 59893:c7a28d8cfff9
7768 7768
7769 /* This is the usual handler for X protocol errors. 7769 /* This is the usual handler for X protocol errors.
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. */ 7774
7775 7775 #if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
7776 static void 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
7784 static void NO_INLINE
7777 x_error_quitter (display, error) 7785 x_error_quitter (display, error)
7778 Display *display; 7786 Display *display;
7779 XErrorEvent *error; 7787 XErrorEvent *error;
7780 { 7788 {
7781 char buf[256], buf1[356]; 7789 char buf[256], buf1[356];