aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2006-01-13 14:30:08 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2006-01-13 06:30:08 -0800
commit22918034f8e5ff75c20da27f988301b23a531975 (patch)
treef95b531d44ac7c3090bea861e22dc740f822e104 /gcc/tree-inline.c
parent690c6eacb13e30f624963ce2abbbbeae0f25dcb3 (diff)
downloadgcc-22918034f8e5ff75c20da27f988301b23a531975.zip
gcc-22918034f8e5ff75c20da27f988301b23a531975.tar.gz
gcc-22918034f8e5ff75c20da27f988301b23a531975.tar.bz2
re PR tree-optimization/24365 (statement makes a memory store with complex)
2006-01-13 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/24365 * tree-inline.c (declare_return_variable): If the return variable was marked as a non gimple complex, set the return slot variable to be a non gimple comple variable. 2006-01-13 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/24365 * g++.dg/opt/complex5.C: New test. From-SVN: r109667
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index be38fc9..fd3f159 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1233,6 +1233,10 @@ declare_return_variable (inline_data *id, tree return_slot_addr,
var = return_slot_addr;
else
var = build_fold_indirect_ref (return_slot_addr);
+ if (TREE_CODE (TREE_TYPE (result)) == COMPLEX_TYPE
+ && !DECL_COMPLEX_GIMPLE_REG_P (result)
+ && DECL_P (var))
+ DECL_COMPLEX_GIMPLE_REG_P (var) = 0;
use = NULL;
goto done;
}