aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-nested.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2006-07-17 18:17:52 -0700
committerRichard Henderson <rth@gcc.gnu.org>2006-07-17 18:17:52 -0700
commit8bcbc00026bb7e9ab76e9db074eb04b46916df34 (patch)
tree63a62f797becba844a96b66d1cb5d5b2535ad00c /gcc/tree-nested.c
parent4f5afe7d1af4339a5a420fe15b40c74f328daa86 (diff)
downloadgcc-8bcbc00026bb7e9ab76e9db074eb04b46916df34.zip
gcc-8bcbc00026bb7e9ab76e9db074eb04b46916df34.tar.gz
gcc-8bcbc00026bb7e9ab76e9db074eb04b46916df34.tar.bz2
re PR middle-end/27889 (ICE on complex assignment in nested function)
PR 27889 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P if needed. From-SVN: r115541
Diffstat (limited to 'gcc/tree-nested.c')
-rw-r--r--gcc/tree-nested.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c
index 67a13c2..591642c 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;