Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2011-12-22 19:09:10 +0000
committerEugene Tarassov2011-12-22 19:09:10 +0000
commitae7d67026c5e454154d9379b149d32e3d5abfb42 (patch)
tree8d205433df4b8157c157e3245a06888605cbb4ef
parent24b8d16d51c7b7ad9bae14977908337172bb1ae4 (diff)
downloadorg.eclipse.tcf.agent-ae7d67026c5e454154d9379b149d32e3d5abfb42.tar.gz
org.eclipse.tcf.agent-ae7d67026c5e454154d9379b149d32e3d5abfb42.tar.xz
org.eclipse.tcf.agent-ae7d67026c5e454154d9379b149d32e3d5abfb42.zip
TCF Agent: optimizations level in release build is changed to -O3
-rw-r--r--agent/Makefile8
-rw-r--r--agent/Makefile.inc2
-rw-r--r--agent/tcf/main/test.c5
3 files changed, 6 insertions, 9 deletions
diff --git a/agent/Makefile b/agent/Makefile
index 3d4075e0..d750e32d 100644
--- a/agent/Makefile
+++ b/agent/Makefile
@@ -8,14 +8,6 @@ ifdef MAKE_INC
include $(MAKE_INC)
endif
-# frame pointers are needed for agent diagnostics to work properly
-ifeq ($(CC),gcc)
- OPTS += -fno-omit-frame-pointer
-endif
-ifeq ($(CC),g++)
- OPTS += -fno-omit-frame-pointer
-endif
-
ifdef LUADIR
EXECS += $(BINDIR)/tcflua$(EXTEXE)
OPTS += -DPATH_LUA="$(LUADIR)" "-I$(LUADIR)/include"
diff --git a/agent/Makefile.inc b/agent/Makefile.inc
index 4f5a3d5d..7ecd03a3 100644
--- a/agent/Makefile.inc
+++ b/agent/Makefile.inc
@@ -17,7 +17,7 @@ RMDIR = rm -rf $(1)
ifeq ($(CONF),Debug)
OPTS += -g
else
- OPTS += -O -DNDEBUG
+ OPTS += -O3 -DNDEBUG
endif
ifeq ($(OPSYS),Windows)
diff --git a/agent/tcf/main/test.c b/agent/tcf/main/test.c
index cb6ccffe..63b3a4ae 100644
--- a/agent/tcf/main/test.c
+++ b/agent/tcf/main/test.c
@@ -36,6 +36,11 @@
# include <system/Windows/tcf/context-win32.h>
#endif
+#if __GNUC__
+#pragma GCC optimize (0)
+#pragma GCC optimize ("no-omit-frame-pointer")
+#endif
+
#ifdef __cplusplus
bool tcf_cpp_test_bool = false;

Back to the top