X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/f2164e31dc7c98634267abe52f12b4494fbc7f9a..369422051239c7ac9fc48ee42f898e41a77c7561:/admin/make-emacs diff --git a/admin/make-emacs b/admin/make-emacs index fb427540b2..57d04a8f62 100755 --- a/admin/make-emacs +++ b/admin/make-emacs @@ -1,6 +1,6 @@ #! /usr/bin/perl -# Copyright (C) 2001 Free Software Foundation, Inc. +# Copyright (C) 2001, 2006 Free Software Foundation, Inc. # # This file is part of GNU Emacs. # @@ -16,8 +16,8 @@ # # You should have received a copy of the GNU General Public License # along with GNU Emacs; see the file COPYING. If not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. +# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. # Build Emacs with various options for profiling, debugging, # with and without warnings enabled etc. @@ -53,6 +53,7 @@ $rc = GetOptions ("help" => \$help, "wall" => \$wall, "gcc3" => \$gcc3, "trace-selection" => \$trace_selection, + "trace-move" => \$trace_move, "stabs" => \$use_stabs, "optim" => \$optim); @@ -77,6 +78,7 @@ Build Emacs. --wall compile with -Wall --gcc3 use GCC 3.0 (30% slower compilation, slower code) --trace-selection print traces in xselect.c + --trace-move print traces for move_it* functions --stabs use -gstabs instead -g Default is to compile with warnings, with -DGC_MCHECK=1, and @@ -109,7 +111,7 @@ if (@ARGV && $ARGV[0] eq "all") system ("$make clean versionclean") if $all; -if ($wall) +if ($wall) { $warn = "-Wall"; } @@ -123,14 +125,14 @@ $defs = "-DGLYPH_DEBUG=1" unless $optim; $defs = "$defs -DGC_CHECK_MARKED_OBJECTS=1" if $check_marked; $defs = "$defs -DENABLE_CHECKING=1" if $enable_checking; -if ($profile) +if ($profile) { $opts = "-pg"; $defs = "$defs -DPROFILING=1"; } else { - if ($use_stabs) + if ($use_stabs) { $opts = "-gstabs"; } @@ -145,6 +147,7 @@ $defs = "$defs -DGC_MALLOC_CHECK=1 -DGC_PROTECT_MALLOC_STATE=1" if $malloc_check $defs = "$defs -DGC_MCHECK=1" unless $no_mcheck; $defs = "$defs -DTRACE_SELECTION" if $trace_selection; +$defs = "$defs -DDEBUG_TRACE_MOVE" if $trace_move; # arch=pentium leads to slightly faster code than without. $opts = "$opts -march=pentiumpro"; @@ -182,3 +185,5 @@ exit system "$make CC=\"$cc\" CFLAGS=\"$opts\" @ARGV"; # Local Variables: # mode: cperl # End: + +# arch-tag: 5c3f9713-9ece-4a12-b3f8-deaff15974ba