aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chkp.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-04-21 11:40:46 +0000
committerRichard Biener <rguenther@suse.de>2015-04-21 11:40:46 +0000
commit42fc87668083e92fee85f293697aa213c593d3cd (patch)
treec25284f96a167e670591c7a8289f962d38b6e60e /gcc/tree-chkp.c
parent6c032e1b5018684f3b2ac87be339cd0d6c12ef30 (diff)
2015-04-21 Richard Biener <rguenther@suse.de>
* cfghooks.h (create_basic_block): Replace with two overloads for RTL and GIMPLE. (split_block): Likewise. * cfghooks.c (split_block): Rename to ... (split_block_1): ... this. (split_block): Add two type-safe overloads for RTL and GIMPLE. (split_block_after_labels): Call split_block_1. (create_basic_block): Rename to ... (create_basic_block_1): ... this. (create_basic_block): Add two type-safe overloads for RTL and GIMPLE. (create_empty_bb): Call create_basic_block_1. * cfgrtl.c (fixup_fallthru_exit_predecessor): Use split_block_after_labels. * omp-low.c (expand_parallel_call): Likewise. (expand_omp_target): Likewise. (simd_clone_adjust): Likewise. * tree-chkp.c (chkp_get_entry_block): Likewise. * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE create_basic_block overload. (cgraph_node::expand_thunk): Likewise. * tree-cfg.c (make_blocks): Likewise. (handle_abnormal_edges): Likewise. * tree-inline.c (copy_bb): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@222264 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-chkp.c')
-rw-r--r--gcc/tree-chkp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c
index ebb9a836e5e..288470bbe57 100644
--- a/gcc/tree-chkp.c
+++ b/gcc/tree-chkp.c
@@ -1071,7 +1071,8 @@ static basic_block
chkp_get_entry_block (void)
{
if (!entry_block)
- entry_block = split_block (ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL)->dest;
+ entry_block
+ = split_block_after_labels (ENTRY_BLOCK_PTR_FOR_FN (cfun))->dest;
return entry_block;
}