PR tree-optimization/37716
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Dec 2008 14:33:14 +0000 (14:33 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Dec 2008 14:33:14 +0000 (14:33 +0000)
* gimplify.c (gimplify_expr): Allow COND_EXPR if
gimplify_ctxp->allow_rhs_cond_expr.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142476 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gimplify.c

index 22ffd3a..60d4455 100644 (file)
@@ -1,4 +1,10 @@
-2008-12-05 Uros Bizjak <ubizjak@gmail.com>
+2008-12-05  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/37716
+       * gimplify.c (gimplify_expr): Allow COND_EXPR if
+       gimplify_ctxp->allow_rhs_cond_expr.
+
+2008-12-05  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/alpha/alpha.c (alpha_fold_vector_minmax): Create
        VIEW_CONVERT_EXPR to convert output to long_integer_type_node.
index 09f130e..2fea882 100644 (file)
@@ -6941,7 +6941,7 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
                  && code != ASM_EXPR
                  && code != BIND_EXPR
                  && code != CATCH_EXPR
-                 && code != COND_EXPR
+                 && (code != COND_EXPR || gimplify_ctxp->allow_rhs_cond_expr)
                  && code != EH_FILTER_EXPR
                  && code != GOTO_EXPR
                  && code != LABEL_EXPR