use -fno-optimize-sibling-calls with SYMBOLS=1 for more complete stack traces with optimizations (nw)

This commit is contained in:
Oliver Stöneberg 2014-05-17 19:47:30 +00:00
parent b44baf77ce
commit 833c255154
2 changed files with 2 additions and 1 deletions

View File

@ -506,7 +506,7 @@ CCOMFLAGS += -pipe
# add -g if we need symbols, and ensure we have frame pointers
ifdef SYMBOLS
CCOMFLAGS += -g$(SYMLEVEL) -fno-omit-frame-pointer
CCOMFLAGS += -g$(SYMLEVEL) -fno-omit-frame-pointer -fno-optimize-sibling-calls
endif
# add -v if we need verbose build information

View File

@ -98,6 +98,7 @@ static const translation_info gcc_translate[] =
{ 0, "-x", "" },
{ 0, "c++", "" },
{ 0, "-flto", "/GL" },
{ 0, "-fno-optimize-sibling-calls", "" },
{ 0 }
};