Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [pushed] [gdb/build, clang] Fix ignored aligned attribute
@ 2026-06-12 10:41 Tom de Vries
  2026-06-12 13:24 ` Tom Tromey
  2026-06-12 13:26 ` Pedro Alves
  0 siblings, 2 replies; 5+ messages in thread
From: Tom de Vries @ 2026-06-12 10:41 UTC (permalink / raw)
  To: gdb-patches

PR build/34279 reports a build failure with clang.

This is a regression since commit 6c85ef111b0 ("[gdb] Use using instead of
typedef"), which did:
...
-typedef long __attribute__ ((__aligned__ (4))) compat_x32_clock_t;
+using compat_x32_clock_t = long __attribute__ ((__aligned__ (4)));
...

The problem is that clang ignores the attribute.

Fix this by reverting this part of the commit.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34279
---
 gdb/nat/amd64-linux-siginfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/nat/amd64-linux-siginfo.c b/gdb/nat/amd64-linux-siginfo.c
index 8f1e4acc47e..99faccabf37 100644
--- a/gdb/nat/amd64-linux-siginfo.c
+++ b/gdb/nat/amd64-linux-siginfo.c
@@ -203,7 +203,7 @@ struct compat_siginfo_t
 };
 
 /* For x32, clock_t in _sigchld is 64bit aligned at 4 bytes.  */
-using compat_x32_clock_t = long __attribute__ ((__aligned__ (4)));
+typedef long __attribute__ ((__aligned__ (4))) compat_x32_clock_t;
 
 struct __attribute__ ((__aligned__ (8))) compat_x32_siginfo_t
 {

base-commit: 4cdc9a9d93571737476034869dd8caaecb5ca35d
-- 
2.51.0


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

end of thread, other threads:[~2026-06-16  7:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 10:41 [pushed] [gdb/build, clang] Fix ignored aligned attribute Tom de Vries
2026-06-12 13:24 ` Tom Tromey
2026-06-16  7:26   ` Tom de Vries
2026-06-12 13:26 ` Pedro Alves
2026-06-16  6:27   ` Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox