From 931553d837d3df3c65d8255add17dff148d7d075 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 6 Nov 1992 08:22:05 +0000 Subject: [PATCH] (copy_rtx_and_substitute)[ARGS_GROW_DOWNWARD]: Map virtual args pointer to the top of the argument block. From-SVN: r2698 --- gcc/integrate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/integrate.c b/gcc/integrate.c index 611bbad6d14..118f49e82c9 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -1906,6 +1906,12 @@ copy_rtx_and_substitute (orig, map) start_sequence (); loc = assign_stack_temp (BLKmode, size, 1); loc = XEXP (loc, 0); + /* When arguments grow downward, the virtual incoming + args pointer points to the top of the argument block, + so the remapped location better do the same. */ +#ifdef ARGS_GROW_DOWNWARD + loc = plus_constant (loc, size); +#endif map->reg_map[regno] = temp = force_reg (Pmode, force_operand (loc, NULL_RTX)); map->const_equiv_map[REGNO (temp)] = loc; -- 2.30.2