https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64798
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think aligned attribute is similarly useless for this, I'd really go for testing alignments you need, rather than expecting some magic value. I'm not aware of any target that would have bigger alignment for say char/short/int/long than long long, ditto with float/double, so I'd just check maximum of long long, long double, void * alignment.