summaryrefslogtreecommitdiffstats
path: root/recipes-extended/vpp-core/vpp-core/0001-GCC-above-5.4-fails-when-we-specify-arch-funattribut.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/vpp-core/vpp-core/0001-GCC-above-5.4-fails-when-we-specify-arch-funattribut.patch')
-rw-r--r--recipes-extended/vpp-core/vpp-core/0001-GCC-above-5.4-fails-when-we-specify-arch-funattribut.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-extended/vpp-core/vpp-core/0001-GCC-above-5.4-fails-when-we-specify-arch-funattribut.patch b/recipes-extended/vpp-core/vpp-core/0001-GCC-above-5.4-fails-when-we-specify-arch-funattribut.patch
new file mode 100644
index 00000000..7f838476
--- /dev/null
+++ b/recipes-extended/vpp-core/vpp-core/0001-GCC-above-5.4-fails-when-we-specify-arch-funattribut.patch
@@ -0,0 +1,26 @@
1From 6dab3ad3f91ebcdb16eb9bbb37383718793b675a Mon Sep 17 00:00:00 2001
2From: babak sarashki <babak.sarashki@windriver.com>
3Date: Sat, 29 Sep 2018 09:57:05 -0700
4Subject: [PATCH] GCC above 5.4 fails when we specify arch funattribute.
5
6Here we are as a workaround setting target.
7---
8 src/vppinfra/cpu.h | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h
12index 110815c..618276c 100644
13--- a/src/vppinfra/cpu.h
14+++ b/src/vppinfra/cpu.h
15@@ -27,7 +27,7 @@
16
17 #if __x86_64__ && CLIB_DEBUG == 0
18 #define foreach_march_variant(macro, x) \
19- macro(avx2, x, "arch=core-avx2")
20+ macro(avx2, x, "avx2")
21 #else
22 #define foreach_march_variant(macro, x)
23 #endif
24--
252.7.4
26