This implementation of max_align_t disagrees with gcc. They have something
like:
typedef struct {
long long __max_align_ll __attribute__((__aligned__(__alignof__(long
long))));
long double __max_align_ld __attribute__((__aligned__(__alignof__(long
double))));
} max_align_t;
as their definition while you have something like:
typedef long double max_align_t;
For a 32-bit x86 target, this means that:
gcc's alignof(max_align_t): 8
clang's alignof(max_align_t): 4
--
David Majnemer
On Fri, Oct 18, 2013 at 9:58 AM, Hristo Venev <[email protected]> wrote:
> Add a definition of max_align_t in stddef.h
> Done by gcc 4.9 and required by libstdc++ 4.9.
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits