aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chkp-opt.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde@tbsaunde.org>2015-09-20 00:52:59 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-09-20 00:52:59 +0000
commit355fe0884b8097c32e859f0df57c83bde0c6bd26 (patch)
treeaadb7908b4b80ecaf7e744ca1ae42a59a12b07ea /gcc/tree-chkp-opt.c
parente4f2a3e4588bbc3691b452d8a2c520e8196b0ef3 (diff)
downloadgcc-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/tree-chkp-opt.c')
-rw-r--r--gcc/tree-chkp-opt.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/tree-chkp-opt.c b/gcc/tree-chkp-opt.c
index 66c99bd..528dfa1 100644
--- a/gcc/tree-chkp-opt.c
+++ b/gcc/tree-chkp-opt.c
@@ -81,7 +81,7 @@ struct check_info
/* Bounds used for the check. */
tree bounds;
/* Check statement. Can be NULL for removed checks. */
- gimple stmt;
+ gimple *stmt;
};
/* Structure to hold checks information for BB. */
@@ -354,7 +354,7 @@ chkp_collect_addr_value (tree ptr, address_t &res)
static void
chkp_collect_value (tree ptr, address_t &res)
{
- gimple def_stmt;
+ gimple *def_stmt;
enum gimple_code code;
enum tree_code rhs_code;
address_t addr;
@@ -443,7 +443,7 @@ chkp_collect_value (tree ptr, address_t &res)
/* Fill check_info structure *CI with information about
check STMT. */
static void
-chkp_fill_check_info (gimple stmt, struct check_info *ci)
+chkp_fill_check_info (gimple *stmt, struct check_info *ci)
{
ci->addr.pol.create (0);
ci->bounds = gimple_call_arg (stmt, 1);
@@ -516,7 +516,7 @@ chkp_gather_checks_info (void)
for (i = gsi_start_bb (bb); !gsi_end_p (i); gsi_next (&i))
{
- gimple stmt = gsi_stmt (i);
+ gimple *stmt = gsi_stmt (i);
if (gimple_code (stmt) != GIMPLE_CALL)
continue;
@@ -550,7 +550,7 @@ chkp_gather_checks_info (void)
static int
chkp_get_check_result (struct check_info *ci, tree bounds)
{
- gimple bnd_def;
+ gimple *bnd_def;
address_t bound_val;
int sign, res = 0;
@@ -748,7 +748,7 @@ chkp_remove_check_if_pass (struct check_info *ci)
static void
chkp_use_outer_bounds_if_possible (struct check_info *ci)
{
- gimple bnd_def;
+ gimple *bnd_def;
tree bnd1, bnd2, bnd_res = NULL;
int check_res1, check_res2;
@@ -978,7 +978,7 @@ chkp_optimize_string_function_calls (void)
for (i = gsi_start_bb (bb); !gsi_end_p (i); gsi_next (&i))
{
- gimple stmt = gsi_stmt (i);
+ gimple *stmt = gsi_stmt (i);
tree fndecl;
if (gimple_code (stmt) != GIMPLE_CALL
@@ -1062,11 +1062,11 @@ chkp_optimize_string_function_calls (void)
checks only when size is not zero. */
if (!known)
{
- gimple check = gimple_build_cond (NE_EXPR,
- size,
- size_zero_node,
- NULL_TREE,
- NULL_TREE);
+ gimple *check = gimple_build_cond (NE_EXPR,
+ size,
+ size_zero_node,
+ NULL_TREE,
+ NULL_TREE);
/* Split block before string function call. */
gsi_prev (&i);
@@ -1119,7 +1119,7 @@ chkp_reduce_bounds_lifetime (void)
for (i = gsi_start_bb (bb); !gsi_end_p (i); )
{
- gimple dom_use, use_stmt, stmt = gsi_stmt (i);
+ gimple *dom_use, *use_stmt, *stmt = gsi_stmt (i);
basic_block dom_bb;
ssa_op_iter iter;
imm_use_iterator use_iter;