Module Name:    src
Committed By:   joerg
Date:           Sat Feb 17 22:47:14 UTC 2018

Modified Files:
        src/sys/conf: Makefile.kern.inc

Log Message:
Restrict -fno-delete-null-pointer-checks to GCC.


To generate a diff of this commit:
cvs rdiff -u -r1.263 -r1.264 src/sys/conf/Makefile.kern.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.263 src/sys/conf/Makefile.kern.inc:1.264
--- src/sys/conf/Makefile.kern.inc:1.263	Tue Feb 13 09:50:35 2018
+++ src/sys/conf/Makefile.kern.inc	Sat Feb 17 22:47:14 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.263 2018/02/13 09:50:35 mrg Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.264 2018/02/17 22:47:14 joerg Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -98,7 +98,7 @@ CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC
 CWARNFLAGS.ioconf.c= ${${ACTIVE_CC} == "clang":? -Wno-unused-const-variable :}
 
 CFLAGS+=	-ffreestanding -fno-zero-initialized-in-bss
-CFLAGS+=	-fno-delete-null-pointer-checks
+CFLAGS+=	${${ACTIVE_CC} == "gcc":? -fno-delete-null-pointer-checks :}
 CFLAGS+=	${DEBUG} ${COPTS}
 AFLAGS+=	-D_LOCORE -Wa,--fatal-warnings
 

Reply via email to