Re: [PATCH] driver: Also prune joined switches with negation

2019-09-26 Thread Kyrill Tkachov
On 9/25/19 12:10 PM, Kyrill Tkachov wrote: On 9/24/19 7:47 PM, Matt Turner wrote: > When -march=native is passed to host_detect_local_cpu to the backend, > it overrides all command lines after it.  That means > > $ gcc -march=native -march=armv8-a > > is treated as > > $ gcc -march=armv8-a -ma

Re: [PATCH] driver: Also prune joined switches with negation

2019-09-25 Thread Kyrill Tkachov
On 9/24/19 7:47 PM, Matt Turner wrote: When -march=native is passed to host_detect_local_cpu to the backend, it overrides all command lines after it.  That means $ gcc -march=native -march=armv8-a is treated as $ gcc -march=armv8-a -march=native Prune joined switches with Negative and Rejec

Re: [PATCH] driver: Also prune joined switches with negation

2019-09-24 Thread Matt Turner
On Tue, Sep 24, 2019 at 1:24 AM Kyrill Tkachov wrote: > > Hi Matt, > > On 9/24/19 5:04 AM, Matt Turner wrote: > > When -march=native is passed to host_detect_local_cpu to the backend, > > it overrides all command lines after it. That means > > > > $ gcc -march=native -march=armv8-a > > > > is tre

Re: [PATCH] driver: Also prune joined switches with negation

2019-09-24 Thread Kyrill Tkachov
Hi Matt, On 9/24/19 5:04 AM, Matt Turner wrote: When -march=native is passed to host_detect_local_cpu to the backend, it overrides all command lines after it.  That means $ gcc -march=native -march=armv8-a is treated as $ gcc -march=armv8-a -march=native Prune joined switches with Negative a

Re: [PATCH] driver: Also prune joined switches with negation

2019-02-08 Thread H.J. Lu
On Fri, Feb 8, 2019 at 3:02 PM H.J. Lu wrote: > > When -march=native is passed to host_detect_local_cpu to the backend, > it overrides all command lines after it. That means > > $ gcc -march=native -march=skylake-avx512 > > is the treated as > > $ gcc -march=skylake-avx512 -march=native > > Prune