Module Name:    src
Committed By:   simonb
Date:           Fri Jun 19 00:58:17 UTC 2020

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

Log Message:
Use -fstack-usage only if we are using gcc.

Pointed out by maxv@


To generate a diff of this commit:
cvs rdiff -u -r1.272 -r1.273 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.272 src/sys/conf/Makefile.kern.inc:1.273
--- src/sys/conf/Makefile.kern.inc:1.272	Thu Jun 18 11:50:44 2020
+++ src/sys/conf/Makefile.kern.inc	Fri Jun 19 00:58:17 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.272 2020/06/18 11:50:44 rin Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.273 2020/06/19 00:58:17 simonb Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -108,7 +108,7 @@ AFLAGS+=	-D_LOCORE -Wa,--fatal-warnings
 #    find . -name \*.su | xargs awk '{ printf "%6d %s\n", $2, $1 }' | sort -n
 .if ${MACHINE} != "vax"
 # GCC/vax 8.4 does not support -fstack-usage.
-CFLAGS+=	-fstack-usage
+CFLAGS+=	${${ACTIVE_CC} == "gcc":? -fstack-usage :}
 .endif
 
 # XXX

Reply via email to