summaryrefslogtreecommitdiffstats
path: root/c/src/make/compilers/gcc-target-default.cfg
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-06-06 02:59:13 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-06-06 02:59:13 +0000
commit0707bd20602a10e270d82255132219e46c3ab6f3 (patch)
tree2da7305f52fa097953036da01e18e8fc3f173864 /c/src/make/compilers/gcc-target-default.cfg
parent2003-06-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-0707bd20602a10e270d82255132219e46c3ab6f3.tar.bz2
2003-06-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* bsp.mak: Remove support for profile-variant. * configure.ac: Ditto. * directory.cfg: Ditto. * compilers/gcc-target-default.cfg: Ditto. * make/README: Remove references to profile-variant.
Diffstat (limited to 'c/src/make/compilers/gcc-target-default.cfg')
-rw-r--r--c/src/make/compilers/gcc-target-default.cfg25
1 files changed, 8 insertions, 17 deletions
diff --git a/c/src/make/compilers/gcc-target-default.cfg b/c/src/make/compilers/gcc-target-default.cfg
index 2ffb1db78d..b2472c2cb9 100644
--- a/c/src/make/compilers/gcc-target-default.cfg
+++ b/c/src/make/compilers/gcc-target-default.cfg
@@ -5,11 +5,11 @@
#
##
-# 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
@@ -30,7 +30,6 @@ ASFLAGS = $(CPU_ASFLAGS) $(XASFLAGS)
# NOTE: GCCSPECS probably belongs to CPPFLAGS
GCCSPECS_OPTIMIZE_V =
GCCSPECS_DEBUG_V = -qrtems_debug
-GCCSPECS_PROFILE_V =
GCCSPECS = -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems
GCCSPECS += $(GCCSPECS_$(VARIANT_V)_V)
@@ -58,18 +57,14 @@ CXXFLAGS_DEBUG_V+=-qrtems_debug
CFLAGS_OPTIMIZE_V+=-g
CXXFLAGS_OPTIMIZE_V+=-g
-# profile flag; use gprof(1)
-CFLAGS_PROFILE_V+=-pg
-CXXFLAGS_PROFILE_V+=-pg
-
ifndef AUTOMAKE
CFLAGS_$(VARIANT) =$(CFLAGS_$(VARIANT)_V)
CXXFLAGS_$(VARIANT)=$(CXXFLAGS_$(VARIANT)_V)
endif
ifndef AUTOMAKE
-CFLAGS += $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE)
-CXXFLAGS += $(CXXFLAGS_OPTIMIZE) $(CXXFLAGS_DEBUG) $(CXXFLAGS_PROFILE)
+CFLAGS += $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG)
+CXXFLAGS += $(CXXFLAGS_OPTIMIZE) $(CXXFLAGS_DEBUG)
endif
# List of library paths without -L
@@ -94,12 +89,8 @@ LDFLAGS_DYNAMIC_V = ??
# Some dynamic linking systems want the preferred name recorded in the binary
LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME)
-# ld flags for profiling, debugging
-LDFLAGS_PROFILE_V =
-LDFLAGS_DEBUG_V = -qrtems_debug
-
-# LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L%)
-LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG)
+# LDFLAGS=$(LDFLAGS_DEBUG) $(LD_PATHS:%=-L%)
+LDFLAGS=$(LDFLAGS_DEBUG)
#
# Stuff to clean and clobber for the compiler and its tools
@@ -172,7 +163,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) $(AM_CPPFLAGS) $(AM_CFLAGS) -M $^ | \
$(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
-e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp