mn10200.c (expand_epilogue): Fix test to determine which scratch register to use.

* mn10200.c (expand_epilogue): Fix test to determine which scratch
        register to use.

From-SVN: r55369
This commit is contained in:
Jeff Law 2002-07-10 11:26:31 -06:00 committed by Jeff Law
parent ff27a42938
commit 029f3983ab
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-07-10 Jeffrey A Law <law@redhat.com>
* mn10200.c (expand_epilogue): Fix test to determine which scratch
register to use.
Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
* cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.

View File

@ -712,10 +712,8 @@ expand_epilogue ()
size = total_frame_size ();
if (DECL_RESULT (current_function_decl)
&& DECL_RTL (DECL_RESULT (current_function_decl))
&& REG_P (DECL_RTL (DECL_RESULT (current_function_decl))))
temp_regno = (REGNO (DECL_RTL (DECL_RESULT (current_function_decl))) == 4
? 0 : 4);
&& POINTER_TYPE_P (TREE_TYPE (DECL_RESULT (current_function_decl))))
temp_regno = 0;
else
temp_regno = 4;