* configure.in (NO_INLINE, noinline): Move here from src/xterm.c.

* src/xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
This commit is contained in:
Dan Nicolaescu 2010-10-03 08:39:21 -07:00
parent a3d5088daa
commit 4777478a50
5 changed files with 28 additions and 12 deletions

View file

@ -1,3 +1,7 @@
2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
* configure.in (NO_INLINE, noinline): Move here from src/xterm.c.
2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
* configure.in: Include stdlib.h and string.h unconditionally.

View file

@ -3643,6 +3643,17 @@ typedef unsigned size_t;
#define NO_RETURN /* nothing */
#endif
#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
#define NO_INLINE __attribute__((noinline))
#else
#define NO_INLINE
#endif
/* Some versions of GNU/Linux define noinline in their headers. */
#ifdef noinline
#undef noinline
#endif
/* These won't be used automatically yet. We also need to know, at least,
that the stack is continuous. */
#ifdef __GNUC__

View file

@ -1,5 +1,7 @@
2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
* xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
Include <fcntl.h> unconditionally.
* termcap.c:
* sysdep.c:

View file

@ -1206,6 +1206,17 @@ typedef unsigned size_t;
#define NO_RETURN /* nothing */
#endif
#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
#define NO_INLINE __attribute__((noinline))
#else
#define NO_INLINE
#endif
/* Some versions of GNU/Linux define noinline in their headers. */
#ifdef noinline
#undef noinline
#endif
/* These won't be used automatically yet. We also need to know, at least,
that the stack is continuous. */
#ifdef __GNUC__

View file

@ -7729,18 +7729,6 @@ x_error_handler (Display *display, XErrorEvent *error)
/* .gdbinit puts a breakpoint here, so make sure it is not inlined. */
#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
#define NO_INLINE __attribute__((noinline))
#else
#define NO_INLINE
#endif
/* Some versions of GNU/Linux define noinline in their headers. */
#ifdef noinline
#undef noinline
#endif
/* On older GCC versions, just putting x_error_quitter
after x_error_handler prevents inlining into the former. */