diff options
author | Jeff Law <law@redhat.com> | 2011-03-31 07:28:29 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2011-03-31 07:28:29 -0600 |
commit | e16b6fd0f7b7da99739f850360d6c86c5b1cba20 (patch) | |
tree | 9825cddc84870c8f20906bf543d746a838379d92 /gcc/tree-ssa-phiopt.c | |
parent | eb1eb91413b50038212d148bf651c40e4d0e32f9 (diff) | |
download | gcc-e16b6fd0f7b7da99739f850360d6c86c5b1cba20.tar.gz |
tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid typo potentially leading to null pointer dereference.
* tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
typo potentially leading to null pointer dereference.
* caller-save.c (new_saved_hard_reg): Eliminate return value.
(setup_save_areas): Corresponding changes to avoid useless
assignments.
* jump.c (reversed_comparison_code_parts): Avoid successive return
statements when REVERSE_CONDITION is defined.
* expr.c (expand_assignment): Avoid useless assignments.
(expand_expr_real_1): Likewise.
(expand_expr_real_2): Avoid useless statements.
* tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
* cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
statements.
* stmt.c (expand_expr_stmt): Avoid useless assignment.
From-SVN: r171780
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r-- | gcc/tree-ssa-phiopt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index caea9ac723f..6b15ae09488 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -695,7 +695,6 @@ minmax_replacement (basic_block cond_bb, basic_block middle_bb, cond = last_stmt (cond_bb); cmp = gimple_cond_code (cond); - result = PHI_RESULT (phi); /* This transformation is only valid for order comparisons. Record which operand is smaller/larger if the result of the comparison is true. */ |