From cc7d6aed6b7186313ada1a58107b9dbcaac2f435 Mon Sep 17 00:00:00 2001 From: rth Date: Tue, 28 Sep 2010 20:44:58 +0000 Subject: Hookize TARGET_UNWIND_INFO et al. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164701 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-tailcall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/tree-tailcall.c') diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 71a273f6fe5..38daed9a786 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see #include "flags.h" #include "langhooks.h" #include "dbgcnt.h" +#include "target.h" /* The file implements the tail recursion elimination. It is also used to analyze the tail calls in general, passing the results to the rtl level @@ -151,7 +152,8 @@ suitable_for_tail_call_opt_p (void) /* If we are using sjlj exceptions, we may need to add a call to _Unwind_SjLj_Unregister at exit of the function. Which means that we cannot do any sibcall transformations. */ - if (USING_SJLJ_EXCEPTIONS && current_function_has_exception_handlers ()) + if (targetm.except_unwind_info () == UI_SJLJ + && current_function_has_exception_handlers ()) return false; /* Any function that calls setjmp might have longjmp called from -- cgit v1.2.1