From 16c53b7527f9f57a3cf0333378b838e85202c350 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Mon, 9 May 2016 13:45:49 +0900 Subject: [PATCH] kernel: disable an optimization on GCC6... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as a workaround for crashs. Signed-off-by: Jérôme Duval --- build/jam/ArchitectureRules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index e74950e3d4..b9f06e2c9a 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -327,6 +327,11 @@ rule KernelArchitectureSetup architecture HAIKU_KERNEL_C++FLAGS += -std=gnu++11 ; } + if $(gccVersion[1]) >= 6 { + HAIKU_KERNEL_C++FLAGS += -fno-delete-null-pointer-checks ; + HAIKU_KERNEL_CCFLAGS += -fno-delete-null-pointer-checks ; + } + HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ; HAIKU_KERNEL_PIC_LINKFLAGS = ; HAIKU_KERNEL_ADDON_LINKFLAGS = ;