summaryrefslogtreecommitdiffstats
path: root/make/compilers/gcc-no_bsp.cfg
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--make/compilers/gcc-no_bsp.cfg18
1 files changed, 7 insertions, 11 deletions
diff --git a/make/compilers/gcc-no_bsp.cfg b/make/compilers/gcc-no_bsp.cfg
index 97952f4bdd..34539b4565 100644
--- a/make/compilers/gcc-no_bsp.cfg
+++ b/make/compilers/gcc-no_bsp.cfg
@@ -9,7 +9,7 @@
# Just use the native tools
GNU_TOOLS_PREFIX=
-# Additional target names (other than debug, profile)
+# Additional target names (other than debug)
TARGET_VARIANTS +=
#
@@ -54,11 +54,11 @@ endef
#
#
-# CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V are the values we
+# CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V are the values we
# would want the corresponding macros to be set to.
#
-# CFLAGS_OPTIMIZE, CFLAGS_DEBUG, CFLAGS_PROFILE are set in the leaf
-# Makefiles by the 'debug:' and 'profile:' targets to their _V values.
+# CFLAGS_OPTIMIZE, CFLAGS_DEBUG are set in the leaf
+# Makefiles by the 'debug:' targets to their _V values.
#
# default flags
@@ -78,9 +78,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# debug flag; typically -g
CFLAGS_DEBUG_V=-g -Wno-unused
-# profile flag; use gprof(1)
-CFLAGS_PROFILE_V=-pg
-
# default is to optimize
CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V)
@@ -88,7 +85,7 @@ CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V)
CFLAGS_DYNAMIC_V=-fpic
# ASFLAGS_DYNAMIC_V=
-CFLAGS=$(CFLAGS_DEFAULT) $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE) \
+CFLAGS=$(CFLAGS_DEFAULT) $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) \
-I $(PROJECT_INCLUDE)
# List of library paths without -L
@@ -115,10 +112,9 @@ LDFLAGS_DYNAMIC_V = ??
LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME)
# ld flags for profiling, debugging
-LDFLAGS_PROFILE_V =
LDFLAGS_DEBUG_V =
-LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %)
+LDFLAGS=$(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %)
#
# Stuff to clean and clobber for the compiler and its tools
@@ -222,7 +218,7 @@ ifneq ($(words $(C_FILES) $(CC_FILES) $(S_FILES)), 0)
# Use gcc -M to generate dependencies
# Replace foo.o with $(ARCH)/foo.o
# Replace $(ARCH) value with string $(ARCH)
-# so that it will for debug and profile cases
+# so that it will for debug cases
$(COMPILE.c) -M $^ | \
$(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
-e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp