summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-05-19 21:35:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-05-19 21:35:28 +0000
commitad47f1141466671f416ba42c6c4c341965413321 (patch)
tree605647d6d5f5ba2e23645e98821e8ca4bec609b2 /gnu
parent5839dab38a3024223409fd7103042d311221444f (diff)
In __builtin_saveregs(), initialize __va_stk to a correct value.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/egcs/gcc/config/m88k/m88k.c4
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);