From 4302d619df8a4a97d0690163f644179a74ddc0ca Mon Sep 17 00:00:00 2001 From: rguenth Date: Tue, 21 Apr 2015 11:40:46 +0000 Subject: 2015-04-21 Richard Biener * 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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222264 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-inline.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/tree-inline.c') diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 42ddb9f47ed..71d75d9df51 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1761,8 +1761,7 @@ copy_bb (copy_body_data *id, basic_block bb, int frequency_scale, /* create_basic_block() will append every new block to basic_block_info automatically. */ - copy_basic_block = create_basic_block (NULL, (void *) 0, - (basic_block) prev->aux); + copy_basic_block = create_basic_block (NULL, (basic_block) prev->aux); copy_basic_block->count = apply_scale (bb->count, count_scale); /* We are going to rebuild frequencies from scratch. These values -- cgit v1.2.1