From d015f7cc65a66d8e2b25a2217fc66265b6f45439 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 1 Aug 2008 16:05:50 +0000 Subject: cfgexpand.c (expand_stack_alignment): Assert that stack_realign_drap and drap_rtx must match. 2008-08-01 H.J. Lu * cfgexpand.c (expand_stack_alignment): Assert that stack_realign_drap and drap_rtx must match. * function.c (instantiate_new_reg): If DRAP is used to realign stack, replace virtual_incoming_args_rtx with internal arg pointer. From-SVN: r138524 --- gcc/function.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index b9d9ec5..6377751 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1215,10 +1215,10 @@ instantiate_new_reg (rtx x, HOST_WIDE_INT *poffset) if (x == virtual_incoming_args_rtx) { - /* Replace virtual_incoming_args_rtx to internal arg pointer here */ - if (crtl->args.internal_arg_pointer != virtual_incoming_args_rtx) + if (stack_realign_drap) { - gcc_assert (stack_realign_drap); + /* Replace virtual_incoming_args_rtx with internal arg + pointer if DRAP is used to realign stack. */ new = crtl->args.internal_arg_pointer; offset = 0; } -- cgit v1.1