-----Original Message----- > Date: Tue, 13 Nov 2018 01:01:22 +0100 > From: Thomas Monjalon <tho...@monjalon.net> > To: dev@dpdk.org > Cc: ys...@mellanox.com, shah...@mellanox.com, ferruh.yi...@intel.com, > bruce.richard...@intel.com, konstantin.anan...@intel.com, > christian.ehrha...@canonical.com, justin.pa...@microsoft.com > Subject: [dpdk-dev] [PATCH] net/mlx5: restrict workaround of gcc AVX512F bug > X-Mailer: git-send-email 2.19.0 > > +/* > + * GCC bug workaround for rte_memcpy broken when optimized for AVX512. > + * Details are in https://bugs.dpdk.org/show_bug.cgi?id=97 > + * AVX512F is disabled for affected functions (calling mlx5_tx_complete). > + */ > +#if defined(__clang__) || defined(__INTEL_COMPILER)
Probably you need to add check here for non x86 as no-avx512f valid only for x86. ➜ [ctest] $ cat target.c void __attribute__((target("no-avx512f"))) test_fn(void) { } int main(void) { test_fn(); } ➜ [ctest] $ aarch64-linux-gnu-gcc -Wall target.c target.c:5:1: error: pragma or attribute 'target("no-avx512f")' is not valid { ^ ➜ [ctest] $ gcc -Wall target.c ➜ [ctest] $ > +#define MLX5_WORKAROUND_GCC_BUG_AVX512F > +#else > +#define MLX5_WORKAROUND_GCC_BUG_AVX512F __attribute__((target("no-avx512f"))) > +#endif > +