Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2016-01-21 Thread Ard Biesheuvel
On 21 January 2016 at 13:32, Vladimir Murzin wrote: > On 21/12/15 13:37, Will Deacon wrote: >> On Mon, Dec 21, 2015 at 01:58:30PM +0100, Ard Biesheuvel wrote: >>> On 21 December 2015 at 13:51, Will Deacon wrote: On Mon, Dec 21, 2015 at 01:46:22PM +0100, Ard Biesheuvel wrote: > On 21 Dece

Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2016-01-21 Thread Vladimir Murzin
On 21/12/15 13:37, Will Deacon wrote: > On Mon, Dec 21, 2015 at 01:58:30PM +0100, Ard Biesheuvel wrote: >> On 21 December 2015 at 13:51, Will Deacon wrote: >>> On Mon, Dec 21, 2015 at 01:46:22PM +0100, Ard Biesheuvel wrote: On 21 December 2015 at 13:38, Will Deacon wrote: > On Fri, Dec 1

Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2015-12-21 Thread Will Deacon
On Mon, Dec 21, 2015 at 01:58:30PM +0100, Ard Biesheuvel wrote: > On 21 December 2015 at 13:51, Will Deacon wrote: > > On Mon, Dec 21, 2015 at 01:46:22PM +0100, Ard Biesheuvel wrote: > >> On 21 December 2015 at 13:38, Will Deacon wrote: > >> > On Fri, Dec 18, 2015 at 08:17:35PM -0800, Andrew Pins

Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2015-12-21 Thread Russell King - ARM Linux
On Mon, Dec 21, 2015 at 01:46:22PM +0100, Ard Biesheuvel wrote: > On 21 December 2015 at 13:38, Will Deacon wrote: > > On Fri, Dec 18, 2015 at 08:17:35PM -0800, Andrew Pinski wrote: > >> The problem here is that GCC 6 and above emits .arch now > >> for each function so now the global .arch_extensi

Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2015-12-21 Thread Ard Biesheuvel
On 21 December 2015 at 13:51, Will Deacon wrote: > On Mon, Dec 21, 2015 at 01:46:22PM +0100, Ard Biesheuvel wrote: >> On 21 December 2015 at 13:38, Will Deacon wrote: >> > On Fri, Dec 18, 2015 at 08:17:35PM -0800, Andrew Pinski wrote: >> >> The problem here is that GCC 6 and above emits .arch now

Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2015-12-21 Thread Will Deacon
On Mon, Dec 21, 2015 at 01:46:22PM +0100, Ard Biesheuvel wrote: > On 21 December 2015 at 13:38, Will Deacon wrote: > > On Fri, Dec 18, 2015 at 08:17:35PM -0800, Andrew Pinski wrote: > >> The problem here is that GCC 6 and above emits .arch now > >> for each function so now the global .arch_extensi

Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2015-12-21 Thread Ard Biesheuvel
On 21 December 2015 at 13:38, Will Deacon wrote: > On Fri, Dec 18, 2015 at 08:17:35PM -0800, Andrew Pinski wrote: >> The problem here is that GCC 6 and above emits .arch now >> for each function so now the global .arch_extension has >> no effect. This fixes the problem by putting >> .arch_extensi

Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2015-12-21 Thread Will Deacon
On Fri, Dec 18, 2015 at 08:17:35PM -0800, Andrew Pinski wrote: > The problem here is that GCC 6 and above emits .arch now > for each function so now the global .arch_extension has > no effect. This fixes the problem by putting > .arch_extension inside ARM64_LSE_ATOMIC_INSN so > it is enabled for e

[PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled

2015-12-18 Thread Andrew Pinski
The problem here is that GCC 6 and above emits .arch now for each function so now the global .arch_extension has no effect. This fixes the problem by putting .arch_extension inside ARM64_LSE_ATOMIC_INSN so it is enabled for each place where LSE is used. Signed-off-by: Andrew Pinski --- arch/arm