aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-11-15 10:18:37 +0200
committerEli Zaretskii2013-11-15 10:18:37 +0200
commit73583a99782d58134e75a81ba0ca2dc8a9bcf37b (patch)
treee4bc57f82a60104046de02ec205d7cc344e916f4 /src
parent3cd4192f84071777b36dab8a051cda5059eb4262 (diff)
downloademacs-73583a99782d58134e75a81ba0ca2dc8a9bcf37b.tar.gz
emacs-73583a99782d58134e75a81ba0ca2dc8a9bcf37b.zip
Correct overly-optimistic assumptions about C macro support by "gcc -g3".
src/lisp.h (DEBUGGER_SEES_C_MACROS) [GCC < v3.5]: Pessimistically assume C macros are not supported even under -g3 in these old GCC versions.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/lisp.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 92174beb27b..14de1e793b5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12013-11-15 Eli Zaretskii <eliz@gnu.org>
2
3 * lisp.h (DEBUGGER_SEES_C_MACROS) [GCC < v3.5]: Pessimistically
4 assume C macros are not supported even under -g3 in these old GCC
5 versions.
6
12013-11-15 Leo Liu <sdl.web@gmail.com> 72013-11-15 Leo Liu <sdl.web@gmail.com>
2 8
3 * minibuf.c (Ftry_completion, Fall_completions) 9 * minibuf.c (Ftry_completion, Fall_completions)
diff --git a/src/lisp.h b/src/lisp.h
index 3eb31ac34be..50b0f75c471 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -45,6 +45,13 @@ INLINE_HEADER_BEGIN
45 definitions visible to the debugger. It's used for symbols that 45 definitions visible to the debugger. It's used for symbols that
46 .gdbinit needs, symbols whose values may not fit in 'int' (where an 46 .gdbinit needs, symbols whose values may not fit in 'int' (where an
47 enum would suffice). */ 47 enum would suffice). */
48#if defined DEBUGGER_SEES_C_MACROS && defined __GNUC__
49/* GCC versions before 3.5 have unreliable support for C macros in
50 debug info. */
51# if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 5)
52# undef DEBUGGER_SEES_C_MACROS
53# endif
54#endif
48#if defined MAIN_PROGRAM && !defined DEBUGGER_SEES_C_MACROS 55#if defined MAIN_PROGRAM && !defined DEBUGGER_SEES_C_MACROS
49# define DEFINE_GDB_SYMBOL_BEGIN(type, id) type const id EXTERNALLY_VISIBLE 56# define DEFINE_GDB_SYMBOL_BEGIN(type, id) type const id EXTERNALLY_VISIBLE
50# define DEFINE_GDB_SYMBOL_END(id) = id; 57# define DEFINE_GDB_SYMBOL_END(id) = id;