Module Name: src Committed By: rin Date: Mon Aug 10 06:32:59 UTC 2020
Modified Files: src/sys/arch/amiga/conf: GENERIC.in src/sys/arch/atari/conf: GENERIC.in src/sys/arch/cesfic/conf: GENERIC src/sys/arch/hp300/conf: GENERIC src/sys/arch/luna68k/conf: GENERIC src/sys/arch/mac68k/conf: GENERIC INSTALL src/sys/arch/news68k/conf: GENERIC src/sys/arch/next68k/conf: GENERIC src/sys/arch/sun3/conf: GENERIC GENERIC3X src/sys/arch/x68k/conf: GENERIC Log Message: Add -fno-omit-frame-pointer to m68k kernels with DDB for backtraces. -omit-frame-pointer is enabled for -O1 and higher for GCC8 by default. To generate a diff of this commit: cvs rdiff -u -r1.144 -r1.145 src/sys/arch/amiga/conf/GENERIC.in cvs rdiff -u -r1.118 -r1.119 src/sys/arch/atari/conf/GENERIC.in cvs rdiff -u -r1.73 -r1.74 src/sys/arch/cesfic/conf/GENERIC cvs rdiff -u -r1.204 -r1.205 src/sys/arch/hp300/conf/GENERIC cvs rdiff -u -r1.128 -r1.129 src/sys/arch/luna68k/conf/GENERIC cvs rdiff -u -r1.230 -r1.231 src/sys/arch/mac68k/conf/GENERIC cvs rdiff -u -r1.56 -r1.57 src/sys/arch/mac68k/conf/INSTALL cvs rdiff -u -r1.135 -r1.136 src/sys/arch/news68k/conf/GENERIC cvs rdiff -u -r1.149 -r1.150 src/sys/arch/next68k/conf/GENERIC cvs rdiff -u -r1.183 -r1.184 src/sys/arch/sun3/conf/GENERIC cvs rdiff -u -r1.136 -r1.137 src/sys/arch/sun3/conf/GENERIC3X cvs rdiff -u -r1.200 -r1.201 src/sys/arch/x68k/conf/GENERIC 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/amiga/conf/GENERIC.in diff -u src/sys/arch/amiga/conf/GENERIC.in:1.144 src/sys/arch/amiga/conf/GENERIC.in:1.145 --- src/sys/arch/amiga/conf/GENERIC.in:1.144 Sat Aug 1 08:20:47 2020 +++ src/sys/arch/amiga/conf/GENERIC.in Mon Aug 10 06:32:57 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC.in,v 1.144 2020/08/01 08:20:47 maxv Exp $ +# $NetBSD: GENERIC.in,v 1.145 2020/08/10 06:32:57 rin Exp $ # ## # GENERIC machine description file @@ -52,12 +52,14 @@ include "arch/amiga/conf/std.amiga" options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.144 $" +#ident "GENERIC-$Revision: 1.145 $" m4_ifdef(`INSTALL_CONFIGURATION', `m4_dnl -makeoptions COPTS="-Os" +makeoptions COPTS="-Os -fno-omit-frame-pointer" ',`m4_dnl -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" + # See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for + # backtraces in DDB. ')m4_dnl maxusers 8 Index: src/sys/arch/atari/conf/GENERIC.in diff -u src/sys/arch/atari/conf/GENERIC.in:1.118 src/sys/arch/atari/conf/GENERIC.in:1.119 --- src/sys/arch/atari/conf/GENERIC.in:1.118 Sat Apr 13 08:22:59 2019 +++ src/sys/arch/atari/conf/GENERIC.in Mon Aug 10 06:32:58 2020 @@ -1,5 +1,5 @@ # -# $NetBSD: GENERIC.in,v 1.118 2019/04/13 08:22:59 isaki Exp $ +# $NetBSD: GENERIC.in,v 1.119 2020/08/10 06:32:58 rin Exp $ # # Generic atari # @@ -20,7 +20,9 @@ options INCLUDE_CONFIG_FILE # embed con #endif /* !SMALL030_KERNEL */ #if !defined(SMALL030_KERNEL) -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" \ +# See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for backtraces \ +in DDB. #else makeoptions COPTS="-Os" # optimize for space #endif /* !SMALL030_KERNEL */ Index: src/sys/arch/cesfic/conf/GENERIC diff -u src/sys/arch/cesfic/conf/GENERIC:1.73 src/sys/arch/cesfic/conf/GENERIC:1.74 --- src/sys/arch/cesfic/conf/GENERIC:1.73 Sat Aug 1 08:20:48 2020 +++ src/sys/arch/cesfic/conf/GENERIC Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.73 2020/08/01 08:20:48 maxv Exp $ +# $NetBSD: GENERIC,v 1.74 2020/08/10 06:32:58 rin Exp $ # # GENERIC machine description file # @@ -22,7 +22,9 @@ include "arch/cesfic/conf/std.cesfic" options INCLUDE_CONFIG_FILE # embed config file in kernel binary -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" + # See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for + # backtraces in DDB. # Need to set locally maxusers 32 Index: src/sys/arch/hp300/conf/GENERIC diff -u src/sys/arch/hp300/conf/GENERIC:1.204 src/sys/arch/hp300/conf/GENERIC:1.205 --- src/sys/arch/hp300/conf/GENERIC:1.204 Sat Aug 1 08:20:49 2020 +++ src/sys/arch/hp300/conf/GENERIC Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.204 2020/08/01 08:20:49 maxv Exp $ +# $NetBSD: GENERIC,v 1.205 2020/08/10 06:32:58 rin Exp $ # # GENERIC machine description file # @@ -22,9 +22,11 @@ include "arch/hp300/conf/std.hp300" options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.204 $" +#ident "GENERIC-$Revision: 1.205 $" -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" + # See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for + # backtraces in DDB. maxusers 8 # estimated number of users Index: src/sys/arch/luna68k/conf/GENERIC diff -u src/sys/arch/luna68k/conf/GENERIC:1.128 src/sys/arch/luna68k/conf/GENERIC:1.129 --- src/sys/arch/luna68k/conf/GENERIC:1.128 Sat Aug 1 08:20:50 2020 +++ src/sys/arch/luna68k/conf/GENERIC Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.128 2020/08/01 08:20:50 maxv Exp $ +# $NetBSD: GENERIC,v 1.129 2020/08/10 06:32:58 rin Exp $ # # GENERIC machine description file # @@ -22,9 +22,11 @@ include "arch/luna68k/conf/std.luna68k" options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.128 $" +#ident "GENERIC-$Revision: 1.129 $" -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" + # See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for + # backtraces in DDB. maxusers 8 Index: src/sys/arch/mac68k/conf/GENERIC diff -u src/sys/arch/mac68k/conf/GENERIC:1.230 src/sys/arch/mac68k/conf/GENERIC:1.231 --- src/sys/arch/mac68k/conf/GENERIC:1.230 Sat Aug 1 08:20:50 2020 +++ src/sys/arch/mac68k/conf/GENERIC Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.230 2020/08/01 08:20:50 maxv Exp $ +# $NetBSD: GENERIC,v 1.231 2020/08/10 06:32:58 rin Exp $ # # GENERIC machine description file # @@ -22,9 +22,11 @@ include "arch/mac68k/conf/std.mac68k" options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.230 $" +#ident "GENERIC-$Revision: 1.231 $" -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" + # See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for + # backtraces in DDB. maxusers 16 # estimated number of users Index: src/sys/arch/mac68k/conf/INSTALL diff -u src/sys/arch/mac68k/conf/INSTALL:1.56 src/sys/arch/mac68k/conf/INSTALL:1.57 --- src/sys/arch/mac68k/conf/INSTALL:1.56 Thu Sep 14 07:58:41 2017 +++ src/sys/arch/mac68k/conf/INSTALL Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: INSTALL,v 1.56 2017/09/14 07:58:41 mrg Exp $ +# $NetBSD: INSTALL,v 1.57 2020/08/10 06:32:58 rin Exp $ # # INSTALL @@ -6,7 +6,9 @@ include "arch/mac68k/conf/std.mac68k" #options INCLUDE_CONFIG_FILE # embed config file in kernel binary -makeoptions COPTS="-Os" # Optimise for space. Implies -O2 +makeoptions COPTS="-Os -fno-omit-frame-pointer" + # Optimise for space. Implies -O2. -fno-omit-frame-pointer is + # necessary for backtraces in DDB. maxusers 8 # estimated number of users Index: src/sys/arch/news68k/conf/GENERIC diff -u src/sys/arch/news68k/conf/GENERIC:1.135 src/sys/arch/news68k/conf/GENERIC:1.136 --- src/sys/arch/news68k/conf/GENERIC:1.135 Sat Aug 1 08:20:51 2020 +++ src/sys/arch/news68k/conf/GENERIC Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.135 2020/08/01 08:20:51 maxv Exp $ +# $NetBSD: GENERIC,v 1.136 2020/08/10 06:32:58 rin Exp $ # # GENERIC machine description file # @@ -22,9 +22,11 @@ include "arch/news68k/conf/std.news68k" options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.135 $" +#ident "GENERIC-$Revision: 1.136 $" -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" + # See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for + # backtraces in DDB. maxusers 8 Index: src/sys/arch/next68k/conf/GENERIC diff -u src/sys/arch/next68k/conf/GENERIC:1.149 src/sys/arch/next68k/conf/GENERIC:1.150 --- src/sys/arch/next68k/conf/GENERIC:1.149 Sat Aug 1 08:20:51 2020 +++ src/sys/arch/next68k/conf/GENERIC Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.149 2020/08/01 08:20:51 maxv Exp $ +# $NetBSD: GENERIC,v 1.150 2020/08/10 06:32:58 rin Exp $ # # GENERIC machine description file # @@ -22,9 +22,11 @@ include "arch/next68k/conf/std.next68k" options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.149 $" +#ident "GENERIC-$Revision: 1.150 $" -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" + # See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for + # backtraces in DDB. # Needs to be set per system. i.e change these as you see fit maxusers 16 Index: src/sys/arch/sun3/conf/GENERIC diff -u src/sys/arch/sun3/conf/GENERIC:1.183 src/sys/arch/sun3/conf/GENERIC:1.184 --- src/sys/arch/sun3/conf/GENERIC:1.183 Sat Aug 1 08:20:52 2020 +++ src/sys/arch/sun3/conf/GENERIC Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.183 2020/08/01 08:20:52 maxv Exp $ +# $NetBSD: GENERIC,v 1.184 2020/08/10 06:32:58 rin Exp $ # # GENERIC machine description file # @@ -25,9 +25,11 @@ include "arch/sun3/conf/std.sun3" #options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.183 $" +#ident "GENERIC-$Revision: 1.184 $" -makeoptions COPTS="-Os -fno-unwind-tables" # bootloader has size limit (~2MB) +makeoptions COPTS="-Os -fno-unwind-tables -fno-omit-frame-pointer" + # Bootloader has size limit (~2MB). -fno-omit-frame-pointer is + # necessary for backtraces in DDB. # Machines to be supported by this kernel options FPU_EMULATE Index: src/sys/arch/sun3/conf/GENERIC3X diff -u src/sys/arch/sun3/conf/GENERIC3X:1.136 src/sys/arch/sun3/conf/GENERIC3X:1.137 --- src/sys/arch/sun3/conf/GENERIC3X:1.136 Sat Aug 1 08:20:52 2020 +++ src/sys/arch/sun3/conf/GENERIC3X Mon Aug 10 06:32:58 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC3X,v 1.136 2020/08/01 08:20:52 maxv Exp $ +# $NetBSD: GENERIC3X,v 1.137 2020/08/10 06:32:58 rin Exp $ # GENERIC Sun3X (3/80, 3/470) # Supports root on: ie0, le0, sd*, ... @@ -7,9 +7,11 @@ include "arch/sun3/conf/std.sun3x" #options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC3X-$Revision: 1.136 $" +#ident "GENERIC3X-$Revision: 1.137 $" -makeoptions COPTS="-Os -fno-unwind-tables" # bootloader has size limit (~2MB) +makeoptions COPTS="-Os -fno-unwind-tables -fno-omit-frame-pointer" + # Bootloader has size limit (~2MB). -fno-omit-frame-pointer is + # necessary for backtraces in DDB. # Machines to be supported by this kernel #options FPU_EMULATE # XXX - Ever needed? Index: src/sys/arch/x68k/conf/GENERIC diff -u src/sys/arch/x68k/conf/GENERIC:1.200 src/sys/arch/x68k/conf/GENERIC:1.201 --- src/sys/arch/x68k/conf/GENERIC:1.200 Sat Aug 1 08:20:52 2020 +++ src/sys/arch/x68k/conf/GENERIC Mon Aug 10 06:32:59 2020 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.200 2020/08/01 08:20:52 maxv Exp $ +# $NetBSD: GENERIC,v 1.201 2020/08/10 06:32:59 rin Exp $ # # GENERIC machine description file # @@ -22,9 +22,11 @@ include "arch/x68k/conf/std.x68k" options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.200 $" +#ident "GENERIC-$Revision: 1.201 $" -makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk +makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer" + # See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for + # backtraces in DDB. maxusers 8