diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-04-16 20:58:11 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-04-16 20:58:11 +0000 |
commit | c98b4c80c4e86768120826037e5de3311646c8bd (patch) | |
tree | e49ab911219b9a0d7a4a0a4353bd471de6985130 | |
parent | 98ea88e50becade995de3fad10208a8ffaea502f (diff) | |
download | gcc-c98b4c80c4e86768120826037e5de3311646c8bd.tar.gz |
Instead of redefining INITIALIZE_TRAMPOLINE, make use of the new
FINISH_INIT_TRAMPOLINE.
(FINISH_INIT_TRAMPOLINE): Rename to FINALIZE_TRAMPOLINE
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11825 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/config/m68k/next.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/gcc/config/m68k/next.h b/gcc/config/m68k/next.h index 53cb94b5022..2163519ca2e 100644 --- a/gcc/config/m68k/next.h +++ b/gcc/config/m68k/next.h @@ -183,20 +183,13 @@ Boston, MA 02111-1307, USA. */ #define OBJC_FORWARDING_STACK_OFFSET 8 #define OBJC_FORWARDING_MIN_OFFSET 8 -/* INITIALIZE_TRAMPOLINE is changed so that it also enables executable - stack. The __enable_execute_stack also clears the insn cache. */ - -/* NOTE: part of this is copied from m68k.h */ -#undef INITIALIZE_TRAMPOLINE -#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \ -{ \ - rtx _addr, _func; \ - emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 10)), CXT); \ - emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 14)), FNADDR); \ - _addr = memory_address (SImode, (TRAMP)); \ - _func = gen_rtx (SYMBOL_REF, Pmode, "__enable_execute_stack"); \ - emit_library_call (_func, 0, VOIDmode, 1, _addr, Pmode); \ -} +/* FINALIZE_TRAMPOLINE enables executable stack. The + __enable_execute_stack also clears the insn cache. */ + +#undef FINALIZE_TRAMPOLINE +#define FINALIZE_TRAMPOLINE(TRAMP) + emit_library_call(gen_rtx(SYMBOL_REF, Pmode, "__enable_execute_stack"), + 0, VOIDmode, 1, memory_address(SImode, (TRAMP)), Pmode) /* A C expression used to clear the instruction cache from address BEG to address END. On NeXTSTEP this i a system trap. */ |