aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2009-08-26 19:57:44 +0000
committerDan Nicolaescu2009-08-26 19:57:44 +0000
commit7b3a82d7e39fd42c1e1c096935758902fa48c2cb (patch)
treedd1d6b6af7d46111f266ea5d7069d60a07fd0250
parent3b64d86b56c392642f204efe4981fd8ec33e7f62 (diff)
downloademacs-7b3a82d7e39fd42c1e1c096935758902fa48c2cb.tar.gz
emacs-7b3a82d7e39fd42c1e1c096935758902fa48c2cb.zip
* 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.
-rw-r--r--src/ChangeLog8
-rw-r--r--src/emacs.c4
-rw-r--r--src/lisp.h25
3 files changed, 11 insertions, 26 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3377e833138..37f2566ffbe 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * lisp.h: Replace #if 0 code for checking with text pointing to
4 the --enable-checking configure flag.
5
6 * emacs.c (main): Mention the --enable-profiling configure flag
7 instead of using CFLAGS.
8
12009-08-26 Ken Raeburn <raeburn@raeburn.org> 92009-08-26 Ken Raeburn <raeburn@raeburn.org>
2 10
3 * Makefile.in (buildobj.h): New target. 11 * Makefile.in (buildobj.h): New target.
diff --git a/src/emacs.c b/src/emacs.c
index 8097d7a382d..494fb209459 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1809,9 +1809,7 @@ main (int argc, char **argv)
1809 /* Set up for profiling. This is known to work on FreeBSD, 1809 /* Set up for profiling. This is known to work on FreeBSD,
1810 GNU/Linux and MinGW. It might work on some other systems too. 1810 GNU/Linux and MinGW. It might work on some other systems too.
1811 Give it a try and tell us if it works on your system. To compile 1811 Give it a try and tell us if it works on your system. To compile
1812 for profiling, add -pg to the switches your platform uses in 1812 for profiling, use the configure option --enable-profiling. */
1813 CFLAGS and LDFLAGS. For example:
1814 `make CFLAGS="-pg -g -O -DPROFILING=1" LDFLAGS="-pg -g"'. */
1815#if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__) 1813#if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__)
1816#ifdef PROFILING 1814#ifdef PROFILING
1817 if (initialized) 1815 if (initialized)
diff --git a/src/lisp.h b/src/lisp.h
index 385e0ad4d1e..820c2585976 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -28,29 +28,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28#define P_(proto) () 28#define P_(proto) ()
29#endif 29#endif
30 30
31#if 0 31/* Use the configure flag --enable-checking[=LIST] to enable various
32/* Define this temporarily to hunt a bug. If defined, the size of 32 types of run time checks for Lisp objects. */
33 strings is redundantly recorded in sdata structures so that it can
34 be compared to the sizes recorded in Lisp strings. */
35
36#define GC_CHECK_STRING_BYTES 1
37
38/* Define this to check for short string overrun. */
39
40#define GC_CHECK_STRING_OVERRUN 1
41
42/* Define this to check the string free list. */
43
44#define GC_CHECK_STRING_FREE_LIST 1
45
46/* Define this to check for malloc buffer overrun. */
47
48#define XMALLOC_OVERRUN_CHECK 1
49
50/* Define this to check for errors in cons list. */
51/* #define GC_CHECK_CONS_LIST 1 */
52
53#endif /* 0 */
54 33
55#ifdef GC_CHECK_CONS_LIST 34#ifdef GC_CHECK_CONS_LIST
56#define CHECK_CONS_LIST() check_cons_list() 35#define CHECK_CONS_LIST() check_cons_list()