Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/conf gcc 8 needs -mapcs-frame when DDB is speci...



details:   https://anonhg.NetBSD.org/src/rev/c421863ab434
branches:  trunk
changeset: 1006124:c421863ab434
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jan 02 14:33:55 2020 +0000

description:
gcc 8 needs -mapcs-frame when DDB is specified for backtrace to work

diffstat:

 sys/arch/arm/conf/Makefile.arm |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r e7d0f80cfce4 -r c421863ab434 sys/arch/arm/conf/Makefile.arm
--- a/sys/arch/arm/conf/Makefile.arm    Thu Jan 02 08:52:42 2020 +0000
+++ b/sys/arch/arm/conf/Makefile.arm    Thu Jan 02 14:33:55 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.arm,v 1.51 2019/11/11 22:45:27 joerg Exp $
+#      $NetBSD: Makefile.arm,v 1.52 2020/01/02 14:33:55 skrll Exp $
 
 # Makefile for NetBSD
 #
@@ -76,6 +76,11 @@
 CFLAGS+=       -mno-unaligned-access
 .endif
 
+OPT_DDB=       %DDB%
+.if !empty(OPT_DDB) && ${HAVE_GCC:U0} > 0
+COPTS+=                -mapcs-frame
+.endif
+
 ##
 ## (3) libkern and compat
 ##



Home | Main Index | Thread Index | Old Index