Source-Changes-HG archive

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

[src/trunk]: src/sys/conf Use -fstack-usage only if we are using gcc.



details:   https://anonhg.NetBSD.org/src/rev/01df5a39cf74
branches:  trunk
changeset: 973074:01df5a39cf74
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Jun 19 00:58:17 2020 +0000

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

Pointed out by maxv@

diffstat:

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

diffs (18 lines):

diff -r 24911e23c63c -r 01df5a39cf74 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Thu Jun 18 23:30:51 2020 +0000
+++ b/sys/conf/Makefile.kern.inc        Fri Jun 19 00:58:17 2020 +0000
@@ -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 @@
 #    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



Home | Main Index | Thread Index | Old Index