diff options
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.patch | 26 |
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 @@ | |||
1 | From 6dab3ad3f91ebcdb16eb9bbb37383718793b675a Mon Sep 17 00:00:00 2001 | ||
2 | From: babak sarashki <babak.sarashki@windriver.com> | ||
3 | Date: Sat, 29 Sep 2018 09:57:05 -0700 | ||
4 | Subject: [PATCH] GCC above 5.4 fails when we specify arch funattribute. | ||
5 | |||
6 | Here we are as a workaround setting target. | ||
7 | --- | ||
8 | src/vppinfra/cpu.h | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h | ||
12 | index 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 | -- | ||
25 | 2.7.4 | ||
26 | |||