diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2008-08-01 16:05:50 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2008-08-01 09:05:50 -0700 |
commit | d015f7cc65a66d8e2b25a2217fc66265b6f45439 (patch) | |
tree | 300beb980cbb2fa21be5dba1b56cc5721243aaab /gcc/function.c | |
parent | 678e7c65045fdf63464adaa74de3a43e03c76ef5 (diff) | |
download | gcc-d015f7cc65a66d8e2b25a2217fc66265b6f45439.zip gcc-d015f7cc65a66d8e2b25a2217fc66265b6f45439.tar.gz gcc-d015f7cc65a66d8e2b25a2217fc66265b6f45439.tar.bz2 |
cfgexpand.c (expand_stack_alignment): Assert that stack_realign_drap and drap_rtx must match.
2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
* 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
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |