function.c (clobber_return_register): Clobber the pseudo return register too.

* function.c (clobber_return_register): Clobber the pseudo return
	register too.

From-SVN: r43011
This commit is contained in:
Jan Hubicka 2001-06-08 14:26:51 +02:00 committed by Jan Hubicka
parent cf7ec0ab00
commit 9c65bbf460
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,8 @@
Fri Jun 8 14:16:33 CEST 2001 Jan Hubicka <jh@suse.cz>
* function.c (clobber_return_register): Clobber the pseudo return
register too.
* sibcall.c (skip_unreturned_value): New function.
(call_ends_block_p): Use it.

View File

@ -6601,6 +6601,17 @@ void
clobber_return_register ()
{
diddle_return_value (do_clobber_return_reg, NULL);
/* In case we do use pseudo to return value, clobber it too. */
if (DECL_RTL_SET_P (DECL_RESULT (current_function_decl)))
{
tree decl_result = DECL_RESULT (current_function_decl);
rtx decl_rtl = DECL_RTL (decl_result);
if (REG_P (decl_rtl) && REGNO (decl_rtl) >= FIRST_PSEUDO_REGISTER)
{
do_clobber_return_reg (decl_rtl, NULL);
}
}
}
static void