summaryrefslogtreecommitdiff
path: root/src/ecrt0.c
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-07-17 13:57:13 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-07-17 13:57:13 +0000
commit2749d28e1bd80262749657ee4a60e5b1f75b6cb8 (patch)
tree91c13313ccdf107e1df4a206e184c1c488af3c2c /src/ecrt0.c
parent6fb5f7dad5ede99f033dbbfc8539764354a4177b (diff)
downloademacs-2749d28e1bd80262749657ee4a60e5b1f75b6cb8.tar.gz
* ecrt0.c: Remove code depending on m68000, not used anymore.
* fns.c (hash_remove): Make static. * lisp.h (hash_remove): Don't prototype. * m/ibmrs6000.h: * m/ibms390x.h: * m/macppc.h: Remove boilerplate comments. * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on Solaris, which does not need them. * m/vax.h: Remove comments about unsupported systems. * s/darwin.h: Reorganize ifdefs.
Diffstat (limited to 'src/ecrt0.c')
-rw-r--r--src/ecrt0.c51
1 files changed, 2 insertions, 49 deletions
diff --git a/src/ecrt0.c b/src/ecrt0.c
index 7ef066ef22f..f835cf65c72 100644
--- a/src/ecrt0.c
+++ b/src/ecrt0.c
@@ -39,13 +39,6 @@ And always:
[next arg string]... 0 or more times
*/
-/* On the 16000, at least in the one 4.2 system I know about,
- the initial data format is
- sp -> word containing argc
- word containing argp
- word pointing to first arg string, and so on as above
-*/
-
#ifdef emacs
#include <config.h>
#endif
@@ -97,31 +90,12 @@ asm(" global start ");
asm(" start: ");
#endif /* NODOT_GLOBAL_START */
-#ifdef m68000
-
-/* GCC 2.1, when optimization is turned off, seems to want to push a
- word of garbage on the stack, which screws up the CRT0_DUMMIES
- hack. So we hand-code _start in assembly language. */
-asm(".text ");
-asm(" .even ");
-asm(".globl __start ");
-asm("__start: ");
-asm(" link a6,#0 ");
-asm(" jbsr _start1 ");
-asm(" unlk a6 ");
-asm(" rts ");
-
-#else /* not m68000 */
-
_start ()
{
/* On vax, nothing is pushed here */
-/* On sequent, bogus fp is pushed here */
start1 ();
}
-#endif /* possibly m68000 */
-
static
start1 (CRT0_DUMMIES argc, xargv)
int argc;
@@ -140,9 +114,7 @@ start1 (CRT0_DUMMIES argc, xargv)
}
#else /* not CRT0_DUMMIES */
-/* "m68k" and "m68000" both stand for m68000 processors,
- but with different program-entry conventions.
- This is a kludge. Now that the CRT0_DUMMIES mechanism above exists,
+/* This is a kludge. Now that the CRT0_DUMMIES mechanism above exists,
most of these machines could use the vax code above
with some suitable definition of CRT0_DUMMIES.
Then the symbol m68k could be flushed.
@@ -162,29 +134,10 @@ start1 (CRT0_DUMMIES argc, xargv)
asm (" jsr exit");
asm (" mov.l &1,%d0"); /* d0 = 1 => exit */
asm (" trap &0");
-#else /* m68000, not m68k */
-#ifdef m68000
-
-_start ()
-{
-#ifdef sun
- finitfp_();
-#endif
-/* On 68000, _start pushes a6 onto stack */
- start1 ();
-}
-#endif /* m68000 */
-#endif /* m68k */
-
-#if defined(m68k) || defined(m68000)
/* ignore takes care of skipping the a6 value pushed in start. */
static
-#if defined(m68k)
start1 (argc, xargv)
-#else
-start1 (ignore, argc, xargv)
-#endif
int argc;
char *xargv;
{
@@ -196,7 +149,7 @@ start1 (ignore, argc, xargv)
exit (main (argc, argv, environ));
}
-#endif /* m68k or m68000 */
+#endif /* m68k */
#endif /* not CRT0_DUMMIES */