Commit b69649e4 by Richard Kenner

(output_function_epilogue): Use FUNCTION_BLOCK_PROFILER_EXIT.

From-SVN: r10854
parent 68f654ec
...@@ -302,6 +302,13 @@ output_function_epilogue (stream, size) ...@@ -302,6 +302,13 @@ output_function_epilogue (stream, size)
return; return;
} }
#ifdef FUNCTION_BLOCK_PROFILER_EXIT
if (profile_block_flag == 2)
{
FUNCTION_BLOCK_PROFILER_EXIT (stream);
}
#endif
#ifdef FUNCTION_EXTRA_EPILOGUE #ifdef FUNCTION_EXTRA_EPILOGUE
FUNCTION_EXTRA_EPILOGUE (stream, size); FUNCTION_EXTRA_EPILOGUE (stream, size);
#endif #endif
......
...@@ -3012,6 +3012,13 @@ output_function_epilogue (file, size, leaf_function) ...@@ -3012,6 +3012,13 @@ output_function_epilogue (file, size, leaf_function)
final_scan_insn (get_last_insn (), file, 0, 0, 1); 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. */ /* Restore any call saved registers. */
if (num_gfregs) if (num_gfregs)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment