diff options
author | Trevor Saunders <tbsaunde@tbsaunde.org> | 2015-09-20 00:52:59 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-09-20 00:52:59 +0000 |
commit | 355fe0884b8097c32e859f0df57c83bde0c6bd26 (patch) | |
tree | aadb7908b4b80ecaf7e744ca1ae42a59a12b07ea /gcc/ipa-split.c | |
parent | e4f2a3e4588bbc3691b452d8a2c520e8196b0ef3 (diff) | |
download | gcc-355fe0884b8097c32e859f0df57c83bde0c6bd26.zip gcc-355fe0884b8097c32e859f0df57c83bde0c6bd26.tar.gz gcc-355fe0884b8097c32e859f0df57c83bde0c6bd26.tar.bz2 |
switch from gimple to gimple*
This renames the gimple_statement_base struct to gimple removes the
typedef of gimple_statement_base * to gimple, and then adjusts all of
the places that use the type.
gcc/ChangeLog:
2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
* coretypes.h (gimple): Change typedef to be a forward
declaration.
* gimple.h (gimple_statement_base): rename to gimple.
* (all functions and types using gimple): Adjust.
* *.[ch]: Likewise.
gcc/cp/ChangeLog:
2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
* cp-gimplify.c (gimplify_must_not_throw_expr): Adjust.
From-SVN: r227941
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r-- | gcc/ipa-split.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 8bb3e60..ff47ea3 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -166,7 +166,7 @@ static tree find_retbnd (basic_block return_bb); variable, check it if it is present in bitmap passed via DATA. */ static bool -test_nonssa_use (gimple, tree t, tree, void *data) +test_nonssa_use (gimple *, tree t, tree, void *data) { t = get_base_address (t); @@ -251,7 +251,7 @@ verify_non_ssa_vars (struct split_point *current, bitmap non_ssa_vars, for (gimple_stmt_iterator bsi = gsi_start_bb (bb); !gsi_end_p (bsi); gsi_next (&bsi)) { - gimple stmt = gsi_stmt (bsi); + gimple *stmt = gsi_stmt (bsi); if (is_gimple_debug (stmt)) continue; if (walk_stmt_load_store_addr_ops @@ -341,7 +341,7 @@ done: to optimize away an unused function call. */ static void -check_forbidden_calls (gimple stmt) +check_forbidden_calls (gimple *stmt) { imm_use_iterator use_iter; use_operand_p use_p; @@ -770,7 +770,7 @@ find_return_bb (void) e = single_pred_edge (EXIT_BLOCK_PTR_FOR_FN (cfun)); for (bsi = gsi_last_bb (e->src); !gsi_end_p (bsi); gsi_prev (&bsi)) { - gimple stmt = gsi_stmt (bsi); + gimple *stmt = gsi_stmt (bsi); if (gimple_code (stmt) == GIMPLE_LABEL || is_gimple_debug (stmt) || gimple_clobber_p (stmt)) @@ -836,7 +836,7 @@ find_retbnd (basic_block return_bb) Return true when access to T prevents splitting the function. */ static bool -mark_nonssa_use (gimple, tree t, tree, void *data) +mark_nonssa_use (gimple *, tree t, tree, void *data) { t = get_base_address (t); @@ -896,7 +896,7 @@ visit_bb (basic_block bb, basic_block return_bb, for (gimple_stmt_iterator bsi = gsi_start_bb (bb); !gsi_end_p (bsi); gsi_next (&bsi)) { - gimple stmt = gsi_stmt (bsi); + gimple *stmt = gsi_stmt (bsi); tree op; ssa_op_iter iter; tree decl; @@ -1221,7 +1221,7 @@ split_function (basic_block return_bb, struct split_point *split_point, tree retval = NULL, real_retval = NULL, retbnd = NULL; bool split_part_return_p = false; bool with_bounds = chkp_function_instrumented_p (current_function_decl); - gimple last_stmt = NULL; + gimple *last_stmt = NULL; unsigned int i; tree arg, ddef; vec<tree, va_gc> **debug_args = NULL; @@ -1344,7 +1344,7 @@ split_function (basic_block return_bb, struct split_point *split_point, !gsi_end_p (gsi); gsi_next (&gsi)) { - gimple stmt = gsi_stmt (gsi); + gimple *stmt = gsi_stmt (gsi); if (gimple_vuse (stmt)) { gimple_set_vuse (stmt, NULL_TREE); @@ -1431,7 +1431,7 @@ split_function (basic_block return_bb, struct split_point *split_point, && is_gimple_reg (parm)) { tree ddecl; - gimple def_temp; + gimple *def_temp; /* This needs to be done even without MAY_HAVE_DEBUG_STMTS, otherwise if it didn't exist before, we'd end up with @@ -1465,7 +1465,7 @@ split_function (basic_block return_bb, struct split_point *split_point, unsigned int i; tree var, vexpr; gimple_stmt_iterator cgsi; - gimple def_temp; + gimple *def_temp; push_cfun (DECL_STRUCT_FUNCTION (node->decl)); var = BLOCK_VARS (DECL_INITIAL (node->decl)); @@ -1602,7 +1602,7 @@ split_function (basic_block return_bb, struct split_point *split_point, gsi_insert_after (&gsi, call, GSI_NEW_STMT); if (!useless_type_conversion_p (TREE_TYPE (retval), restype)) { - gimple cpy; + gimple *cpy; tree tem = create_tmp_reg (restype); tem = make_ssa_name (tem, call); cpy = gimple_build_assign (retval, NOP_EXPR, tem); @@ -1786,7 +1786,7 @@ execute_split_functions (void) for (bsi = gsi_start_bb (bb); !gsi_end_p (bsi); gsi_next (&bsi)) { int this_time, this_size; - gimple stmt = gsi_stmt (bsi); + gimple *stmt = gsi_stmt (bsi); this_size = estimate_num_insns (stmt, &eni_size_weights); this_time = estimate_num_insns (stmt, &eni_time_weights) * freq; |