svn commit: r253072 - head/sys/conf
Andriy Gapon
avg at FreeBSD.org
Tue Jul 9 08:42:03 UTC 2013
Author: avg
Date: Tue Jul 9 08:42:02 2013
New Revision: 253072
URL: http://svnweb.freebsd.org/changeset/base/253072
Log:
amd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer
... in kernel builds. This is to make behavior of clang consistent with
behavior of gcc.
MFC after: 2 weeks
Modified:
head/sys/conf/Makefile.amd64
head/sys/conf/kmod.mk
Modified: head/sys/conf/Makefile.amd64
==============================================================================
--- head/sys/conf/Makefile.amd64 Tue Jul 9 08:40:05 2013 (r253071)
+++ head/sys/conf/Makefile.amd64 Tue Jul 9 08:42:02 2013 (r253072)
@@ -34,7 +34,7 @@ S= ../../..
INCLUDES+= -I$S/contrib/libfdt
.if !empty(DDB_ENABLED) || !empty(DTR_ENABLED) || !empty(HWPMC_ENABLED)
-CFLAGS+= -fno-omit-frame-pointer
+CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
.endif
MKMODULESENV+= MACHINE=amd64
Modified: head/sys/conf/kmod.mk
==============================================================================
--- head/sys/conf/kmod.mk Tue Jul 9 08:40:05 2013 (r253071)
+++ head/sys/conf/kmod.mk Tue Jul 9 08:42:02 2013 (r253072)
@@ -122,7 +122,7 @@ LDFLAGS+= -d -warn-common
CFLAGS+= ${DEBUG_FLAGS}
.if ${MACHINE_CPUARCH} == amd64
-CFLAGS+= -fno-omit-frame-pointer
+CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
.endif
.if ${MACHINE_CPUARCH} == powerpc
More information about the svn-src-all
mailing list