Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/conf Restrict -fno-delete-null-pointer-checks to GCC.



details:   https://anonhg.NetBSD.org/src/rev/8dc271c72ebf
branches:  trunk
changeset: 829933:8dc271c72ebf
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Feb 17 22:47:14 2018 +0000

description:
Restrict -fno-delete-null-pointer-checks to GCC.

diffstat:

 sys/conf/Makefile.kern.inc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5e90b3d55632 -r 8dc271c72ebf sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Sat Feb 17 21:46:41 2018 +0000
+++ b/sys/conf/Makefile.kern.inc        Sat Feb 17 22:47:14 2018 +0000
@@ -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.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
 



Home | Main Index | Thread Index | Old Index