Module Name: src
Committed By: skrll
Date: Thu Jan 2 14:33:55 UTC 2020
Modified Files:
src/sys/arch/arm/conf: Makefile.arm
Log Message:
gcc 8 needs -mapcs-frame when DDB is specified for backtrace to work
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/arm/conf/Makefile.arm
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/arm/conf/Makefile.arm
diff -u src/sys/arch/arm/conf/Makefile.arm:1.51 src/sys/arch/arm/conf/Makefile.arm:1.52
--- src/sys/arch/arm/conf/Makefile.arm:1.51 Mon Nov 11 22:45:27 2019
+++ src/sys/arch/arm/conf/Makefile.arm Thu Jan 2 14:33:55 2020
@@ -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 @@ CPPFLAGS.cpufunc_asm_xscale.S+= -mcpu=xs
CFLAGS+= -mno-unaligned-access
.endif
+OPT_DDB= %DDB%
+.if !empty(OPT_DDB) && ${HAVE_GCC:U0} > 0
+COPTS+= -mapcs-frame
+.endif
+
##
## (3) libkern and compat
##