aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-06-15 05:47:39 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-06-15 05:47:39 +0000
commite87b9d8b7ad4941bf2c33d42467569568d18ca5c (patch)
treea026af8e466d7d8ffc1e767e3c6e833b5442690e /gcc/libgcc2.c
parentad9b8af6f94fb3b66bad2ae20e826f4196fb2578 (diff)
downloadgcc-e87b9d8b7ad4941bf2c33d42467569568d18ca5c.zip
gcc-e87b9d8b7ad4941bf2c33d42467569568d18ca5c.tar.gz
gcc-e87b9d8b7ad4941bf2c33d42467569568d18ca5c.tar.bz2
libgcc2.c: Delete sysV68 L_trampoline section.
* libgcc2.c: Delete sysV68 L_trampoline section. * config/m68k/mot3300-crt0.S: Delete file. * config/m68k/mot3300Mcrt0.S: Likewise. From-SVN: r67965
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index e026e4b..f898ba9 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1496,51 +1496,6 @@ mprotect (char *addr, int len, int prot)
#ifdef TRANSFER_FROM_TRAMPOLINE
TRANSFER_FROM_TRAMPOLINE
#endif
-
-#ifdef __sysV68__
-
-#include <sys/signal.h>
-#include <errno.h>
-
-/* Motorola forgot to put memctl.o in the libp version of libc881.a,
- so define it here, because we need it in __clear_insn_cache below */
-/* On older versions of this OS, no memctl or MCT_TEXT are defined;
- hence we enable this stuff only if MCT_TEXT is #define'd. */
-
-#ifdef MCT_TEXT
-asm("\n\
- global memctl\n\
-memctl:\n\
- movq &75,%d0\n\
- trap &0\n\
- bcc.b noerror\n\
- jmp cerror%\n\
-noerror:\n\
- movq &0,%d0\n\
- rts");
-#endif
-
-/* Clear instruction cache so we can call trampolines on stack.
- This is called from FINALIZE_TRAMPOLINE in mot3300.h. */
-
-void
-__clear_insn_cache (void)
-{
-#ifdef MCT_TEXT
- int save_errno;
-
- /* Preserve errno, because users would be surprised to have
- errno changing without explicitly calling any system-call. */
- save_errno = errno;
-
- /* Keep it simple : memctl (MCT_TEXT) always fully clears the insn cache.
- No need to use an address derived from _start or %sp, as 0 works also. */
- memctl(0, 4096, MCT_TEXT);
- errno = save_errno;
-#endif
-}
-
-#endif /* __sysV68__ */
#endif /* L_trampoline */
#ifndef __CYGWIN__