gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>): Use a temporary variable if the left hand side is not a gimple register.

2007-01-01  Andrew Pinski  <pinskia@gmail.com>

        * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
        Use a temporary variable if the left hand side is not a gimple
        register.

From-SVN: r120318
This commit is contained in:
Andrew Pinski 2007-01-01 14:01:59 -08:00 committed by Andrew Pinski
parent a441d616ba
commit 9bed0a3480
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-01-01 Andrew Pinski <pinskia@gmail.com>
* gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
Use a temporary variable if the left hand side is not a gimple
register.
2007-01-01 Andrew Pinski <pinskia@gmail.com>
* gimplify.c (gimplify_return_expr): Make the temporary variable

View File

@ -3190,6 +3190,8 @@ gimplify_init_constructor (tree *expr_p, tree *pre_p,
if (tret == GS_ERROR)
ret = GS_ERROR;
}
if (!is_gimple_reg (GENERIC_TREE_OPERAND (*expr_p, 0)))
GENERIC_TREE_OPERAND (*expr_p, 1) = get_formal_tmp_var (ctor, pre_p);
}
break;