summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/x86_64/sysdep.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-11 16:59:22 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-17 11:22:40 +0200
commit345181fb9a36ad18c0a40ccb74bff9ee4d03819b (patch)
treeae423df029137e85c5e7edbcec1e128ba4ebabda /libc/sysdeps/linux/x86_64/sysdep.h
parenta072066753e15c3a82bc32f89c1eef277af0b31e (diff)
cleanup CALL_MCOUNT / PROF
As this is only implemented for a few architecture and not well tested, just remove it.
Diffstat (limited to 'libc/sysdeps/linux/x86_64/sysdep.h')
-rw-r--r--libc/sysdeps/linux/x86_64/sysdep.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/libc/sysdeps/linux/x86_64/sysdep.h b/libc/sysdeps/linux/x86_64/sysdep.h
index 0e5100122..a5971d7fa 100644
--- a/libc/sysdeps/linux/x86_64/sysdep.h
+++ b/libc/sysdeps/linux/x86_64/sysdep.h
@@ -42,30 +42,13 @@
ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function) \
.align ALIGNARG(4); \
C_LABEL(name) \
- cfi_startproc; \
- CALL_MCOUNT
+ cfi_startproc;
#undef END
#define END(name) \
cfi_endproc; \
ASM_SIZE_DIRECTIVE(name)
-/* If compiled for profiling, call `mcount' at the start of each function. */
-#ifdef PROF
-/* The mcount code relies on a normal frame pointer being on the stack
- to locate our caller, so push one just for its benefit. */
-#define CALL_MCOUNT \
- pushq %rbp; \
- cfi_adjust_cfa_offset(8); \
- movq %rsp, %rbp; \
- cfi_def_cfa_register(%rbp); \
- call JUMPTARGET(mcount); \
- popq %rbp; \
- cfi_def_cfa(rsp,8);
-#else
-#define CALL_MCOUNT /* Do nothing. */
-#endif
-
#ifdef NO_UNDERSCORES
/* Since C identifiers are not normally prefixed with an underscore
on this system, the asm identifier `syscall_error' intrudes on the