Skip to content
Snippets Groups Projects
Commit aa9091dc authored by Joshua C. Colp's avatar Joshua C. Colp Committed by Gerrit Code Review
Browse files

Merge "partial-inlining: disable partial-inlining if gcc>=8.2.1" into 13

parents aa0ff97c 29d2d22e
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,12 @@ ifneq ($(findstring darwin,$(OSARCH)),) ...@@ -67,6 +67,12 @@ ifneq ($(findstring darwin,$(OSARCH)),)
endif endif
endif endif
# 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)
ifeq ($(GCC_VER_GTE821),1)
OPTIMIZE+=-fno-partial-inlining
endif
ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS))$(AST_CODE_COVERAGE),no) ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS))$(AST_CODE_COVERAGE),no)
_ASTCFLAGS+=$(OPTIMIZE) _ASTCFLAGS+=$(OPTIMIZE)
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment