about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-08-21 07:55:01 +0000
committerAndreas Jaeger <aj@suse.de>2002-08-21 07:55:01 +0000
commitdf2ee6cdbdb0a653ecdf02272bfc257cdc2e3883 (patch)
treea574c6e306c69e97636c51ae0119554bbf423071
parent1f135f06f63ef64f2b5c6cdcb47fd83619fc2538 (diff)
downloadglibc-df2ee6cdbdb0a653ecdf02272bfc257cdc2e3883.tar.gz
glibc-df2ee6cdbdb0a653ecdf02272bfc257cdc2e3883.tar.xz
glibc-df2ee6cdbdb0a653ecdf02272bfc257cdc2e3883.zip
(CALL_MCOUNT): Fix it.
-rw-r--r--sysdeps/x86_64/sysdep.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/x86_64/sysdep.h b/sysdeps/x86_64/sysdep.h
index 2a2ad41e52..a9c0d25f11 100644
--- a/sysdeps/x86_64/sysdep.h
+++ b/sysdeps/x86_64/sysdep.h
@@ -1,5 +1,5 @@
 /* Assembler macros for x86-64.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -58,11 +58,10 @@
 
 /* If compiled for profiling, call `mcount' at the start of each function.  */
 #ifdef	PROF
-/* XXX this does not work yet!  */
 /* 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 \
-  pushl %ebp; movl %esp, %ebp; call JUMPTARGET(mcount); popl %ebp;
+  pushq %rbp; movq %rsp, %rbp; call JUMPTARGET(mcount); popq %rbp;
 #else
 #define CALL_MCOUNT		/* Do nothing.  */
 #endif