diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69fe0892694f..21115da1b6ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-01-01 Andrew Pinski + + * gimplify.c (gimplify_init_constructor ): + Use a temporary variable if the left hand side is not a gimple + register. + 2007-01-01 Andrew Pinski * gimplify.c (gimplify_return_expr): Make the temporary variable diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 1a40e8fe2142..5df8579913ac 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -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;