From: Segher Boessenkool <segher@kernel.crashing.org>
To: john smith <wempwer@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Where does C standard mention alignment requirements as written in gcc manual?
Date: Tue, 18 Aug 2015 15:50:00 -0000 [thread overview]
Message-ID: <20150818155042.GC30482@gate.crashing.org> (raw)
In-Reply-To: <CAKmQUfai7NdLwiQRQ-0Nd4biPjyBgMp46K3WhO7xOn=Oi4zLLw@mail.gmail.com>
On Tue, Aug 18, 2015 at 05:04:28PM +0200, john smith wrote:
> 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.
C99 6.7.2.1/12 ?
Segher
next prev parent reply other threads:[~2015-08-18 15:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 15:04 john smith
2015-08-18 15:50 ` Segher Boessenkool [this message]
2015-08-18 15:57 ` john smith
2015-08-18 16:25 ` Nicholas Mc Guire
2015-08-18 16:28 ` Segher Boessenkool
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150818155042.GC30482@gate.crashing.org \
--to=segher@kernel.crashing.org \
--cc=gcc-help@gcc.gnu.org \
--cc=wempwer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).