From 16454bf22c617f6f571a4065ce8a87444d7b9aea Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 1 Jul 1994 13:49:42 -0400 Subject: [PATCH] (FUNCTION_EXTRA_PROLOGUE): New macro. From-SVN: r7630 --- gcc/config/m68k/mot3300.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h index e0be06f30d7..f20a18e0f6d 100644 --- a/gcc/config/m68k/mot3300.h +++ b/gcc/config/m68k/mot3300.h @@ -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)) -- 2.30.2