Module Name: src Committed By: kamil Date: Mon Mar 9 00:03:00 UTC 2020
Modified Files: src/sys/rump: Makefile.rump Log Message: Build RUMP with -fno-delete-null-pointer-checks on all compilers no-delete-null-pointer-checks is required in Clang/LLVM at least for NULL + 0 operations that trigger LLVM UBSan and could be miscompiled. To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.126 src/sys/rump/Makefile.rump Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/Makefile.rump diff -u src/sys/rump/Makefile.rump:1.125 src/sys/rump/Makefile.rump:1.126 --- src/sys/rump/Makefile.rump:1.125 Thu Feb 20 22:52:10 2020 +++ src/sys/rump/Makefile.rump Mon Mar 9 00:03:00 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.rump,v 1.125 2020/02/20 22:52:10 joerg Exp $ +# $NetBSD: Makefile.rump,v 1.126 2020/03/09 00:03:00 kamil Exp $ # .if !defined(_RUMP_MK) @@ -22,7 +22,9 @@ CPPFLAGS+= -D_RUMPKERNEL -I${RUMPTOP}/li # 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 :} +# no-delete-null-pointer-checks is required in Clang/LLVM at least for +# NULL + 0 operations that trigger LLVM UBSan and could be miscompiled. +CFLAGS+= -fno-delete-null-pointer-checks # Define baseline cpu for mips ports, required for # rumpcomp_sync_icache() hypercall.