changeset 2750:3b9ce76ce56c

Update compiler flags
author bartv
date Tue, 03 Feb 2009 18:02:43 +0000
parents 82f1df43f011
children a0205b9ffd22
files packages/hal/mips/idt79s334a/current/ChangeLog packages/hal/mips/idt79s334a/current/cdl/hal_mips_idt32334_refidt334.cdl packages/hal/mips/jmr3904/current/ChangeLog packages/hal/mips/jmr3904/current/cdl/hal_mips_tx39_jmr3904.cdl packages/hal/mips/mips32/current/ChangeLog packages/hal/mips/mips32/current/cdl/hal_mips_mips32.cdl packages/hal/mips/mips64/current/ChangeLog packages/hal/mips/mips64/current/cdl/hal_mips_mips64.cdl packages/hal/mips/ref4955/current/ChangeLog packages/hal/mips/ref4955/current/cdl/hal_mips_tx49_ref4955.cdl packages/hal/mips/rm7000/ocelot/current/ChangeLog packages/hal/mips/rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl packages/hal/mips/sim/current/ChangeLog packages/hal/mips/sim/current/cdl/hal_mips_sim.cdl packages/hal/mips/vrc4373/current/ChangeLog packages/hal/mips/vrc4373/current/cdl/hal_mips_vr4300_vrc4373.cdl packages/hal/mips/vrc4375/current/ChangeLog packages/hal/mips/vrc4375/current/cdl/hal_mips_vr4300_vrc4375.cdl
diffstat 18 files changed, 61 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/mips/idt79s334a/current/ChangeLog
+++ b/packages/hal/mips/idt79s334a/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_idt32334_refidt334.cdl: update compiler flags for gcc 4.x
+
 2003-09-21  Gary Thomas  <gary@mlbassoc.com>
 
 	* misc/redboot_RAM.ecm: 
--- a/packages/hal/mips/idt79s334a/current/cdl/hal_mips_idt32334_refidt334.cdl
+++ b/packages/hal/mips/idt79s334a/current/cdl/hal_mips_idt32334_refidt334.cdl
@@ -167,7 +167,7 @@ cdl_package CYGPKG_HAL_MIPS_IDT32334_REF
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mips32 -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -fno-builtin -G0" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-mips32 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fno-builtin -G0" }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/mips/jmr3904/current/ChangeLog
+++ b/packages/hal/mips/jmr3904/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_tx39_jmr3904.cdl: update compiler flags for gcc 4.x
+
 2003-07-18  Nick Garnett  <nickg@balti.calivar.com>
 
 	* cdl/hal_mips_tx39_jmr3904.cdl:
--- a/packages/hal/mips/jmr3904/current/cdl/hal_mips_tx39_jmr3904.cdl
+++ b/packages/hal/mips/jmr3904/current/cdl/hal_mips_tx39_jmr3904.cdl
@@ -164,7 +164,7 @@ cdl_package CYGPKG_HAL_MIPS_TX39_JMR3904
             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" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . " -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
--- a/packages/hal/mips/mips32/current/ChangeLog
+++ b/packages/hal/mips/mips32/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_mips32.cdl: update compiler flags for gcc 4.x
+
 2005-06-10  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* src/mips_mips32.ld: gcc_except_table subsections don't need to be
