diff options
author | tneumann <tneumann@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-06 20:18:47 +0000 |
---|---|---|
committer | tneumann <tneumann@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-06 20:18:47 +0000 |
commit | f0d6e81c06c3a390e450aad66ac3083a175621f3 (patch) | |
tree | dbd2a770edf06b4cba42ed3ad603008a8875ec43 /gcc/tree-ssa-operands.c | |
parent | b8cd9b438aad45c12df5e552df4129c4a5fbd567 (diff) | |
download | gcc-f0d6e81c06c3a390e450aad66ac3083a175621f3.tar.gz |
* tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
coding conventions.
(add_key): Likewise.
* tree-ssa.c (init_tree_ssa): Use type safe memory macros.
* tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
variable names.
* tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory macros.
(add_cost_one_coalesce): Likewise.
* tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
variable names. Rename orig to orig_name for consistency.
* tree-ssa-dom.c (dom_thread_across_edge): Cast according to the coding
conventions.
(cprop_into_successor_phis): Avoid using C++ keywords as variable names.
(record_equivalences_from_stmt): Likewise.
* tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
the coding conventions.
(memory_ssa_name_same): Likewise.
(dse_optimize_stmt): Likewise.
(dse_record_phis): Likewise.
(dse_finalize_block): Likewise.
* tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
keywords as variable names.
(may_move_till): Cast according to the coding conventions.
(force_move_till_expr): Avoid using C++ keywords as variable names.
(force_move_till): Cast according to the coding conventions.
(memref_hash): Likewise.
(memref_eq): Likewise.
(gather_mem_refs_stmt): Likewise.
* tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid using C++
keywords as variable names.
(idx_find_step): Cast according to the coding conventions.
(idx_record_use): Likewise.
(find_depends): Likewise.
(prepare_decl_rtl): Likewise.
(mbc_entry_hash): Likewise.
(mbc_entry_eq): Likewise.
* tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
(simplify_replace_tree): Avoid using C++ keywords as variable names.
(idx_infer_loop_bounds): Cast according to the coding conventions.
* tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
* tree-ssa-math-opts.c (occ_new ): Likwise.
* tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
macros.
* tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as variable
names.
(add_use_op): Likewise.
(add_vop): Likewise.
(add_vuse_op): Likewise.
(add_vdef_op): Likewise.
(get_expr_operands): Likewise.
(push_stmt_changes): Use type safe memory macros.
* tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
keywords as variable names.
(conditional_replacement): Likewise.
(minmax_replacement): Likewise.
(abs_replacement): Likewise.
* tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
coding conventions.
(insert_fake_stores): Avoid using C++ keywords as variable names.
* tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
conventions.
* tree-ssa-structalias.c (heapvar_lookup): Likewise.
(heapvar_insert): Use type safe memory macros.
(new_var_info): Cast according to the coding conventions.
(new_constraint): Likewise.
(remove_preds_and_fake_succs): Use type safe memory macros.
* tree-ssa-threadupdate.c (thread_block): Cast according to the coding
conventions.
(thread_single_edge): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125504 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 69 |
1 files changed, 35 insertions, 34 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 7ced6a8997c..d015a569cd2 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -592,13 +592,13 @@ set_virtual_use_link (use_operand_p ptr, tree stmt) static inline def_optype_p add_def_op (tree *op, def_optype_p last) { - def_optype_p new; + def_optype_p new_def; - new = alloc_def (); - DEF_OP_PTR (new) = op; - last->next = new; - new->next = NULL; - return new; + new_def = alloc_def (); + DEF_OP_PTR (new_def) = op; + last->next = new_def; + new_def->next = NULL; + return new_def; } @@ -607,14 +607,14 @@ add_def_op (tree *op, def_optype_p last) static inline use_optype_p add_use_op (tree stmt, tree *op, use_optype_p last) { - use_optype_p new; + use_optype_p new_use; - new = alloc_use (); - USE_OP_PTR (new)->use = op; - link_imm_use_stmt (USE_OP_PTR (new), *op, stmt); - last->next = new; - new->next = NULL; - return new; + new_use = alloc_use (); + USE_OP_PTR (new_use)->use = op; + link_imm_use_stmt (USE_OP_PTR (new_use), *op, stmt); + last->next = new_use; + new_use->next = NULL; + return new_use; } @@ -625,22 +625,23 @@ add_use_op (tree stmt, tree *op, use_optype_p last) static inline voptype_p add_vop (tree stmt, tree op, int num, voptype_p prev) { - voptype_p new; + voptype_p new_vop; int x; - new = alloc_vop (num); + new_vop = alloc_vop (num); for (x = 0; x < num; x++) { - VUSE_OP_PTR (new, x)->prev = NULL; - SET_VUSE_OP (new, x, op); - VUSE_OP_PTR (new, x)->use = &new->usev.uses[x].use_var; - link_imm_use_stmt (VUSE_OP_PTR (new, x), new->usev.uses[x].use_var, stmt); + VUSE_OP_PTR (new_vop, x)->prev = NULL; + SET_VUSE_OP (new_vop, x, op); + VUSE_OP_PTR (new_vop, x)->use = &new_vop->usev.uses[x].use_var; + link_imm_use_stmt (VUSE_OP_PTR (new_vop, x), + new_vop->usev.uses[x].use_var, stmt); } if (prev) - prev->next = new; - new->next = NULL; - return new; + prev->next = new_vop; + new_vop->next = NULL; + return new_vop; } @@ -650,9 +651,9 @@ add_vop (tree stmt, tree op, int num, voptype_p prev) static inline voptype_p add_vuse_op (tree stmt, tree op, int num, voptype_p last) { - voptype_p new = add_vop (stmt, op, num, last); - VDEF_RESULT (new) = NULL_TREE; - return new; + voptype_p new_vop = add_vop (stmt, op, num, last); + VDEF_RESULT (new_vop) = NULL_TREE; + return new_vop; } @@ -662,9 +663,9 @@ add_vuse_op (tree stmt, tree op, int num, voptype_p last) static inline voptype_p add_vdef_op (tree stmt, tree op, int num, voptype_p last) { - voptype_p new = add_vop (stmt, op, num, last); - VDEF_RESULT (new) = op; - return new; + voptype_p new_vop = add_vop (stmt, op, num, last); + VDEF_RESULT (new_vop) = op; + return new_vop; } @@ -2059,7 +2060,7 @@ static void get_expr_operands (tree stmt, tree *expr_p, int flags) { enum tree_code code; - enum tree_code_class class; + enum tree_code_class codeclass; tree expr = *expr_p; stmt_ann_t s_ann = stmt_ann (stmt); @@ -2067,7 +2068,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags) return; code = TREE_CODE (expr); - class = TREE_CODE_CLASS (code); + codeclass = TREE_CODE_CLASS (code); switch (code) { @@ -2284,11 +2285,11 @@ get_expr_operands (tree stmt, tree *expr_p, int flags) return; default: - if (class == tcc_unary) + if (codeclass == tcc_unary) goto do_unary; - if (class == tcc_binary || class == tcc_comparison) + if (codeclass == tcc_binary || codeclass == tcc_comparison) goto do_binary; - if (class == tcc_constant || class == tcc_type) + if (codeclass == tcc_constant || codeclass == tcc_type) return; } @@ -2794,7 +2795,7 @@ push_stmt_changes (tree *stmt_p) if (TREE_CODE (stmt) == PHI_NODE) return; - buf = xmalloc (sizeof *buf); + buf = XNEW (struct scb_d); memset (buf, 0, sizeof *buf); buf->stmt_p = stmt_p; |