make: Clean up profiling options

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-17 14:48:21 +00:00
commit 5882227628
4 changed files with 8 additions and 20 deletions

View file

@ -270,7 +270,6 @@ PKG_CONFIGDIRMODE ?= $(CFGDIRMODE)
#USE_MCHECK ?= true # not thread-safe
#USE_MEMWATCH ?= true
#USE_MPATROL ?= true
#USE_PROFILER ?= true
#USE_TRACING ?= true
#USE_TIMER ?= true
LOG_THREAD_NAMES ?= true

View file

@ -270,7 +270,6 @@ PKG_CONFIGDIRMODE ?= $(CFGDIRMODE)
#USE_MCHECK ?= true
#USE_MEMWATCH ?= true
#USE_MPATROL ?= true
#USE_PROFILER ?= true
#USE_TRACING ?= true
#USE_TIMER ?= true
LOG_THREAD_NAMES ?= true

View file

@ -816,18 +816,6 @@ ifeq ($(USE_FAST_LOG),false)
BUILD_CPPFLAGS +=-D_USE_FAST_LOG_=0
endif
ifeq ($(USE_GCOV),true)
BUILD_CFLAGS += --coverage
BUILD_CPPFLAGS += --coverage
BUILD_LDFLAGS += --coverage
endif
ifeq ($(USE_PROFILER),true)
BUILD_CFLAGS += -pg
BUILD_CPPFLAGS += -pg
BUILD_LDFLAGS += -pg
endif
ifeq ($(USE_YAMD),true)
CC = yamd-gcc
endif
@ -935,7 +923,7 @@ ifeq ($(CC),$(GCC))
-fno-inline-functions-called-once \
-fno-tree-loop-optimize \
-fno-early-inlining \
-no-default-inline
-fno-default-inline
else
ifeq ($(CC),$(CLANG))
BUILD_CFLAGS += -Werror

View file

@ -12,11 +12,13 @@ ifeq ($(USE_GPROF),true)
clean: clean.gprof
endif
ifeq ($(USE_GCOV),true)
PROJECT_CPPFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_CFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_LDFLAGS += -fprofile-arcs -ftest-coverage
clean: clean.gcov
ifeq ($(COMPILER_SUITE),gcc)
ifeq ($(USE_GCOV),true)
PROJECT_CPPFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_CFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_LDFLAGS += -fprofile-arcs -ftest-coverage
clean: clean.gcov
endif
endif
ifeq ($(COMPILER_SUITE),clang)