diff options
| author | Ulrich Drepper <drepper@redhat.com> | 2002-10-14 17:26:14 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 2002-10-14 17:26:14 +0000 |
| commit | 75380e2be2f3dbbc8ba547d77ce22ad70994c202 (patch) | |
| tree | 728c5baeba79bd9bbb14ef93fb33728e0b79ecea | |
| parent | f51d25319152c18899334ae52045f84578e2ea86 (diff) | |
| download | glibc-75380e2be2f3dbbc8ba547d77ce22ad70994c202.tar.xz glibc-75380e2be2f3dbbc8ba547d77ce22ad70994c202.zip | |
(profil_counter): Add hack to prevent the compiler from clobbering the signal
context.
| -rw-r--r-- | sysdeps/unix/sysv/linux/arm/profil-counter.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/profil-counter.h b/sysdeps/unix/sysv/linux/arm/profil-counter.h index 5d8be9dba6..7639883f10 100644 --- a/sysdeps/unix/sysv/linux/arm/profil-counter.h +++ b/sysdeps/unix/sysv/linux/arm/profil-counter.h @@ -1,5 +1,5 @@ /* Low-level statistical profiling support function. Linux/ARM version. - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. + 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 @@ -29,4 +29,9 @@ profil_counter (int signo, int _a2, int _a3, int _a4, union k_sigcontext sc) else pc = (void *) sc.v21.arm_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 (""); } |
