aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-10-05 00:21:41 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-10-05 00:21:41 +0000
commit1c84b79889a10503e5adf0e78d0509a88ca08868 (patch)
tree1df0d6db5233fa5a6ba52470ad20c18f235ae817 /gcc/explow.c
parent8f8d78e683ec17dec93629aa57307cdd6fc4d085 (diff)
downloadgcc-1c84b79889a10503e5adf0e78d0509a88ca08868.zip
gcc-1c84b79889a10503e5adf0e78d0509a88ca08868.tar.gz
gcc-1c84b79889a10503e5adf0e78d0509a88ca08868.tar.bz2
explow.c (allocate_dynamic_stack_space): Call do_pending_stack_adjust before handling flag_split_stack.
gcc/: * explow.c (allocate_dynamic_stack_space): Call do_pending_stack_adjust before handling flag_split_stack. gcc/testsuite/: * gcc.dg/split-7.c: New test. From-SVN: r240764
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index d8f9dd2..b56aea6 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -1357,6 +1357,8 @@ allocate_dynamic_stack_space (rtx size, unsigned size_align,
current_function_has_unbounded_dynamic_stack_size = 1;
}
+ do_pending_stack_adjust ();
+
final_label = NULL;
final_target = NULL_RTX;
@@ -1414,8 +1416,6 @@ allocate_dynamic_stack_space (rtx size, unsigned size_align,
emit_label (available_label);
}
- do_pending_stack_adjust ();
-
/* We ought to be called always on the toplevel and stack ought to be aligned
properly. */
gcc_assert (!(stack_pointer_delta