re PR tree-optimization/37716 (ice for legal C++ code with -O2 on 20080926)

PR tree-optimization/37716
	* gimplify.c (gimplify_expr): Allow COND_EXPR if
	gimplify_ctxp->allow_rhs_cond_expr.

From-SVN: r142476
This commit is contained in:
Jakub Jelinek 2008-12-05 15:33:14 +01:00
parent 37fe763dee
commit 6fc4fb069d
2 changed files with 8 additions and 2 deletions

View 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.

View 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