Re: [PATCH v5] arm64: sysreg: Make mrs_s and msr_s macros work with Clang and LTO

2019-04-25 Thread Will Deacon
On Wed, Apr 24, 2019 at 09:55:37AM -0700, Kees Cook wrote: > Clang's integrated assembler does not allow assembly macros defined > in one inline asm block using the .macro directive to be used across > separate asm blocks. LLVM developers consider this a feature and not a > bug, recommending code

Re: [PATCH v5] arm64: sysreg: Make mrs_s and msr_s macros work with Clang and LTO

2019-04-25 Thread Mark Rutland
On Wed, Apr 24, 2019 at 09:55:37AM -0700, Kees Cook wrote: > Clang's integrated assembler does not allow assembly macros defined > in one inline asm block using the .macro directive to be used across > separate asm blocks. LLVM developers consider this a feature and not a > bug, recommending code

Re: [PATCH v5] arm64: sysreg: Make mrs_s and msr_s macros work with Clang and LTO

2019-04-24 Thread Nick Desaulniers
On Wed, Apr 24, 2019 at 9:55 AM Kees Cook wrote: > > Clang's integrated assembler does not allow assembly macros defined > in one inline asm block using the .macro directive to be used across > separate asm blocks. LLVM developers consider this a feature and not a > bug, recommending code

[PATCH v5] arm64: sysreg: Make mrs_s and msr_s macros work with Clang and LTO

2019-04-24 Thread Kees Cook
Clang's integrated assembler does not allow assembly macros defined in one inline asm block using the .macro directive to be used across separate asm blocks. LLVM developers consider this a feature and not a bug, recommending code refactoring: https://bugs.llvm.org/show_bug.cgi?id=19749 As