stdalign: relax _Alignof and tighten _Alignas test
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Jan 2012 06:17:42 +0000 (22:17 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Jan 2012 06:18:35 +0000 (22:18 -0800)
commitba7b7388f820b620ad4f92d263f7037dd7c89bfc
treecaa4995abb5aa77676613a42b9629a502f59a350
parent1d99767ae56e5f7694fa9b036934ef7f27330f7e
stdalign: relax _Alignof and tighten _Alignas test

* m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
as it was too strict: alignof must divide offsetof, but it need
not equal offsetof.  Inspired by Joseph S. Myers's comment
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
Conversely, tighten the _Alignas test a bit, as the resulting
alignment must be exactly 8.
ChangeLog
m4/stdalign.m4