From 833c2551547b37f8d314e1e96e8ab8081d29ffd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Sat, 17 May 2014 19:47:30 +0000 Subject: [PATCH] use -fno-optimize-sibling-calls with SYMBOLS=1 for more complete stack traces with optimizations (nw) --- makefile | 2 +- src/osd/windows/vconv.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 6a0540a2ffa..b5ccc213d29 100644 --- a/makefile +++ b/makefile @@ -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 diff --git a/src/osd/windows/vconv.c b/src/osd/windows/vconv.c index dc6234624ac..7ebaa6f9813 100644 --- a/src/osd/windows/vconv.c +++ b/src/osd/windows/vconv.c @@ -98,6 +98,7 @@ static const translation_info gcc_translate[] = { 0, "-x", "" }, { 0, "c++", "" }, { 0, "-flto", "/GL" }, + { 0, "-fno-optimize-sibling-calls", "" }, { 0 } };