Date: Thu, 2 Oct 2025 09:29:08 GMT From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: f7b6ea699b23 - main - arch.7: correct claim about ILP32 alignment Message-ID: <202510020929.5929T8SG051186@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=f7b6ea699b23b3af81866ef3aafb398c2c0d45af commit f7b6ea699b23b3af81866ef3aafb398c2c0d45af Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2025-10-02 09:25:53 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2025-10-02 09:28:35 +0000 arch.7: correct claim about ILP32 alignment Only i386 lays out structures with weak (4-byte) alightment. It may be that access works when weakly aligned, but from an ABI perspective, it's all about struct layout. Reviewed by: kib, emaste Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D52818 --- share/man/man7/arch.7 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/man/man7/arch.7 b/share/man/man7/arch.7 index 3b7576dc67cb..5de441aed699 100644 --- a/share/man/man7/arch.7 +++ b/share/man/man7/arch.7 @@ -183,9 +183,9 @@ On all supported architectures: Integers are represented in two's complement. Alignment of integer and pointer types is natural, that is, the address of the variable must be congruent to zero modulo the type size. -Most ILP32 ABIs, except -.Dv arm , -require only 4-byte alignment for 64-bit integers. +The sole exception is that +.Dv i386 +requires only 4-byte alignment for 64-bit integers. .Pp Machine-dependent type sizes: .Bl -column -offset indent "Architecture" "void *" "long double" "time_t"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510020929.5929T8SG051186>