]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ipa-split.c
switch from gimple to gimple*
[thirdparty/gcc.git] / gcc / ipa-split.c
index 8bb3e6089cdfe6e548173e8343a7149e2979a938..ff47ea3ee27112946cedf93fa2c0b11dbae9ae83 100644 (file)
@@ -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;