re PR middle-end/44671 (Partial inlining breaks C++)
PR middle-end/44671 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of RESULT_DECL. From-SVN: r161514
This commit is contained in:
parent
7fd7263dc9
commit
6b5c2d6c5e
@ -1,3 +1,8 @@
|
||||
2010-06-28 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
PR middle-end/44671
|
||||
* ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of RESULT_DECL.
|
||||
|
||||
2010-06-28 Anatoly Sokolov <aesok@post.ru>
|
||||
|
||||
* double-int.h (force_fit_type_double): Remove declaration.
|
||||
|
@ -138,6 +138,7 @@ test_nonssa_use (gimple stmt ATTRIBUTE_UNUSED, tree t,
|
||||
if (t && !is_gimple_reg (t)
|
||||
&& ((TREE_CODE (t) == VAR_DECL
|
||||
&& auto_var_in_fn_p (t, current_function_decl))
|
||||
|| (TREE_CODE (t) == RESULT_DECL)
|
||||
|| (TREE_CODE (t) == PARM_DECL)))
|
||||
return bitmap_bit_p ((bitmap)data, DECL_UID (t));
|
||||
return false;
|
||||
@ -441,7 +442,8 @@ mark_nonssa_use (gimple stmt ATTRIBUTE_UNUSED, tree t,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (TREE_CODE (t) == VAR_DECL && auto_var_in_fn_p (t, current_function_decl))
|
||||
if ((TREE_CODE (t) == VAR_DECL && auto_var_in_fn_p (t, current_function_decl))
|
||||
|| (TREE_CODE (t) == RESULT_DECL))
|
||||
bitmap_set_bit ((bitmap)data, DECL_UID (t));
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user