git: 39cad8402d19 - main - max_align_t: apply alignof to 'long double' for long double alignment

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 20 Nov 2025 16:52:28 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=39cad8402d19f361cb8d489a3a69ff94b643c6df

commit 39cad8402d19f361cb8d489a3a69ff94b643c6df
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-11-19 14:51:54 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-11-20 16:52:10 +0000

    max_align_t: apply alignof to 'long double' for long double alignment
    
    Reviewed by;    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D53826
---
 sys/sys/_types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index fe345b43d5eb..6b70b8dc6e32 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -183,7 +183,7 @@ typedef struct {
 	    __attribute__((__aligned__(__alignof__(long long))));
 #ifndef _STANDALONE
 	long double __max_align2
-	    __attribute__((__aligned__(__alignof__(long long))));
+	    __attribute__((__aligned__(__alignof__(long double))));
 #endif
 } __max_align_t;