Disable NULL pointer check deletion like we do for the kernel in

src/sys/conf/Makefile.kern.inc. This is the same code we are compiling after
all and it has the same issues.
This commit is contained in:
christos 2018-03-03 22:46:30 +00:00
parent 0fd2932532
commit 443a650cb9
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rump,v 1.123 2018/01/18 00:32:49 mrg Exp $
# $NetBSD: Makefile.rump,v 1.124 2018/03/03 22:46:30 christos Exp $
#
.if !defined(_RUMP_MK)
@ -19,6 +19,11 @@ CPPFLAGS:= -I${RUMPTOP}/include ${CPPFLAGS}
CPPFLAGS+= -D_RUMPKERNEL -I${RUMPTOP}/librump/rumpkern
.endif
# We are compiling the kernel code with no-delete-null-pointer-checks,
# and compiling without it, causes issues at least on sh3 by adding
# aborts after kern_assert on NULL pointer checks.
CFLAGS+= ${${ACTIVE_CC} == "gcc":? -fno-delete-null-pointer-checks :}
# Define baseline cpu for mips ports, required for
# rumpcomp_sync_icache() hypercall.
.if !empty(MACHINE_ARCH:Mmips*)