Remove -simplifycfg-dup-ret from CLANG_OPT_SMALL flags for clang 13
After llvm/clang 13.0.0, the -simplifycfg-dup-ret backend flag is no longer supported. This was part of CLANG_OPT_SMALL, which is only still used for stand/i386/boot2 and stand/i386/isoboot, to achieve the very small binary size required. Luckily clang 13.0.0 does not need any additional flags for this (I get 240 bytes available when building boot2). MFC after: 3 days
This commit is contained in:
parent
80078d9d38
commit
22b8ab15c4
@ -228,8 +228,10 @@ CFLAGS+=-nobuiltininc -idirafter ${COMPILER_RESOURCE_DIR}/include
|
||||
.endif
|
||||
.endif
|
||||
|
||||
CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\
|
||||
-mllvm -simplifycfg-dup-ret
|
||||
CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3
|
||||
.if ${COMPILER_VERSION} < 130000
|
||||
CLANG_OPT_SMALL+= -mllvm -simplifycfg-dup-ret
|
||||
.endif
|
||||
CLANG_OPT_SMALL+= -mllvm -enable-load-pre=false
|
||||
CFLAGS.clang+= -Qunused-arguments
|
||||
# The libc++ headers use c++11 extensions. These are normally silenced because
|
||||
|
Loading…
Reference in New Issue
Block a user