Date: Tue, 9 Jul 2013 08:42:02 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253072 - head/sys/conf Message-ID: <201307090842.r698g2CU017760@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307090842.r698g2CU017760>