From 4834cb603b5f1cbe77ec5d8fb3deb422c8b1c5c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vlad-Andrei=20B=C4=82DOIU=20=2878692=29?= Date: Thu, 20 Feb 2020 09:58:28 +0000 Subject: [PATCH] Fix crash caused by the Optimize for Performance config option MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- Makefile.uk | 7 +++++++ 1 file changed, 7 insertions(+) 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 ################################################################################ -- 2.39.5