[dpdk-dev] [PATCH v2] net/i40e: fix avx code error on MinGW

Zhang, Qi Z qi.z.zhang at intel.com
Thu Feb 4 11:41:56 CET 2021



> -----Original Message-----
> From: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
> Sent: Wednesday, February 3, 2021 7:08 AM
> To: Rong, Leyi <leyi.rong at intel.com>
> Cc: david.marchand at redhat.com; Zhang, Qi Z <qi.z.zhang at intel.com>; Yigit,
> Ferruh <ferruh.yigit at intel.com>; thomas at monjalon.net; Richardson, Bruce
> <bruce.richardson at intel.com>; talshn at nvidia.com; Kadam, Pallavi
> <pallavi.kadam at intel.com>; Menon, Ranjit <ranjit.menon at intel.com>; Xing,
> Beilei <beilei.xing at intel.com>; aconole at redhat.com; dev at dpdk.org;
> ci at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: fix avx code error on MinGW
> 
> On Tue,  2 Feb 2021 22:32:58 +0800, Leyi Rong wrote:
> > Adds extra cflags '-fno-asynchronous-unwind-tables'
> > to avoid the MinGW build error:
> > 	Error: invalid register for .seh_savexmm
> >
> > Fixes: 5c38c33f7880 ("net/i40e: disable AVX512 with MinGW")
> >
> > Signed-off-by: Leyi Rong <leyi.rong at intel.com>
> 
> Tested-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
> 
> Re: -fno-asynchronous-unwind-tables, when cross-compiling from Linux, I
> observe bit-to-bit identical i40e_rxtx_vec_avx512.c.obj. My guess it that this
> option somehow affects GCC inlining heuristics. Similar issue existed in
> librte_acl (at least a year ago win GCC 6, I believe), where GCC generated
> incorrect code unless certain functions had been inlined (caught by test app).
> No an AVX expert, just my 2c.

Applied to dpdk-next-net-intel.

Thanks
Qi


More information about the dev mailing list