[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 1/1] Fix crash caused by the Optimize for Performance config option


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 19 Feb 2020 08:36:39 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Zs4oliTihyUrYIUpduTlgwZVraOFJZYuZVJXtxt6Jss=; b=Xy+X6VWKMZRQW88rxPuTBBXHWQFTU06NnAP24JYIdXSyD8cstnqBME4pmR61D8meQExf/jX/LT3VnqrTcwAj8TO7N5vtut4lmBJwlOHTwyWoA0rmyVWMrlrk7bSST3Jrs2YMvb5wTFmK7H535fK9RV9FbJ5M3XOi0mpE3z0KSzDRq3u90e9E9hhSovTvHxRH/5zuG2eas7QHNbSS0hlN7CiPyfNNgaWBJVXtcoKtiqzN2XH8XzKUb2YeRrG/OEMDqkTQ1ITs4GSaWxmRBtfhbSNVO7z/KepAdzB1YOnaJhK64BE+W07QYwxSCk6h6w5I+l/adHyeqMrOlX8RiWCmuA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f/hVtjTHtLNVlIRrZVqq3KTMyGslbeQBRJoky+NV6hdxdHzz3oyg9tlfFb4XMOeLud8vWqLUvcY04yC1BNlB4WQveP2XnKNtnZ/gLl4MI+6kHMwIlAmvqy37wMnxNgDHdaf8m7NCozD19fuObVQMjKxxJ2q9FSEqtWJ0A5BBrACRmtZnO/fMZmbsCKSX/Nr3sADW+9TySEQQcrNDJoFJOEfrnJFBWNuujX3o7DA2KTaFtVWoF4BJlKG+kQ/hsyUyG12Fwx0AU1K1bwC2E3JLyznHNbbB8wjNQZgTVhZeAzcNVuMwID1mHpU+4ueCDsIPIXXr4hva8dPBND0r53acEA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, "simon.kuenzer@xxxxxxxxx" <simon.kuenzer@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 19 Feb 2020 08:36:46 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV5v+06LNTqa/olUKewVyxngeIfA==
  • Thread-topic: [UNIKRAFT PATCH 1/1] Fix crash caused by the Optimize for Performance config option

We disable the gcse, gnu-unique, and move-loop-invariants
flags enabled by O2. This solves the crash on several external
libraries(e.g. ruby, micropython).

Signed-off-by: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 Makefile.uk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.uk b/Makefile.uk
index 67c372e5..359973f3 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -31,9 +31,9 @@ LDFLAGS     += -nostdinc -nostdlib -Wl,--omagic 
-Wl,--build-id=none
 CFLAGS-$(CONFIG_OPTIMIZE_NONE)            += -O0 -fno-optimize-sibling-calls 
-fno-tree-vectorize
 CXXFLAGS-$(CONFIG_OPTIMIZE_NONE)          += -O0 -fno-optimize-sibling-calls 
-fno-tree-vectorize
 GOCFLAGS-$(CONFIG_OPTIMIZE_NONE)          += -O0 -fno-optimize-sibling-calls 
-fno-tree-vectorize
-CFLAGS-$(CONFIG_OPTIMIZE_PERF)            += -O2
-CXXFLAGS-$(CONFIG_OPTIMIZE_PERF)          += -O2
-GOCFLAGS-$(CONFIG_OPTIMIZE_PERF)          += -O2
+CFLAGS-$(CONFIG_OPTIMIZE_PERF)            += -O2 -fno-gcse -fno-gnu-unique 
-fno-move-loop-invariants
+CXXFLAGS-$(CONFIG_OPTIMIZE_PERF)          += -O2 -fno-gcse -fno-gnu-unique 
-fno-move-loop-invariants
+GOCFLAGS-$(CONFIG_OPTIMIZE_PERF)          += -O2 -fno-gcse -fno-gnu-unique 
-fno-move-loop-invariants
 CFLAGS-$(CONFIG_OPTIMIZE_SIZE)            += -Os
 CXXFLAGS-$(CONFIG_OPTIMIZE_SIZE)          += -Os
 GOCFLAGS-$(CONFIG_OPTIMIZE_SIZE)          += -Os
-- 
2.20.1

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.