emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r100335: Define some malloc objects w


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100335: Define some malloc objects with configure, not cpp.
Date: Mon, 17 May 2010 19:30:13 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100335
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Mon 2010-05-17 19:30:13 -0700
message:
  Define some malloc objects with configure, not cpp.
  
  * configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables.
  * config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc.
  
  * src/Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
  (gmallocobj, vmlimitobj): Replace with previous two variables.
  (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
  
  * msdos/sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o.
  (VMLIMIT_OBJ): Edit to vm-limit.o.
modified:
  ChangeLog
  config.bat
  configure.in
  msdos/ChangeLog
  msdos/sed1v2.inp
  src/ChangeLog
  src/Makefile.in
=== modified file 'ChangeLog'
--- a/ChangeLog 2010-05-17 21:02:06 +0000
+++ b/ChangeLog 2010-05-18 02:30:13 +0000
@@ -1,3 +1,8 @@
+2010-05-18  Glenn Morris  <address@hidden>
+
+       * config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc.
+       * configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables.
+
 2010-05-17  Stefan Monnier  <address@hidden>
 
        * Makefile.in (src): Provide the name of the VCS file that witnesses

=== modified file 'config.bat'
--- a/config.bat        2010-05-15 07:51:52 +0000
+++ b/config.bat        2010-05-18 02:30:13 +0000
@@ -201,6 +201,12 @@
 rm -f makefile.tmp
 :src5
 
+if "%sys_malloc%" == "" goto src5a
+sed -e "/^GMALLOC_OBJ *=/s/gmalloc.o//" <Makefile >makefile.tmp
+sed -e "/^VMLIMIT_OBJ *=/s/vm-limit.o//" <makefile.tmp >Makefile
+rm -f makefile.tmp
+:src5a
+
 if "%nodebug%" == "" goto src6
 sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp
 sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile

=== modified file 'configure.in'
--- a/configure.in      2010-05-17 05:15:03 +0000
+++ b/configure.in      2010-05-18 02:30:13 +0000
@@ -1592,11 +1592,20 @@
 if test $emacs_cv_var___after_morecore_hook = no; then
   doug_lea_malloc=no
 fi
+
 if test "${system_malloc}" = "yes"; then
   GNU_MALLOC=no
   GNU_MALLOC_reason="
     (The GNU allocators don't work with this system configuration.)"
+  GMALLOC_OBJ=
+  VMLIMIT_OBJ=
+else
+  test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
+  VMLIMIT_OBJ=vm-limit.o
 fi
+AC_SUBST(GMALLOC_OBJ)
+AC_SUBST(VMLIMIT_OBJ)
+
 if test "$doug_lea_malloc" = "yes" ; then
   if test "$GNU_MALLOC" = yes ; then
     GNU_MALLOC_reason="
@@ -3208,7 +3217,7 @@
 else
   CYGWIN_OBJ=
   PRE_ALLOC_OBJ=lastfile.o
-  POST_ALLOC_OBJ="\$(vmlimitobj)"
+  POST_ALLOC_OBJ="\$(VMLIMIT_OBJ)"
 fi
 AC_SUBST(CYGWIN_OBJ)
 AC_SUBST(PRE_ALLOC_OBJ)

=== modified file 'msdos/ChangeLog'
--- a/msdos/ChangeLog   2010-05-17 05:15:03 +0000
+++ b/msdos/ChangeLog   2010-05-18 02:30:13 +0000
@@ -1,3 +1,8 @@
+2010-05-18  Glenn Morris  <address@hidden>
+
+       * sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o.
+       (VMLIMIT_OBJ): Edit to vm-limit.o.
+
 2010-05-17  Glenn Morris  <address@hidden>
 
        * sed1v2.inp (OLDXMENU_DEPS): Edit to empty.

=== modified file 'msdos/sed1v2.inp'
--- a/msdos/sed1v2.inp  2010-05-17 05:15:03 +0000
+++ b/msdos/sed1v2.inp  2010-05-18 02:30:13 +0000
@@ -116,6 +116,8 @@
 /^OLDXMENU *=/s/@OLDXMENU@//
 /^LIBXMENU *=/s/@LIBXMENU@//
 /^LIBX_OTHER *=/s/@LIBX_OTHER@//
+/^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
+/^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
 /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
 /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
 /^UNEXEC_OBJ *=/s/@unexec@/unexec.o/

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-05-17 05:15:03 +0000
+++ b/src/ChangeLog     2010-05-18 02:30:13 +0000
@@ -1,3 +1,9 @@
+2010-05-18  Glenn Morris  <address@hidden>
+
+       * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
+       (gmallocobj, vmlimitobj): Replace with previous two variables.
+       (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
+
 2010-05-17  Glenn Morris  <address@hidden>
 
        * Makefile.in (OLDXMENU_DEPS): New, set by configure.

=== modified file 'src/Makefile.in'
--- a/src/Makefile.in   2010-05-17 21:02:06 +0000
+++ b/src/Makefile.in   2010-05-18 02:30:13 +0000
@@ -401,28 +401,25 @@
   w32.o w32console.o w32fns.o w32heap.o w32inevt.o \
   w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_OBJ)
 
-gmallocobj =
+/* gmalloc.o if !SYSTEM_MALLOC && !DOUG_LEA_MALLOC, else empty.  */
address@hidden@
+
+/* vm-limit.o if !SYSTEM_MALLOC, else empty.  */
address@hidden@
+
+#if defined (REL_ALLOC) && ! defined (SYSTEM_MALLOC)
+rallocobj = ralloc.o
+#else
 rallocobj =
-vmlimitobj =
-#ifndef SYSTEM_MALLOC
-#ifndef DOUG_LEA_MALLOC
-gmallocobj = gmalloc.o
-#endif
-
-#ifdef REL_ALLOC
-rallocobj = ralloc.o
-#endif
-
-vmlimitobj = vm-limit.o
-#endif /* !SYSTEM_MALLOC */
+#endif
 
 /* Empty on Cygwin, lastfile.o elsewhere.  */
 address@hidden@
-/* lastfile.o vm-limit.o on Cygwin, $vmlimitobj elsewhere.  */
+/* lastfile.o vm-limit.o on Cygwin, $VMLIMIT_OBJ elsewhere.  */
 address@hidden@
 
 /* List of object files that make-docfile should not be told about.  */
-otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \
+otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(rallocobj) \
   $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS)
 
 /* This is the platform-specific list of Lisp files loaded into the


reply via email to

[Prev in Thread] Current Thread [Next in Thread]