This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]