aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2008-08-01 16:05:50 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2008-08-01 09:05:50 -0700
commitd015f7cc65a66d8e2b25a2217fc66265b6f45439 (patch)
tree300beb980cbb2fa21be5dba1b56cc5721243aaab /gcc/cfgexpand.c
parent678e7c65045fdf63464adaa74de3a43e03c76ef5 (diff)
downloadgcc-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/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index c9faa49..a943eff 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2226,6 +2226,9 @@ expand_stack_alignment (void)
gcc_assert (targetm.calls.get_drap_rtx != NULL);
drap_rtx = targetm.calls.get_drap_rtx ();
+ /* stack_realign_drap and drap_rtx must match. */
+ gcc_assert ((stack_realign_drap != 0) == (drap_rtx != NULL));
+
/* Do nothing if NULL is returned, which means DRAP is not needed. */
if (NULL != drap_rtx)
{