From bc0ebe76b3d07e19aeafe057c480a52ad87aef9d Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 21 Dec 2006 23:25:00 -0800 Subject: [PATCH] tree-nested.c (create_tmp_var_for): Check for vector type when setting DECL_GIMPLE_REG_P. 2006-12-21 Andrew Pinski * tree-nested.c (create_tmp_var_for): Check for vector type when setting DECL_GIMPLE_REG_P. From-SVN: r120143 --- gcc/ChangeLog | 5 +++++ gcc/tree-nested.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f56ca54cdd7..b2efe998db5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-12-21 Andrew Pinski + + * tree-nested.c (create_tmp_var_for): Check for vector type + when setting DECL_GIMPLE_REG_P. + 2006-12-21 Roger Sayle * tree-pretty-print.c (dump_generic_node): Avoid outputing "(void) 0;" diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index 166debb22c0..0b78d0e6e52 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -148,7 +148,8 @@ create_tmp_var_for (struct nesting_info *info, tree type, const char *prefix) DECL_CONTEXT (tmp_var) = info->context; TREE_CHAIN (tmp_var) = info->new_local_var_chain; DECL_SEEN_IN_BIND_EXPR_P (tmp_var) = 1; - if (TREE_CODE (type) == COMPLEX_TYPE) + if (TREE_CODE (type) == COMPLEX_TYPE + || TREE_CODE (type) == VECTOR_TYPE) DECL_GIMPLE_REG_P (tmp_var) = 1; info->new_local_var_chain = tmp_var;