summaryrefslogtreecommitdiff
path: root/gcc/gimplify-me.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimplify-me.c')
-rw-r--r--gcc/gimplify-me.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/gimplify-me.c b/gcc/gimplify-me.c
index a7e9387b648..92542a9a2e9 100644
--- a/gcc/gimplify-me.c
+++ b/gcc/gimplify-me.c
@@ -45,7 +45,6 @@ force_gimple_operand_1 (tree expr, gimple_seq *stmts,
gimple_predicate gimple_test_f, tree var)
{
enum gimplify_status ret;
- struct gimplify_ctx gctx;
location_t saved_location;
*stmts = NULL;
@@ -57,16 +56,13 @@ force_gimple_operand_1 (tree expr, gimple_seq *stmts,
&& (*gimple_test_f) (expr))
return expr;
- push_gimplify_context (&gctx);
- gimplify_ctxp->into_ssa = gimple_in_ssa_p (cfun);
- gimplify_ctxp->allow_rhs_cond_expr = true;
+ push_gimplify_context (gimple_in_ssa_p (cfun), true);
saved_location = input_location;
input_location = UNKNOWN_LOCATION;
if (var)
{
- if (gimplify_ctxp->into_ssa
- && is_gimple_reg (var))
+ if (gimple_in_ssa_p (cfun) && is_gimple_reg (var))
var = make_ssa_name (var, NULL);
expr = build2 (MODIFY_EXPR, TREE_TYPE (var), var, expr);
}
@@ -160,10 +156,8 @@ gimple_regimplify_operands (gimple stmt, gimple_stmt_iterator *gsi_p)
tree lhs;
gimple_seq pre = NULL;
gimple post_stmt = NULL;
- struct gimplify_ctx gctx;
- push_gimplify_context (&gctx);
- gimplify_ctxp->into_ssa = gimple_in_ssa_p (cfun);
+ push_gimplify_context (gimple_in_ssa_p (cfun));
switch (gimple_code (stmt))
{