@ -70,11 +70,16 @@ ifneq ($(findstring darwin,$(OSARCH)),)
endif
endif
e n d i f
e n d i f
# gcc version 8.2.1 and above must have partial-inlining disabled to avoid documented bug
# gcc version 8.2.1 and above must have partial-inlining disabled to avoid documented bug.
GCC_VER_GTE821 := $( shell expr ` gcc --version | grep ^gcc | cut -d ' ' -f 3 | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/' ` \> = 80201)
# We must handle cross-compiling and clang so make sure the compiler version string has "gcc"
# somewhere in it before testing the version.
CC_VERS_STRING = $( shell $( CC) --version | grep -i gcc)
i f n e q ( $( CC_VERS_STRING ) , )
GCC_VER_GTE821 := $( shell expr ` echo '$(CC_VERS_STRING)' | cut -d ' ' -f 3 | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/' ` \> = 80201)
i f e q ( $( GCC_VER_GTE 821) , 1 )
i f e q ( $( GCC_VER_GTE 821) , 1 )
OPTIMIZE += -fno-partial-inlining
OPTIMIZE += -fno-partial-inlining
e n d i f
e n d i f
e n d i f
i f e q ( $( findstring DONT_OPTIMIZE ,$ ( MENUSELECT_CFLAGS ) ) $( AST_CODE_COVERAGE ) , n o )
i f e q ( $( findstring DONT_OPTIMIZE ,$ ( MENUSELECT_CFLAGS ) ) $( AST_CODE_COVERAGE ) , n o )
_ASTCFLAGS += $( OPTIMIZE)
_ASTCFLAGS += $( OPTIMIZE)