Commit d2692ef8 by Donn Terry Committed by Richard Henderson

alpha.c (alpha_initialize_trampoline): Add covert_memory_address calls as needed.

        * alpha.c (alpha_initialize_trampoline): Add covert_memory_address
        calls as needed.

From-SVN: r26604
parent 98283b42
...@@ -2,6 +2,9 @@ Fri Apr 23 14:57:33 1999 Donn Terry <donn@interix.com> ...@@ -2,6 +2,9 @@ Fri Apr 23 14:57:33 1999 Donn Terry <donn@interix.com>
* alpha32.h (INITIALIZE_TRAMPOLINE): Get offsets right. * alpha32.h (INITIALIZE_TRAMPOLINE): Get offsets right.
* alpha.c (alpha_initialize_trampoline): Add covert_memory_address
calls as needed.
Fri Apr 23 14:36:47 1999 Richard Henderson <rth@cygnus.com> Fri Apr 23 14:36:47 1999 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_expand_prologue): Don't negate frame size * alpha.c (alpha_expand_prologue): Don't negate frame size
......
...@@ -2949,10 +2949,14 @@ alpha_initialize_trampoline (tramp, fnaddr, cxt, fnofs, cxtofs, jmpofs) ...@@ -2949,10 +2949,14 @@ alpha_initialize_trampoline (tramp, fnaddr, cxt, fnofs, cxtofs, jmpofs)
int fnofs, cxtofs, jmpofs; int fnofs, cxtofs, jmpofs;
{ {
rtx temp, temp1, addr; rtx temp, temp1, addr;
/* ??? Something is wrong with VMS codegen in that we get aborts when /* VMS really uses DImode pointers in memory at this point. */
using ptr_mode. Hack around it for now. */
enum machine_mode mode = TARGET_OPEN_VMS ? Pmode : ptr_mode; enum machine_mode mode = TARGET_OPEN_VMS ? Pmode : ptr_mode;
#ifdef POINTERS_EXTEND_UNSIGNED
fnaddr = convert_memory_address (mode, fnaddr);
cxt = convert_memory_address (mode, cxt);
#endif
/* Store function address and CXT. */ /* Store function address and CXT. */
addr = memory_address (mode, plus_constant (tramp, fnofs)); addr = memory_address (mode, plus_constant (tramp, fnofs));
emit_move_insn (gen_rtx (MEM, mode, addr), fnaddr); emit_move_insn (gen_rtx (MEM, mode, addr), fnaddr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment