From: Richard Guenther Date: Mon, 14 May 2012 10:44:44 +0000 (+0000) Subject: gimplify.c (gimplify_expr): Remove odd code. X-Git-Tag: upstream/12.2.0~76330 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=412a1d9e4ae76edc14fa4ad4489cd7ea130e90c2;p=platform%2Fupstream%2Fgcc.git gimplify.c (gimplify_expr): Remove odd code. 2012-05-14 Richard Guenther * gimplify.c (gimplify_expr): Remove odd code. From-SVN: r187453 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 752edb8..143cefc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-05-14 Richard Guenther + + * gimplify.c (gimplify_expr): Remove odd code. + 2012-05-14 Eric Botcazou * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype diff --git a/gcc/gimplify.c b/gcc/gimplify.c index ca38a0e..63195ae 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -7947,19 +7947,7 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p, TMP. First, make sure that the expression has a type so that it can be assigned into a temporary. */ gcc_assert (!VOID_TYPE_P (TREE_TYPE (*expr_p))); - - if (!gimple_seq_empty_p (internal_post) || (fallback & fb_lvalue)) - /* The postqueue might change the value of the expression between - the initialization and use of the temporary, so we can't use a - formal temp. FIXME do we care? */ - { - *expr_p = get_initialized_tmp_var (*expr_p, pre_p, post_p); - if (TREE_CODE (TREE_TYPE (*expr_p)) == COMPLEX_TYPE - || TREE_CODE (TREE_TYPE (*expr_p)) == VECTOR_TYPE) - DECL_GIMPLE_REG_P (*expr_p) = 1; - } - else - *expr_p = get_formal_tmp_var (*expr_p, pre_p); + *expr_p = get_formal_tmp_var (*expr_p, pre_p); } else {