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:
Jan Hubicka 2010-06-28 23:16:25 +02:00 committed by Jan Hubicka
parent 7fd7263dc9
commit 6b5c2d6c5e
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}