Mercurial > emacs
diff src/config.in @ 111688:7153f8068e69
Mark debugger related variables and functions as EXTERNALLY_VISIBLE
so that they do not get optimized away.
* configure.in (EXTERNALLY_VISIBLE): New definition.
* src/emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
(gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
(gdb_pvec_type):
* src/print.c (print_output_debug_flag):
* src/lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
(safe_debug_print): New declaration.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Tue, 23 Nov 2010 10:47:23 -0800 |
parents | 17d793ffe36f |
children | 52f1a401269c |
line wrap: on
line diff
--- a/src/config.in Tue Nov 23 10:09:55 2010 -0800 +++ b/src/config.in Tue Nov 23 10:47:23 2010 -0800 @@ -1197,6 +1197,12 @@ #define NO_INLINE #endif +#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) +#define EXTERNALLY_VISIBLE __attribute__((externally_visible)) +#else +#define EXTERNALLY_VISIBLE +#endif + /* Some versions of GNU/Linux define noinline in their headers. */ #ifdef noinline #undef noinline