This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Atomic alignment override.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Andrew MacLeod <amacleod at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Jeff Law <law at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>, Hans-Peter Nilsson <hp at bitrange dot com>
- Date: Fri, 22 Nov 2013 12:34:16 +0100
- Subject: Re: [patch] Atomic alignment override.
- Authentication-results: sourceware.org; auth=none
- References: <528E8D43 dot 2050101 at redhat dot com> <CAFiYyc2z9VSfvtN9_PhWCGagnvTr6J4xNbfv4AfiM56ae7ULNQ at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Nov 22, 2013 at 12:21:32PM +0100, Richard Biener wrote:
> On Thu, Nov 21, 2013 at 11:46 PM, Andrew MacLeod <amacleod@redhat.com> wrote:
> > Its adds a target hook which can be used to override the default alignment
> > of an atomic type when used with C11's _Atomic qualifier. There are a couple
> > of ports which have stricter alignment requirements for an atomic operation
> > than the natural alignment of the integral type. Today they are just
> > broken with no real facility to repair it.
How do i?86 _Atomic long long and _Atomic long double work btw?
At least when they are inside of structures, they have 4 byte alignment.
Jakub