net/thunderx: disable PMD for old compilers
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Apr 2017 17:05:09 +0000 (18:05 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 6 Apr 2017 18:40:27 +0000 (20:40 +0200)
commit0b9ce550c4f60a69da558da6044e1b394256b43c
treebaba76ba2e67bf6873f5613896d52ba4c1dd01d2
parent3fb45fdb66412063a5fe249db858638ce619aceb
net/thunderx: disable PMD for old compilers

Disable for gcc < 4.7 and icc <= 14.0

PMD uses some compiler builtins and new compiler options. Tested with
gcc 4.5.1 and following were not supported:

option:
-Ofast

macros:
_Static_assert

__ORDER_LITTLE_ENDIAN__
__ORDER_BIG_ENDIAN__
__BYTE_ORDER__

__atomic_fetch_add
__ATOMIC_ACQUIRE
__atomic_load_n
__ATOMIC_RELAXED
__atomic_store_n
__ATOMIC_RELEASE

It is not easy to fix all in PMD, disabling PMD for older compilers.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/Makefile
mk/toolchain/gcc/rte.toolchain-compat.mk
mk/toolchain/icc/rte.toolchain-compat.mk