aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2000-04-25 17:43:09 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-04-25 17:43:09 -0700
commite2ee991277e5d10e4042634b32754a2062843bf7 (patch)
tree2764dc0cca7a5f315ad3eeb6388d3fcd74e059f6 /gcc/calls.c
parent1cfdcc15effc096604f32fb88ddc1ad8f67aab07 (diff)
downloadgcc-e2ee991277e5d10e4042634b32754a2062843bf7.zip
gcc-e2ee991277e5d10e4042634b32754a2062843bf7.tar.gz
gcc-e2ee991277e5d10e4042634b32754a2062843bf7.tar.bz2
calls.c (expand_call): Disable tail call generation once rtx_equal_function_value_matters is false.
* calls.c (expand_call): Disable tail call generation once rtx_equal_function_value_matters is false. * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges like EDGE_EH edges. From-SVN: r33431
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index c9814c7..0e8138f 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -2106,11 +2106,18 @@ expand_call (exp, target, ignore)
pushed these optimizations into -O2. Don't try if we're already
expanding a call, as that means we're an argument. Similarly, if
there's pending loops or cleanups we know there's code to follow
- the call. */
+ the call.
+
+ If rtx_equal_function_value_matters is false, that means we've
+ finished with regular parsing. Which means that some of the
+ machinery we use to generate tail-calls is no longer in place.
+ This is most often true of sjlj-exceptions, which we couldn't
+ tail-call to anyway. */
try_tail_call = 0;
if (flag_optimize_sibling_calls
&& currently_expanding_call == 1
+ && rtx_equal_function_value_matters
&& stmt_loop_nest_empty ()
&& ! any_pending_cleanups (1))
{