This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] gimplify_cond_expr fixlet
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Sep 2003 15:52:30 -0700
- Subject: [tree-ssa] gimplify_cond_expr fixlet
The store being replaced is killed by the store immediately following.
Noticed while looking here for other reasons.
r~
* gimplify.c (gimplify_cond_expr): Fix both arms dead return value.
Index: gimplify.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/gimplify.c,v
retrieving revision 1.1.2.86
diff -c -p -d -u -r1.1.2.86 gimplify.c
--- gimplify.c 29 Sep 2003 02:41:31 -0000 1.1.2.86
+++ gimplify.c 29 Sep 2003 22:28:58 -0000
@@ -1956,7 +1956,7 @@ gimplify_cond_expr (tree *expr_p, tree *
}
else
/* Both arms are empty; replace the COND_EXPR with its predicate. */
- *expr_p = TREE_OPERAND (expr, 0);
+ expr = TREE_OPERAND (expr, 0);
*expr_p = expr;
}