diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-18 01:17:52 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-18 01:17:52 +0000 |
commit | a4b6566aa290c4d7a28e4866b9aa4fed6073f3d9 (patch) | |
tree | 63a62f797becba844a96b66d1cb5d5b2535ad00c /gcc/tree-nested.c | |
parent | 78ab4d5e82ac8c1356390fc9a5e85ce82ae90b16 (diff) | |
download | gcc-a4b6566aa290c4d7a28e4866b9aa4fed6073f3d9.tar.gz |
PR 27889
* tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
if needed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115541 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-nested.c')
-rw-r--r-- | gcc/tree-nested.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index 67a13c28a99..591642c732c 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -147,6 +147,9 @@ 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) + DECL_COMPLEX_GIMPLE_REG_P (tmp_var) = 1; + info->new_local_var_chain = tmp_var; return tmp_var; |