Module Name:    src
Committed By:   kamil
Date:           Mon Mar  9 14:45:42 UTC 2020

Modified Files:
        src/sys/rump: Makefile.rump

Log Message:
Revert previous

Requested by <riastradh>


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 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.126 src/sys/rump/Makefile.rump:1.127
--- src/sys/rump/Makefile.rump:1.126	Mon Mar  9 00:03:00 2020
+++ src/sys/rump/Makefile.rump	Mon Mar  9 14:45:41 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.rump,v 1.126 2020/03/09 00:03:00 kamil Exp $
+#	$NetBSD: Makefile.rump,v 1.127 2020/03/09 14:45:41 kamil Exp $
 #
 
 .if !defined(_RUMP_MK)
@@ -22,9 +22,7 @@ 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.
-# 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
+CFLAGS+=    ${${ACTIVE_CC} == "gcc":? -fno-delete-null-pointer-checks :}
 
 # Define baseline cpu for mips ports, required for
 # rumpcomp_sync_icache() hypercall.

Reply via email to