diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-09-07 04:13:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-09-07 04:13:12 +0000 |
commit | f223d1cb8220990a50896be92443839ded0fcfe4 (patch) | |
tree | 916fa3b41e940d6f0bea991502249570cf41349a /libc/sysdeps/linux/sh/bits/profil-counter.h | |
parent | f05ef15283af3b01d508b10319acd04a301190cb (diff) |
Some updates from glibc. mjn3 reports this fixes profiling
on i386, at least, so seems like a good thing.
Diffstat (limited to 'libc/sysdeps/linux/sh/bits/profil-counter.h')
-rw-r--r-- | libc/sysdeps/linux/sh/bits/profil-counter.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/sh/bits/profil-counter.h b/libc/sysdeps/linux/sh/bits/profil-counter.h index 44561b2a6..ae1b97828 100644 --- a/libc/sysdeps/linux/sh/bits/profil-counter.h +++ b/libc/sysdeps/linux/sh/bits/profil-counter.h @@ -1,5 +1,5 @@ /* Low-level statistical profiling support function. Linux/SH version. - Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 2000, 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 @@ -23,11 +23,11 @@ static void profil_counter (int signo, int _a2, int _a3, int _a4, struct sigcontext sc) { void *pc; - (void) signo; - (void)_a2; - (void)_a3; - (void)_a4; - pc = (void *) sc.sc_pc; profil_count (pc); + + /* 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 (""); } |