This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Where does C standard mention alignment requirements as written in gcc manual?
- From: john smith <wempwer at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 18 Aug 2015 17:04:28 +0200
- Subject: Where does C standard mention alignment requirements as written in gcc manual?
- Authentication-results: sourceware.org; auth=none
In gcc manual it says:
"Note that the alignment of any given struct or union type is required
by the ISO C standard to be at least a perfect multiple of the lowest
common multiple of the alignments of all of the members of the struct
or union in question."
Where exactly is this requirement mentioned in C standard? I was
looking for it in both C99 and C11 drafts and couldn't find it.
--
<wempwer@gmail.com>