aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phionlycprop.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-ssa-phionlycprop.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-ssa-phionlycprop.c')
-rw-r--r--gcc/tree-ssa-phionlycprop.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/tree-ssa-phionlycprop.c b/gcc/tree-ssa-phionlycprop.c
index 2093273..332e8aa 100644
--- a/gcc/tree-ssa-phionlycprop.c
+++ b/gcc/tree-ssa-phionlycprop.c
@@ -43,7 +43,7 @@ along with GCC; see the file COPYING3. If not see
remove it from the IL. */
static void
-remove_stmt_or_phi (gimple stmt)
+remove_stmt_or_phi (gimple *stmt)
{
gimple_stmt_iterator gsi = gsi_for_stmt (stmt);
@@ -61,7 +61,7 @@ remove_stmt_or_phi (gimple stmt)
phi, NULL is returned. */
static tree
-get_rhs_or_phi_arg (gimple stmt)
+get_rhs_or_phi_arg (gimple *stmt)
{
if (gimple_code (stmt) == GIMPLE_PHI)
return degenerate_phi_result (as_a <gphi *> (stmt));
@@ -76,7 +76,7 @@ get_rhs_or_phi_arg (gimple stmt)
return the "lhs" of the node. */
static tree
-get_lhs_or_phi_result (gimple stmt)
+get_lhs_or_phi_result (gimple *stmt)
{
if (gimple_code (stmt) == GIMPLE_PHI)
return gimple_phi_result (stmt);
@@ -101,7 +101,7 @@ get_lhs_or_phi_result (gimple stmt)
cleaned up after changing EH information on a statement. */
static bool
-propagate_rhs_into_lhs (gimple stmt, tree lhs, tree rhs,
+propagate_rhs_into_lhs (gimple *stmt, tree lhs, tree rhs,
bitmap interesting_names, bitmap need_eh_cleanup)
{
bool cfg_altered = false;
@@ -111,7 +111,7 @@ propagate_rhs_into_lhs (gimple stmt, tree lhs, tree rhs,
{
use_operand_p use_p;
imm_use_iterator iter;
- gimple use_stmt;
+ gimple *use_stmt;
bool all = true;
/* Dump details. */
@@ -345,7 +345,7 @@ propagate_rhs_into_lhs (gimple stmt, tree lhs, tree rhs,
not set or queried here, but passed along to children. */
static bool
-eliminate_const_or_copy (gimple stmt, bitmap interesting_names,
+eliminate_const_or_copy (gimple *stmt, bitmap interesting_names,
bitmap need_eh_cleanup)
{
tree lhs = get_lhs_or_phi_result (stmt);
@@ -379,7 +379,7 @@ eliminate_const_or_copy (gimple stmt, bitmap interesting_names,
interesting_names, need_eh_cleanup);
else
{
- gimple use_stmt;
+ gimple *use_stmt;
imm_use_iterator iter;
use_operand_p use_p;
/* For virtual operands we have to propagate into all uses as