From 82cf134f32a81845d0e8965422d483ff4ae26e30 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Sun, 23 Apr 2017 18:00:35 +0200 Subject: [PATCH] Use -fno-delete-null-pointer-checks for optimized build This fixes alternative memory test (mtest with CFG_ALT_MEMTEST). --- u-boot/config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u-boot/config.mk b/u-boot/config.mk index 2199e1a..4b9a477 100644 --- a/u-boot/config.mk +++ b/u-boot/config.mk @@ -118,8 +118,8 @@ ifdef COMPRESSED_UBOOT endif ifeq ($(BUILD_OPTIMIZED),y) - CFLAGS += -Os -fno-reorder-functions - CPPFLAGS += -Os -fno-reorder-functions + CFLAGS += -Os -fno-reorder-functions -fno-delete-null-pointer-checks + CPPFLAGS += -Os -fno-reorder-functions -fno-delete-null-pointer-checks endif AFLAGS_DEBUG := -- 2.25.1