tree-nested.c (create_tmp_var_for): Check for vector type when setting DECL_GIMPLE_REG_P.

2006-12-21  Andrew Pinski  <pinskia@gmail.com>

        * tree-nested.c (create_tmp_var_for): Check for vector type
        when setting DECL_GIMPLE_REG_P.

From-SVN: r120143
This commit is contained in:
Andrew Pinski 2006-12-21 23:25:00 -08:00 committed by Andrew Pinski
parent 0b0dc2724a
commit bc0ebe76b3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-12-21 Andrew Pinski <pinskia@gmail.com>
* tree-nested.c (create_tmp_var_for): Check for vector type
when setting DECL_GIMPLE_REG_P.
2006-12-21 Roger Sayle <roger@eyesopen.com>
* tree-pretty-print.c (dump_generic_node): Avoid outputing "(void) 0;"

View File

@ -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;