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
This commit is contained in:
parent
e4616f7bfb
commit
2565edc426
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253072
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user