Commit 1d327c16 by Jason Merrill Committed by Jason Merrill

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
parent eb63438c
2006-02-11 Jason Merrill <jason@redhat.com>
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.
2006-02-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* doc/contrib.texi: Update my entry.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment