diff src/ecrt0.c @ 96764:1307c33f5e9a

* 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.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 17 Jul 2008 13:57:13 +0000
parents 4cb0e945175d
children ea3fb04613c1
line wrap: on
line diff
--- a/src/ecrt0.c	Thu Jul 17 13:50:30 2008 +0000
+++ b/src/ecrt0.c	Thu Jul 17 13:57:13 2008 +0000
@@ -39,13 +39,6 @@
 	 [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("	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 @@
 }
 #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 @@
 	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 @@
   exit (main (argc, argv, environ));
 }
 
-#endif /* m68k or m68000 */
+#endif /* m68k */
 
 #endif /* not CRT0_DUMMIES */