diff options
| author | Glenn Morris | 2010-05-17 19:44:07 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-17 19:44:07 -0700 |
| commit | 40dc6bf44ec6e258dabd6aa3c674f8e65ded64bb (patch) | |
| tree | 2fd6c610f4a8a842abc4816dbdd87ff35949e959 | |
| parent | be4ff9dad8bf43251f78f58a9ce86cf8bb153300 (diff) | |
| download | emacs-40dc6bf44ec6e258dabd6aa3c674f8e65ded64bb.tar.gz emacs-40dc6bf44ec6e258dabd6aa3c674f8e65ded64bb.zip | |
Set rallocobj with configure, not cpp.
* configure.in (REL_ALLOC): Unset on gnu, gnu-linux if DOUG_LEA_MALLOC.
(RALLOC_OBJ): New output variable.
* config.bat (RALLOC_OBJ): Edit to empty if sys_malloc.
* src/Makefile.in (RALLOC_OBJ): New, set by configure.
(rallocobj): Replace with the previous variable.
(otherobj): Use $RALLOC_OBJ.
* src/s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
* src/s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
* msdos/sed1v2.inp (RALLOC_OBJ): Edit to ralloc.o.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | config.bat | 5 | ||||
| -rw-r--r-- | configure.in | 15 | ||||
| -rw-r--r-- | msdos/ChangeLog | 2 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 1 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/Makefile.in | 9 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 5 | ||||
| -rw-r--r-- | src/s/gnu.h | 10 |
9 files changed, 37 insertions, 21 deletions
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * config.bat (RALLOC_OBJ): Edit to empty if sys_malloc. | ||
| 4 | * configure.in (REL_ALLOC): Unset on gnu, gnu-linux if DOUG_LEA_MALLOC. | ||
| 5 | (RALLOC_OBJ): New output variable. | ||
| 6 | |||
| 3 | * config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc. | 7 | * config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc. |
| 4 | * configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables. | 8 | * configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables. |
| 5 | 9 | ||
diff --git a/config.bat b/config.bat index 35fef44b582..20b8b285e59 100644 --- a/config.bat +++ b/config.bat | |||
| @@ -203,8 +203,9 @@ rm -f makefile.tmp | |||
| 203 | 203 | ||
| 204 | if "%sys_malloc%" == "" goto src5a | 204 | if "%sys_malloc%" == "" goto src5a |
| 205 | sed -e "/^GMALLOC_OBJ *=/s/gmalloc.o//" <Makefile >makefile.tmp | 205 | sed -e "/^GMALLOC_OBJ *=/s/gmalloc.o//" <Makefile >makefile.tmp |
| 206 | sed -e "/^VMLIMIT_OBJ *=/s/vm-limit.o//" <makefile.tmp >Makefile | 206 | sed -e "/^VMLIMIT_OBJ *=/s/vm-limit.o//" <makefile.tmp >makefile.tmp2 |
| 207 | rm -f makefile.tmp | 207 | sed -e "/^RALLOC_OBJ *=/s/ralloc.o//" <makefile.tmp2 >Makefile |
| 208 | rm -f makefile.tmp makefile.tmp2 | ||
| 208 | :src5a | 209 | :src5a |
| 209 | 210 | ||
| 210 | if "%nodebug%" == "" goto src6 | 211 | if "%nodebug%" == "" goto src6 |
diff --git a/configure.in b/configure.in index 86d3db67361..a58ac2278d0 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1613,6 +1613,14 @@ if test "$doug_lea_malloc" = "yes" ; then | |||
| 1613 | fi | 1613 | fi |
| 1614 | AC_DEFINE(DOUG_LEA_MALLOC, 1, | 1614 | AC_DEFINE(DOUG_LEA_MALLOC, 1, |
| 1615 | [Define to 1 if you are using the GNU C Library.]) | 1615 | [Define to 1 if you are using the GNU C Library.]) |
| 1616 | |||
| 1617 | ## Use mmap directly for allocating larger buffers. | ||
| 1618 | ## FIXME this comes from src/s/{gnu,gnu-linux}.h: | ||
| 1619 | ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif | ||
| 1620 | ## Does the AC_FUNC_MMAP test below make this check unecessary? | ||
| 1621 | case "$opsys" in | ||
| 1622 | gnu*) REL_ALLOC=no ;; | ||
| 1623 | esac | ||
| 1616 | fi | 1624 | fi |
| 1617 | 1625 | ||
| 1618 | if test x"${REL_ALLOC}" = x; then | 1626 | if test x"${REL_ALLOC}" = x; then |
| @@ -3198,16 +3206,21 @@ if test "${HAVE_MENUS}" = "yes" ; then | |||
| 3198 | (This is automatic if you use X, but the option to specify it remains.) | 3206 | (This is automatic if you use X, but the option to specify it remains.) |
| 3199 | It is also defined with other window systems that support xmenu.c.]) | 3207 | It is also defined with other window systems that support xmenu.c.]) |
| 3200 | fi | 3208 | fi |
| 3209 | |||
| 3201 | if test "${GNU_MALLOC}" = "yes" ; then | 3210 | if test "${GNU_MALLOC}" = "yes" ; then |
| 3202 | AC_DEFINE(GNU_MALLOC, 1, | 3211 | AC_DEFINE(GNU_MALLOC, 1, |
| 3203 | [Define to 1 if you want to use the GNU memory allocator.]) | 3212 | [Define to 1 if you want to use the GNU memory allocator.]) |
| 3204 | fi | 3213 | fi |
| 3214 | |||
| 3215 | RALLOC_OBJ= | ||
| 3205 | if test "${REL_ALLOC}" = "yes" ; then | 3216 | if test "${REL_ALLOC}" = "yes" ; then |
| 3206 | AC_DEFINE(REL_ALLOC, 1, | 3217 | AC_DEFINE(REL_ALLOC, 1, |
| 3207 | [Define REL_ALLOC if you want to use the relocating allocator for | 3218 | [Define REL_ALLOC if you want to use the relocating allocator for |
| 3208 | buffer space.]) | 3219 | buffer space.]) |
| 3209 | fi | ||
| 3210 | 3220 | ||
| 3221 | test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o | ||
| 3222 | fi | ||
| 3223 | AC_SUBST(RALLOC_OBJ) | ||
| 3211 | 3224 | ||
| 3212 | if test "$opsys" = "cygwin"; then | 3225 | if test "$opsys" = "cygwin"; then |
| 3213 | CYGWIN_OBJ="sheap.o" | 3226 | CYGWIN_OBJ="sheap.o" |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index 4ce549cfd8b..1034b0a3d23 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * sed1v2.inp (RALLOC_OBJ): Edit to ralloc.o. | ||
| 4 | |||
| 3 | * sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o. | 5 | * sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o. |
| 4 | (VMLIMIT_OBJ): Edit to vm-limit.o. | 6 | (VMLIMIT_OBJ): Edit to vm-limit.o. |
| 5 | 7 | ||
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index 906d558ed75..574910d2beb 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -118,6 +118,7 @@ s/\.h\.in/.h-in/ | |||
| 118 | /^LIBX_OTHER *=/s/@LIBX_OTHER@// | 118 | /^LIBX_OTHER *=/s/@LIBX_OTHER@// |
| 119 | /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/ | 119 | /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/ |
| 120 | /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/ | 120 | /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/ |
| 121 | /^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/ | ||
| 121 | /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ | 122 | /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ |
| 122 | /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ | 123 | /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ |
| 123 | /^UNEXEC_OBJ *=/s/@unexec@/unexec.o/ | 124 | /^UNEXEC_OBJ *=/s/@unexec@/unexec.o/ |
diff --git a/src/ChangeLog b/src/ChangeLog index bb5d7e6d427..fd0c3e014c9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (RALLOC_OBJ): New, set by configure. | ||
| 4 | (rallocobj): Replace with the previous variable. | ||
| 5 | (otherobj): Use $RALLOC_OBJ. | ||
| 6 | |||
| 7 | * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]: | ||
| 8 | * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure. | ||
| 9 | |||
| 3 | * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure. | 10 | * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure. |
| 4 | (gmallocobj, vmlimitobj): Replace with previous two variables. | 11 | (gmallocobj, vmlimitobj): Replace with previous two variables. |
| 5 | (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ. | 12 | (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ. |
diff --git a/src/Makefile.in b/src/Makefile.in index ff3726df6f8..6ed6e97b420 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -407,11 +407,8 @@ GMALLOC_OBJ=@GMALLOC_OBJ@ | |||
| 407 | /* vm-limit.o if !SYSTEM_MALLOC, else empty. */ | 407 | /* vm-limit.o if !SYSTEM_MALLOC, else empty. */ |
| 408 | VMLIMIT_OBJ=@VMLIMIT_OBJ@ | 408 | VMLIMIT_OBJ=@VMLIMIT_OBJ@ |
| 409 | 409 | ||
| 410 | #if defined (REL_ALLOC) && ! defined (SYSTEM_MALLOC) | 410 | /* ralloc.o if !SYSTEM_MALLOC && REL_ALLOC, else empty. */ |
| 411 | rallocobj = ralloc.o | 411 | RALLOC_OBJ=@RALLOC_OBJ@ |
| 412 | #else | ||
| 413 | rallocobj = | ||
| 414 | #endif | ||
| 415 | 412 | ||
| 416 | /* Empty on Cygwin, lastfile.o elsewhere. */ | 413 | /* Empty on Cygwin, lastfile.o elsewhere. */ |
| 417 | PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ | 414 | PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ |
| @@ -419,7 +416,7 @@ PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ | |||
| 419 | POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ | 416 | POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ |
| 420 | 417 | ||
| 421 | /* List of object files that make-docfile should not be told about. */ | 418 | /* List of object files that make-docfile should not be told about. */ |
| 422 | otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(rallocobj) \ | 419 | otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(RALLOC_OBJ) \ |
| 423 | $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) | 420 | $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) |
| 424 | 421 | ||
| 425 | /* This is the platform-specific list of Lisp files loaded into the | 422 | /* This is the platform-specific list of Lisp files loaded into the |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 3aa2dc16f42..c062f855276 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -147,11 +147,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 147 | 147 | ||
| 148 | #define NARROWPROTO 1 | 148 | #define NARROWPROTO 1 |
| 149 | 149 | ||
| 150 | /* Use mmap directly for allocating larger buffers. */ | ||
| 151 | #ifdef DOUG_LEA_MALLOC | ||
| 152 | #undef REL_ALLOC | ||
| 153 | #endif | ||
| 154 | |||
| 155 | /* Tell that garbage collector that setjmp is known to save all | 150 | /* Tell that garbage collector that setjmp is known to save all |
| 156 | registers relevant for conservative garbage collection in the jmp_buf. */ | 151 | registers relevant for conservative garbage collection in the jmp_buf. */ |
| 157 | /* Not all the architectures are tested, but there are Debian packages | 152 | /* Not all the architectures are tested, but there are Debian packages |
diff --git a/src/s/gnu.h b/src/s/gnu.h index 9f6fe52a5de..cb4c4a9d807 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Definitions file for GNU Emacs running on the GNU Hurd. | 1 | /* Definitions file for GNU Emacs running on the GNU Hurd. |
| 2 | Copyright (C) 1994, 1995, 1996, 2001, 2002, 2003, 2004, 2005, 2006, | 2 | |
| 3 | 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 3 | Copyright (C) 1994, 1995, 1996, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | 2008, 2009, 2010 Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -28,11 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | 29 | ||
| 29 | #define SIGNALS_VIA_CHARACTERS | 30 | #define SIGNALS_VIA_CHARACTERS |
| 30 | 31 | ||
| 31 | /* Use mmap directly for allocating larger buffers. */ | ||
| 32 | #ifdef DOUG_LEA_MALLOC | ||
| 33 | #undef REL_ALLOC | ||
| 34 | #endif | ||
| 35 | |||
| 36 | /* GNU needs its own crt0, and libc defines data_start. */ | 32 | /* GNU needs its own crt0, and libc defines data_start. */ |
| 37 | #define ORDINARY_LINK | 33 | #define ORDINARY_LINK |
| 38 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) | 34 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) |