binutils-gdb/gdb/nat
Tom de Vries b2e06335b1 [gdb] Use using in compat_x32_clock_t typedef
In commit 6c85ef111b ("[gdb] Use using instead of typedef"), I did:
...
-typedef long __attribute__ ((__aligned__ (4))) compat_x32_clock_t;
+using compat_x32_clock_t = long __attribute__ ((__aligned__ (4)));
...
which I had to revert because clang ignores the attribute in this variant.

Pedro suggested instead using:
...
using compat_x32_clock_t [[gnu::aligned (4)]] = long;
...
which does work with both clang and gcc.

[ Note that it's not a question of how the attribute is worded, this also works:
...
using compat_x32_clock_t __attribute__ ((__aligned__ (4))) = long;
...
It's just a question of where the attribute is placed. ]

Fix this by using Pedro's suggestion.

Suggested-By: Pedro Alves <pedro@palves.net>
Approved-By: Tom Tromey <tom@tromey.com>
2026-07-13 15:06:35 +02:00
..
aarch64-fpmr-linux.h GDB: Add aarch64-fpmr-linux.h to gdb/arch/ and gdb/nat/ 2026-03-16 23:17:52 -03:00
aarch64-gcs-linux.h GDB: aarch64-linux: Fix build failure on musl systems 2026-03-16 23:17:52 -03:00
aarch64-hw-point.c
aarch64-hw-point.h
aarch64-linux-hw-point.c gdb, gdbserver: split iterate_over_lwps into for_each_lwp and find_lwp 2026-04-17 15:30:30 -04:00
aarch64-linux-hw-point.h [gdb] Use using instead of typedef 2026-06-11 08:54:34 +02:00
aarch64-linux.c
aarch64-linux.h [gdb] Convert typedef of named struct 2026-07-13 15:06:35 +02:00
aarch64-mte-linux-ptrace.c GDB: aarch64-linux: Reorganize MTE-related definitions 2026-03-16 23:17:52 -03:00
aarch64-mte-linux-ptrace.h GDB: aarch64-linux: Reorganize MTE-related definitions 2026-03-16 23:17:52 -03:00
aarch64-pauth-linux.h GDB: Add aarch64-pauth-linux.h to gdb/arch/ and gdb/nat/ 2026-03-16 23:17:52 -03:00
aarch64-scalable-linux-ptrace.c
aarch64-scalable-linux-ptrace.h GDB: aarch64-linux: Reorganize SME-related definitions 2026-03-16 23:17:52 -03:00
aarch64-scalable-linux-sigcontext.h
amd64-linux-siginfo.c [gdb] Use using in compat_x32_clock_t typedef 2026-07-13 15:06:35 +02:00
amd64-linux-siginfo.h
amd64-linux.h
fork-inferior.c [gdb] Add missing i18n support to warning strings (part 4) 2026-06-09 22:14:07 +02:00
fork-inferior.h
gdb_ptrace.h
gdb_thread_db.h [gdb] Convert function typedefs to using 2026-07-13 15:06:35 +02:00
glibc_thread_db.h [gdb] Convert typedef of named struct 2026-07-13 15:06:35 +02:00
i386-linux.c
i386-linux.h
linux-btrace.c [pre-commit] Make gdb/nat codespell-clean 2026-06-01 14:33:48 +02:00
linux-btrace.h
linux-namespaces.c
linux-namespaces.h
linux-nat.h gdb: make iterate_over_symbols return void, rename to for_each_symbol 2026-04-17 15:30:33 -04:00
linux-osdata.c [gdb] Use using instead of typedef 2026-06-11 08:54:34 +02:00
linux-osdata.h
linux-personality.c
linux-personality.h
linux-procfs.c gdb, gdbserver, gdbsupport: replace many uses of strcmp with streq 2026-03-16 13:24:00 -04:00
linux-procfs.h [gdb] Use using instead of typedef some more (part 2) 2026-07-13 15:06:35 +02:00
linux-ptrace.c
linux-ptrace.h
linux-waitpid.c
linux-waitpid.h
loongarch-hw-point.c
loongarch-hw-point.h
loongarch-linux-hw-point.c gdb, gdbserver: split iterate_over_lwps into for_each_lwp and find_lwp 2026-04-17 15:30:30 -04:00
loongarch-linux-hw-point.h [gdb] Use using instead of typedef 2026-06-11 08:54:34 +02:00
loongarch-linux.c
loongarch-linux.h
mips-linux-watch.c
mips-linux-watch.h
netbsd-nat.c
netbsd-nat.h
ppc-linux.c
ppc-linux.h
riscv-linux-tdesc.c
riscv-linux-tdesc.h
windows-nat.c Windows gdb+gdbserver: Decode Cygwin ExitProcess codes 2026-06-12 14:57:21 +01:00
windows-nat.h Windows gdb+gdbserver: Decode Cygwin ExitProcess codes 2026-06-12 14:57:21 +01:00
x86-cpuid.h
x86-dregs.c
x86-dregs.h
x86-gcc-cpuid.h
x86-linux-dregs.c gdb, gdbserver: split iterate_over_lwps into for_each_lwp and find_lwp 2026-04-17 15:30:30 -04:00
x86-linux-dregs.h
x86-linux-tdesc.c
x86-linux-tdesc.h
x86-linux.c [gdb] Remove unnecessary defs.h/common-defs.h includes 2026-04-21 23:12:13 +02:00
x86-linux.h
x86-xstate.c
x86-xstate.h