Commit 00044e94 authored by ebotcazou's avatar ebotcazou
Browse files

* gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171282 138bc75d-0d04-0410-961f-82ee72b054a4
parent b6382e93
2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
* gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_delegitimize_address): Fix offset
......
......@@ -2992,6 +2992,11 @@ gimplify_cond_expr (tree *expr_p, gimple_seq *pre_p, fallback_t fallback)
return GS_ALL_DONE;
}
/* Remove any COMPOUND_EXPR so the following cases will be caught. */
STRIP_TYPE_NOPS (TREE_OPERAND (expr, 0));
if (TREE_CODE (TREE_OPERAND (expr, 0)) == COMPOUND_EXPR)
gimplify_compound_expr (&TREE_OPERAND (expr, 0), pre_p, true);
/* Make sure the condition has BOOLEAN_TYPE. */
TREE_OPERAND (expr, 0) = gimple_boolify (TREE_OPERAND (expr, 0));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment