]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(FUNCTION_EXTRA_PROLOGUE): New macro.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 1 Jul 1994 17:49:42 +0000 (13:49 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 1 Jul 1994 17:49:42 +0000 (13:49 -0400)
From-SVN: r7630

gcc/config/m68k/mot3300.h

index e0be06f30d7b0a5a7ba204016a9bdbf60340d939..f20a18e0f6df8e496a864b669168a65666e1af81 100644 (file)
@@ -103,6 +103,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%fp", "%sp",       \
  "%fp0", "%fp1", "%fp2", "%fp3", "%fp4", "%fp5", "%fp6", "%fp7"}
 
+#undef FUNCTION_EXTRA_EPILOGUE
+#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE)                            \
+  { extern int current_function_returns_pointer;                       \
+    if ((current_function_returns_pointer) &&                          \
+      ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode))        \
+      asm_fprintf (FILE, "\tmovl %Rd0,%Ra0\n"); } 
+
 #undef FUNCTION_PROFILER
 #define FUNCTION_PROFILER(FILE, LABEL_NO)      \
     fprintf (FILE, "\tmov.l &LP%%%d,%%a0\n\tjsr mcount%%\n", (LABEL_NO))