diff options
author | avg <avg@FreeBSD.org> | 2013-07-09 08:42:02 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-07-09 08:42:02 +0000 |
commit | f9d5ea16d37a7279d1235b618cac0e3263f8a03d (patch) | |
tree | 674d076b5bf7070eb7bd6790b9edd830a1416859 /sys/conf | |
parent | dbecaf37d8b8ba68edba9414415ec0cbe853b658 (diff) | |
download | FreeBSD-src-f9d5ea16d37a7279d1235b618cac0e3263f8a03d.zip FreeBSD-src-f9d5ea16d37a7279d1235b618cac0e3263f8a03d.tar.gz |
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
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/Makefile.amd64 | 2 | ||||
-rw-r--r-- | sys/conf/kmod.mk | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/Makefile.amd64 b/sys/conf/Makefile.amd64 index 716c742..7b1c164 100644 --- a/sys/conf/Makefile.amd64 +++ b/sys/conf/Makefile.amd64 @@ -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 diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index f0d3d4d..7eaba85 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -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 |