[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r99813: * ecrt0.c: Remove MSDOS, m6
From: |
Dan Nicolaescu |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r99813: * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not |
Date: |
Fri, 02 Apr 2010 17:06:38 -0700 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99813
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Fri 2010-04-02 17:06:38 -0700
message:
* ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
used on those platforms.
modified:
src/ChangeLog
src/ecrt0.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-04-02 09:12:21 +0000
+++ b/src/ChangeLog 2010-04-03 00:06:38 +0000
@@ -1,3 +1,8 @@
+2010-04-03 Dan Nicolaescu <address@hidden>
+
+ * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
+ used on those platforms.
+
2010-04-02 Dan Nicolaescu <address@hidden>
Remove extern errno declarations.
=== modified file 'src/ecrt0.c'
--- a/src/ecrt0.c 2010-04-02 03:10:33 +0000
+++ b/src/ecrt0.c 2010-04-03 00:06:38 +0000
@@ -59,9 +59,7 @@
int data_start = 0;
-#ifndef MSDOS
char **environ;
-#endif
#ifndef static
/* On systems where the static storage class is usable, this function
@@ -100,70 +98,7 @@
and optimize it out. */
(void) &start1;
}
-#else /* not CRT0_DUMMIES */
-
-/* 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.
- But I don't want to risk breaking these machines
- in a version 17 patch release, so that change is being put off. */
-
-#ifdef m68k /* Can't do it all from C */
- asm (" global _start");
- asm (" text");
- asm ("_start:");
- asm (" comm splimit%,4");
- asm (" global exit");
- asm (" text");
- asm (" mov.l %d0,splimit%");
- asm (" jsr start1");
- asm (" mov.l %d0,(%sp)");
- asm (" jsr exit");
- asm (" mov.l &1,%d0"); /* d0 = 1 => exit */
- asm (" trap &0");
-
-/* ignore takes care of skipping the a6 value pushed in start. */
-static
-start1 (argc, xargv)
- int argc;
- char *xargv;
-{
- register char **argv = &xargv;
- environ = argv + argc + 1;
-
- if ((char *)environ == xargv)
- environ--;
- exit (main (argc, argv, environ));
-}
-
-#endif /* m68k */
-
-#endif /* not CRT0_DUMMIES */
-
-#ifdef __sparc__
-asm (".global __start");
-asm (".text");
-asm ("__start:");
-asm (" mov 0, %fp");
-asm (" ld [%sp + 64], %o0");
-asm (" add %sp, 68, %o1");
-asm (" sll %o0, 2, %o2");
-asm (" add %o2, 4, %o2");
-asm (" add %o1, %o2, %o2");
-asm (" sethi %hi(_environ), %o3");
-asm (" st %o2, [%o3+%lo(_environ)]");
-asm (" andn %sp, 7, %sp");
-asm (" call _main");
-asm (" sub %sp, 24, %sp");
-asm (" call __exit");
-asm (" nop");
-
-#endif /* __sparc__ */
-
-#if __FreeBSD__ == 2
-char *__progname;
-#endif
+#endif /* CRT0_DUMMIES */
/* arch-tag: 4025c2fb-d6b1-4d29-b1b6-8100b6bd1e74
(do not change this comment) */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r99813: * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not,
Dan Nicolaescu <=