summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-01-18 07:10:51 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-01-18 07:10:51 +0000
commit14d345d2589c9e9e73a333681cb46054324c9657 (patch)
tree5c357eebd9a282301f054334ee13410a9d89bc9c /make
parentCosmetics. (diff)
downloadrtems-14d345d2589c9e9e73a333681cb46054324c9657.tar.bz2
2007-01-18 Ralf Cors├ępius <ralf.corsepius@rtems.org>
* custom/av5282.cfg, custom/bare.cfg, custom/dmv152.cfg, custom/gen405.cfg, custom/gen5200.cfg, custom/gen68302.cfg, custom/gen68340.cfg, custom/gen68360.cfg, custom/helas403.cfg, custom/hurricane.cfg, custom/i386ex.cfg, custom/idp.cfg, custom/mbx8xx.cfg, custom/mcf5206elite.cfg, custom/mcf5235.cfg, custom/mcp750.cfg, custom/mpc8260ads.cfg, custom/mrm332.cfg, custom/mtx603e.cfg, custom/mvme136.cfg, custom/mvme147.cfg, custom/mvme162.cfg, custom/mvme162lx.cfg, custom/mvme167.cfg, custom/mvme2100.cfg, custom/mvme2307.cfg, custom/mvme5500.cfg, custom/ods68302.cfg, custom/pc386.cfg, custom/psim.cfg, custom/rbtx4925.cfg, custom/sim68000.cfg, custom/simcpu32.cfg, custom/ss555.cfg, custom/ts_386ex.cfg, custom/uC5282.cfg: CFLAGS_OPTIMIZE_V = -O2.
Diffstat (limited to '')
-rw-r--r--make/ChangeLog13
-rw-r--r--make/custom/av5282.cfg2
-rw-r--r--make/custom/bare.cfg2
-rw-r--r--make/custom/dmv152.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/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/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/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/sim68000.cfg2
-rw-r--r--make/custom/simcpu32.cfg2
-rw-r--r--make/custom/ss555.cfg2
-rw-r--r--make/custom/ts_386ex.cfg2
-rw-r--r--make/custom/uC5282.cfg2
37 files changed, 49 insertions, 36 deletions
diff --git a/make/ChangeLog b/make/ChangeLog
index db372ec80b..17bb723d7e 100644
--- a/make/ChangeLog
+++ b/make/ChangeLog
@@ -1,5 +1,18 @@
2007-01-18 Ralf Cors├ępius <ralf.corsepius@rtems.org>
+ * custom/av5282.cfg, custom/bare.cfg, custom/dmv152.cfg,
+ custom/gen405.cfg, custom/gen5200.cfg, custom/gen68302.cfg,
+ custom/gen68340.cfg, custom/gen68360.cfg, custom/helas403.cfg,
+ custom/hurricane.cfg, custom/i386ex.cfg, custom/idp.cfg,
+ custom/mbx8xx.cfg, custom/mcf5206elite.cfg, custom/mcf5235.cfg,
+ custom/mcp750.cfg, custom/mpc8260ads.cfg, custom/mrm332.cfg,
+ custom/mtx603e.cfg, custom/mvme136.cfg, custom/mvme147.cfg,
+ custom/mvme162.cfg, custom/mvme162lx.cfg, custom/mvme167.cfg,
+ custom/mvme2100.cfg, custom/mvme2307.cfg, custom/mvme5500.cfg,
+ custom/ods68302.cfg, custom/pc386.cfg, custom/psim.cfg,
+ custom/rbtx4925.cfg, custom/sim68000.cfg, custom/simcpu32.cfg,
+ custom/ss555.cfg, custom/ts_386ex.cfg, custom/uC5282.cfg:
+ CFLAGS_OPTIMIZE_V = -O2.
* custom/gba.cfg, custom/mbx8xx.cfg, custom/ss555.cfg: Remove
CXXFLAGS_OPTIMIZE_V.
* custom/gensh2.cfg, custom/gensh4.cfg, custom/shsim.cfg,
diff --git a/make/custom/av5282.cfg b/make/custom/av5282.cfg
index 19e4f3a86f..e955d1f3db 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
ifndef MTARGET
MTARGET=ram
diff --git a/make/custom/bare.cfg b/make/custom/bare.cfg
index 22c0bed081..f359005d5d 100644
--- a/make/custom/bare.cfg
+++ b/make/custom/bare.cfg
@@ -16,7 +16,7 @@ CPU_CFLAGS =$(BARE_CPU_CFLAGS)
include $(RTEMS_ROOT)/make/custom/default.cfg
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
# this target has no start file
START_BASE=
diff --git a/make/custom/dmv152.cfg b/make/custom/dmv152.cfg
index de53604926..74ae377cab 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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/gen405.cfg b/make/custom/gen405.cfg
index 38a9c54b43..c23c80474c 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 = -O4 -fno-keep-inline-functions -g
+CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions -g
# No start file
diff --git a/make/custom/gen5200.cfg b/make/custom/gen5200.cfg
index 7a0e834090..d3dc1779f6 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 = -O4 -fno-keep-inline-functions -g
+CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions -g
# 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 b117272783..a469504453 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 5838481a1b..92eb447ae0 100644
--- a/make/custom/gen68340.cfg
+++ b/make/custom/gen68340.cfg
@@ -16,7 +16,7 @@ RTEMS_BSP_FAMILY=gen68340
CPU_CFLAGS = -mcpu32
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 1fbddf623f..ca947d3bfa 100644
--- a/make/custom/gen68360.cfg
+++ b/make/custom/gen68360.cfg
@@ -27,7 +27,7 @@ CPU_CFLAGS = -mcpu32
endif
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
# 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 3319df9523..395832de83 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 = -O4 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions
# No start file
START_BASE=
diff --git a/make/custom/hurricane.cfg b/make/custom/hurricane.cfg
index 5b626ecc15..8e389ff792 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 e672bb349c..39c2203a31 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 = -O4
+CFLAGS_OPTIMIZE_V = -O2
# 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 127d8889f3..57500c43ed 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/mbx8xx.cfg b/make/custom/mbx8xx.cfg
index da75021192..85170dc927 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 = -O4 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -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 159e5dfb26..42c297bcfe 100644
--- a/make/custom/mcf5206elite.cfg
+++ b/make/custom/mcf5206elite.cfg
@@ -20,7 +20,7 @@ RTEMS_BSP_FAMILY=mcf5206elite
CPU_CFLAGS = -m5200
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 88e12d0d24..a91c89b6ec 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
ifndef MTARGET
diff --git a/make/custom/mcp750.cfg b/make/custom/mcp750.cfg
index f5fcb896fd..30783f9e51 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 = -O4 -mmultiple -mstring -mstrict-align
+CFLAGS_OPTIMIZE_V = -O2 -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 ff98dd7769..bdaa97f6e5 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 = -O4 -fno-keep-inline-functions -g
+CFLAGS_OPTIMIZE_V = -O2 -fno-keep-inline-functions -g
# 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 8c7bd1d165..6dc9fc960b 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 060dc799e7..6a20bbbbc2 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 = -O4 -mmultiple -mstring -mstrict-align
+CFLAGS_OPTIMIZE_V = -O2 -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 3f1dd7f176..c7a1d955f0 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 a6c34453fa..dc1fd05237 100644
--- a/make/custom/mvme147.cfg
+++ b/make/custom/mvme147.cfg
@@ -16,7 +16,7 @@ RTEMS_BSP_FAMILY=mvme147
CPU_CFLAGS =
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 6f4805c211..1a844f97d3 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 d838781f17..317e9cb815 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 f51e7acfa9..7732831bec 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 = -O4 -fno-omit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 b9cec14c7c..7cefd7f171 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 = -O4 -mmultiple -mstring -mstrict-align
+CFLAGS_OPTIMIZE_V = -O2 -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 903305efd1..682ff0fe94 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 = -O4
+CFLAGS_OPTIMIZE_V = -O2
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
diff --git a/make/custom/mvme5500.cfg b/make/custom/mvme5500.cfg
index 6dd4945c38..684308fd67 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 = -O4
+CFLAGS_OPTIMIZE_V = -O2
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
diff --git a/make/custom/ods68302.cfg b/make/custom/ods68302.cfg
index c0c0a48b1d..830957cf44 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 c76467cd4c..e3aba556a5 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 = -O4
+CFLAGS_OPTIMIZE_V = -O2
# 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 d1efaa68e2..7597da1bd3 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 = -O4 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -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 1a585de3a9..e9913e50b7 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 = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/sim68000.cfg b/make/custom/sim68000.cfg
index 1faa0640b5..63cd76d176 100644
--- a/make/custom/sim68000.cfg
+++ b/make/custom/sim68000.cfg
@@ -14,7 +14,7 @@ CPU_CFLAGS = -m68000
RTEMS_BSP_FAMILY=sim68000
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -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 f6b0a12743..e0625ba8a6 100644
--- a/make/custom/simcpu32.cfg
+++ b/make/custom/simcpu32.cfg
@@ -14,7 +14,7 @@ CPU_CFLAGS = -mcpu32
RTEMS_BSP_FAMILY=sim68000
# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O4 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/ss555.cfg b/make/custom/ss555.cfg
index 1b1233bd81..0c961c56a3 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 = -O4 -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V = -O2 -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 1add639bef..dae62d0e01 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 = -O4
+CFLAGS_OPTIMIZE_V = -O2
# Something like this should produce a map file but this does not work.
diff --git a/make/custom/uC5282.cfg b/make/custom/uC5282.cfg
index 08b82bd044..4a29a70cff 100644
--- a/make/custom/uC5282.cfg
+++ b/make/custom/uC5282.cfg
@@ -15,7 +15,7 @@ RTEMS_BSP_FAMILY = uC5282
CPU_CFLAGS = -m528x
# CFLAGS_OPTIMIZE_V = -O0 -fomit-frame-pointer
-CFLAGS_OPTIMIZE_V = -O4 -g
+CFLAGS_OPTIMIZE_V = -O2 -g
# The following are definitions of make-exe which will work using ld as
# is currently required.