mn10200.c (expand_epilogue): Fix test to determine which scratch register to use.
authorJeff Law <law@redhat.com>
Wed, 10 Jul 2002 17:26:31 +0000 (11:26 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 10 Jul 2002 17:26:31 +0000 (11:26 -0600)
        * mn10200.c (expand_epilogue): Fix test to determine which scratch
        register to use.

From-SVN: r55369

gcc/ChangeLog
gcc/config/mn10200/mn10200.c

index 58c05a1..e779f45 100644 (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.
index 4dd1a01..e9f34b8 100644 (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;