summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-13 14:30:08 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-13 14:30:08 +0000
commitcd2767523f65517d5bb2ed71f08c7368e987d95b (patch)
treef95b531d44ac7c3090bea861e22dc740f822e104 /gcc/tree-inline.c
parentb0b925d402029018ff18d168c916ef731617f951 (diff)
downloadgcc-cd2767523f65517d5bb2ed71f08c7368e987d95b.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109667 138bc75d-0d04-0410-961f-82ee72b054a4
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 be38fc937e1..fd3f159f0b1 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;
}