diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-04-03 14:56:20 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-10 20:42:28 +0200 |
commit | 645da826bba8c37d834403a56dc94203052c2cee (patch) | |
tree | 24dde8e9235b31a455c4a349db375e2775a1ae87 /hurd/trampoline.c | |
parent | 892f702827434553eeac63850048ddea7bf596c4 (diff) | |
download | glibc-645da826bba8c37d834403a56dc94203052c2cee.zip glibc-645da826bba8c37d834403a56dc94203052c2cee.tar.gz glibc-645da826bba8c37d834403a56dc94203052c2cee.tar.bz2 |
hurd: Do not declare local variables volatile
These are just regular local variables that are not accessed in any
funny ways, not even though a pointer. There's absolutely no reason to
declare them volatile. It only ends up hurting the quality of the
generated machine code.
If anything, it would make sense to decalre sigsp as *pointing* to
volatile memory (volatile void *sigsp), but evidently that's not needed
either.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230403115621.258636-2-bugaevc@gmail.com>
Diffstat (limited to 'hurd/trampoline.c')
-rw-r--r-- | hurd/trampoline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/trampoline.c b/hurd/trampoline.c index 5bd8dec..1447b13 100644 --- a/hurd/trampoline.c +++ b/hurd/trampoline.c @@ -29,7 +29,7 @@ struct sigcontext * _hurd_setup_sighandler (struct hurd_sigstate *ss, const struct sigaction *action, __sighandler_t handler, int signo, struct hurd_signal_detail *detail, - volatile int rpc_wait, + int rpc_wait, struct machine_thread_all_state *state) { #error "Need to write sysdeps/mach/hurd/MACHINE/trampoline.c" |