Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1295967
| From | Ard Biesheuvel <ard.biesheuvel@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled |
| Date | 2015-12-21 14:00 +0100 |
| Message-ID | <qI8ed-6Cx-13@gated-at.bofh.it> (permalink) |
| References | <qHh9T-6J4-1@gated-at.bofh.it> <qI7US-6vn-9@gated-at.bofh.it> <qI84y-6zh-25@gated-at.bofh.it> <qI8ed-6Cx-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 21 December 2015 at 13:51, Will Deacon <will.deacon@arm.com> wrote: > On Mon, Dec 21, 2015 at 01:46:22PM +0100, Ard Biesheuvel wrote: >> On 21 December 2015 at 13:38, Will Deacon <will.deacon@arm.com> 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_extension inside ARM64_LSE_ATOMIC_INSN so >> >> it is enabled for each place where LSE is used. >> > >> > Hmm, this is going to affect arch/arm/ much more heavily than arch/arm64. >> > .arch_extension is used for virt, mp and sec over there, and it may be >> > tricky to isolate the actual instruction usage (at least, virt looks >> > lost in kvm/arm.c). >> > >> > Why can't gas have an option to accept all instruction encodings that it >> > knows about, inspite of any .arch directives? >> > >> >> Modern GAS supports things like -march=armv7-a+mp+sec+virt, so it >> probably makes sense to pass that on the command line when building >> for v7 (or +sec only for v6) if the assembler is found to support it >> at build time. > > Does that override a more restrictive .arch directive emitted by the > compiler? > It seems to be additive: -march=armv7-a+mp+sec allows a .S file containing a virt arch_extension + both hvc and smc instructions to be assembled. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled Andrew Pinski <apinski@cavium.com> - 2015-12-19 05:20 +0100
Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled Will Deacon <will.deacon@arm.com> - 2015-12-21 13:40 +0100
Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2015-12-21 13:50 +0100
Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2015-12-21 14:00 +0100
Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled Will Deacon <will.deacon@arm.com> - 2015-12-21 14:40 +0100
Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled Will Deacon <will.deacon@arm.com> - 2015-12-21 14:00 +0100
Re: [PATCH] ARM64: Fix compiling with GCC 6 and Atomics enabled Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-12-21 14:10 +0100
csiph-web