Re: alignasof, stdalign: Fix a compilation error on FreeBSD 12.0

2023-01-24 Thread Bruno Haible
PS: For this patch, I needed to know which compiler versions support __builtin_offsetof. This test program = typedef struct { char a; double b; int c; } foo; int xxx = __builtin_offsetof (foo, c); #include int yyy = offsetof (foo, c); ==

alignasof, stdalign: Fix a compilation error on FreeBSD 12.0

2023-01-24 Thread Bruno Haible
following patch fixes it. One in master, a different one for the stable-202301 branch. (On the stable-202207 branch there is no problem.) >From b323b5297757c5c904e6aff63454c03361ce Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 24 Jan 2023 13:44:07 +0100 Subject: [PATCH] alignasof, stda