diff options
author | davidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-09 22:49:12 +0000 |
---|---|---|
committer | davidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-09 22:49:12 +0000 |
commit | de2ca00d29242ceca6db56e3793a9b6e6182c46c (patch) | |
tree | 90db0a19c995b30c6d8bb39190ca384e0d63716e /gcc/tree-eh.c | |
parent | 6369795812d5fafdef165290c2777acd3e42633d (diff) | |
download | gcc-de2ca00d29242ceca6db56e3793a9b6e6182c46c.tar.gz |
Revert r174848,174849
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174864 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r-- | gcc/tree-eh.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index 7d27e0c90a7..e87c32e798b 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -3234,9 +3234,6 @@ execute_lower_eh_dispatch (void) bool any_rewritten = false; bool redirected = false; - if (cfun->eh->region_tree == NULL) - return 0; - assign_filter_values (); FOR_EACH_BB (bb) @@ -3257,7 +3254,7 @@ execute_lower_eh_dispatch (void) static bool gate_lower_eh_dispatch (void) { - return true; + return cfun->eh->region_tree != NULL; } struct gimple_opt_pass pass_lower_eh_dispatch = @@ -3986,12 +3983,8 @@ execute_cleanup_eh_1 (void) static unsigned int execute_cleanup_eh (void) { - int ret; + int ret = execute_cleanup_eh_1 (); - if (cfun->eh == NULL || cfun->eh->region_tree == NULL) - return 0; - - ret = execute_cleanup_eh_1 (); /* If the function no longer needs an EH personality routine clear it. This exposes cross-language inlining opportunities and avoids references to a never defined personality routine. */ @@ -4005,7 +3998,7 @@ execute_cleanup_eh (void) static bool gate_cleanup_eh (void) { - return true; + return cfun->eh != NULL && cfun->eh->region_tree != NULL; } struct gimple_opt_pass pass_cleanup_eh = { |