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/tree-ssa-dse.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/tree-ssa-dse.c')
-rw-r--r-- | gcc/tree-ssa-dse.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 4ad19b3..ac9c05a 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -89,9 +89,9 @@ static bitmap need_eh_cleanup; Return TRUE if the above conditions are met, otherwise FALSE. */ static bool -dse_possible_dead_store_p (ao_ref *ref, gimple stmt, gimple *use_stmt) +dse_possible_dead_store_p (ao_ref *ref, gimple *stmt, gimple **use_stmt) { - gimple temp; + gimple *temp; unsigned cnt = 0; *use_stmt = NULL; @@ -103,7 +103,7 @@ dse_possible_dead_store_p (ao_ref *ref, gimple stmt, gimple *use_stmt) temp = stmt; do { - gimple use_stmt, defvar_def; + gimple *use_stmt, *defvar_def; imm_use_iterator ui; bool fail = false; tree defvar; @@ -215,7 +215,7 @@ dse_possible_dead_store_p (ao_ref *ref, gimple stmt, gimple *use_stmt) static void dse_optimize_stmt (gimple_stmt_iterator *gsi) { - gimple stmt = gsi_stmt (*gsi); + gimple *stmt = gsi_stmt (*gsi); /* If this statement has no virtual defs, then there is nothing to do. */ @@ -238,7 +238,7 @@ dse_optimize_stmt (gimple_stmt_iterator *gsi) case BUILT_IN_MEMMOVE: case BUILT_IN_MEMSET: { - gimple use_stmt; + gimple *use_stmt; ao_ref ref; tree size = NULL_TREE; if (gimple_call_num_args (stmt) == 3) @@ -258,7 +258,7 @@ dse_optimize_stmt (gimple_stmt_iterator *gsi) tree lhs = gimple_call_lhs (stmt); if (lhs) { - gimple new_stmt = gimple_build_assign (lhs, ptr); + gimple *new_stmt = gimple_build_assign (lhs, ptr); unlink_stmt_vdef (stmt); if (gsi_replace (gsi, new_stmt, true)) bitmap_set_bit (need_eh_cleanup, gimple_bb (stmt)->index); @@ -281,7 +281,7 @@ dse_optimize_stmt (gimple_stmt_iterator *gsi) if (is_gimple_assign (stmt)) { - gimple use_stmt; + gimple *use_stmt; /* Self-assignments are zombies. */ if (operand_equal_p (gimple_assign_rhs1 (stmt), |