Bring in the following fix from gcc-current:

2002-10-17  Jason Thorpe  <thorpej@wasabisystems.com>

        * config/alpha/alpha.c (alpha_initialize_trampoline): Use
        tramp, not addr, to pass the trampoline address to
        __enable_execute_stack.

Otherwise, incorrect behavior would result if the trampoline happend
to stradle a page boundary.
This commit is contained in:
thorpej 2002-10-17 21:01:03 +00:00
parent 2c07094b2a
commit 00b192ce18
1 changed files with 1 additions and 1 deletions

View File

@ -3070,7 +3070,7 @@ alpha_initialize_trampoline (tramp, fnaddr, cxt, fnofs, cxtofs, jmpofs)
#ifdef TRANSFER_FROM_TRAMPOLINE
emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "__enable_execute_stack"),
0, VOIDmode, 1, addr, Pmode);
0, VOIDmode, 1, tramp, Pmode);
#endif
if (jmpofs >= 0)