From 7b3a82d7e39fd42c1e1c096935758902fa48c2cb Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Wed, 26 Aug 2009 19:57:44 +0000 Subject: [PATCH] * lisp.h: Replace #if 0 code for checking with text pointing to the --enable-checking configure flag. * emacs.c (main): Mention the --enable-profiling configure flag instead of using CFLAGS. --- src/ChangeLog | 8 ++++++++ src/emacs.c | 4 +--- src/lisp.h | 25 ++----------------------- 3 files changed, 11 insertions(+), 26 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3377e83313..37f2566ffb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2009-08-26 Dan Nicolaescu + + * lisp.h: Replace #if 0 code for checking with text pointing to + the --enable-checking configure flag. + + * emacs.c (main): Mention the --enable-profiling configure flag + instead of using CFLAGS. + 2009-08-26 Ken Raeburn * Makefile.in (buildobj.h): New target. diff --git a/src/emacs.c b/src/emacs.c index 8097d7a382..494fb20945 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1809,9 +1809,7 @@ main (int argc, char **argv) /* Set up for profiling. This is known to work on FreeBSD, GNU/Linux and MinGW. It might work on some other systems too. Give it a try and tell us if it works on your system. To compile - for profiling, add -pg to the switches your platform uses in - CFLAGS and LDFLAGS. For example: - `make CFLAGS="-pg -g -O -DPROFILING=1" LDFLAGS="-pg -g"'. */ + for profiling, use the configure option --enable-profiling. */ #if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__) #ifdef PROFILING if (initialized) diff --git a/src/lisp.h b/src/lisp.h index 385e0ad4d1..820c258597 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -28,29 +28,8 @@ along with GNU Emacs. If not, see . */ #define P_(proto) () #endif -#if 0 -/* Define this temporarily to hunt a bug. If defined, the size of - strings is redundantly recorded in sdata structures so that it can - be compared to the sizes recorded in Lisp strings. */ - -#define GC_CHECK_STRING_BYTES 1 - -/* Define this to check for short string overrun. */ - -#define GC_CHECK_STRING_OVERRUN 1 - -/* Define this to check the string free list. */ - -#define GC_CHECK_STRING_FREE_LIST 1 - -/* Define this to check for malloc buffer overrun. */ - -#define XMALLOC_OVERRUN_CHECK 1 - -/* Define this to check for errors in cons list. */ -/* #define GC_CHECK_CONS_LIST 1 */ - -#endif /* 0 */ +/* Use the configure flag --enable-checking[=LIST] to enable various + types of run time checks for Lisp objects. */ #ifdef GC_CHECK_CONS_LIST #define CHECK_CONS_LIST() check_cons_list() -- 2.20.1