__mcount uses jsb linkage, so there is no need to skip the (non-existent)

register save mask.  Profiling now works.

Also, use asm_fprintf() in FUNCTION_PROFILER.
This commit is contained in:
thorpej 2002-10-02 00:50:24 +00:00
parent 354bc052d9
commit cde0a5d6aa
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef FUNCTION_PROFILER
#define FUNCTION_PROFILER(FILE, LABELNO) \
fprintf (FILE, "\tmovab .LP%d,r0\n\tjsb __mcount+2\n", (LABELNO))
asm_fprintf (FILE, "\tmovab .LP%d,%Rr0\n\tjsb __mcount\n", (LABELNO))
/* Use sjlj exceptions. */
#undef DWARF2_UNWIND_INFO /* just to be safe */