This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

update ARM platform HALs compiler flags


This is the big one. For all platforms the compiler warning flags now
come from CYGBLD_GLOBAL_WARNFLAGS, and anything thumb & big-endian
related now comes from CYGBLD_ARCH_CFLAGS and CYGBLD_ARCH_LDFLAGS.
And of course -fvtable-gv and -finit-priority have been removed.

Sorting these out has involved a lot of hand-editing, not just running
a script. Hopefully I managed to avoid any screw-ups.

Bart

Index: aeb/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/aeb/current/ChangeLog,v
retrieving revision 1.34
diff -u -p -r1.34 ChangeLog
--- aeb/current/ChangeLog	29 Jan 2009 17:48:54 -0000	1.34
+++ aeb/current/ChangeLog	2 Feb 2009 19:02:50 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_aeb.cdl: update compiler flags for recent gcc
+
 2009-01-08  John Dallaway  <john@dallaway.org.uk>
 
 	* src/flash_cksum.tcl: Specify script interpreter via /usr/bin/env.
Index: aeb/current/cdl/hal_arm_aeb.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/aeb/current/cdl/hal_arm_aeb.cdl,v
retrieving revision 1.13
diff -u -p -r1.13 hal_arm_aeb.cdl
--- aeb/current/cdl/hal_arm_aeb.cdl	29 Jan 2009 17:48:54 -0000	1.13
+++ aeb/current/cdl/hal_arm_aeb.cdl	2 Feb 2009 19:02:51 -0000
@@ -177,7 +177,8 @@ cdl_package CYGPKG_HAL_ARM_AEB {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm7di -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                "-mcpu=arm7di -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -188,7 +189,7 @@ cdl_package CYGPKG_HAL_ARM_AEB {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm7di -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7di -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: aim711/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/aim711/current/ChangeLog,v
retrieving revision 1.5
diff -u -p -r1.5 ChangeLog
--- aim711/current/ChangeLog	29 Jan 2009 17:48:55 -0000	1.5
+++ aim711/current/ChangeLog	2 Feb 2009 19:02:51 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_aim711.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_aim711.cdl: switch from arm-elf-gcc to
Index: aim711/current/cdl/hal_arm_aim711.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/aim711/current/cdl/hal_arm_aim711.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_aim711.cdl
--- aim711/current/cdl/hal_arm_aim711.cdl	29 Jan 2009 17:48:55 -0000	1.3
+++ aim711/current/cdl/hal_arm_aim711.cdl	2 Feb 2009 19:02:51 -0000
@@ -215,10 +215,8 @@ cdl_package CYGPKG_HAL_ARM_AIM711 {
             flavor  data
             no_define
 
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "-mcpu=arm7tdmi ") .
-                            (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") .
-                            (CYGHWR_HAL_ARM_BIGENDIAN ? "-mbig-endian " : "") .
-                            "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -229,10 +227,7 @@ cdl_package CYGPKG_HAL_ARM_AIM711 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "-mcpu=arm7tdmi ") .
-                            (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") .
-                            (CYGHWR_HAL_ARM_BIGENDIAN ? "-mbig-endian " : "") .
-                            "-g -nostdlib -Wl,--gc-sections -Wl,-static" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -g -nostdlib -Wl,--gc-sections -Wl,-static" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: arm9/aaed2000/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/aaed2000/current/ChangeLog,v
retrieving revision 1.8
diff -u -p -r1.8 ChangeLog
--- arm9/aaed2000/current/ChangeLog	29 Jan 2009 17:48:55 -0000	1.8
+++ arm9/aaed2000/current/ChangeLog	2 Feb 2009 19:02:52 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_arm9_aaed2000.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_arm9_aaed2000.cdl: switch from arm-elf-gcc to
Index: arm9/aaed2000/current/cdl/hal_arm_arm9_aaed2000.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/aaed2000/current/cdl/hal_arm_arm9_aaed2000.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_arm9_aaed2000.cdl
--- arm9/aaed2000/current/cdl/hal_arm_arm9_aaed2000.cdl	29 Jan 2009 17:48:55 -0000	1.6
+++ arm9/aaed2000/current/cdl/hal_arm_arm9_aaed2000.cdl	2 Feb 2009 19:02:53 -0000
@@ -351,7 +351,8 @@ cdl_package CYGPKG_HAL_ARM_ARM9_AAED2000
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                "-mcpu=arm9 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -362,7 +363,7 @@ cdl_package CYGPKG_HAL_ARM_ARM9_AAED2000
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm9 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: arm9/excalibur/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/excalibur/current/ChangeLog,v
retrieving revision 1.8
diff -u -p -r1.8 ChangeLog
--- arm9/excalibur/current/ChangeLog	29 Jan 2009 17:48:55 -0000	1.8
+++ arm9/excalibur/current/ChangeLog	2 Feb 2009 19:02:54 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_arm9_excalibur.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_arm9_excalibur.cdl: switch from arm-elf-gcc to
Index: arm9/excalibur/current/cdl/hal_arm_arm9_excalibur.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/excalibur/current/cdl/hal_arm_arm9_excalibur.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_arm9_excalibur.cdl
--- arm9/excalibur/current/cdl/hal_arm_arm9_excalibur.cdl	29 Jan 2009 17:48:55 -0000	1.6
+++ arm9/excalibur/current/cdl/hal_arm_arm9_excalibur.cdl	2 Feb 2009 19:02:54 -0000
@@ -236,7 +236,8 @@ cdl_package CYGPKG_HAL_ARM_ARM9_EXCALIBU
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm9 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -247,7 +248,7 @@ cdl_package CYGPKG_HAL_ARM_ARM9_EXCALIBU
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "--no-target-default-spec -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm9 --no-target-default-spec -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: arm9/innovator/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/innovator/current/ChangeLog,v
retrieving revision 1.6
diff -u -p -r1.6 ChangeLog
--- arm9/innovator/current/ChangeLog	29 Jan 2009 17:48:55 -0000	1.6
+++ arm9/innovator/current/ChangeLog	2 Feb 2009 19:02:54 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_arm9_innovator.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_arm9_innovator.cdl: switch from arm-elf-gcc to
Index: arm9/innovator/current/cdl/hal_arm_arm9_innovator.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/innovator/current/cdl/hal_arm_arm9_innovator.cdl,v
retrieving revision 1.4
diff -u -p -r1.4 hal_arm_arm9_innovator.cdl
--- arm9/innovator/current/cdl/hal_arm_arm9_innovator.cdl	29 Jan 2009 17:48:55 -0000	1.4
+++ arm9/innovator/current/cdl/hal_arm_arm9_innovator.cdl	2 Feb 2009 19:02:54 -0000
@@ -246,7 +246,8 @@ cdl_package CYGPKG_HAL_ARM_ARM9_INNOVATO
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm9 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -257,7 +258,7 @@ cdl_package CYGPKG_HAL_ARM_ARM9_INNOVATO
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "--no-target-default-spec -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm9 --no-target-default-spec -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: arm9/smdk2410/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/smdk2410/current/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- arm9/smdk2410/current/ChangeLog	26 Jan 2009 18:09:29 -0000	1.3
+++ arm9/smdk2410/current/ChangeLog	2 Feb 2009 19:02:54 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_arm9_smdk2410.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_arm9_smdk2410.cdl: switch from arm-elf-gcc to
Index: arm9/smdk2410/current/cdl/hal_arm_arm9_smdk2410.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/smdk2410/current/cdl/hal_arm_arm9_smdk2410.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_arm9_smdk2410.cdl
--- arm9/smdk2410/current/cdl/hal_arm_arm9_smdk2410.cdl	29 Jan 2009 17:48:56 -0000	1.3
+++ arm9/smdk2410/current/cdl/hal_arm_arm9_smdk2410.cdl	2 Feb 2009 19:02:55 -0000
@@ -236,7 +236,8 @@ cdl_package CYGPKG_HAL_ARM_ARM9_SMDK2410
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm9 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -247,7 +248,7 @@ cdl_package CYGPKG_HAL_ARM_ARM9_SMDK2410
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "--no-target-default-spec -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm9 --no-target-default-spec -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: at91/at91sam7s/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/at91sam7s/current/ChangeLog,v
retrieving revision 1.23
diff -u -p -r1.23 ChangeLog
--- at91/at91sam7s/current/ChangeLog	29 Jan 2009 17:48:56 -0000	1.23
+++ at91/at91sam7s/current/ChangeLog	2 Feb 2009 19:02:56 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_at91sam7s.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91sam7s.cdl: switch from arm-elf-gcc to
Index: at91/at91sam7s/current/cdl/hal_arm_at91sam7s.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/at91sam7s/current/cdl/hal_arm_at91sam7s.cdl,v
retrieving revision 1.15
diff -u -p -r1.15 hal_arm_at91sam7s.cdl
--- at91/at91sam7s/current/cdl/hal_arm_at91sam7s.cdl	29 Jan 2009 17:48:56 -0000	1.15
+++ at91/at91sam7s/current/cdl/hal_arm_at91sam7s.cdl	2 Feb 2009 19:02:56 -0000
@@ -468,7 +468,8 @@ cdl_package CYGPKG_HAL_ARM_AT91SAM7 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -479,7 +480,7 @@ cdl_package CYGPKG_HAL_ARM_AT91SAM7 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: at91/eb40/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/eb40/current/ChangeLog,v
retrieving revision 1.11
diff -u -p -r1.11 ChangeLog
--- at91/eb40/current/ChangeLog	29 Jan 2009 17:48:57 -0000	1.11
+++ at91/eb40/current/ChangeLog	2 Feb 2009 19:02:57 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_at91_eb40.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91_eb40.cdl: switch from arm-elf-gcc to
Index: at91/eb40/current/cdl/hal_arm_at91_eb40.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/eb40/current/cdl/hal_arm_at91_eb40.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_at91_eb40.cdl
--- at91/eb40/current/cdl/hal_arm_at91_eb40.cdl	29 Jan 2009 17:48:57 -0000	1.6
+++ at91/eb40/current/cdl/hal_arm_at91_eb40.cdl	2 Feb 2009 19:02:57 -0000
@@ -250,7 +250,8 @@ cdl_package CYGPKG_HAL_ARM_AT91_EB40 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -261,7 +262,7 @@ cdl_package CYGPKG_HAL_ARM_AT91_EB40 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: at91/eb40a/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/eb40a/current/ChangeLog,v
retrieving revision 1.10
diff -u -p -r1.10 ChangeLog
--- at91/eb40a/current/ChangeLog	29 Jan 2009 17:48:57 -0000	1.10
+++ at91/eb40a/current/ChangeLog	2 Feb 2009 19:03:00 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_at91_eb40a.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91_eb40a.cdl: switch from arm-elf-gcc to
Index: at91/eb40a/current/cdl/hal_arm_at91_eb40a.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/eb40a/current/cdl/hal_arm_at91_eb40a.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_at91_eb40a.cdl
--- at91/eb40a/current/cdl/hal_arm_at91_eb40a.cdl	29 Jan 2009 17:48:57 -0000	1.6
+++ at91/eb40a/current/cdl/hal_arm_at91_eb40a.cdl	2 Feb 2009 19:03:00 -0000
@@ -248,7 +248,8 @@ cdl_package CYGPKG_HAL_ARM_AT91_EB40A {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -259,7 +260,7 @@ cdl_package CYGPKG_HAL_ARM_AT91_EB40A {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: at91/eb42/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/eb42/current/ChangeLog,v
retrieving revision 1.9
diff -u -p -r1.9 ChangeLog
--- at91/eb42/current/ChangeLog	29 Jan 2009 17:48:57 -0000	1.9
+++ at91/eb42/current/ChangeLog	2 Feb 2009 19:03:00 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_at91_eb42.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91_eb42.cdl: switch from arm-elf-gcc to
Index: at91/eb42/current/cdl/hal_arm_at91_eb42.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/eb42/current/cdl/hal_arm_at91_eb42.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_at91_eb42.cdl
--- at91/eb42/current/cdl/hal_arm_at91_eb42.cdl	29 Jan 2009 17:48:57 -0000	1.6
+++ at91/eb42/current/cdl/hal_arm_at91_eb42.cdl	2 Feb 2009 19:03:00 -0000
@@ -248,7 +248,8 @@ cdl_package CYGPKG_HAL_ARM_AT91_EB42 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -259,7 +260,7 @@ cdl_package CYGPKG_HAL_ARM_AT91_EB42 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: at91/eb55/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/eb55/current/ChangeLog,v
retrieving revision 1.10
diff -u -p -r1.10 ChangeLog
--- at91/eb55/current/ChangeLog	29 Jan 2009 17:48:57 -0000	1.10
+++ at91/eb55/current/ChangeLog	2 Feb 2009 19:03:00 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_at91_eb55.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91_eb55.cdl: switch from arm-elf-gcc to
Index: at91/eb55/current/cdl/hal_arm_at91_eb55.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/eb55/current/cdl/hal_arm_at91_eb55.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_at91_eb55.cdl
--- at91/eb55/current/cdl/hal_arm_at91_eb55.cdl	29 Jan 2009 17:48:57 -0000	1.6
+++ at91/eb55/current/cdl/hal_arm_at91_eb55.cdl	2 Feb 2009 19:03:00 -0000
@@ -248,7 +248,8 @@ cdl_package CYGPKG_HAL_ARM_AT91_EB55 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -259,7 +260,7 @@ cdl_package CYGPKG_HAL_ARM_AT91_EB55 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: at91/jtst/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/jtst/current/ChangeLog,v
retrieving revision 1.6
diff -u -p -r1.6 ChangeLog
--- at91/jtst/current/ChangeLog	29 Jan 2009 17:48:57 -0000	1.6
+++ at91/jtst/current/ChangeLog	2 Feb 2009 19:03:00 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_at91_jtst.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91_jtst.cdl: switch from arm-elf-gcc to
Index: at91/jtst/current/cdl/hal_arm_at91_jtst.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/jtst/current/cdl/hal_arm_at91_jtst.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_at91_jtst.cdl
--- at91/jtst/current/cdl/hal_arm_at91_jtst.cdl	29 Jan 2009 17:48:57 -0000	1.3
+++ at91/jtst/current/cdl/hal_arm_at91_jtst.cdl	2 Feb 2009 19:03:00 -0000
@@ -248,7 +248,8 @@ cdl_component CYGNUM_HAL_RTC_CONSTANTS {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used 
                 to compile all packages by default. Individual packages may 
@@ -259,7 +260,7 @@ cdl_component CYGNUM_HAL_RTC_CONSTANTS {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: at91/phycore/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/phycore/current/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- at91/phycore/current/ChangeLog	29 Jan 2009 17:48:58 -0000	1.3
+++ at91/phycore/current/ChangeLog	2 Feb 2009 19:03:00 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_at91_phycore.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91_phycore.cdl: switch from arm-elf-gcc to
Index: at91/phycore/current/cdl/hal_arm_at91_phycore.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/phycore/current/cdl/hal_arm_at91_phycore.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_at91_phycore.cdl
--- at91/phycore/current/cdl/hal_arm_at91_phycore.cdl	29 Jan 2009 17:48:58 -0000	1.3
+++ at91/phycore/current/cdl/hal_arm_at91_phycore.cdl	2 Feb 2009 19:03:00 -0000
@@ -249,7 +249,8 @@ cdl_package CYGPKG_HAL_ARM_AT91_PHYCORE 
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -260,7 +261,7 @@ cdl_package CYGPKG_HAL_ARM_AT91_PHYCORE 
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: cma230/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/cma230/current/ChangeLog,v
retrieving revision 1.27
diff -u -p -r1.27 ChangeLog
--- cma230/current/ChangeLog	29 Jan 2009 17:48:58 -0000	1.27
+++ cma230/current/ChangeLog	2 Feb 2009 19:03:01 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_cma230.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_cma230.cdl: switch from arm-elf-gcc to
Index: cma230/current/cdl/hal_arm_cma230.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/cma230/current/cdl/hal_arm_cma230.cdl,v
retrieving revision 1.14
diff -u -p -r1.14 hal_arm_cma230.cdl
--- cma230/current/cdl/hal_arm_cma230.cdl	29 Jan 2009 17:48:58 -0000	1.14
+++ cma230/current/cdl/hal_arm_cma230.cdl	2 Feb 2009 19:03:01 -0000
@@ -193,9 +193,8 @@ cdl_package CYGPKG_HAL_ARM_CMA230 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "-mcpu=arm7tdmi ") .
-		            (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") .
-		            "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                           "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -228,9 +227,7 @@ cdl_package CYGPKG_HAL_ARM_CMA230 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "-mcpu=arm7tdmi ") .
-		            (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") .
-                            "-g -nostdlib -Wl,--gc-sections -Wl,-static" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -g -nostdlib -Wl,--gc-sections -Wl,-static" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: e7t/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/e7t/current/ChangeLog,v
retrieving revision 1.18
diff -u -p -r1.18 ChangeLog
--- e7t/current/ChangeLog	29 Jan 2009 17:48:58 -0000	1.18
+++ e7t/current/ChangeLog	2 Feb 2009 19:03:01 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_e7t.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_e7t.cdl: switch from arm-elf-gcc to
Index: e7t/current/cdl/hal_arm_e7t.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/e7t/current/cdl/hal_arm_e7t.cdl,v
retrieving revision 1.9
diff -u -p -r1.9 hal_arm_e7t.cdl
--- e7t/current/cdl/hal_arm_e7t.cdl	29 Jan 2009 17:48:58 -0000	1.9
+++ e7t/current/cdl/hal_arm_e7t.cdl	2 Feb 2009 19:03:01 -0000
@@ -176,7 +176,8 @@ cdl_package CYGPKG_HAL_ARM_E7T {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -187,7 +188,7 @@ cdl_package CYGPKG_HAL_ARM_E7T {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: ebsa285/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/ebsa285/current/ChangeLog,v
retrieving revision 1.32
diff -u -p -r1.32 ChangeLog
--- ebsa285/current/ChangeLog	29 Jan 2009 17:48:59 -0000	1.32
+++ ebsa285/current/ChangeLog	2 Feb 2009 19:03:03 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_ebsa285.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_ebsa285.cdl: switch from arm-elf-gcc to
Index: ebsa285/current/cdl/hal_arm_ebsa285.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/ebsa285/current/cdl/hal_arm_ebsa285.cdl,v
retrieving revision 1.20
diff -u -p -r1.20 hal_arm_ebsa285.cdl
--- ebsa285/current/cdl/hal_arm_ebsa285.cdl	29 Jan 2009 17:48:59 -0000	1.20
+++ ebsa285/current/cdl/hal_arm_ebsa285.cdl	2 Feb 2009 19:03:04 -0000
@@ -218,7 +218,8 @@ cdl_package CYGPKG_HAL_ARM_EBSA285 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -229,7 +230,7 @@ cdl_package CYGPKG_HAL_ARM_EBSA285 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: edb7xxx/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/edb7xxx/current/ChangeLog,v
retrieving revision 1.50
diff -u -p -r1.50 ChangeLog
--- edb7xxx/current/ChangeLog	29 Jan 2009 17:48:59 -0000	1.50
+++ edb7xxx/current/ChangeLog	2 Feb 2009 19:03:05 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_edb7xxx.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_edb7xxx.cdl: switch from arm-elf-gcc to
Index: edb7xxx/current/cdl/hal_arm_edb7xxx.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/edb7xxx/current/cdl/hal_arm_edb7xxx.cdl,v
retrieving revision 1.22
diff -u -p -r1.22 hal_arm_edb7xxx.cdl
--- edb7xxx/current/cdl/hal_arm_edb7xxx.cdl	29 Jan 2009 17:48:59 -0000	1.22
+++ edb7xxx/current/cdl/hal_arm_edb7xxx.cdl	2 Feb 2009 19:03:06 -0000
@@ -334,8 +334,10 @@ CL-PS7111 and EP7xxx based development b
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? "-mcpu=arm710c -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" : \
-                                                                          "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            (CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? "-mcpu=arm710c" : "-mcpu=arm7tdmi") .
+                            " -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions "
+            }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -346,7 +348,9 @@ CL-PS7111 and EP7xxx based development b
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? "-mcpu=arm710c -Wl,--gc-sections -Wl,-static -g -nostdlib" : "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib"}
+            default_value { CYGBLD_ARCH_LDFLAGS .
+                           (CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? "-mcpu=arm710c" : "-mcpu=arm7tdmi" ) .
+                           " -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: gps4020/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/gps4020/current/ChangeLog,v
retrieving revision 1.5
diff -u -p -r1.5 ChangeLog
--- gps4020/current/ChangeLog	29 Jan 2009 17:49:00 -0000	1.5
+++ gps4020/current/ChangeLog	2 Feb 2009 19:03:06 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_gps4020.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_gps4020.cdl: switch from arm-elf-gcc to
Index: gps4020/current/cdl/hal_arm_gps4020.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/gps4020/current/cdl/hal_arm_gps4020.cdl,v
retrieving revision 1.4
diff -u -p -r1.4 hal_arm_gps4020.cdl
--- gps4020/current/cdl/hal_arm_gps4020.cdl	29 Jan 2009 17:49:00 -0000	1.4
+++ gps4020/current/cdl/hal_arm_gps4020.cdl	2 Feb 2009 19:03:06 -0000
@@ -165,7 +165,8 @@ cdl_package CYGPKG_HAL_ARM_GPS4020 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -176,7 +177,7 @@ cdl_package CYGPKG_HAL_ARM_GPS4020 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: integrator/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/integrator/current/ChangeLog,v
retrieving revision 1.11
diff -u -p -r1.11 ChangeLog
--- integrator/current/ChangeLog	29 Jan 2009 17:49:00 -0000	1.11
+++ integrator/current/ChangeLog	2 Feb 2009 19:03:06 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_integrator.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_integrator.cdl: switch from arm-elf-gcc to
Index: integrator/current/cdl/hal_arm_integrator.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/integrator/current/cdl/hal_arm_integrator.cdl,v
retrieving revision 1.9
diff -u -p -r1.9 hal_arm_integrator.cdl
--- integrator/current/cdl/hal_arm_integrator.cdl	29 Jan 2009 17:49:00 -0000	1.9
+++ integrator/current/cdl/hal_arm_integrator.cdl	2 Feb 2009 19:03:07 -0000
@@ -228,10 +228,10 @@ cdl_package CYGPKG_HAL_ARM_INTEGRATOR {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { 
-		CYGPKG_HAL_ARM_INTEGRATOR_ARM9 ? "-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-		 "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -fno-schedule-insns -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority"
-	     }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                           (CYGPKG_HAL_ARM_INTEGRATOR_ARM9 ? "-mcpu=arm9" : "-mcpu=arm7tdmi  -fno-schedule-insns") .
+                           " -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions "
+            }
 		 
             description   "
                 This option controls the global compiler flags which are used to
@@ -243,9 +243,9 @@ cdl_package CYGPKG_HAL_ARM_INTEGRATOR {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value {
-		CYGPKG_HAL_ARM_INTEGRATOR_ARM9 ? "-Wl,-Map,map -mcpu=arm9 -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-		"-Wl,-Map,map -mcpu=arm7tdmi -g -nostdlib -Wl,--gc-sections -Wl,-static" }
+            default_value { CYGBLD_ARCH_LDFLAGS .
+                            (CYGPKG_HAL_ARM_INTEGRATOR_ARM9 ? "-mcpu=arm9" : "-mcpu=arm7tdmi") .
+                            " -Wl,-Map,map -g -nostdlib -Wl,--gc-sections -Wl,-static" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: lpc24xx/ea2468/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc24xx/ea2468/current/ChangeLog,v
retrieving revision 1.7
diff -u -p -r1.7 ChangeLog
--- lpc24xx/ea2468/current/ChangeLog	29 Jan 2009 17:49:00 -0000	1.7
+++ lpc24xx/ea2468/current/ChangeLog	2 Feb 2009 19:03:07 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_lpc24xx_ea2468.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_lpc24xx_ea2468.cdl: switch from arm-elf-gcc to
Index: lpc24xx/ea2468/current/cdl/hal_arm_lpc24xx_ea2468.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc24xx/ea2468/current/cdl/hal_arm_lpc24xx_ea2468.cdl,v
retrieving revision 1.7
diff -u -p -r1.7 hal_arm_lpc24xx_ea2468.cdl
--- lpc24xx/ea2468/current/cdl/hal_arm_lpc24xx_ea2468.cdl	29 Jan 2009 17:49:00 -0000	1.7
+++ lpc24xx/ea2468/current/cdl/hal_arm_lpc24xx_ea2468.cdl	2 Feb 2009 19:03:08 -0000
@@ -205,7 +205,8 @@ cdl_package CYGPKG_HAL_ARM_LPC24XX_EA246
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by default. Individual
@@ -217,7 +218,7 @@ cdl_package CYGPKG_HAL_ARM_LPC24XX_EA246
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global
Index: lpc2xxx/lpcmt/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/lpcmt/current/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- lpc2xxx/lpcmt/current/ChangeLog	29 Jan 2009 17:49:01 -0000	1.3
+++ lpc2xxx/lpcmt/current/ChangeLog	2 Feb 2009 19:03:08 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_lpc2xxx_lpcmt.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_lpc2xxx_lpcmt.cdl: switch from arm-elf-gcc to
Index: lpc2xxx/lpcmt/current/cdl/hal_arm_lpc2xxx_lpcmt.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/lpcmt/current/cdl/hal_arm_lpc2xxx_lpcmt.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_lpc2xxx_lpcmt.cdl
--- lpc2xxx/lpcmt/current/cdl/hal_arm_lpc2xxx_lpcmt.cdl	29 Jan 2009 17:49:01 -0000	1.3
+++ lpc2xxx/lpcmt/current/cdl/hal_arm_lpc2xxx_lpcmt.cdl	2 Feb 2009 19:03:08 -0000
@@ -167,7 +167,8 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_LPCMT
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -178,7 +179,7 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_LPCMT
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: lpc2xxx/mcb2100/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/mcb2100/current/ChangeLog,v
retrieving revision 1.6
diff -u -p -r1.6 ChangeLog
--- lpc2xxx/mcb2100/current/ChangeLog	29 Jan 2009 17:49:01 -0000	1.6
+++ lpc2xxx/mcb2100/current/ChangeLog	2 Feb 2009 19:03:08 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_lpc2xxx_mcb2100.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_lpc2xxx_mcb2100.cdl: switch from arm-elf-gcc to
Index: lpc2xxx/mcb2100/current/cdl/hal_arm_lpc2xxx_mcb2100.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/mcb2100/current/cdl/hal_arm_lpc2xxx_mcb2100.cdl,v
retrieving revision 1.4
diff -u -p -r1.4 hal_arm_lpc2xxx_mcb2100.cdl
--- lpc2xxx/mcb2100/current/cdl/hal_arm_lpc2xxx_mcb2100.cdl	29 Jan 2009 17:49:01 -0000	1.4
+++ lpc2xxx/mcb2100/current/cdl/hal_arm_lpc2xxx_mcb2100.cdl	2 Feb 2009 19:03:09 -0000
@@ -171,7 +171,8 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_MCB21
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -182,7 +183,7 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_MCB21
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: lpc2xxx/olpce2294/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/olpce2294/current/ChangeLog,v
retrieving revision 1.4
diff -u -p -r1.4 ChangeLog
--- lpc2xxx/olpce2294/current/ChangeLog	29 Jan 2009 17:49:01 -0000	1.4
+++ lpc2xxx/olpce2294/current/ChangeLog	2 Feb 2009 19:03:09 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_lpc2xxx_olpce2294.cdl: update compiler flags for gcc 4.x
+
 2008-12-03  Sergei Gavrikov <sergei.gavrikov@gmail.com>
 
 	* misc/redboot_*.ecm: Rebuilt since target uses flash_olpcx2294_v2
Index: lpc2xxx/olpce2294/current/cdl/hal_arm_lpc2xxx_olpce2294.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/olpce2294/current/cdl/hal_arm_lpc2xxx_olpce2294.cdl,v
retrieving revision 1.2
diff -u -p -r1.2 hal_arm_lpc2xxx_olpce2294.cdl
--- lpc2xxx/olpce2294/current/cdl/hal_arm_lpc2xxx_olpce2294.cdl	29 Jan 2009 17:49:01 -0000	1.2
+++ lpc2xxx/olpce2294/current/cdl/hal_arm_lpc2xxx_olpce2294.cdl	2 Feb 2009 19:03:10 -0000
@@ -181,7 +181,8 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCE
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by default. Individual
@@ -193,7 +194,7 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCE
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global
Index: lpc2xxx/olpch2294/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/olpch2294/current/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- lpc2xxx/olpch2294/current/ChangeLog	29 Jan 2009 17:49:01 -0000	1.3
+++ lpc2xxx/olpch2294/current/ChangeLog	2 Feb 2009 19:03:10 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_lpc2xxx_olpch2294.cdl: update compiler flags for gcc 4.x
+
 2008-12-03  Sergei Gavrikov <sergei.gavrikov@gmail.com>
 
 	* misc/redboot_*.ecm: Rebuilt since target uses flash_olpcx2294_v2
Index: lpc2xxx/olpch2294/current/cdl/hal_arm_lpc2xxx_olpch2294.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/olpch2294/current/cdl/hal_arm_lpc2xxx_olpch2294.cdl,v
retrieving revision 1.2
diff -u -p -r1.2 hal_arm_lpc2xxx_olpch2294.cdl
--- lpc2xxx/olpch2294/current/cdl/hal_arm_lpc2xxx_olpch2294.cdl	29 Jan 2009 17:49:01 -0000	1.2
+++ lpc2xxx/olpch2294/current/cdl/hal_arm_lpc2xxx_olpch2294.cdl	2 Feb 2009 19:03:10 -0000
@@ -174,7 +174,8 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCH
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by default. Individual
@@ -186,7 +187,7 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCH
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global
Index: lpc2xxx/olpcl2294/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/olpcl2294/current/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- lpc2xxx/olpcl2294/current/ChangeLog	29 Jan 2009 17:49:02 -0000	1.3
+++ lpc2xxx/olpcl2294/current/ChangeLog	2 Feb 2009 19:03:10 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_lpc2xxx_olpcl2294.cdl: update compiler flags for gcc 4.x
+
 2008-12-03  Sergei Gavrikov <sergei.gavrikov@gmail.com>
 
 	* misc/redboot_*.ecm: Rebuilt since target uses flash_olpcx2294_v2
Index: lpc2xxx/olpcl2294/current/cdl/hal_arm_lpc2xxx_olpcl2294.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/olpcl2294/current/cdl/hal_arm_lpc2xxx_olpcl2294.cdl,v
retrieving revision 1.2
diff -u -p -r1.2 hal_arm_lpc2xxx_olpcl2294.cdl
--- lpc2xxx/olpcl2294/current/cdl/hal_arm_lpc2xxx_olpcl2294.cdl	29 Jan 2009 17:49:02 -0000	1.2
+++ lpc2xxx/olpcl2294/current/cdl/hal_arm_lpc2xxx_olpcl2294.cdl	2 Feb 2009 19:03:11 -0000
@@ -175,7 +175,8 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCL
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by default. Individual
@@ -187,7 +188,7 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCL
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global
Index: lpc2xxx/p2106/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/p2106/current/ChangeLog,v
retrieving revision 1.5
diff -u -p -r1.5 ChangeLog
--- lpc2xxx/p2106/current/ChangeLog	29 Jan 2009 17:49:02 -0000	1.5
+++ lpc2xxx/p2106/current/ChangeLog	2 Feb 2009 19:03:11 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_lpc2xxx_p2106.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_lpc2xxx_p2106.cdl: switch from arm-elf-gcc to
Index: lpc2xxx/p2106/current/cdl/hal_arm_lpc2xxx_p2106.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/p2106/current/cdl/hal_arm_lpc2xxx_p2106.cdl,v
retrieving revision 1.5
diff -u -p -r1.5 hal_arm_lpc2xxx_p2106.cdl
--- lpc2xxx/p2106/current/cdl/hal_arm_lpc2xxx_p2106.cdl	29 Jan 2009 17:49:02 -0000	1.5
+++ lpc2xxx/p2106/current/cdl/hal_arm_lpc2xxx_p2106.cdl	2 Feb 2009 19:03:11 -0000
@@ -167,7 +167,8 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_P2106
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -178,7 +179,7 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_P2106
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: lpc2xxx/phycore229x/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/phycore229x/current/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- lpc2xxx/phycore229x/current/ChangeLog	29 Jan 2009 17:49:02 -0000	1.3
+++ lpc2xxx/phycore229x/current/ChangeLog	2 Feb 2009 19:03:11 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_lpc2xxx_phycore229x.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_lpc2xxx_phycore229x.cdl: switch from arm-elf-gcc to
Index: lpc2xxx/phycore229x/current/cdl/hal_arm_lpc2xxx_phycore229x.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/phycore229x/current/cdl/hal_arm_lpc2xxx_phycore229x.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_lpc2xxx_phycore229x.cdl
--- lpc2xxx/phycore229x/current/cdl/hal_arm_lpc2xxx_phycore229x.cdl	29 Jan 2009 17:49:02 -0000	1.3
+++ lpc2xxx/phycore229x/current/cdl/hal_arm_lpc2xxx_phycore229x.cdl	2 Feb 2009 19:03:12 -0000
@@ -309,7 +309,8 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_PHYCO
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by default. Individual
@@ -321,7 +322,7 @@ cdl_package CYGPKG_HAL_ARM_LPC2XXX_PHYCO
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global
Index: mac7100/mac7100evb/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/mac7100/mac7100evb/current/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- mac7100/mac7100evb/current/ChangeLog	29 Jan 2009 17:49:02 -0000	1.3
+++ mac7100/mac7100evb/current/ChangeLog	2 Feb 2009 19:03:12 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_mac7100_mac7100evb.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_mac7100_mac7100evb.cdl: switch from arm-elf-gcc to
Index: mac7100/mac7100evb/current/cdl/hal_arm_mac7100_mac7100evb.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/mac7100/mac7100evb/current/cdl/hal_arm_mac7100_mac7100evb.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_mac7100_mac7100evb.cdl
--- mac7100/mac7100evb/current/cdl/hal_arm_mac7100_mac7100evb.cdl	29 Jan 2009 17:49:03 -0000	1.3
+++ mac7100/mac7100evb/current/cdl/hal_arm_mac7100_mac7100evb.cdl	2 Feb 2009 19:03:15 -0000
@@ -327,7 +327,8 @@ cdl_package CYGPKG_HAL_ARM_MAC7100_MAC71
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -mbig-endian -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -gdwarf-2 -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -gdwarf-2 -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
@@ -340,7 +341,7 @@ cdl_package CYGPKG_HAL_ARM_MAC7100_MAC71
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -mbig-endian -Wl,--gc-sections -Wl,-static -gdwarf-2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -gdwarf-2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: mac7100/mace1/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/mac7100/mace1/current/ChangeLog,v
retrieving revision 1.5
diff -u -p -r1.5 ChangeLog
--- mac7100/mace1/current/ChangeLog	29 Jan 2009 17:49:03 -0000	1.5
+++ mac7100/mace1/current/ChangeLog	2 Feb 2009 19:03:15 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_mac7100_mace1.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_mac7100_mace1.cdl: switch from arm-elf-gcc to
Index: mac7100/mace1/current/cdl/hal_arm_mac7100_mace1.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/mac7100/mace1/current/cdl/hal_arm_mac7100_mace1.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_mac7100_mace1.cdl
--- mac7100/mace1/current/cdl/hal_arm_mac7100_mace1.cdl	29 Jan 2009 17:49:03 -0000	1.3
+++ mac7100/mace1/current/cdl/hal_arm_mac7100_mace1.cdl	2 Feb 2009 19:03:16 -0000
@@ -327,7 +327,8 @@ cdl_package CYGPKG_HAL_ARM_MAC7100_MACE1
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -mbig-endian -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -gdwarf-2 -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=arm7tdmi -gdwarf-2 -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
@@ -340,7 +341,7 @@ cdl_package CYGPKG_HAL_ARM_MAC7100_MACE1
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -mbig-endian -Wl,--gc-sections -Wl,-static -gdwarf-2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -gdwarf-2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: pid/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/pid/current/ChangeLog,v
retrieving revision 1.39
diff -u -p -r1.39 ChangeLog
--- pid/current/ChangeLog	29 Jan 2009 17:49:03 -0000	1.39
+++ pid/current/ChangeLog	2 Feb 2009 19:03:16 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_pid.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_pid.cdl: switch from arm-elf-gcc to
Index: pid/current/cdl/hal_arm_pid.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/pid/current/cdl/hal_arm_pid.cdl,v
retrieving revision 1.18
diff -u -p -r1.18 hal_arm_pid.cdl
--- pid/current/cdl/hal_arm_pid.cdl	29 Jan 2009 17:49:03 -0000	1.18
+++ pid/current/cdl/hal_arm_pid.cdl	2 Feb 2009 19:03:16 -0000
@@ -227,10 +227,9 @@ cdl_package CYGPKG_HAL_ARM_PID {
             display "Global compiler flags"
             flavor  data
             no_define
-	    default_value { (CYGHWR_THUMB ? "-mthumb " : ((CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") ? "-mcpu=arm9 " : "-mcpu=arm7tdmi ")) .
-		            (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") .
-		            (CYGHWR_HAL_ARM_BIGENDIAN ? "-mbig-endian " : "") .
-		            "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+	    default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                        (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9" ? "-mcpu=arm9 " : "-mcpu=arm7tdmi ") .
+       		            " -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by default.
@@ -242,10 +241,8 @@ cdl_package CYGPKG_HAL_ARM_PID {
             display "Global linker flags"
             flavor  data
             no_define
-	    default_value { (CYGHWR_THUMB ? "-mthumb " : ((CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") ? "-mcpu=arm9 " : "-mcpu=arm7tdmi ")) .
-		            (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") .
-		            (CYGHWR_HAL_ARM_BIGENDIAN ? "-mbig-endian " : "") .
-		            "-g -nostdlib -Wl,--gc-sections -Wl,-static" }
+	    default_value { CYGBLD_ARCH_LDFLAGS . (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9" ? "-mcpu=arm9 " : "-mcpu=arm7tdmi ") .
+		                "-g -nostdlib -Wl,--gc-sections -Wl,-static" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: sa11x0/assabet/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/assabet/current/ChangeLog,v
retrieving revision 1.29
diff -u -p -r1.29 ChangeLog
--- sa11x0/assabet/current/ChangeLog	29 Jan 2009 17:49:03 -0000	1.29
+++ sa11x0/assabet/current/ChangeLog	2 Feb 2009 19:03:16 -0000
@@ -1,3 +1,8 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_sa11x0_assabet.cdl: update compiler flags for
+	recent gcc
+
 2003-09-21  Gary Thomas  <gary@mlbassoc.com>
 
 	* misc/redboot_RAM.ecm: 
Index: sa11x0/assabet/current/cdl/hal_arm_sa11x0_assabet.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/assabet/current/cdl/hal_arm_sa11x0_assabet.cdl,v
retrieving revision 1.19
diff -u -p -r1.19 hal_arm_sa11x0_assabet.cdl
--- sa11x0/assabet/current/cdl/hal_arm_sa11x0_assabet.cdl	29 Jan 2009 17:49:04 -0000	1.19
+++ sa11x0/assabet/current/cdl/hal_arm_sa11x0_assabet.cdl	2 Feb 2009 19:03:16 -0000
@@ -176,7 +176,8 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_ASSABE
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -187,7 +188,7 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_ASSABE
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: sa11x0/brutus/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/brutus/current/ChangeLog,v
retrieving revision 1.19
diff -u -p -r1.19 ChangeLog
--- sa11x0/brutus/current/ChangeLog	29 Jan 2009 17:49:04 -0000	1.19
+++ sa11x0/brutus/current/ChangeLog	2 Feb 2009 19:03:16 -0000
@@ -1,3 +1,8 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_sa11x0_brutus.cdl: update compiler flags for
+	recent gcc
+
 2003-02-13  Patrick Doyle  <wpd@delcomsys.com>
 	* src/brutus_misc.c: Replaced explicit prototype of memset with
 	#include <string.h>.
Index: sa11x0/brutus/current/cdl/hal_arm_sa11x0_brutus.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/brutus/current/cdl/hal_arm_sa11x0_brutus.cdl,v
retrieving revision 1.15
diff -u -p -r1.15 hal_arm_sa11x0_brutus.cdl
--- sa11x0/brutus/current/cdl/hal_arm_sa11x0_brutus.cdl	29 Jan 2009 17:49:04 -0000	1.15
+++ sa11x0/brutus/current/cdl/hal_arm_sa11x0_brutus.cdl	2 Feb 2009 19:03:17 -0000
@@ -169,7 +169,8 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_BRUTUS
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -180,7 +181,7 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_BRUTUS
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: sa11x0/cerf/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/cerf/current/ChangeLog,v
retrieving revision 1.9
diff -u -p -r1.9 ChangeLog
--- sa11x0/cerf/current/ChangeLog	29 Jan 2009 17:49:05 -0000	1.9
+++ sa11x0/cerf/current/ChangeLog	2 Feb 2009 19:03:17 -0000
@@ -1,3 +1,8 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_sa11x0_cerf.cdl: update compiler flags for
+ 	recent gcc
+
 2003-11-01  Gary Thomas  <gary@mlbassoc.com>
 
 	* cdl/hal_arm_sa11x0_cerf.cdl: Make port 1 (uart3) be default
Index: sa11x0/cerf/current/cdl/hal_arm_sa11x0_cerf.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/cerf/current/cdl/hal_arm_sa11x0_cerf.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_sa11x0_cerf.cdl
--- sa11x0/cerf/current/cdl/hal_arm_sa11x0_cerf.cdl	29 Jan 2009 17:49:05 -0000	1.6
+++ sa11x0/cerf/current/cdl/hal_arm_sa11x0_cerf.cdl	2 Feb 2009 19:03:17 -0000
@@ -185,7 +185,8 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_CERF {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -196,7 +197,7 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_CERF {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: sa11x0/cerfpda/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/cerfpda/current/ChangeLog,v
retrieving revision 1.7
diff -u -p -r1.7 ChangeLog
--- sa11x0/cerfpda/current/ChangeLog	29 Jan 2009 17:49:05 -0000	1.7
+++ sa11x0/cerfpda/current/ChangeLog	2 Feb 2009 19:03:17 -0000
@@ -1,3 +1,8 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_sa11x0_cerfpda.cdl: update compiler flags for
+          recent gcc
+
 2003-11-19  Jani Monoses  <jani@iv.ro>
 	
 	* src/cerfpda_misc.c: Map DRAM as cacheable, it increases performance.
Index: sa11x0/cerfpda/current/cdl/hal_arm_sa11x0_cerfpda.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/cerfpda/current/cdl/hal_arm_sa11x0_cerfpda.cdl,v
retrieving revision 1.5
diff -u -p -r1.5 hal_arm_sa11x0_cerfpda.cdl
--- sa11x0/cerfpda/current/cdl/hal_arm_sa11x0_cerfpda.cdl	29 Jan 2009 17:49:05 -0000	1.5
+++ sa11x0/cerfpda/current/cdl/hal_arm_sa11x0_cerfpda.cdl	2 Feb 2009 19:03:18 -0000
@@ -184,7 +184,8 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_CERFPD
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -195,7 +196,7 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_CERFPD
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: sa11x0/flexanet/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/flexanet/current/ChangeLog,v
retrieving revision 1.9
diff -u -p -r1.9 ChangeLog
--- sa11x0/flexanet/current/ChangeLog	29 Jan 2009 17:49:05 -0000	1.9
+++ sa11x0/flexanet/current/ChangeLog	2 Feb 2009 19:03:18 -0000
@@ -1,3 +1,8 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_sa11x0_flexanet.cdl: update compiler flags for
+	recent gcc
+
 2003-02-13  Patrick Doyle  <wpd@delcomsys.com>
 	* src/flexanet_misc.c: Replaced explicit prototype of memset with
 	#include <string.h>.
Index: sa11x0/flexanet/current/cdl/hal_arm_sa11x0_flexanet.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/flexanet/current/cdl/hal_arm_sa11x0_flexanet.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_sa11x0_flexanet.cdl
--- sa11x0/flexanet/current/cdl/hal_arm_sa11x0_flexanet.cdl	29 Jan 2009 17:49:05 -0000	1.6
+++ sa11x0/flexanet/current/cdl/hal_arm_sa11x0_flexanet.cdl	2 Feb 2009 19:03:18 -0000
@@ -177,7 +177,8 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_FLEXAN
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -188,7 +189,7 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_FLEXAN
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: sa11x0/ipaq/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/ipaq/current/ChangeLog,v
retrieving revision 1.19
diff -u -p -r1.19 ChangeLog
--- sa11x0/ipaq/current/ChangeLog	29 Jan 2009 17:49:05 -0000	1.19
+++ sa11x0/ipaq/current/ChangeLog	2 Feb 2009 19:03:19 -0000
@@ -1,3 +1,8 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_sa11x0_ipaq.cdl: update compiler flags for
+          recent gcc
+
 2003-09-21  Gary Thomas  <gary@mlbassoc.com>
 
 	* misc/redboot_RAM.ecm: 
Index: sa11x0/ipaq/current/cdl/hal_arm_sa11x0_ipaq.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/ipaq/current/cdl/hal_arm_sa11x0_ipaq.cdl,v
retrieving revision 1.10
diff -u -p -r1.10 hal_arm_sa11x0_ipaq.cdl
--- sa11x0/ipaq/current/cdl/hal_arm_sa11x0_ipaq.cdl	29 Jan 2009 17:49:05 -0000	1.10
+++ sa11x0/ipaq/current/cdl/hal_arm_sa11x0_ipaq.cdl	2 Feb 2009 19:03:19 -0000
@@ -215,7 +215,8 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_IPAQ {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -226,7 +227,7 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_IPAQ {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: sa11x0/nano/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/nano/current/ChangeLog,v
retrieving revision 1.12
diff -u -p -r1.12 ChangeLog
--- sa11x0/nano/current/ChangeLog	29 Jan 2009 17:49:06 -0000	1.12
+++ sa11x0/nano/current/ChangeLog	2 Feb 2009 19:03:20 -0000
@@ -1,3 +1,8 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_sa11x0_nano.cdl: update compiler flags for
+          recent gcc
+
 2003-09-21  Gary Thomas  <gary@mlbassoc.com>
 
 	* misc/redboot_POST.ecm: 
Index: sa11x0/nano/current/cdl/hal_arm_sa11x0_nano.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/nano/current/cdl/hal_arm_sa11x0_nano.cdl,v
retrieving revision 1.7
diff -u -p -r1.7 hal_arm_sa11x0_nano.cdl
--- sa11x0/nano/current/cdl/hal_arm_sa11x0_nano.cdl	29 Jan 2009 17:49:06 -0000	1.7
+++ sa11x0/nano/current/cdl/hal_arm_sa11x0_nano.cdl	2 Feb 2009 19:03:20 -0000
@@ -205,7 +205,8 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_NANO {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -216,7 +217,7 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_NANO {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: sa11x0/sa1100mm/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/sa1100mm/current/ChangeLog,v
retrieving revision 1.16
diff -u -p -r1.16 ChangeLog
--- sa11x0/sa1100mm/current/ChangeLog	29 Jan 2009 17:49:06 -0000	1.16
+++ sa11x0/sa1100mm/current/ChangeLog	2 Feb 2009 19:03:20 -0000
@@ -1,3 +1,8 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_sa11x0_sa1100mm.cdl: update compiler flags for
+          recent gcc
+
 2003-02-13  Patrick Doyle  <wpd@delcomsys.com>
 	* src/sa1100mm_misc.c: Replaced explicit prototype of memset with
 	#include <string.h>.
Index: sa11x0/sa1100mm/current/cdl/hal_arm_sa11x0_sa1100mm.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/sa11x0/sa1100mm/current/cdl/hal_arm_sa11x0_sa1100mm.cdl,v
retrieving revision 1.12
diff -u -p -r1.12 hal_arm_sa11x0_sa1100mm.cdl
--- sa11x0/sa1100mm/current/cdl/hal_arm_sa11x0_sa1100mm.cdl	29 Jan 2009 17:49:06 -0000	1.12
+++ sa11x0/sa1100mm/current/cdl/hal_arm_sa11x0_sa1100mm.cdl	2 Feb 2009 19:03:21 -0000
@@ -176,7 +176,8 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_SA1100
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -187,7 +188,7 @@ cdl_package CYGPKG_HAL_ARM_SA11X0_SA1100
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: snds/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/snds/current/ChangeLog,v
retrieving revision 1.12
diff -u -p -r1.12 ChangeLog
--- snds/current/ChangeLog	29 Jan 2009 17:49:06 -0000	1.12
+++ snds/current/ChangeLog	2 Feb 2009 19:03:22 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_snds.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_snds.cdl: switch from arm-elf-gcc to
Index: snds/current/cdl/hal_arm_snds.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/snds/current/cdl/hal_arm_snds.cdl,v
retrieving revision 1.5
diff -u -p -r1.5 hal_arm_snds.cdl
--- snds/current/cdl/hal_arm_snds.cdl	29 Jan 2009 17:49:07 -0000	1.5
+++ snds/current/cdl/hal_arm_snds.cdl	2 Feb 2009 19:03:22 -0000
@@ -205,19 +205,9 @@ cdl_package CYGPKG_HAL_ARM_SNDS {
             display "Global compiler flags"
             flavor  data
             no_define
-            if {1} {
-                 default_value { (CYGHWR_THUMB && CYGHWR_HAL_ARM_BIGENDIAN) ? "-mthumb-interwork -mbig-endian -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-                   CYGHWR_THUMB ? "-mthumb-interwork -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") && CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm9 -mbig-endian -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") && ! CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY != "ARM9") && CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm7tdmi -mbig-endian -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-                   "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
-            } else { 
-                default_value { (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") && CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm9 -mbig-endian -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") && ! CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY != "ARM9") && CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm7tdmi -mbig-endian -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" :
-                   "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
-            }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9" ? "-mcpu=arm9" : "-mcpu=arm7tdmi") .
+                " -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -228,19 +218,9 @@ cdl_package CYGPKG_HAL_ARM_SNDS {
             display "Global linker flags"
             flavor  data
             no_define
-            if {1} {
-                 default_value { (CYGHWR_THUMB && CYGHWR_HAL_ARM_BIGENDIAN) ? "-mthumb-interwork -mbig-endian -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-                   CYGHWR_THUMB ? "-mthumb-interwork -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") && CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm9 -mbig-endian -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") && ! CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm9 -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY != "ARM9") && CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm7tdmi -mbig-endian -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-                   "-mcpu=arm7tdmi -g -nostdlib -Wl,--gc-sections -Wl,-static" }
-            } else { 
-                default_value { (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") && CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm9 -mbig-endian -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9") && ! CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm9 -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-                   (CYGHWR_HAL_ARM_CPU_FAMILY != "ARM9") && CYGHWR_HAL_ARM_BIGENDIAN ? "-mcpu=arm7tdmi -mbig-endian -g -nostdlib -Wl,--gc-sections -Wl,-static" :
-                   "-mcpu=arm7tdmi -g -nostdlib -Wl,--gc-sections -Wl,-static" }
-            }
+            default_value { CYGBLD_ARCH_LDFLAGS .
+                            (CYGHWR_HAL_ARM_CPU_FAMILY == "ARM9" ? "-mcpu=arm9" : "-mcpu=arm7tdmi") .
+                            " -g -nostdlib -Wl,--gc-sections -Wl,-static" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: xscale/grg/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/grg/current/ChangeLog,v
retrieving revision 1.11
diff -u -p -r1.11 ChangeLog
--- xscale/grg/current/ChangeLog	29 Jan 2009 17:49:07 -0000	1.11
+++ xscale/grg/current/ChangeLog	2 Feb 2009 19:03:22 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_grg.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_grg.cdl: switch from arm-elf-gcc to
Index: xscale/grg/current/cdl/hal_arm_xscale_grg.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/grg/current/cdl/hal_arm_xscale_grg.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_xscale_grg.cdl
--- xscale/grg/current/cdl/hal_arm_xscale_grg.cdl	29 Jan 2009 17:49:07 -0000	1.6
+++ xscale/grg/current/cdl/hal_arm_xscale_grg.cdl	2 Feb 2009 19:03:23 -0000
@@ -112,8 +112,8 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_GRG {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { CYGHWR_HAL_ARM_BIGENDIAN ? "-mbig-endian -mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -mapcs-frame" :
-	                    "-mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -mapcs-frame" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -124,8 +124,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_GRG {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { CYGHWR_HAL_ARM_BIGENDIAN ? "-mbig-endian -mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" :
-	                    "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: xscale/iop310/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/iop310/current/ChangeLog,v
retrieving revision 1.8
diff -u -p -r1.8 ChangeLog
--- xscale/iop310/current/ChangeLog	29 Jan 2009 17:49:07 -0000	1.8
+++ xscale/iop310/current/ChangeLog	2 Feb 2009 19:03:23 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_iop310.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_iop310.cdl: switch from arm-elf-gcc to
Index: xscale/iop310/current/cdl/hal_arm_xscale_iop310.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/iop310/current/cdl/hal_arm_xscale_iop310.cdl,v
retrieving revision 1.5
diff -u -p -r1.5 hal_arm_xscale_iop310.cdl
--- xscale/iop310/current/cdl/hal_arm_xscale_iop310.cdl	29 Jan 2009 17:49:07 -0000	1.5
+++ xscale/iop310/current/cdl/hal_arm_xscale_iop310.cdl	2 Feb 2009 19:03:24 -0000
@@ -233,7 +233,8 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_IOP310
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -244,7 +245,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_IOP310
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: xscale/iq80321/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/iq80321/current/ChangeLog,v
retrieving revision 1.19
diff -u -p -r1.19 ChangeLog
--- xscale/iq80321/current/ChangeLog	29 Jan 2009 17:49:08 -0000	1.19
+++ xscale/iq80321/current/ChangeLog	2 Feb 2009 19:03:24 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_iq80321.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_iq80321.cdl: switch from arm-elf-gcc to
Index: xscale/iq80321/current/cdl/hal_arm_xscale_iq80321.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/iq80321/current/cdl/hal_arm_xscale_iq80321.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_arm_xscale_iq80321.cdl
--- xscale/iq80321/current/cdl/hal_arm_xscale_iq80321.cdl	29 Jan 2009 17:49:08 -0000	1.6
+++ xscale/iq80321/current/cdl/hal_arm_xscale_iq80321.cdl	2 Feb 2009 19:03:25 -0000
@@ -189,7 +189,8 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_IQ8032
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -200,7 +201,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_IQ8032
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: xscale/ixdp425/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/ixdp425/current/ChangeLog,v
retrieving revision 1.16
diff -u -p -r1.16 ChangeLog
--- xscale/ixdp425/current/ChangeLog	29 Jan 2009 17:49:08 -0000	1.16
+++ xscale/ixdp425/current/ChangeLog	2 Feb 2009 19:03:25 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_ixdp425.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_ixdp425.cdl: switch from arm-elf-gcc to
Index: xscale/ixdp425/current/cdl/hal_arm_xscale_ixdp425.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/ixdp425/current/cdl/hal_arm_xscale_ixdp425.cdl,v
retrieving revision 1.10
diff -u -p -r1.10 hal_arm_xscale_ixdp425.cdl
--- xscale/ixdp425/current/cdl/hal_arm_xscale_ixdp425.cdl	29 Jan 2009 17:49:08 -0000	1.10
+++ xscale/ixdp425/current/cdl/hal_arm_xscale_ixdp425.cdl	2 Feb 2009 19:03:26 -0000
@@ -129,8 +129,8 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_IXDP42
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { CYGHWR_HAL_ARM_BIGENDIAN ? "-mbig-endian -mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -mapcs-frame" :
-	                    "-mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -mapcs-frame" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -141,8 +141,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_IXDP42
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { CYGHWR_HAL_ARM_BIGENDIAN ? "-mbig-endian -mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" :
-	                    "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib " }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: xscale/mpc50/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/mpc50/current/ChangeLog,v
retrieving revision 1.5
diff -u -p -r1.5 ChangeLog
--- xscale/mpc50/current/ChangeLog	29 Jan 2009 17:49:08 -0000	1.5
+++ xscale/mpc50/current/ChangeLog	2 Feb 2009 19:03:26 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_mpc50.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_mpc50.cdl: switch from arm-elf-gcc to
Index: xscale/mpc50/current/cdl/hal_arm_xscale_mpc50.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/mpc50/current/cdl/hal_arm_xscale_mpc50.cdl,v
retrieving revision 1.4
diff -u -p -r1.4 hal_arm_xscale_mpc50.cdl
--- xscale/mpc50/current/cdl/hal_arm_xscale_mpc50.cdl	29 Jan 2009 17:49:08 -0000	1.4
+++ xscale/mpc50/current/cdl/hal_arm_xscale_mpc50.cdl	2 Feb 2009 19:03:26 -0000
@@ -150,7 +150,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_MPC50 
 			display "Global compiler flags"
 			flavor  data
 			no_define
-            default_value { "-mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS . "-mcpu=xscale -g -O2 -fno-rtti -fno-exceptions -mapcs-frame" }
 			description   "
 				This option controls the global compiler flags which are used to
 				compile all packages by default. Individual packages may define
@@ -161,7 +161,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_MPC50 
 			display "Global linker flags"
 			flavor  data
 			no_define
-			default_value { "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+			default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
 			description   "
 				This option controls the global linker flags. Individual
 				packages may define options which override these global flags."
Index: xscale/picasso/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/picasso/current/ChangeLog,v
retrieving revision 1.6
diff -u -p -r1.6 ChangeLog
--- xscale/picasso/current/ChangeLog	29 Jan 2009 17:49:09 -0000	1.6
+++ xscale/picasso/current/ChangeLog	2 Feb 2009 19:03:26 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_picasso.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_picasso.cdl: switch from arm-elf-gcc to
Index: xscale/picasso/current/cdl/hal_arm_xscale_picasso.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/picasso/current/cdl/hal_arm_xscale_picasso.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_xscale_picasso.cdl
--- xscale/picasso/current/cdl/hal_arm_xscale_picasso.cdl	29 Jan 2009 17:49:09 -0000	1.3
+++ xscale/picasso/current/cdl/hal_arm_xscale_picasso.cdl	2 Feb 2009 19:03:27 -0000
@@ -239,7 +239,8 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_PICASS
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame -fno-builtin" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame -fno-builtin" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -250,7 +251,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_PICASS
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: xscale/prpmc1100/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/prpmc1100/current/ChangeLog,v
retrieving revision 1.6
diff -u -p -r1.6 ChangeLog
--- xscale/prpmc1100/current/ChangeLog	29 Jan 2009 17:49:09 -0000	1.6
+++ xscale/prpmc1100/current/ChangeLog	2 Feb 2009 19:03:27 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_prpmc1100.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_prpmc1100.cdl: switch from arm-elf-gcc to
Index: xscale/prpmc1100/current/cdl/hal_arm_xscale_prpmc1100.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/prpmc1100/current/cdl/hal_arm_xscale_prpmc1100.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_xscale_prpmc1100.cdl
--- xscale/prpmc1100/current/cdl/hal_arm_xscale_prpmc1100.cdl	29 Jan 2009 17:49:10 -0000	1.3
+++ xscale/prpmc1100/current/cdl/hal_arm_xscale_prpmc1100.cdl	2 Feb 2009 19:03:27 -0000
@@ -50,6 +50,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_PRPMC1
     display       "Motorola PrPMC1100 Processor PMC"
     parent        CYGPKG_HAL_ARM_XSCALE
     implements    CYGINT_HAL_ARM_BIGENDIAN
+    requires      CYGHWR_HAL_ARM_BIGENDIAN
     hardware
     include_dir   cyg/hal
     define_header hal_arm_xscale_prpmc1100.h
@@ -109,7 +110,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_PRPMC1
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=xscale -mbig-endian -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS . "-mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -120,7 +121,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_PRPMC1
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-mcpu=xscale -mbig-endian -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: xscale/uE250/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/uE250/current/ChangeLog,v
retrieving revision 1.15
diff -u -p -r1.15 ChangeLog
--- xscale/uE250/current/ChangeLog	29 Jan 2009 17:49:10 -0000	1.15
+++ xscale/uE250/current/ChangeLog	2 Feb 2009 19:03:27 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_uE250.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_uE250.cdl: switch from arm-elf-gcc to
Index: xscale/uE250/current/cdl/hal_arm_xscale_uE250.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/uE250/current/cdl/hal_arm_xscale_uE250.cdl,v
retrieving revision 1.5
diff -u -p -r1.5 hal_arm_xscale_uE250.cdl
--- xscale/uE250/current/cdl/hal_arm_xscale_uE250.cdl	29 Jan 2009 17:49:10 -0000	1.5
+++ xscale/uE250/current/cdl/hal_arm_xscale_uE250.cdl	2 Feb 2009 19:03:29 -0000
@@ -248,7 +248,8 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_UE250 
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame -fno-builtin" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            " -mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame -fno-builtin" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -259,7 +260,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_UE250 
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
Index: xscale/xsengine/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/xsengine/current/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- xscale/xsengine/current/ChangeLog	29 Jan 2009 17:49:10 -0000	1.3
+++ xscale/xsengine/current/ChangeLog	2 Feb 2009 19:03:29 -0000
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_arm_xscale_xsengine.cdl: update compiler flags for gcc 4.x
+
 2009-01-24  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_xscale_xsengine.cdl: switch from arm-elf-gcc to
Index: xscale/xsengine/current/cdl/hal_arm_xscale_xsengine.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/xscale/xsengine/current/cdl/hal_arm_xscale_xsengine.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_arm_xscale_xsengine.cdl
--- xscale/xsengine/current/cdl/hal_arm_xscale_xsengine.cdl	29 Jan 2009 17:49:11 -0000	1.3
+++ xscale/xsengine/current/cdl/hal_arm_xscale_xsengine.cdl	2 Feb 2009 19:03:29 -0000
@@ -173,7 +173,8 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_XSENGI
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame -fno-builtin" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
+                            "-mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame -fno-builtin" }
             description   "
                 This option controls the global compiler flags which are used to
                 compile all packages by default. Individual packages may define
@@ -184,7 +185,7 @@ cdl_package CYGPKG_HAL_ARM_XSCALE_XSENGI
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
+            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]