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

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



On 20.02.20 12:20, Vlad-Andrei BĂDOIU (78692) wrote:
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

Hey, it needs to be *FLAGS-$(CONFIG_LIBMICROPYTHON) += ..., I sent a v2.

Thanks,

Simon

+
  
################################################################################
  # Unikraft <-> Micropython glue code
  
################################################################################


_______________________________________________
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®.