From f802bb99263aaa5be492999babd44cd2fdb1c65f Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 15 Aug 2022 08:48:17 +0200 Subject: align fix --- bootstrap/all.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bootstrap/all.h') diff --git a/bootstrap/all.h b/bootstrap/all.h index bb0711a..e458c15 100644 --- a/bootstrap/all.h +++ b/bootstrap/all.h @@ -491,12 +491,14 @@ struct comfile { /** Target **/ /************/ -#define alignof __alignof__ +#define alignof _Alignof static const struct targ { size_t ptrsize, shortsize, intsize, + i32align, + i64align, longsize, llongsize, sizesize, @@ -509,6 +511,8 @@ static const struct targ { .ptrsize = sizeof(void *), .shortsize = sizeof(short), .intsize = sizeof(int), + .i32align = alignof(int32_t), + .i64align = alignof(int64_t), .longsize = sizeof(long), .llongsize = sizeof(long long), .sizesize = sizeof(size_t), -- cgit v1.2.3