From: Richard Kenner Date: Fri, 1 Jul 1994 17:49:42 +0000 (-0400) Subject: (FUNCTION_EXTRA_PROLOGUE): New macro. X-Git-Tag: misc/cutover-egcs-0~6313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16454bf22c617f6f571a4065ce8a87444d7b9aea;p=thirdparty%2Fgcc.git (FUNCTION_EXTRA_PROLOGUE): New macro. From-SVN: r7630 --- diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h index e0be06f30d7b..f20a18e0f6df 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))