Re: [PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 03:43:22PM -0700, Abhijit Ayarekar wrote: > On Thu, Oct 12, 2017 at 03:23:04PM -0700, Alexei Starovoitov wrote: > > On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote: > > > Latest llvm update excludes assembly instructions. > > > As a result __ASM_SYSREGS_H de

Re: [PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Abhijit Ayarekar
On Thu, Oct 12, 2017 at 03:23:04PM -0700, Alexei Starovoitov wrote: > On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote: > > Latest llvm update excludes assembly instructions. > > As a result __ASM_SYSREGS_H define is not required. > > -target switch includes appropriate target speci

Re: [PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote: > Latest llvm update excludes assembly instructions. > As a result __ASM_SYSREGS_H define is not required. > -target switch includes appropriate target specific files. > > Tested on x86 and arm64 with llvm with git revision > commit

[PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Abhijit Ayarekar
Latest llvm update excludes assembly instructions. As a result __ASM_SYSREGS_H define is not required. -target switch includes appropriate target specific files. Tested on x86 and arm64 with llvm with git revision commit df6ca162269f9d756f8742bf4b658dcf690e3eb5 Author: Yonghong Song Date: Thu S