(output_function_epilogue): Use FUNCTION_BLOCK_PROFILER_EXIT.
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 24 Dec 1995 22:45:30 +0000 (17:45 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 24 Dec 1995 22:45:30 +0000 (17:45 -0500)
From-SVN: r10854

gcc/config/m68k/m68k.c
gcc/config/sparc/sparc.c

index 2b5b392..1a39918 100644 (file)
@@ -302,6 +302,13 @@ output_function_epilogue (stream, size)
       return;
     }
 
+#ifdef FUNCTION_BLOCK_PROFILER_EXIT
+  if (profile_block_flag == 2)
+    {
+      FUNCTION_BLOCK_PROFILER_EXIT (stream);
+    }
+#endif
+
 #ifdef FUNCTION_EXTRA_EPILOGUE
   FUNCTION_EXTRA_EPILOGUE (stream, size);
 #endif
index f8efc7a..cef056b 100644 (file)
@@ -3012,6 +3012,13 @@ output_function_epilogue (file, size, leaf_function)
       final_scan_insn (get_last_insn (), file, 0, 0, 1);
     }
 
+#ifdef FUNCTION_BLOCK_PROFILER_EXIT
+  else if (profile_block_flag == 2)
+    {
+      FUNCTION_BLOCK_PROFILER_EXIT(file);
+    }
+#endif
+
   /* Restore any call saved registers.  */
   if (num_gfregs)
     {