Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf enable gcc stack usage limit for kernel functions, ...
details: https://anonhg.NetBSD.org/src/rev/b0d530e56648
branches: trunk
changeset: 935132:b0d530e56648
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Jun 25 14:52:26 2020 +0000
description:
enable gcc stack usage limit for kernel functions, set to 3.5 KiB for now
as that seems to be enough to accomodate the current biggest stack usages
there are about six functions which use over 3KiB local stack, and
about a dozen between 2-3 KiB, so pushing this further needs more work
if desired
compile tested on amd64, i386, sparc64, sparc, powerpc (evbppc - BookE),
m68k (mac68k)
diffstat:
sys/conf/Makefile.kern.inc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e4f9520fe6ad -r b0d530e56648 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Thu Jun 25 14:52:00 2020 +0000
+++ b/sys/conf/Makefile.kern.inc Thu Jun 25 14:52:26 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.273 2020/06/19 00:58:17 simonb Exp $
+# $NetBSD: Makefile.kern.inc,v 1.274 2020/06/25 14:52:26 jdolecek 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+= ${${ACTIVE_CC} == "gcc":? -fstack-usage :}
+CFLAGS+= ${${ACTIVE_CC} == "gcc":? -fstack-usage -Wstack-usage=3584 :}
.endif
# XXX
Home |
Main Index |
Thread Index |
Old Index