In MCOUNT_OVERHEAD(label), actually use the `label' parameter. We were

still using the global label named "profil", and this worked accidentally
because all callers use the same name.
This commit is contained in:
Bruce Evans 2006-10-28 07:59:11 +00:00
parent f5789eb3d8
commit 853b92dacf
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@
#define MCOUNT_OVERHEAD(label) \
__asm __volatile("pushq %0; call __mcount; popq %%rcx" \
: \
: "i" (profil) \
: "i" (label) \
: "ax", "dx", "cx", "di", "si", "r8", "r9", "memory")
#define MEXITCOUNT_OVERHEAD() \
__asm __volatile("call .mexitcount; 1:" \

View File

@ -61,7 +61,7 @@
#define MCOUNT_OVERHEAD(label) \
__asm __volatile("pushl %0; call __mcount; popl %%ecx" \
: \
: "i" (profil) \
: "i" (label) \
: "ax", "dx", "cx", "memory")
#define MEXITCOUNT_OVERHEAD() \
__asm __volatile("call .mexitcount; 1:" \