[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT/MICROPYTHON 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: Thu, 20 Feb 2020 11:20:37 +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=9bDJ8SRPc1WE81wDdeS45n/Ab0D5c0+oi16/BnHe+1k=; b=ap4ZrLegFuwfDcDqR5x2oWpcyEI8/9GwP1KcYxPFNe9UyCCH9aUf9hoItPQPelC5Ssz6U/Eymz6sJImV84Pfbsj8ruxz3YBs7YFe1drG01JcS6ogV3ZyacdSiNZhxc0iXX6y4IuyslEodyIfN4cO9DF71PYZaknLI/yjAg1HwiOUwnJE8lBK0mXciSaG98aNOdgBB3KQjYhG4gyz4YyguGkqwYSe8Ag7AMv2OVHARrfb7+6j5CDnGQYMFzo9AZU+YLLsdN41cqf08h7FB2QfNajUYBwxvY+awBy6BeJ4sbj4LMX0zIo/viLdjGI3kAh9vi9KFipEhGrtENv8vwBgJQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V6oEDNWo2ypIHpOE5+iz2hJcjMvvtqy+uEuLo/v6SsGjnTUJgTs3ylj05P7SgZEA2xMHVEkghv4Nt0n/MyhKLUoSUOLFgdgjybPeVcTuJG5snMGO5aDSU6mxsWfjWQcJWcARmo+hUR9s0mKMsYu+jR9KmoEt2QDMc5wu/UttzBYh8QFxGuh+YbErtNx/2qUs14D1CIVrXF3mHQe5yTC3sylNBF97Hki5SOkIZB6hWs9a9Z454hN3WYxi+JGuMg66M36mA//sGrygogKKepquCHgQ284MG+dhfcPj9OQuS0cI+6Bjk2tRtNGB4Csd70qC3WTZIzWbB5IIkqVEj9PyEQ==
- 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: Thu, 20 Feb 2020 11:20:45 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHV59/GkFgNm3mQwUWueiITTpESjw==
- Thread-topic: [UNIKRAFT/MICROPYTHON 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.
Signed-off-by: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
Makefile.uk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Makefile.uk b/Makefile.uk
index 14e10fa..6ebe098 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -101,6 +101,13 @@ LIBMICROPYTHON_CFLAGS-y += -DUNIX -DN_X64 -D
MICROPY_PY_LWIP \
-Wno-unused-but-set-variable \
-Wno-unused-function
+CFLAGS-$(CONFIG_LIBRUBY) += -fno-gcse -fno-gnu-unique \
+ -fno-move-loop-invariants
+CXXFLAGS-$(CONFIG_LIBRUBY) += -fno-gcse -fno-gnu-unique \
+ -fno-move-loop-invariants
+GOFLAGS-$(CONFIG_LIBRUBY) += -fno-gcse -fno-gnu-unique \
+ -fno-move-loop-invariants
+
################################################################################
# Unikraft <-> Micropython glue code
################################################################################
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|