Re: [patch] Atomic alignment override.

2013-11-22 Thread Andrew MacLeod
On 11/22/2013 06:21 AM, Richard Biener wrote: On Thu, Nov 21, 2013 at 11:46 PM, Andrew MacLeod wrote: I'd like to check in this code from the C11 branch so that it is present in 4.9. Its adds a target hook which can be used to override the default alignment of an atomic type when used with C11

Re: [patch] Atomic alignment override.

2013-11-22 Thread Joseph S. Myers
On Fri, 22 Nov 2013, Jakub Jelinek wrote: > 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. If the generic libatomic functions are called, they use locking if alignment is inadequate (libatomic presumes na

Re: [patch] Atomic alignment override.

2013-11-22 Thread Richard Biener
On Fri, Nov 22, 2013 at 12:34 PM, Jakub Jelinek wrote: > On Fri, Nov 22, 2013 at 12:21:32PM +0100, Richard Biener wrote: >> On Thu, Nov 21, 2013 at 11:46 PM, Andrew MacLeod wrote: >> > Its adds a target hook which can be used to override the default alignment >> > of an atomic type when used with

Re: [patch] Atomic alignment override.

2013-11-22 Thread Jakub Jelinek
On Fri, Nov 22, 2013 at 12:21:32PM +0100, Richard Biener wrote: > On Thu, Nov 21, 2013 at 11:46 PM, Andrew MacLeod 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 whi

Re: [patch] Atomic alignment override.

2013-11-22 Thread Richard Biener
On Fri, Nov 22, 2013 at 12:21 PM, Richard Biener wrote: > On Thu, Nov 21, 2013 at 11:46 PM, Andrew MacLeod wrote: >> I'd like to check in this code from the C11 branch so that it is present in >> 4.9. >> >> Its adds a target hook which can be used to override the default alignment >> of an atomic

Re: [patch] Atomic alignment override.

2013-11-22 Thread Richard Biener
On Thu, Nov 21, 2013 at 11:46 PM, Andrew MacLeod wrote: > I'd like to check in this code from the C11 branch so that it is present in > 4.9. > > 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

Re: [patch] Atomic alignment override.

2013-11-21 Thread Andrew MacLeod
On 11/21/2013 05:46 PM, Andrew MacLeod wrote: I'd like to check in this code from the C11 branch so that it is present in 4.9. 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

[patch] Atomic alignment override.

2013-11-21 Thread Andrew MacLeod
I'd like to check in this code from the C11 branch so that it is present in 4.9. 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 a