aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-10-27 21:49:53 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2000-10-27 21:49:53 +0200
commitfadb729c6d312aa1064e1fcb7cdd6286deeff9bd (patch)
tree4a398dc7d2148fed77879fcff5b60217176f20e2 /gcc/calls.c
parent254bb25636bc50612a67ccad1563a4cc082c7e75 (diff)
downloadgcc-fadb729c6d312aa1064e1fcb7cdd6286deeff9bd.zip
gcc-fadb729c6d312aa1064e1fcb7cdd6286deeff9bd.tar.gz
gcc-fadb729c6d312aa1064e1fcb7cdd6286deeff9bd.tar.bz2
calls.c (expand_call): If sibcall_failure is set during pass 1, clear tail_call_insns as well.
* calls.c (expand_call): If sibcall_failure is set during pass 1, clear tail_call_insns as well. * g++.old-deja/g++.other/eh2.C: New test. From-SVN: r37087
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index e90be2e..da850cc 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -3363,10 +3363,6 @@ expand_call (exp, target, ignore)
{
tail_call_insns = insns;
- /* If something prevents making this a sibling call,
- zero out the sequence. */
- if (sibcall_failure)
- tail_call_insns = NULL_RTX;
/* Restore the pending stack adjustment now that we have
finished generating the sibling call sequence. */
@@ -3385,6 +3381,11 @@ expand_call (exp, target, ignore)
}
else
normal_call_insns = insns;
+
+ /* If something prevents making this a sibling call,
+ zero out the sequence. */
+ if (sibcall_failure)
+ tail_call_insns = NULL_RTX;
}
/* The function optimize_sibling_and_tail_recursive_calls doesn't