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:
parent
f5789eb3d8
commit
853b92dacf
@ -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:" \
|
||||
|
@ -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:" \
|
||||
|
Loading…
Reference in New Issue
Block a user