Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump Build RUMP with -fno-delete-null-pointer-checks on ...
details: https://anonhg.NetBSD.org/src/rev/61c892c0b5cf
branches: trunk
changeset: 1008054:61c892c0b5cf
user: kamil <kamil%NetBSD.org@localhost>
date: Mon Mar 09 00:03:00 2020 +0000
description:
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.
diffstat:
sys/rump/Makefile.rump | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 2bfac1e7f7ee -r 61c892c0b5cf sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump Sun Mar 08 22:42:35 2020 +0000
+++ b/sys/rump/Makefile.rump Mon Mar 09 00:03:00 2020 +0000
@@ -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 @@
# 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.
Home |
Main Index |
Thread Index |
Old Index