diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-28 20:44:58 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-28 20:44:58 +0000 |
commit | cc7d6aed6b7186313ada1a58107b9dbcaac2f435 (patch) | |
tree | abc0f2fe4784df2eb251f4c04a0493fec3eac91d /gcc/tree-tailcall.c | |
parent | a336eb4b5042c9ebc2d044d29202649fd9fa2759 (diff) | |
download | gcc-cc7d6aed6b7186313ada1a58107b9dbcaac2f435.tar.gz |
Hookize TARGET_UNWIND_INFO et al.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164701 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r-- | gcc/tree-tailcall.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |