aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/vpp-core/vpp-core/0001-GCC-above-5.4-fails-when-we-specify-arch-funattribut.patch
blob: 7f838476acbf3638068c483dc438a9f22250d47b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 6dab3ad3f91ebcdb16eb9bbb37383718793b675a Mon Sep 17 00:00:00 2001
From: babak sarashki <babak.sarashki@windriver.com>
Date: Sat, 29 Sep 2018 09:57:05 -0700
Subject: [PATCH] GCC above 5.4 fails when we specify arch funattribute.

Here we are as a workaround setting target.
---
 src/vppinfra/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h
index 110815c..618276c 100644
--- a/src/vppinfra/cpu.h
+++ b/src/vppinfra/cpu.h
@@ -27,7 +27,7 @@
 
 #if __x86_64__ && CLIB_DEBUG == 0
 #define foreach_march_variant(macro, x) \
-  macro(avx2,  x, "arch=core-avx2")
+  macro(avx2,  x, "avx2")
 #else
 #define foreach_march_variant(macro, x)
 #endif
-- 
2.7.4