summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/bits
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/bits')
-rw-r--r--libc/sysdeps/linux/powerpc/bits/profil-counter.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/powerpc/bits/profil-counter.h b/libc/sysdeps/linux/powerpc/bits/profil-counter.h
index 6ce7eab01..69045b55b 100644
--- a/libc/sysdeps/linux/powerpc/bits/profil-counter.h
+++ b/libc/sysdeps/linux/powerpc/bits/profil-counter.h
@@ -1,5 +1,5 @@
-/* Low-level statistical profiling support function. Linux/ipowerpc version.
- Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Low-level statistical profiling support function. Linux/i386 version.
+ Copyright (C) 1996, 1997, 1998, 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
@@ -21,8 +21,12 @@
#include <bits/sigcontextinfo.h>
static void
-profil_counter (int signo, SIGCONTEXT scp)
+profil_counter (int signo, const SIGCONTEXT scp)
{
profil_count ((void *) GET_PC (scp));
-}
+ /* This is a hack to prevent the compiler from implementing the
+ above function call as a sibcall. The sibcall would overwrite
+ the signal context. */
+ asm volatile ("");
+}