Module Name: src
Committed By: rin
Date: Mon Aug 10 06:28:42 UTC 2020
Modified Files:
src/sys/arch/sun2/conf: Makefile.sun2
Log Message:
Compile sun2 kernel with -fno-omit-frame-pointer for GCC8 as a work
around for reproducible kernel freezes just after ``Starting postfix.'',
where I cannot even enter DDB nor obtain crash dump.
I still haven't figured out why. Possibly something wrong with -Os
optimization level for GCC/m68k, cf.,
http://mail-index.netbsd.org/port-sun3/2020/07/19/msg000166.html
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/sun2/conf/Makefile.sun2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sun2/conf/Makefile.sun2
diff -u src/sys/arch/sun2/conf/Makefile.sun2:1.24 src/sys/arch/sun2/conf/Makefile.sun2:1.25
--- src/sys/arch/sun2/conf/Makefile.sun2:1.24 Sat Sep 22 12:24:03 2018
+++ src/sys/arch/sun2/conf/Makefile.sun2 Mon Aug 10 06:28:42 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sun2,v 1.24 2018/09/22 12:24:03 rin Exp $
+# $NetBSD: Makefile.sun2,v 1.25 2020/08/10 06:28:42 rin Exp $
# Makefile for NetBSD
#
@@ -35,6 +35,11 @@ CPPFLAGS+= -Dsun2
CFLAGS+= -msoft-float -fno-defer-pop
AFLAGS+= -x assembler-with-cpp
+# XXX
+.if ${HAVE_GCC:U0} >= 8
+COPTS+= -fno-omit-frame-pointer
+.endif
+
##
## (3) libkern and compat
##