--- a/packages/hal/mips/mips32/current/cdl/hal_mips_mips32.cdl
+++ b/packages/hal/mips/mips32/current/cdl/hal_mips_mips32.cdl
@@ -148,8 +148,10 @@ cdl_package CYGPKG_HAL_MIPS_MIPS32 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { CYGPKG_HAL_MIPS_LSBFIRST ? "-mips32 -EL -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -G0" : \
-			       "-mips32 -EB -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -G0"  }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS .
+                            (CYGPKG_HAL_MIPS_LSBFIRST ? "-EL" : "-EB") .
+                            " -mips32 -msoft-float -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -G0"
+            }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
@@ -161,8 +163,7 @@ cdl_package CYGPKG_HAL_MIPS_MIPS32 {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value {CYGPKG_HAL_MIPS_LSBFIRST ? "-EL -msoft-float -g -nostdlib -Wl,--gc-sections -Wl,-static" :\
-			    "-msoft-float -EB -g -nostdlib -Wl,--gc-sections -Wl,-static"}
+            default_value { (CYGPKG_HAL_MIPS_LSBFIRST ? "-EL" : "-EB") . " -mips32 -msoft-float -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."
--- a/packages/hal/mips/mips64/current/ChangeLog
+++ b/packages/hal/mips/mips64/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_mips64.cdl: update compiler flags for gcc 4.x
+
 2004-04-22  Jani Monoses <jani@iv.ro>
 
 	 * cdl/hal_mips_mips64.cdl :
--- a/packages/hal/mips/mips64/current/cdl/hal_mips_mips64.cdl
+++ b/packages/hal/mips/mips64/current/cdl/hal_mips_mips64.cdl
@@ -141,7 +141,7 @@ cdl_package CYGPKG_HAL_MIPS_MIPS64 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mips64 -EL -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -G0" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-mips64 -EL -msoft-float -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -G0" }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/mips/ref4955/current/ChangeLog
+++ b/packages/hal/mips/ref4955/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_tx49_ref4955.cdl: update compiler flags for gcc 4.x
+
 2009-01-08  John Dallaway  <john@dallaway.org.uk>
 
 	* misc/slow_cat.tcl, misc/swap4.tcl:
--- a/packages/hal/mips/ref4955/current/cdl/hal_mips_tx49_ref4955.cdl
+++ b/packages/hal/mips/ref4955/current/cdl/hal_mips_tx49_ref4955.cdl
@@ -200,7 +200,10 @@ cdl_package CYGPKG_HAL_MIPS_TX49_REF4955
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { CYGPKG_HAL_MIPS_MSBFIRST ? "-mips2 -EB -mabi=eabi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" : "-mips2 -EL -mabi=eabi -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 .
+                            (CYGPKG_HAL_MIPS_MSBFIRST ? "-EB" : "-EL") .
+                            " -mips2 -mabi=eabi -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
@@ -212,7 +215,7 @@ cdl_package CYGPKG_HAL_MIPS_TX49_REF4955
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { CYGPKG_HAL_MIPS_MSBFIRST ? "-g -mips2 -EB -mabi=eabi -nostdlib -Wl,--gc-sections -Wl,-static" : "-g -mips2 -EL -mabi=eabi -nostdlib -Wl,--gc-sections -Wl,-static" }
+            default_value { (CYGPKG_HAL_MIPS_MSBFIRST ? "-EB" : "-EL") . " -g -mips2 -mabi=eabi -nostdlib -Wl,--gc-sections -Wl,-static" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
--- a/packages/hal/mips/rm7000/ocelot/current/ChangeLog
+++ b/packages/hal/mips/rm7000/ocelot/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_rm7000_ocelot.cdl: update compiler flags for gcc 4.x
+
 2004-04-22  Jani Monoses <jani@iv.ro>
 
 	 * cdl/hal_mips_rm7000_ocelot.cdl :
--- a/packages/hal/mips/rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl
+++ b/packages/hal/mips/rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl
@@ -264,7 +264,10 @@ cdl_package CYGPKG_HAL_MIPS_RM7000_OCELO
             flavor  data
             no_define
 # -mabi=eabi -mips2
-            default_value { CYGPKG_HAL_MIPS_MSBFIRST ? "-G0 -mips2 -EB -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" : "-G0 -mips2 -EL -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 .
+                           (CYGPKG_HAL_MIPS_MSBFIRST ? "-EB" : "-EL") .
+                           " -G0 -mips2 -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
@@ -277,7 +280,7 @@ cdl_package CYGPKG_HAL_MIPS_RM7000_OCELO
             flavor  data
             no_define
 #  -mabi=eabi -mips2
-            default_value { CYGPKG_HAL_MIPS_MSBFIRST ? "-G0 -g -mips32 -EB -nostdlib -Wl,--gc-sections -Wl,-static" : "-g -mips2 -EL -mabi=eabi -nostdlib -Wl,--gc-sections -Wl,-static" }
+            default_value { (CYGPKG_HAL_MIPS_MSBFIRST ? "-EB" : "-EL") . " -G0 -g -mips2 -nostdlib -Wl,--gc-sections -Wl,-static" }
             description   "
                 This option controls the global linker flags. Individual
                 packages may define options which override these global flags."
--- a/packages/hal/mips/sim/current/ChangeLog
+++ b/packages/hal/mips/sim/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_sim.cdl: update compiler flags for gcc 4.x
+
 2003-07-18  Nick Garnett  <nickg@balti.calivar.com>
 
 	* cdl/hal_mips_sim.cdl:
--- a/packages/hal/mips/sim/current/cdl/hal_mips_sim.cdl
+++ b/packages/hal/mips/sim/current/cdl/hal_mips_sim.cdl
@@ -137,7 +137,10 @@ cdl_package CYGPKG_HAL_MIPS_SIM {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { CYGPKG_HAL_MIPS_TX39 ? "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" : "-mgp32 -EB -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 .
+                            (CYGPKG_HAL_MIPS_TX39 ? "" : "-mgp32 -EB") .
+                            " -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
@@ -149,7 +152,7 @@ cdl_package CYGPKG_HAL_MIPS_SIM {
             display "Global linker flags"
             flavor  data
             no_define
-            default_value { CYGPKG_HAL_MIPS_TX39 ? "-g -nostdlib -Wl,--gc-sections -Wl,-static" : "-mgp32 -EB -g -nostdlib -Wl,--gc-sections -Wl,-static" }
+            default_value { (CYGPKG_HAL_MIPS_TX39 ? "" : "-mgp32 -EB") . " -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."
--- a/packages/hal/mips/vrc4373/current/ChangeLog
+++ b/packages/hal/mips/vrc4373/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_vr4300_vrc4373.cdl: update compiler flags for gcc 4.x
+
 2003-07-18  Nick Garnett  <nickg@balti.calivar.com>
 
 	* cdl/hal_mips_vr4300_vrc4373.cdl:
--- a/packages/hal/mips/vrc4373/current/cdl/hal_mips_vr4300_vrc4373.cdl
+++ b/packages/hal/mips/vrc4373/current/cdl/hal_mips_vr4300_vrc4373.cdl
@@ -129,7 +129,7 @@ cdl_package CYGPKG_HAL_MIPS_VR4300_VRC43
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mgp32 -EB -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 . "-mgp32 -EB -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
--- a/packages/hal/mips/vrc4375/current/ChangeLog
+++ b/packages/hal/mips/vrc4375/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_mips_vr4300_vrc4375.cdl: update compiler flags for gcc 4.x
+
 2003-07-18  Nick Garnett  <nickg@balti.calivar.com>
 
 	* cdl/hal_mips_vr4300_vrc4375.cdl:
--- a/packages/hal/mips/vrc4375/current/cdl/hal_mips_vr4300_vrc4375.cdl
+++ b/packages/hal/mips/vrc4375/current/cdl/hal_mips_vr4300_vrc4375.cdl
@@ -130,7 +130,7 @@ cdl_package CYGPKG_HAL_MIPS_VR4300_VRC43
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mgp32 -EL -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 . "-mgp32 -EL -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