summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2010-07-07 20:31:04 -0700
committerDan Nicolaescu <dann@ics.uci.edu>2010-07-07 20:31:04 -0700
commit49d9e6b07bc34acf755ded0fc255e974a37f9189 (patch)
tree5646f202d13f595532e744b675e4a2f0201f810d /src
parent313d9eb21863418cb91328c3d5ef0c2d356fc483 (diff)
downloademacs-49d9e6b07bc34acf755ded0fc255e974a37f9189.tar.gz
Remove src/prefix-args.c.
* configure.in (PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): Remove. * msdos/sed1v2.inp: Remove reference to prefix-args. * prefix-args.c: Remove file. * src/autodeps.mk (ALLOBJS): Remove reference to prefix-args. * src/Makefile.in (temacs${EXEEXT}): Remove references to PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS. (mostlyclean): Remove reference to prefix-args. (prefix-args): Remove.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/Makefile.in16
-rw-r--r--src/autodeps.mk2
-rw-r--r--src/prefix-args.c82
4 files changed, 12 insertions, 96 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b601fecf809..415211558a5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
+ Remove prefix-args.c
+ * prefix-args.c: Remove file.
+ * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
+ * Makefile.in (temacs${EXEEXT}): Remove references to
+ PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
+ (mostlyclean): Remove reference to prefix-args.
+ (prefix-args): Remove.
+
Simplify cstart_of_data, start_of_code and related code.
* mem-limits.h: Remove !emacs and _LIBC conditional code.
(start_of_data): Merge into start_of_data function.
diff --git a/src/Makefile.in b/src/Makefile.in
index 0f8294fd030..933ec98a8d5 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -628,20 +628,10 @@ buildobj.h: Makefile
echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h
-## We cannot define variables for PRE_EDIT and POST_EDIT.
-## If !ORDINARY_LINK && !LINKER && GCC, they add a
-## `./prefix-args -Xlinker ... ` wrapper, otherwise they are empty.
-## One alternative to this approach would be to always call prefix-args,
-## and have it DTRT in all cases, by testing the above defines.
-temacs${EXEEXT}: $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT}
- $(LD) @PRE_EDIT_LDFLAGS@ ${TEMACS_LDFLAGS} @POST_EDIT_LDFLAGS@ \
- ${TEMACS_LDFLAGS2} \
+temacs${EXEEXT}: $(START_FILES) stamp-oldxmenu ${obj} ${otherobj}
+ $(LD) ${TEMACS_LDFLAGS} ${TEMACS_LDFLAGS2} \
-o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES}
-prefix-args${EXEEXT}: prefix-args.o $(config_h)
- $(CC) $(LDFLAGS) prefix-args.o -o prefix-args
-
-
## The following oldxmenu-related rules are only (possibly) used if
## HAVE_X11 && !USE_GTK, but there is no harm in always defining them
## (provided we take a little care that OLDXMENU is never empty).
@@ -688,7 +678,7 @@ doc.o: buildobj.h
mostlyclean:
- rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
+ rm -f temacs${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
rm -f ../etc/DOC
rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
rm -f buildobj.h
diff --git a/src/autodeps.mk b/src/autodeps.mk
index c3cc91e22a7..fb0e21366c7 100644
--- a/src/autodeps.mk
+++ b/src/autodeps.mk
@@ -2,5 +2,5 @@
## This is inserted in src/Makefile if AUTO_DEPEND=yes.
-ALLOBJS=$(START_FILES) ${obj} ${otherobj} prefix-args.o
+ALLOBJS=$(START_FILES) ${obj} ${otherobj}
-include $(ALLOBJS:%.o=${DEPDIR}/%.d)
diff --git a/src/prefix-args.c b/src/prefix-args.c
deleted file mode 100644
index 84e47dabb9a..00000000000
--- a/src/prefix-args.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* prefix-args.c - echo each argument, prefixed by a string.
- Copyright (C) 1992, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- 2008, 2009, 2010 Free Software Foundation, Inc.
-
-This file is part of GNU Emacs.
-
-GNU Emacs is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-GNU Emacs is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
-
-/* Jim Blandy <jimb@occs.cs.oberlin.edu> - September 1992
-
- When using GCC 2 as the linker in the build process, options
- intended for the linker need to be prefixed with the "-Xlinker"
- option. If an option takes an argument, we need to use -Xlinker
- twice - once for the option and once for its argument. For
- example, to run the linker with the options "-Bstatic" "-e"
- "_start", you'd need to pass the following options to GCC:
-
- -Xlinker -Bstatic -Xlinker -e -Xlinker _start.
-
- The Emacs makefile used to use a Bourne Shell `for' loop to prefix
- each linker option with "-Xlinker", but 1) the for loop was hairier
- than one might hope because it had to work when there were no
- arguments to pass to the linker - the shell barfs on a loop like
- this:
-
- for arg in ; do echo -Xlinker "$arg"; done
-
- and 2) the whole compilation command containing this loop seems to
- exit with a non-zero status and halt the build under Ultrix.
-
- If I can't write a completely portable program to do this in C,
- I'm quitting and taking up gardening. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#if STDC_HEADERS
-# include <stdlib.h> /* for proper declaration of `exit' */
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main (int argc, char **argv)
-{
- char *progname;
- char *prefix;
-
- progname = argv[0];
- argc--, argv++;
-
- if (argc < 1)
- {
- fprintf (stderr, "Usage: %s PREFIX ARGS...\n\
-Echo each ARG preceded by PREFIX and a space.\n", progname);
- exit (2);
- }
-
- prefix = argv[0];
- argc--, argv++;
-
- for (; argc > 0; argc--, argv++)
- printf ("%s %s%c", prefix, argv[0], (argc > 1) ? ' ' : '\n');
-
- exit (0);
-}
-
-/* arch-tag: 08136d70-e5c0-49c7-bcd8-b4850233977a
- (do not change this comment) */