summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-01-18 11:24:48 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-01-18 11:24:48 +0000
commit7d12e0206d105a8e3de138f54e2cee19bc444614 (patch)
tree9e6508ed8630a8facc87af9a78a40a5930128ad2
parent2d78d77ed46d65344962bd679c7f6d36a6409be0 (diff)
downloadrtems-7d12e0206d105a8e3de138f54e2cee19bc444614.tar.bz2
Add -g to CFLAGS_OPTIMIZE_V.
Diffstat (limited to '')
-rw-r--r--make/custom/Cygwin-posix.cfg2
-rw-r--r--make/custom/FreeBSD-posix.cfg2
-rw-r--r--make/custom/HPUX9-posix.cfg2
-rw-r--r--make/custom/Linux-posix.cfg2
-rw-r--r--make/custom/Solaris-posix.cfg2
-rw-r--r--make/custom/armulator.cfg2
-rw-r--r--make/custom/av5282.cfg2
-rw-r--r--make/custom/bare.cfg2
-rw-r--r--make/custom/c3xsim.cfg2
-rw-r--r--make/custom/c4xsim.cfg2
-rw-r--r--make/custom/csb336.cfg2
-rw-r--r--make/custom/csb360.cfg2
-rw-r--r--make/custom/dmv152.cfg2
-rw-r--r--make/custom/eZKit533.cfg2
-rw-r--r--make/custom/edb7312.cfg2
-rw-r--r--make/custom/ep1a.cfg2
-rw-r--r--make/custom/erc32.cfg2
-rw-r--r--make/custom/erc32nfp.cfg2
-rw-r--r--make/custom/gba.cfg2
-rw-r--r--make/custom/gen405.cfg2
-rw-r--r--make/custom/gen5200.cfg2
-rw-r--r--make/custom/gen68302.cfg2
-rw-r--r--make/custom/gen68340.cfg2
-rw-r--r--make/custom/gen68360.cfg2
-rw-r--r--make/custom/gensh1.cfg2
-rw-r--r--make/custom/gensh2.cfg2
-rw-r--r--make/custom/gensh4.cfg2
-rw-r--r--make/custom/gp32.cfg2
-rw-r--r--make/custom/h8sim.cfg2
-rw-r--r--make/custom/helas403.cfg2
-rw-r--r--make/custom/hurricane.cfg2
-rw-r--r--make/custom/i386ex.cfg2
-rw-r--r--make/custom/idp.cfg2
-rw-r--r--make/custom/jmr3904.cfg2
-rw-r--r--make/custom/leon2.cfg2
-rw-r--r--make/custom/leon3.cfg2
-rw-r--r--make/custom/mbx821_002b.cfg2
-rw-r--r--make/custom/mbx8xx.cfg2
-rw-r--r--make/custom/mcf5206elite.cfg2
-rw-r--r--make/custom/mcf5235.cfg2
-rw-r--r--make/custom/mcp750.cfg2
-rw-r--r--make/custom/mpc8260ads.cfg2
-rw-r--r--make/custom/mrm332.cfg2
-rw-r--r--make/custom/mtx603e.cfg2
-rw-r--r--make/custom/mvme136.cfg2
-rw-r--r--make/custom/mvme147.cfg2
-rw-r--r--make/custom/mvme162.cfg2
-rw-r--r--make/custom/mvme162lx.cfg2
-rw-r--r--make/custom/mvme167.cfg2
-rw-r--r--make/custom/mvme2100.cfg2
-rw-r--r--make/custom/mvme2307.cfg2
-rw-r--r--make/custom/mvme5500.cfg2
-rw-r--r--make/custom/nios2_iss.cfg2
-rw-r--r--make/custom/ods68302.cfg2
-rw-r--r--make/custom/pc386.cfg2
-rw-r--r--make/custom/psim.cfg2
-rw-r--r--make/custom/rbtx4925.cfg2
-rw-r--r--make/custom/score603e.cfg2
-rw-r--r--make/custom/sim68000.cfg2
-rw-r--r--make/custom/simcpu32.cfg2
-rw-r--r--make/custom/simsh4.cfg2
-rw-r--r--make/custom/simsh7032.cfg2
-rw-r--r--make/custom/simsh7045.cfg2
-rw-r--r--make/custom/ss555.cfg2
-rw-r--r--make/custom/ts_386ex.cfg2
65 files changed, 65 insertions, 65 deletions
diff --git a/make/custom/Cygwin-posix.cfg b/make/custom/Cygwin-posix.cfg
index 30621ad0ea..b8754295d7 100644
--- a/make/custom/Cygwin-posix.cfg
+++ b/make/custom/Cygwin-posix.cfg
@@ -15,7 +15,7 @@ RTEMS_BSP_FAMILY=posix
include $(RTEMS_ROOT)/make/custom/default.cfg
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
diff --git a/make/custom/FreeBSD-posix.cfg b/make/custom/FreeBSD-posix.cfg
index 44b5a80833..431d17f788 100644
--- a/make/custom/FreeBSD-posix.cfg
+++ b/make/custom/FreeBSD-posix.cfg
@@ -12,7 +12,7 @@ RTEMS_BSP_FAMILY=posix
include $(RTEMS_ROOT)/make/custom/default.cfg
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
diff --git a/make/custom/HPUX9-posix.cfg b/make/custom/HPUX9-posix.cfg
index 9b4e3b6439..e632783b88 100644
--- a/make/custom/HPUX9-posix.cfg
+++ b/make/custom/HPUX9-posix.cfg
@@ -16,7 +16,7 @@ RTEMS_BSP_FAMILY=posix
include $(RTEMS_ROOT)/make/custom/default.cfg
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
diff --git a/make/custom/Linux-posix.cfg b/make/custom/Linux-posix.cfg
index b5954b817f..7a95d5df5d 100644
--- a/make/custom/Linux-posix.cfg
+++ b/make/custom/Linux-posix.cfg
@@ -19,7 +19,7 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
CPU_CFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
diff --git a/make/custom/Solaris-posix.cfg b/make/custom/Solaris-posix.cfg
index fa212241f5..418248270c 100644
--- a/make/custom/Solaris-posix.cfg
+++ b/make/custom/Solaris-posix.cfg
@@ -19,7 +19,7 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
CPU_CFLAGS += -Dsolaris2 -D__EXTENSIONS__
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
diff --git a/make/custom/armulator.cfg b/make/custom/armulator.cfg
index 0e448c3320..b97dec4432 100644
--- a/make/custom/armulator.cfg
+++ b/make/custom/armulator.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=armulator
# CPU_CFLAGS = -msoft-float
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
diff --git a/make/custom/av5282.cfg b/make/custom/av5282.cfg
index e955d1f3db..7b81a187cf 100644
--- a/make/custom/av5282.cfg
+++ b/make/custom/av5282.cfg
@@ -16,7 +16,7 @@ CPU_CFLAGS = -m528x
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
ifndef MTARGET
MTARGET=ram
diff --git a/make/custom/bare.cfg b/make/custom/bare.cfg
index da33ae34a1..1c3c641018 100644
--- a/make/custom/bare.cfg
+++ b/make/custom/bare.cfg
@@ -18,7 +18,7 @@ CPU_CFLAGS =$(BARE_CPU_CFLAGS)
include $(RTEMS_ROOT)/make/custom/default.cfg
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# this target has no start file
START_BASE=
diff --git a/make/custom/c3xsim.cfg b/make/custom/c3xsim.cfg
index 22c41daf43..d9c39e9779 100644
--- a/make/custom/c3xsim.cfg
+++ b/make/custom/c3xsim.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=c4xsim
# optimize flag: typically -O2
# -O2 is broken for the moment on the C4x gcc
#CFLAGS_OPTIMIZE_V = -O2
-CFLAGS_OPTIMIZE_V = -O1
+CFLAGS_OPTIMIZE_V = -O1 -g
# this target has no start file
START_BASE=
diff --git a/make/custom/c4xsim.cfg b/make/custom/c4xsim.cfg
index 0a91abea1c..70582cbfd5 100644
--- a/make/custom/c4xsim.cfg
+++ b/make/custom/c4xsim.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=c4xsim
# optimize flag: typically -O2
# -O2 is broken for the moment on the C4x gcc
#CFLAGS_OPTIMIZE_V = -O2
-CFLAGS_OPTIMIZE_V = -O1
+CFLAGS_OPTIMIZE_V = -O1 -g
# this target has no start file
START_BASE=
diff --git a/make/custom/csb336.cfg b/make/custom/csb336.cfg
index 71e348382e..0a05da3ab9 100644
--- a/make/custom/csb336.cfg
+++ b/make/custom/csb336.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=csb336
CPU_CFLAGS = -mcpu=arm920 -mstructure-size-boundary=8
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
diff --git a/make/custom/csb360.cfg b/make/custom/csb360.cfg
index e3c118dcab..f0895bd641 100644
--- a/make/custom/csb360.cfg
+++ b/make/custom/csb360.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=csb360
CPU_CFLAGS = -m5200
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/dmv152.cfg b/make/custom/dmv152.cfg
index 74ae377cab..2e9a4d2f0f 100644
--- a/make/custom/dmv152.cfg
+++ b/make/custom/dmv152.cfg
@@ -20,7 +20,7 @@ RTEMS_BSP_FAMILY=dmv152
CPU_CFLAGS =
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# Here is the rule to actually build a $(ARCH)/foo.exe
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
diff --git a/make/custom/eZKit533.cfg b/make/custom/eZKit533.cfg
index c37cc676d4..dd37d42544 100644
--- a/make/custom/eZKit533.cfg
+++ b/make/custom/eZKit533.cfg
@@ -19,7 +19,7 @@ CPU_CFLAGS =
# optimize flag: typically -O2
# gcc-4.2.0 segfaults on -OX > -O0
-CFLAGS_OPTIMIZE_V = -O0
+CFLAGS_OPTIMIZE_V = -O0 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/edb7312.cfg b/make/custom/edb7312.cfg
index 4b381caba6..388b2bfc1b 100644
--- a/make/custom/edb7312.cfg
+++ b/make/custom/edb7312.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=edb7312
CPU_CFLAGS = -mcpu=$(RTEMS_CPU_MODEL) -mstructure-size-boundary=8
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
diff --git a/make/custom/ep1a.cfg b/make/custom/ep1a.cfg
index 6530527e5b..cf171e740c 100644
--- a/make/custom/ep1a.cfg
+++ b/make/custom/ep1a.cfg
@@ -17,7 +17,7 @@ RTEMS_BSP_FAMILY=ep1a
CPU_CFLAGS = -mcpu=603e -Dmpc603e -Dppc603e -mmultiple -mstring -mstrict-align
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
diff --git a/make/custom/erc32.cfg b/make/custom/erc32.cfg
index 4d99ebbcfb..7341fe9fb1 100644
--- a/make/custom/erc32.cfg
+++ b/make/custom/erc32.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=erc32
CPU_CFLAGS = -mcpu=cypress
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/erc32nfp.cfg b/make/custom/erc32nfp.cfg
index 0b33524b0f..602bdb72f3 100644
--- a/make/custom/erc32nfp.cfg
+++ b/make/custom/erc32nfp.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=erc32
CPU_CFLAGS = -mcpu=cypress -msoft-float
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/gba.cfg b/make/custom/gba.cfg
index 56d0c783b9..dd9a1fe21a 100644
--- a/make/custom/gba.cfg
+++ b/make/custom/gba.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=gba
CPU_CFLAGS = -mcpu=$(RTEMS_CPU_MODEL) -msoft-float -mstructure-size-boundary=8
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
diff --git a/make/custom/gen405.cfg b/make/custom/gen405.cfg
index c23c80474c..f9a3b76c05 100644
--- a/make/custom/gen405.cfg
+++ b/make/custom/gen405.cfg
@@ -25,7 +25,7 @@ RTEMS_BSP_FAMILY=gen405
CPU_CFLAGS = -mcpu=403 -D_OLD_EXCEPTIONS -Dppc405
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions -g
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
# No start file
diff --git a/make/custom/gen5200.cfg b/make/custom/gen5200.cfg
index d3dc1779f6..0e9f37a3b8 100644
--- a/make/custom/gen5200.cfg
+++ b/make/custom/gen5200.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=gen5200
CPU_CFLAGS = -mcpu=603e -mstrict-align -D$(RTEMS_BOARD_MODEL)
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions -g
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/gen68302.cfg b/make/custom/gen68302.cfg
index a469504453..37afee91a4 100644
--- a/make/custom/gen68302.cfg
+++ b/make/custom/gen68302.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=gen68302
CPU_CFLAGS = -m68302
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/gen68340.cfg b/make/custom/gen68340.cfg
index 1f75bd9fbc..60a9c22730 100644
--- a/make/custom/gen68340.cfg
+++ b/make/custom/gen68340.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=gen68340
CPU_CFLAGS = -mcpu32
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/gen68360.cfg b/make/custom/gen68360.cfg
index 60d24c8478..b637a506cb 100644
--- a/make/custom/gen68360.cfg
+++ b/make/custom/gen68360.cfg
@@ -26,7 +26,7 @@ CPU_CFLAGS = -mcpu32
endif
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/gensh1.cfg b/make/custom/gensh1.cfg
index 407de36570..8b371438ca 100644
--- a/make/custom/gensh1.cfg
+++ b/make/custom/gensh1.cfg
@@ -23,7 +23,7 @@ RTEMS_BSP_FAMILY=gensh1
CPU_CFLAGS = -m1
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/gensh2.cfg b/make/custom/gensh2.cfg
index 82f2c5009e..b136b5bf55 100644
--- a/make/custom/gensh2.cfg
+++ b/make/custom/gensh2.cfg
@@ -23,7 +23,7 @@ RTEMS_BSP_FAMILY=gensh2
CPU_CFLAGS = -m2
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/gensh4.cfg b/make/custom/gensh4.cfg
index 206d343b0a..c3bf5d5be8 100644
--- a/make/custom/gensh4.cfg
+++ b/make/custom/gensh4.cfg
@@ -30,7 +30,7 @@ RTEMS_BSP_FAMILY=gensh4
CPU_CFLAGS = -m4 -ml
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/gp32.cfg b/make/custom/gp32.cfg
index b48d5fa9e8..894880afb2 100644
--- a/make/custom/gp32.cfg
+++ b/make/custom/gp32.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=gp32
CPU_CFLAGS = -mcpu=arm920t -mstructure-size-boundary=32
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
diff --git a/make/custom/h8sim.cfg b/make/custom/h8sim.cfg
index 3ebbd3eb99..8f1c44172e 100644
--- a/make/custom/h8sim.cfg
+++ b/make/custom/h8sim.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=h8sim
CPU_CFLAGS = -mh -mint32
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/helas403.cfg b/make/custom/helas403.cfg
index 395832de83..e6d6923620 100644
--- a/make/custom/helas403.cfg
+++ b/make/custom/helas403.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=helas403
CPU_CFLAGS = -mcpu=403 -D_OLD_EXCEPTIONS -Dppc403
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
# No start file
START_BASE=
diff --git a/make/custom/hurricane.cfg b/make/custom/hurricane.cfg
index f6151c59ec..d7540beb0a 100644
--- a/make/custom/hurricane.cfg
+++ b/make/custom/hurricane.cfg
@@ -16,7 +16,7 @@ RTEMS_BSP_FAMILY=hurricane
CPU_CFLAGS = -mips3 -G0 -EL
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/i386ex.cfg b/make/custom/i386ex.cfg
index 39c2203a31..9381dc67e0 100644
--- a/make/custom/i386ex.cfg
+++ b/make/custom/i386ex.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=i386ex
CPU_CFLAGS = -msoft-float
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# Something like this should produce a map file but this does not work.
diff --git a/make/custom/idp.cfg b/make/custom/idp.cfg
index 57500c43ed..c9724c9efc 100644
--- a/make/custom/idp.cfg
+++ b/make/custom/idp.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=idp
CPU_CFLAGS = -msoft-float
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/jmr3904.cfg b/make/custom/jmr3904.cfg
index 3ad437c646..e733e794f9 100644
--- a/make/custom/jmr3904.cfg
+++ b/make/custom/jmr3904.cfg
@@ -21,7 +21,7 @@ RTEMS_BSP_FAMILY=jmr3904
CPU_CFLAGS = -march=r3900 -Wa,-xgot -G0
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/leon2.cfg b/make/custom/leon2.cfg
index e53ca06c06..6141cbd4c1 100644
--- a/make/custom/leon2.cfg
+++ b/make/custom/leon2.cfg
@@ -16,7 +16,7 @@ RTEMS_BSP_FAMILY=leon2
CPU_CFLAGS = -mcpu=cypress -msoft-float
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/leon3.cfg b/make/custom/leon3.cfg
index 73a14d10cd..423640469b 100644
--- a/make/custom/leon3.cfg
+++ b/make/custom/leon3.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=leon3
CPU_CFLAGS = -mcpu=cypress -msoft-float
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mbx821_002b.cfg b/make/custom/mbx821_002b.cfg
index 26686e3ca0..09bf1c86b1 100644
--- a/make/custom/mbx821_002b.cfg
+++ b/make/custom/mbx821_002b.cfg
@@ -13,4 +13,4 @@ RTEMS_MBX_MODEL=mbx821_002b
include $(RTEMS_ROOT)/make/custom/mbx8xx.cfg
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
diff --git a/make/custom/mbx8xx.cfg b/make/custom/mbx8xx.cfg
index 85170dc927..da1f585528 100644
--- a/make/custom/mbx8xx.cfg
+++ b/make/custom/mbx8xx.cfg
@@ -47,7 +47,7 @@ CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -Dmpc$(8XX_CPU_TYPE) -D$(RTEMS_MBX_MODEL)
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(MBX8xx_LDFLAGS) \
diff --git a/make/custom/mcf5206elite.cfg b/make/custom/mcf5206elite.cfg
index 2f5c61328e..7e1bf400b9 100644
--- a/make/custom/mcf5206elite.cfg
+++ b/make/custom/mcf5206elite.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=mcf5206elite
CPU_CFLAGS = -m5200
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mcf5235.cfg b/make/custom/mcf5235.cfg
index a91c89b6ec..f3539837ae 100644
--- a/make/custom/mcf5235.cfg
+++ b/make/custom/mcf5235.cfg
@@ -22,7 +22,7 @@ CPU_CFLAGS = -m528x
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
ifndef MTARGET
diff --git a/make/custom/mcp750.cfg b/make/custom/mcp750.cfg
index 30783f9e51..624e9a89b9 100644
--- a/make/custom/mcp750.cfg
+++ b/make/custom/mcp750.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=motorola_powerpc
CPU_CFLAGS = -mcpu=750 -Dmpc750
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -mmultiple -mstring -mstrict-align
+CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
diff --git a/make/custom/mpc8260ads.cfg b/make/custom/mpc8260ads.cfg
index bdaa97f6e5..7d6468c11d 100644
--- a/make/custom/mpc8260ads.cfg
+++ b/make/custom/mpc8260ads.cfg
@@ -20,7 +20,7 @@ RTEMS_BSP_FAMILY=mpc8260ads
CPU_CFLAGS = -mcpu=603e -mstrict-align -Dmpc8260
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions -g
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mrm332.cfg b/make/custom/mrm332.cfg
index 6dc9fc960b..3207ee2202 100644
--- a/make/custom/mrm332.cfg
+++ b/make/custom/mrm332.cfg
@@ -17,7 +17,7 @@ RTEMS_BSP_FAMILY=mrm332
CPU_CFLAGS = -mcpu32
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mtx603e.cfg b/make/custom/mtx603e.cfg
index 00a40bfa05..d2455acee9 100644
--- a/make/custom/mtx603e.cfg
+++ b/make/custom/mtx603e.cfg
@@ -17,7 +17,7 @@ RTEMS_BSP_FAMILY=motorola_powerpc
CPU_CFLAGS = -mcpu=603e -Dmpc603e -Dppc603e
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -mmultiple -mstring -mstrict-align
+CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
diff --git a/make/custom/mvme136.cfg b/make/custom/mvme136.cfg
index c7a1d955f0..bcfcd41899 100644
--- a/make/custom/mvme136.cfg
+++ b/make/custom/mvme136.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=mvme136
CPU_CFLAGS =
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mvme147.cfg b/make/custom/mvme147.cfg
index c578a83bd2..108bf0875d 100644
--- a/make/custom/mvme147.cfg
+++ b/make/custom/mvme147.cfg
@@ -17,7 +17,7 @@ RTEMS_BSP_FAMILY=mvme147
CPU_CFLAGS =
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mvme162.cfg b/make/custom/mvme162.cfg
index 1a844f97d3..aa66e4a421 100644
--- a/make/custom/mvme162.cfg
+++ b/make/custom/mvme162.cfg
@@ -21,7 +21,7 @@ RTEMS_BSP_FAMILY=mvme162
CPU_CFLAGS = -m68040
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mvme162lx.cfg b/make/custom/mvme162lx.cfg
index 317e9cb815..a1ff28da74 100644
--- a/make/custom/mvme162lx.cfg
+++ b/make/custom/mvme162lx.cfg
@@ -27,7 +27,7 @@ RTEMS_BSP_FAMILY=mvme162
CPU_CFLAGS = -m68040 -msoft-float
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mvme167.cfg b/make/custom/mvme167.cfg
index 7732831bec..0fb5253d9a 100644
--- a/make/custom/mvme167.cfg
+++ b/make/custom/mvme167.cfg
@@ -25,7 +25,7 @@ CPU_CFLAGS = -m68040
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-omit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-omit-frame-pointer
# Here is the rule to actually build a $(ARCH)/foo.exe
# It also builds $(ARCH)/foo.nm
diff --git a/make/custom/mvme2100.cfg b/make/custom/mvme2100.cfg
index 7cefd7f171..8e45b01a83 100644
--- a/make/custom/mvme2100.cfg
+++ b/make/custom/mvme2100.cfg
@@ -17,7 +17,7 @@ RTEMS_BSP_FAMILY=motorola_powerpc
CPU_CFLAGS = -mcpu=603e -Dmpc603e -Dppc603e
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -mmultiple -mstring -mstrict-align
+CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
diff --git a/make/custom/mvme2307.cfg b/make/custom/mvme2307.cfg
index 682ff0fe94..646426bb18 100644
--- a/make/custom/mvme2307.cfg
+++ b/make/custom/mvme2307.cfg
@@ -18,7 +18,7 @@ RTEMS_BSP_FAMILY=motorola_powerpc
CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align -meabi
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
diff --git a/make/custom/mvme5500.cfg b/make/custom/mvme5500.cfg
index 684308fd67..a09ff6fd12 100644
--- a/make/custom/mvme5500.cfg
+++ b/make/custom/mvme5500.cfg
@@ -20,7 +20,7 @@ CPU_CFLAGS = -mcpu=7450 -Dmpc7455 -mno-altivec -mabi=altivec -mvrsave=no -mmulti
#T. Straumann; disable sdata=eabi for now until CEXP supports it -meabi -msdata=eabi
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
diff --git a/make/custom/nios2_iss.cfg b/make/custom/nios2_iss.cfg
index 72cfc45f43..11eef1f6b8 100644
--- a/make/custom/nios2_iss.cfg
+++ b/make/custom/nios2_iss.cfg
@@ -21,7 +21,7 @@ CPU_CFLAGS = -mno-hw-mul -mno-hw-div
# optimize flag: typically -O2
# ATM, doesn't work with optimization levels > 0
-CFLAGS_OPTIMIZE_V = -g -O0
+CFLAGS_OPTIMIZE_V = -O0 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/ods68302.cfg b/make/custom/ods68302.cfg
index 830957cf44..6d74b3e394 100644
--- a/make/custom/ods68302.cfg
+++ b/make/custom/ods68302.cfg
@@ -25,7 +25,7 @@ RTEMS_BSP_FAMILY=ods68302
CPU_CFLAGS = -m68302
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/pc386.cfg b/make/custom/pc386.cfg
index e3aba556a5..2961d4c043 100644
--- a/make/custom/pc386.cfg
+++ b/make/custom/pc386.cfg
@@ -21,7 +21,7 @@ RTEMS_BSP_FAMILY=pc386
# CPU_CFLAGS =
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# Here is the rule to actually build a $(ARCH)/foo.exe
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
diff --git a/make/custom/psim.cfg b/make/custom/psim.cfg
index 7597da1bd3..76ef5e4beb 100644
--- a/make/custom/psim.cfg
+++ b/make/custom/psim.cfg
@@ -19,7 +19,7 @@ CPU_CFLAGS = -mcpu=603e -Dppc603e
#-ffunction-sections
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
diff --git a/make/custom/rbtx4925.cfg b/make/custom/rbtx4925.cfg
index 8d844db4d7..07194fd016 100644
--- a/make/custom/rbtx4925.cfg
+++ b/make/custom/rbtx4925.cfg
@@ -16,7 +16,7 @@ RTEMS_BSP_FAMILY=rbtx4925
CPU_CFLAGS = -mips3 -G0 -EL
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/score603e.cfg b/make/custom/score603e.cfg
index 99f5266bd1..50572d7b86 100644
--- a/make/custom/score603e.cfg
+++ b/make/custom/score603e.cfg
@@ -23,7 +23,7 @@ RTEMS_BSP_FAMILY=score603e
CPU_CFLAGS = -mcpu=603e -Dmpc603e -Dppc603e -mmultiple -mstring -mstrict-align
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
diff --git a/make/custom/sim68000.cfg b/make/custom/sim68000.cfg
index 2b0d3abd04..ee1392b696 100644
--- a/make/custom/sim68000.cfg
+++ b/make/custom/sim68000.cfg
@@ -17,7 +17,7 @@ CPU_CFLAGS = -m68000
RTEMS_BSP_FAMILY=sim68000
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/simcpu32.cfg b/make/custom/simcpu32.cfg
index 489f6acd3f..e9bd77d0c1 100644
--- a/make/custom/simcpu32.cfg
+++ b/make/custom/simcpu32.cfg
@@ -17,7 +17,7 @@ CPU_CFLAGS = -mcpu32
RTEMS_BSP_FAMILY=sim68000
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/simsh4.cfg b/make/custom/simsh4.cfg
index 591e6dd122..a24b9606e3 100644
--- a/make/custom/simsh4.cfg
+++ b/make/custom/simsh4.cfg
@@ -30,7 +30,7 @@ CPU_CFLAGS = -m4 -ml
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/simsh7032.cfg b/make/custom/simsh7032.cfg
index 059a9632bd..2d9a33a044 100644
--- a/make/custom/simsh7032.cfg
+++ b/make/custom/simsh7032.cfg
@@ -20,6 +20,6 @@ RTEMS_CPU_MODEL=sh7032
CPU_CFLAGS = -m1
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# Miscellaneous additions go here
diff --git a/make/custom/simsh7045.cfg b/make/custom/simsh7045.cfg
index 18dfeb76d8..aa246a98e0 100644
--- a/make/custom/simsh7045.cfg
+++ b/make/custom/simsh7045.cfg
@@ -20,6 +20,6 @@ RTEMS_CPU_MODEL=sh7045
CPU_CFLAGS = -m2
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# Miscellaneous additions go here
diff --git a/make/custom/ss555.cfg b/make/custom/ss555.cfg
index 0c961c56a3..41322a4607 100644
--- a/make/custom/ss555.cfg
+++ b/make/custom/ss555.cfg
@@ -23,7 +23,7 @@ RTEMS_BSP_FAMILY=ss555
CPU_CFLAGS = -mcpu=$(GCC_CPU_MODEL) -D$(RTEMS_CPU_MODEL) -D$(RTEMS_BSP_FAMILY)
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(SS555_LDFLAGS) \
diff --git a/make/custom/ts_386ex.cfg b/make/custom/ts_386ex.cfg
index dae62d0e01..15f00c7c43 100644
--- a/make/custom/ts_386ex.cfg
+++ b/make/custom/ts_386ex.cfg
@@ -19,7 +19,7 @@ RTEMS_BSP_FAMILY=ts_386ex
CPU_CFLAGS =-msoft-float -mno-fp-ret-in-387
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
# Something like this should produce a map file but this does not work.