aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2006-02-12 03:01:04 -0500
committerJason Merrill <jason@gcc.gnu.org>2006-02-12 03:01:04 -0500
commit1d327c160a08807deeab07d6b9af30115853eda1 (patch)
tree08389978c89dcf560e5f48b595cda76d804891fc /gcc/tree-inline.c
parenteb63438c1b450998cfc58aee838baf7e960c3055 (diff)
downloadgcc-1d327c160a08807deeab07d6b9af30115853eda1.zip
gcc-1d327c160a08807deeab07d6b9af30115853eda1.tar.gz
gcc-1d327c160a08807deeab07d6b9af30115853eda1.tar.bz2
re PR tree-optimization/24365 (statement makes a memory store with complex)
PR tree-opt/24365 * tree-inline.c (declare_return_variable): Just don't use the modify target if it's a gimple complex reg and the return slot isn't. From-SVN: r110888
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 81682c8..8d258ff 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1222,9 +1222,10 @@ declare_return_variable (copy_body_data *id, tree return_slot_addr,
use_it = false;
else if (is_global_var (base_m))
use_it = false;
- else if (TREE_CODE (TREE_TYPE (base_m)) == COMPLEX_TYPE
- && !DECL_COMPLEX_GIMPLE_REG_P (result))
- DECL_COMPLEX_GIMPLE_REG_P (base_m) = 0;
+ else if (TREE_CODE (TREE_TYPE (result)) == COMPLEX_TYPE
+ && !DECL_COMPLEX_GIMPLE_REG_P (result)
+ && DECL_COMPLEX_GIMPLE_REG_P (base_m))
+ use_it = false;
else if (!TREE_ADDRESSABLE (base_m))
use_it = true;
}