Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Add -fno-omit-frame-pointer to m68k kernels with DD...



details:   https://anonhg.NetBSD.org/src/rev/5d9c24b33e12
branches:  trunk
changeset: 1012794:5d9c24b33e12
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Aug 10 06:32:57 2020 +0000

description:
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.

diffstat:

 sys/arch/amiga/conf/GENERIC.in |  10 ++++++----
 sys/arch/atari/conf/GENERIC.in |   6 ++++--
 sys/arch/cesfic/conf/GENERIC   |   6 ++++--
 sys/arch/hp300/conf/GENERIC    |   8 +++++---
 sys/arch/luna68k/conf/GENERIC  |   8 +++++---
 sys/arch/mac68k/conf/GENERIC   |   8 +++++---
 sys/arch/mac68k/conf/INSTALL   |   6 ++++--
 sys/arch/news68k/conf/GENERIC  |   8 +++++---
 sys/arch/next68k/conf/GENERIC  |   8 +++++---
 sys/arch/sun3/conf/GENERIC     |   8 +++++---
 sys/arch/sun3/conf/GENERIC3X   |   8 +++++---
 sys/arch/x68k/conf/GENERIC     |   8 +++++---
 12 files changed, 58 insertions(+), 34 deletions(-)

diffs (272 lines):

diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/amiga/conf/GENERIC.in
--- a/sys/arch/amiga/conf/GENERIC.in    Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/amiga/conf/GENERIC.in    Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 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
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/atari/conf/GENERIC.in
--- a/sys/arch/atari/conf/GENERIC.in    Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/atari/conf/GENERIC.in    Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 #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 */
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/cesfic/conf/GENERIC
--- a/sys/arch/cesfic/conf/GENERIC      Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/cesfic/conf/GENERIC      Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 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
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/hp300/conf/GENERIC
--- a/sys/arch/hp300/conf/GENERIC       Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/hp300/conf/GENERIC       Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 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
 
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/luna68k/conf/GENERIC
--- a/sys/arch/luna68k/conf/GENERIC     Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/luna68k/conf/GENERIC     Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 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
 
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/mac68k/conf/GENERIC
--- a/sys/arch/mac68k/conf/GENERIC      Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/mac68k/conf/GENERIC      Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 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
 
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/mac68k/conf/INSTALL
--- a/sys/arch/mac68k/conf/INSTALL      Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/mac68k/conf/INSTALL      Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 #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
 
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/news68k/conf/GENERIC
--- a/sys/arch/news68k/conf/GENERIC     Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/news68k/conf/GENERIC     Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 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
 
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/next68k/conf/GENERIC
--- a/sys/arch/next68k/conf/GENERIC     Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/next68k/conf/GENERIC     Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 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
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/sun3/conf/GENERIC
--- a/sys/arch/sun3/conf/GENERIC        Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/sun3/conf/GENERIC        Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 #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
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/sun3/conf/GENERIC3X
--- a/sys/arch/sun3/conf/GENERIC3X      Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/sun3/conf/GENERIC3X      Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 #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?
diff -r 206e74c3f2c3 -r 5d9c24b33e12 sys/arch/x68k/conf/GENERIC
--- a/sys/arch/x68k/conf/GENERIC        Mon Aug 10 06:29:49 2020 +0000
+++ b/sys/arch/x68k/conf/GENERIC        Mon Aug 10 06:32:57 2020 +0000
@@ -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 @@
 
 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
 



Home | Main Index | Thread Index | Old Index