diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-05-19 21:35:28 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-05-19 21:35:28 +0000 |
commit | ad47f1141466671f416ba42c6c4c341965413321 (patch) | |
tree | 605647d6d5f5ba2e23645e98821e8ca4bec609b2 /gnu/egcs/gcc | |
parent | 5839dab38a3024223409fd7103042d311221444f (diff) |
In __builtin_saveregs(), initialize __va_stk to a correct value.
Diffstat (limited to 'gnu/egcs/gcc')
-rw-r--r-- | gnu/egcs/gcc/config/m88k/m88k.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/config/m88k/m88k.c b/gnu/egcs/gcc/config/m88k/m88k.c index d504e9719fd..1ff84aa30a2 100644 --- a/gnu/egcs/gcc/config/m88k/m88k.c +++ b/gnu/egcs/gcc/config/m88k/m88k.c @@ -2648,7 +2648,9 @@ m88k_builtin_saveregs (arglist) emit_move_insn (change_address (block, Pmode, plus_constant (XEXP (block, 0), UNITS_PER_WORD)), - copy_to_reg (virtual_incoming_args_rtx)); + copy_to_reg (plus_constant( virtual_incoming_args_rtx, + UNITS_PER_WORD * + STARTING_FRAME_OFFSET))); /* Allocate the register space, and store it as the __va_reg member. */ addr = assign_stack_local (BLKmode, 8 * UNITS_PER_WORD, -1); |