[dpdk-dev] [PATCH] build: add -moutline-atomics to default Arm build

Juraj Linkeš juraj.linkes at pantheon.tech
Thu Oct 1 08:19:54 CEST 2020


-moutline-atomics allows LSE instructions to be used if available when
compiling for ARMv8.0 instruction set. It's enabled by default on newer
compilers, such as gcc-10.1. Enable the option so that earlier compiler
versions that support it but don't enable it by default build with it.

Signed-off-by: Juraj Linkeš <juraj.linkes at pantheon.tech>
---
 config/arm/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/arm/meson.build b/config/arm/meson.build
index 8728051d5..b195ec850 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -88,7 +88,7 @@ flags_octeontx2_extra = [
 	['RTE_USE_C11_MEM_MODEL', true]]
 
 machine_args_generic = [
-	['default', ['-march=armv8-a+crc']],
+	['default', ['-march=armv8-a+crc', '-moutline-atomics']],
 	['native', ['-march=native']],
 	['0xd03', ['-mcpu=cortex-a53']],
 	['0xd04', ['-mcpu=cortex-a35']],
-- 
2.20.1



More information about the dev mailing list