(CALL_MCOUNT): Replace stub with real implementation.

This commit is contained in:
Ulrich Drepper 1998-07-27 17:52:15 +00:00
parent 7d39ca8849
commit 22a7aa47a3

View File

@ -73,10 +73,10 @@
/* If compiled for profiling, call `mcount' at the start of each function. */ /* If compiled for profiling, call `mcount' at the start of each function. */
#ifdef PROF #ifdef PROF
/* The mcount code relies on a normal frame pointer being on the stack #define CALL_MCOUNT \
to locate our caller, so push one just for its benefit. */ str lr,[sp, #-4]! \
#define CALL_MCOUNT \ bl PLTJMP(mcount) \
#error Profiling not supported. ldr lr, [sp], #4
#else #else
#define CALL_MCOUNT /* Do nothing. */ #define CALL_MCOUNT /* Do nothing. */
#endif #endif