public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] m68: Enforce 4-byte alignment on internal locks (BZ #29537)
@ 2022-08-30 13:35 Adhemerval Zanella
  2022-08-30 13:46 ` John Paul Adrian Glaubitz
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2022-08-30 13:35 UTC (permalink / raw)
  To: libc-alpha, glaubitz

The HPPA also requires a 16-byte alignment for locks, although it is
just a historical artifact to keep compatibility with old
implementation.
---
 sysdeps/nptl/libc-lockP.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/nptl/libc-lockP.h b/sysdeps/nptl/libc-lockP.h
index d3a6837fd2..9efe962588 100644
--- a/sysdeps/nptl/libc-lockP.h
+++ b/sysdeps/nptl/libc-lockP.h
@@ -34,7 +34,7 @@
 #include <tls.h>
 
 /* Mutex type.  */
-typedef int __libc_lock_t;
+typedef int __libc_lock_t __LOCK_ALIGNMENT;
 typedef struct { pthread_mutex_t mutex; } __rtld_lock_recursive_t;
 typedef pthread_rwlock_t __libc_rwlock_t;
 
-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-09-02 17:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30 13:35 [PATCH] m68: Enforce 4-byte alignment on internal locks (BZ #29537) Adhemerval Zanella
2022-08-30 13:46 ` John Paul Adrian Glaubitz
2022-08-30 13:54   ` Adhemerval Zanella Netto
2022-08-30 14:18 ` Carlos O'Donell
2022-08-30 14:23   ` Adhemerval Zanella Netto
2022-08-30 16:32 ` Richard Henderson
2022-08-30 17:04   ` Adhemerval Zanella Netto
2022-09-02 17:29 ` Andreas K. Huettel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).