From: Vlad-Andrei BĂDOIU (78692) Date: Thu, 20 Feb 2020 09:58:28 +0000 (+0000) Subject: Fix crash caused by the Optimize for Performance config option X-Git-Tag: RELEASE-0.4^0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4834cb603b5f1cbe77ec5d8fb3deb422c8b1c5c1;p=unikraft%2Flibs%2Fruby.git 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 Reviewed-by: Simon Kuenzer --- diff --git a/Makefile.uk b/Makefile.uk index 6d706b3..87045f6 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -74,6 +74,13 @@ LIBRUBY_SUPRESS_CXXFLAGS-y += $(LIBRUBY_SUPPRESS_FLAGS-y) LIBRUBY_CFLAGS-y += $(LIBRUBY_SUPRESS_CFLAGS-y) LIBRUBY_CXXFLAGS-y += $(LIBRUBY_SUPRESS_CXXFLAGS-y) +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 + ################################################################################ # Helpers ################################################################################