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]

more compiler flags - MIPS


Continuing on. This updates the various MIPS platform HALs.

There is some confusion in the rm7000/ocelot HAL. The original CDL
always used -mips2 for CFLAGS, but either -mips32 or -mips2 for
LDFLAGS depending on endianness. I have assumed that the -mips32 was a
typo and have switched to -mips2 throughout, but I don't know the
details of this platform.

Bart

Index: idt79s334a/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/idt79s334a/current/ChangeLog,v
retrieving revision 1.5
diff -u -p -r1.5 ChangeLog
--- idt79s334a/current/ChangeLog	29 Jan 2009 17:49:25 -0000	1.5
+++ idt79s334a/current/ChangeLog	3 Feb 2009 17:24:04 -0000
@@ -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: 
Index: idt79s334a/current/cdl/hal_mips_idt32334_refidt334.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/idt79s334a/current/cdl/hal_mips_idt32334_refidt334.cdl,v
retrieving revision 1.3
diff -u -p -r1.3 hal_mips_idt32334_refidt334.cdl
--- idt79s334a/current/cdl/hal_mips_idt32334_refidt334.cdl	29 Jan 2009 17:49:25 -0000	1.3
+++ idt79s334a/current/cdl/hal_mips_idt32334_refidt334.cdl	3 Feb 2009 17:24:05 -0000
@@ -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
Index: jmr3904/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/jmr3904/current/ChangeLog,v
retrieving revision 1.26
diff -u -p -r1.26 ChangeLog
--- jmr3904/current/ChangeLog	29 Jan 2009 17:49:25 -0000	1.26
+++ jmr3904/current/ChangeLog	3 Feb 2009 17:24:06 -0000
@@ -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:
Index: jmr3904/current/cdl/hal_mips_tx39_jmr3904.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/jmr3904/current/cdl/hal_mips_tx39_jmr3904.cdl,v
retrieving revision 1.7
diff -u -p -r1.7 hal_mips_tx39_jmr3904.cdl
--- jmr3904/current/cdl/hal_mips_tx39_jmr3904.cdl	29 Jan 2009 17:49:25 -0000	1.7
+++ jmr3904/current/cdl/hal_mips_tx39_jmr3904.cdl	3 Feb 2009 17:24:06 -0000
@@ -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
Index: mips32/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/mips32/current/ChangeLog,v
retrieving revision 1.12
diff -u -p -r1.12 ChangeLog
--- mips32/current/ChangeLog	29 Jan 2009 17:49:25 -0000	1.12
+++ mips32/current/ChangeLog	3 Feb 2009 17:24:06 -0000
@@ -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
Index: mips32/current/cdl/hal_mips_mips32.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/mips32/current/cdl/hal_mips_mips32.cdl,v
retrieving revision 1.8
diff -u -p -r1.8 hal_mips_mips32.cdl
--- mips32/current/cdl/hal_mips_mips32.cdl	29 Jan 2009 17:49:25 -0000	1.8
+++ mips32/current/cdl/hal_mips_mips32.cdl	3 Feb 2009 17:24:06 -0000
@@ -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."
Index: mips64/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/mips64/current/ChangeLog,v
retrieving revision 1.10
diff -u -p -r1.10 ChangeLog
--- mips64/current/ChangeLog	29 Jan 2009 17:49:26 -0000	1.10
+++ mips64/current/ChangeLog	3 Feb 2009 17:24:06 -0000
@@ -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 :
Index: mips64/current/cdl/hal_mips_mips64.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/mips64/current/cdl/hal_mips_mips64.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_mips_mips64.cdl
--- mips64/current/cdl/hal_mips_mips64.cdl	29 Jan 2009 17:49:26 -0000	1.6
+++ mips64/current/cdl/hal_mips_mips64.cdl	3 Feb 2009 17:24:07 -0000
@@ -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
Index: ref4955/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/ref4955/current/ChangeLog,v
retrieving revision 1.11
diff -u -p -r1.11 ChangeLog
--- ref4955/current/ChangeLog	29 Jan 2009 17:49:26 -0000	1.11
+++ ref4955/current/ChangeLog	3 Feb 2009 17:24:07 -0000
@@ -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:
Index: ref4955/current/cdl/hal_mips_tx49_ref4955.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/ref4955/current/cdl/hal_mips_tx49_ref4955.cdl,v
retrieving revision 1.8
diff -u -p -r1.8 hal_mips_tx49_ref4955.cdl
--- ref4955/current/cdl/hal_mips_tx49_ref4955.cdl	29 Jan 2009 17:49:26 -0000	1.8
+++ ref4955/current/cdl/hal_mips_tx49_ref4955.cdl	3 Feb 2009 17:24:07 -0000
@@ -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."
Index: rm7000/ocelot/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/rm7000/ocelot/current/ChangeLog,v
retrieving revision 1.11
diff -u -p -r1.11 ChangeLog
--- rm7000/ocelot/current/ChangeLog	29 Jan 2009 17:49:26 -0000	1.11
+++ rm7000/ocelot/current/ChangeLog	3 Feb 2009 17:24:08 -0000
@@ -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 :
Index: rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl,v
retrieving revision 1.8
diff -u -p -r1.8 hal_mips_rm7000_ocelot.cdl
--- rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl	29 Jan 2009 17:49:26 -0000	1.8
+++ rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl	3 Feb 2009 17:24:08 -0000
@@ -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."
Index: sim/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/sim/current/ChangeLog,v
retrieving revision 1.19
diff -u -p -r1.19 ChangeLog
--- sim/current/ChangeLog	29 Jan 2009 17:49:27 -0000	1.19
+++ sim/current/ChangeLog	3 Feb 2009 17:24:09 -0000
@@ -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:
Index: sim/current/cdl/hal_mips_sim.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/sim/current/cdl/hal_mips_sim.cdl,v
retrieving revision 1.6
diff -u -p -r1.6 hal_mips_sim.cdl
--- sim/current/cdl/hal_mips_sim.cdl	29 Jan 2009 17:49:27 -0000	1.6
+++ sim/current/cdl/hal_mips_sim.cdl	3 Feb 2009 17:24:09 -0000
@@ -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."
Index: vrc4373/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/vrc4373/current/ChangeLog,v
retrieving revision 1.14
diff -u -p -r1.14 ChangeLog
--- vrc4373/current/ChangeLog	29 Jan 2009 17:49:29 -0000	1.14
+++ vrc4373/current/ChangeLog	3 Feb 2009 17:24:10 -0000
@@ -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:
Index: vrc4373/current/cdl/hal_mips_vr4300_vrc4373.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/vrc4373/current/cdl/hal_mips_vr4300_vrc4373.cdl,v
retrieving revision 1.8
diff -u -p -r1.8 hal_mips_vr4300_vrc4373.cdl
--- vrc4373/current/cdl/hal_mips_vr4300_vrc4373.cdl	29 Jan 2009 17:49:29 -0000	1.8
+++ vrc4373/current/cdl/hal_mips_vr4300_vrc4373.cdl	3 Feb 2009 17:24:10 -0000
@@ -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
Index: vrc4375/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/vrc4375/current/ChangeLog,v
retrieving revision 1.4
diff -u -p -r1.4 ChangeLog
--- vrc4375/current/ChangeLog	29 Jan 2009 17:49:29 -0000	1.4
+++ vrc4375/current/ChangeLog	3 Feb 2009 17:24:10 -0000
@@ -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:
Index: vrc4375/current/cdl/hal_mips_vr4300_vrc4375.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/vrc4375/current/cdl/hal_mips_vr4300_vrc4375.cdl,v
retrieving revision 1.4
diff -u -p -r1.4 hal_mips_vr4300_vrc4375.cdl
--- vrc4375/current/cdl/hal_mips_vr4300_vrc4375.cdl	29 Jan 2009 17:49:29 -0000	1.4
+++ vrc4375/current/cdl/hal_mips_vr4300_vrc4375.cdl	3 Feb 2009 17:24:11 -0000
@@ -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


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