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/c439919725c5
branches:  trunk
changeset: 968089:c439919725c5
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 befa66d81cdb -r c439919725c5 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